Stop an CIRC motion when a sensor is activated

  • Hello everyone, I would like to know how I could achieve the following:


    When moving CIRC (slow) between points P1, P2 and P3, somewhere between A and B a sensor will send a signal to KRC4 through the ANIN[1].


    How could I stop the robot at this exact moment, abandon the current move and return to parking position P1?


    I think I have to use an interruption but I do not know how to do it ...


    Thank you in advance !

Advertising from our partners