Hi all,
I'm fairly new to robot programming and currently I'm trying to track the position of my robot to assist recovery, at the moment we have a program that uses the LPOS to determine which zone of the machine it's in but I started testing out different methods of doing this and wrote a few BG logic programs that write the X Y and X positions to registers and then another program that works out which zone it's in based on the register value and turns on a DO to match the zone (mainly wanted to do it this way so the PLC could also be aware of the robot position in case of future developments), only problem I can see is that the position in the register doesn't update when the robot is moved with the pendant therefore the robot could think it was in another zone when it's not so when I recover via the HMI the wrong program could be called. If anyone could assist with ways to improve the program I currently have or another method of doing this. (I'll attach screenshots showing the program I've mentioned)