Anti loop Procedure
Poupack
✭
in RobotStudio
Hello !
I have a question for you on IRC5:
How to avoid looping when the cursor reaches the end of a procedure (ENDPROC) ?
In fact when the cursor reaches the end of the routine the robot loops back to its first point
at the start of the routine and I would like to stop it only when the robot loops back.
Thanks for your help !
0
Best Answers
-
It really sounds to me like you simply just need to have it set for single cycle and not continuous.Lee Justice0
-
That would be in the controller topic, Run Mode settings.Lee Justice0
-
Answers
-
You can change it from continuous to single using the quickset menu. Better yet, you can change the sytem parameter to set it to single when putting the robot in teach.Lee Justice0
-
Thanks Lemster for your quick reply !But would it be possible to do a function at the start of the proc to avoid anti-looping ?
0 -
Under what condistions? Are you talking specifically about teach mode?Lee Justice0
-
Hello,You can use a global bool value:
PERS bool bAntiLoop:=FALSE;
Make a AntiLoop procedure:PROC AntiLoop() IF NOT bAntiLoop THEN ErrWrite "AntiLoop detect a loop","Set bAntiLoop to TRUE before use it."; EXIT; ENDIF bAntiLoop:=FALSE; ENDPROC
Then add it at start of Movement PROCPROC MoveToPick() AntiLoop; ... ENDPROC PROC MoveToPlace() AntiLoop; ... ENDPROC
And set bAntiLoop at TRUE before calling them:PROC Main() ... bAntiLoop:=TRUE; MoveToPick; ... bAntiLoop:=TRUE; MoveToPlace; ... ENDPROC
0 -
Thank you DenisFr,The solution is perfect for automatic execution also if I select the proc alone then there will always be a loop.I'm trying to find a solution for a single procedure selection.Do you have an idea ? Thanks in advance !0
-
Thanks Lemster68I will try tomorrow!0
-
Lemster68, where is the system parameter to modify ? What menu?Thanks everyone!0
-
lemster68 said:That would be in the controller topic, Run Mode settings.
https://imgur.com/a/ZaWsxUu
here you can swap to Single cycle in Handmode, when the robot is in Automatic there is no loop normally,
Do you also have this problems when robot is in Auto mode?
Greets.
Robotic Software Engineer0 -
-
Perfect ! Thanks you !
0
Categories
- All Categories
- 5.5K RobotStudio
- 395 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 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