Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
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.7K RobotStudio
- 402 UpFeed
- 21 Tutorials
- 16 RobotApps
- 307 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 251 ScreenMaker
- 2.9K Robot Controller
- 368 IRC5
- 92 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 859 RAPID Programming
- 43 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings
