I am working on the Fanuc R2000iC robot with r30iB plus controller. After the robot reaches a certain specific position, I need the PLC to know the robot has reached the desired position.
I need to do this without using reference positions. So I switched ON a digital output when the robot reached a position and used the $MOR_GRP[1].ROB_MOVE variable in BG Logic to know whether the robot is in motion. When the variable returns 1, the DO is switched off in BG logic. This works fine in manual mode but in auto mode, even if the logical instruction gets executed, the output gets switched off.
How to make the above logic run in auto mode?
Any help would be appreciated. Thanks.