Hello Rod,
i hope you can help me out and also i hope that its not a problem to write it into your post, but if so then let me know and i will delete the post.
So, i got my 2 Pole 6 Position switch from aliexpress, same one as you have used (at least i think) which i want to use for the axis scale and mpg enable. (exactly what ou have done. Here the link to the switch:
www.aliexpress.com/item/4000687267288.ht...3.0.0.30a65931P1Gvvg
I have 2 MPGs for my Lathe, but currently i am testing it only for one. So, i did exactly what you described on the 3. page of this thread.
I connected PIN 3, 4, 6 and 8 together (please take a look at the picture) and connected PIN 8 to +24V, so all have +24V.
The A and B pin to input 21 and 22 on my Mesa 7i76E.
I copy and paste you hal settings and just changed the or2.3 to 2.1 because i have currently only 2 or2`s (please take a look at the HAL files i added to the attachment).
The switch works, but only for the scale 0,1mm. I turned the switch completly to the left side, when i move it ones to the right side then i get the scale 0,1mm and the one MPG (X-axis) works, but not 0,01mm and also not 1,00mm.
I have opened Halmeter, choosed pin "mux4.0.out" which shows "0" when the switch is turned completly to the left side, when moved one click to the right it shows "0,1mm", then next clicks always "0".
I dont understand why, i really tried to find the problem. For example i choosed other pins instead e.g. pin 6 and 8, but what i ones got was that i got 2 times 0.1mm, so i seems like its some kind of .hal config problem.
I hope you can find some time to help me out with that. Let me know if you need more informations.
Thanks in advance!
Denis