Hi
My lathe with 120 hole optical disc has the below hal listing, which is ALMOST identical to yours;
setp encoder.0.position-scale 120
setp encoder.0.counter-mode 1
net spindle-position encoder.0.position-interpolated => motion.spindle-revs
net spindle-velocity encoder.0.velocity => motion.spindle-speed-in
net spindle-index-enable encoder.0.index-enable <=> motion.spindle-index-enable
net spindle-index parport.0.pin-11-in-not => encoder.0.phase-Z
net spindle-pulse parport.1.pin-10-in => encoder.0.phase-A
The difference is that I set
phase-Z to
pin-11-in-not because otherwise the BOB inverted the signal and had index permanently on and just off once per rev.
Is this what is happening to you?
regards