Robot programming not looping

Hi, I am learning to do a robot program using sensors in the conveyor, everything works well, but the cycle is repeating.
Set OUT[0] == True
Wait IN[0] == True
If IN[0]==True:
Set OUT[0] == False
PTP P1 GripperTCP 100%
LIN P2 GripperTCP 2500mm/s
Set OUT[1] == True
LIN P3 GripperTCP 2500mm/s
LIN P4 GripperTCP 2500mm/s
LIN P5 GripperTCP 2500mm/s
Set OUT[1] == False
PTP P6 GripperTCP 100%

Add a While True command and put all these other statements inside that?

1 Like

Tick the Loop of the actuator in the modeling.

Thanks a ton, it works now