I'm using two EC11 encoders for setting jog speed and changing feed, rapid and spindle overrides (depending on the current mode). These are connected to the gmoccapy override pins. The encoders both work correctly as I can see the counts values decrease and increase in halshow. But everytime I change the spindle override and after that the jog (or feed/rapid) override, the latter makes a big jump. For example, the normal jog adjustment is 15mm/min per encoder count, after turning the spindle override encoder 1 or more clicks, the jog speed jumps 30 to 360 units. Most of the time even in the wrong direction.
When I use the halui override pins instead of the gmoccapy pins, everything works correctly . But halui has no jog override pins. I also tested with the two encoder count signals switched, but this doesn't change anything. The spindle override percentage always change 1%. The other override jumps.
My custom_postgui.hal:
Code:
net feed-override => gmoccapy.jog.jog-velocity.counts gmoccapy.feed.feed-override.counts gmoccapy.rapid.rapid-override.counts
net spindle-override => gmoccapy.spindle.spindle-override.counts
# Only enable jog override in manual mode
net manual-mode => gmoccapy.jog.jog-velocity.count-enable
# Only enable feed and rapid override in auto mode
net auto-mode => gmoccapy.feed.feed-override.count-enable gmoccapy.rapid.rapid-override.count-enable
# Always enable spindle override
setp gmoccapy.spindle.spindle-override.count-enable 1