I have an MPG pendant for manual jogging of my mill, and it works great. I'd like to extend its capabilities by using the MPG encoder for increasing/decreasing the feedrate override % (FRO) and the spindle speed override % (SRO). The pendant has a 6-axis selector switch for jogging, and since I don't need axes 5 and 6 for my mill, I'd like to use these selections to control FRO and SRO.
I have some experience programming PLCs, but I'm having trouble getting my Brain to behave as I wish. Here's the behavior I'd like for the feedrate override function:
1) Turn the axis selector switch to FRO.
2) Rotate the encoder CW or CCW to increase/decrease the FRO % from its current value.
3) Upon turning the selector switch from FRO to another mode, I'd like the FRO value to remain at its setting from step 2, even if I spin the MPG.
Has anyone attempted this? If so, can you send me your brain? I've used the better part of a vacation day on it, and I don't have anything to show for it. BTW, I'm not using ModIO since I have enough inputs on my parallel port to do the job.
Thanks,
M