Hello, I am fairly new to fanuc and would appreciate some help on a hold issue I'm facing.
I have two SR-6iA robots working near each other and am setting up an 'unsafe zone' so that while one robot is in that zone the other will not enter.
Currently, I have this program running with my movement program:
LBL[1]
IF (DI [3: LISTEN RB2 POS] = OFF AND R [11: YPOS] >= R [4: EXTRA_SAFE]), $MCR_GRP[1].$HOLD = (ON)
// if robot 2 is in the unsafe position and robot 1 is past the 'extra safe' position, then hold is turned on for robot 1
IF (DI [3: LISTEN RB2 POS] = ON, $MCR_GRP[1].$HOLD = (OFF)
// if robot 2 is in a safe position, the hold for robot 1 is turned off
WAIT .10 (sec)
JMP LBL [1]
However, when the hold is turned on it will not turn back off even though the input is going from off to on. Is there any way to fix this or to achieve the same function with a different method?