How to get WCS axis position in PLC program?
Posted: Sun May 30, 2021 2:40 am
I would like to read axis position in the current work coordinate system in the PLC program. I can see special variables for absolute encoder position but none for calibrated WCS position. They are probably right there but my brain is starting to fail me tonight!
The application is: I have three buttons on my control panel Set X0, Set Y0, Set Z0. Each button has a light. I want to light the button for each axis when the machine is at (near) zero relative to the current WCS.
I will only light them in manual mode so they dont flash every time an axis passes 0 while running a program!
example pseudo code:
IF ManualMode && XPos <= 0.002 && XPos >= -0.002 THEN (SetX0ButtonLight_O)
The application is: I have three buttons on my control panel Set X0, Set Y0, Set Z0. Each button has a light. I want to light the button for each axis when the machine is at (near) zero relative to the current WCS.
I will only light them in manual mode so they dont flash every time an axis passes 0 while running a program!
example pseudo code:
IF ManualMode && XPos <= 0.002 && XPos >= -0.002 THEN (SetX0ButtonLight_O)