If I understand correctly, the array persist.UserData[] is used to pass data to KMotion about Mach3. Amoung the data is button presses, or at least the HOME buttons.
Again, if I understand correctly persist.UserData[5] contains data about the press of the HOME buttons, with bit 0 representing the X axis, bit 1 representing the Y axis and bit 2 representing tne Z axis.
I have a couple of questions about this process.
1. Is there a list of all bits/bytes in persist.UserData[] that represent data from Maxh3, the list showing the bit/byte location and the meaning.
2. How is a bit within persist.UserData[] reset. IOWs, if byte 5, bit 0 is set to indicate that the X Home button has been presed, how is it reset?