Hi I am retrofit denford orac to linuxcnc/mach3. I have got mach3 fully working but I cannot handle linuxcnc. I am trying to add mpg into but I have some strange issue with it.
I have wrote the code and place it into custom.hal. Seems like mpg works but only one direction doesn't matter with way I am turning (If I am using arrows work great). I have windows xp with mach3 installed on another partition and the same mpg works great too. Can any one have a look in my code is there anything wrong with it
My code:
"
loadrt select8 count=1
loadrt updown count=1
addf select8.0 servo-thread
addf updown.0 servo-thread
net encA encoder.1.phase-A <= parport.1.pin-12-in
net encB encoder.1.phase-B <= parport.1.pin-11-in
net enc-counts encoder.1.counts => axis.0.jog-counts axis.1.jog-counts
net jog-button updown.0.countup <= parport.0.pin-15-in
net jog-choice updown.0.count => select8.0.sel
net jogX axis.0.jog-enable <= select8.0.out0
net jogY axis.1.jog-enable <= select8.0.out1
setp encoder.1.counter-mode 1
setp updown.0.max 1
setp updown.0.min 0
setp updown.0.wrap 1
setp axis.0.jog-scale 0.1
setp axis.1.jog-scale 0.1
"