As you can see it checks for any DRO or LED not equaling zero
I created the plugin for computing 5 axis tool nose position and then drive all the axis's to the position based on 4th and/or 5th axis head rotation, I just added the get data button to see current data values. It was a test in learning multi-axis matrix programming. Took me months to understand how to get it to work. I've found, I'm not that smart, but I manage to muck way thru it. ;-)