The first P1 encoder is encoder 1 so the position would be:
hm2_7i96s.0.encoder.01.position
and the most important parameter for that encoder would be:
hm2_7i96s.0.encoder.01.scale
After your warning (thanks) I was going to solder up a little proto-board with some protection diodes for the negative rail. Then decided to just do a quick and dirty actual PCB. I will obviously be careful when connecting, and to your point chassis ground is not zero volts. I inserted a 100r series resistor and TVS, please see attached and let me know if you think this is adequate?
I'm ready to press the send button for a free PCB, but I can tweak if you have any suggestions.
Re: hm2_7i96s.0.encoder.01.scale, can I assume that's a float value? Is there documentation available for the finer details of the 7i96s_p1encd.bin?
A work in progress by a user in NZ but try commanding a pallet changer on a horizontal 5 axis machines like this in Mach3.
This machine fills a shed.
Many people use Linuxcnc to retrofit big commercial machines because of its flexibility and extensibility.
Here the user had hit the limits of using classic ladder and wrote a custom Linuxcnc C component to do this. A week earlier, he knew nothing about programming and is now loving it!