RobotStudio event

How to do RETURN instruction with an external IO?

Hello all !

Is it possible to use an external signal to immediately trigger RETURN instruction in the motion routine to bring PP back to the next instruction in calling procedure ?

I am using a calling procedure to call different motion routines according to PLC commands. A DI is used to stop the current motion routine immediately and jump back to the calling procedure to wait for the next PLC command. I am thinking of using the DI to trigger an interrupt to clear the path and return to calling procedure, but it seems the RETURN instruction can only sent me back to the next instruction in the current motion routine. Is there any way else I could apply ?

Thanks in advance.

Comments

  • You could call the PLC procedure directly from the interrupt - you may need make a separate procedure that only waits for the next PLC command.