How to do RETURN instruction with an external IO?
in RobotStudio
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.
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.
0
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.0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 312 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 793 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings