1/2 mpg pendant key?
Posted: Fri Oct 08, 2021 9:15 pm
I would like to add a 1/2 key to centroid, so that, when I measure off of a part, I can quickly zero to center. I want to use the aux key on my wireless mpg so that it divides the currently selected axis. I found a forum post (link below) where they used a macro to divide current work position. But this required the use of 3 aux buttons to select axis.
I'm still new at gcode and not super familiar with centroids plc api. I can clearly see where I would write a subroutine in the plc src file, but I don't see where to get and modify current work position. And I don't see a way to get mpg axis switch position within gcode. Not sure if I am missing something there or not.
I would assume the best option would be to have the plc write to a global system variable that the g parser can read. But I have no idea if that is even possible, much less how to go about implementing it. Any thoughts?
Thanks in advance.
viewtopic.php?f=64&t=575&p=2653&hilit=edgefinder#p2653
I'm still new at gcode and not super familiar with centroids plc api. I can clearly see where I would write a subroutine in the plc src file, but I don't see where to get and modify current work position. And I don't see a way to get mpg axis switch position within gcode. Not sure if I am missing something there or not.
I would assume the best option would be to have the plc write to a global system variable that the g parser can read. But I have no idea if that is even possible, much less how to go about implementing it. Any thoughts?
Thanks in advance.
viewtopic.php?f=64&t=575&p=2653&hilit=edgefinder#p2653