I finally made it such that the MPG Axis selection can be controlled from either the mechanical switch or the display radio buttons.
1) I swapped out the radiobuttons for radioboxs; just to reduce code size and to make selecting the radio buttons via software easier.
2) The Mach4 Display Rotary Switch image and MPG Axis RadioBox will always reflect which Axis the MPG is connected to
a) The MPG Axis Radiobox controls which Axis the MPG is connected to independent of the MPG mechanical rotary switch position
i) The MPG Axis Radiobox controls always reflect which Axis the MPG is connected to
ii) The selection of an Axis in the MPG Axis Radiobox does NOT move the MPG mechanical rotary switch position
b) The MPG mechanical rotary switch "when switched" controls which Axis the MPG is connected to independent of the MPG Axis Radiobox selection
i) MPG mechanical rotary switch only reflects the current MPG Axis selection at powerup, at Mach4 startup and after the MPG mechanical rotary switch has moved.
ii) The Mach4 Display Rotary Switch image and the MPG Axis RadioBox are always automatically updated to reflect the current MPG Axis setting
When I update and test the other Jog Increment control code I will post the code so you can see or try out what I am talking about.
Then all I have to do is implement the Manual MPG "Rotation Direction Detection" code and I will be able to make a small video so you can see how it all works
This may not be the best way to create a Jogging/Pendant Interface but I will be able to connect switch based pendants to Mach4 through an Ethernet Smooth Stepper and have cool images reflect what is going on