How to exit in every moment from a certain state?
Hi all,
I'm doing an application with some task given from PLC that the robot must execute. I'm thinking to use CASE (one case per each task), but I'd need to exit each case immediately as soon as I receive an abort command. Is it the best way to do this to use a trap? Or are there some special instructions (like a WHILE instruction in which as soon as some condition is met you exit immediately the while cycle whithout reaching its end - I saw something like this in some other robot).
Thank you a lot!
I'm doing an application with some task given from PLC that the robot must execute. I'm thinking to use CASE (one case per each task), but I'd need to exit each case immediately as soon as I receive an abort command. Is it the best way to do this to use a trap? Or are there some special instructions (like a WHILE instruction in which as soon as some condition is met you exit immediately the while cycle whithout reaching its end - I saw something like this in some other robot).
Thank you a lot!
0
Comments
-
Hi Dragolollo,
There is a command called "ExitCycle" that might be useful to you, it forces the program pointer back to the start of your program, and can be executed from a TRAP routine that you could connect to an abort interrupt. There is an example in the description for the function in the RAPID Instructions, Functions and Data Types manual that you can access through RobotStudio,
Good Luck,
Harry1
Categories
- All Categories
- 5.5K RobotStudio
- 394 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 309 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings