Conditional While loops in RAPID, syntax help
newguy1
✭
Hello everybody,
I am doing school project in robotstudio and in one part of my code, I need to get back at the beginning of the loop while and I don't know how to do it.
cause I need to have 2 while loop procedured like - part of one is done, for some conditions, then part of the other is done for some conditions. then i want to change the conditions and run it again. like this:
WHILE - some conditions - DO
WHILE 2 - some conditions 2 -DO
...
ENDWHILE 2
WHILE 3 - some conditions 3 DO
...
ENDWHILE3
here I changed the conditions 2 and 3 so the loops while 2 and 3 and be done again. and i need that to run my programm, but i dont know how to do it, is there some function to this or some way?
ENDWHILE
(Btw i know the syntax Isnt like this, but i know other things and it's pretty long, so I made it like this, so you have idea what am I talking about but and so it's simple for you)
And I know it might be dumm and there might be better way to do this, but I am learning all of it just from home alone, so please excuse me.
Thank you very much
I am doing school project in robotstudio and in one part of my code, I need to get back at the beginning of the loop while and I don't know how to do it.
cause I need to have 2 while loop procedured like - part of one is done, for some conditions, then part of the other is done for some conditions. then i want to change the conditions and run it again. like this:
WHILE - some conditions - DO
WHILE 2 - some conditions 2 -DO
...
ENDWHILE 2
WHILE 3 - some conditions 3 DO
...
ENDWHILE3
here I changed the conditions 2 and 3 so the loops while 2 and 3 and be done again. and i need that to run my programm, but i dont know how to do it, is there some function to this or some way?
ENDWHILE
(Btw i know the syntax Isnt like this, but i know other things and it's pretty long, so I made it like this, so you have idea what am I talking about but and so it's simple for you)
And I know it might be dumm and there might be better way to do this, but I am learning all of it just from home alone, so please excuse me.
Thank you very much
Post edited by OskarHenriksson on
Tagged:
0
Comments
-
Not really clear as to what you need, can you elaborate some more? Rephrase it, more info?Lee Justice0
-
@newguy1 , I've rephrased your title since it was totally inapropriate.
By describing your problem you will get help, not by "sceraming".
By googling "RAPID loop" i found the following: http://developercenter.robotstudio.com/BlobProxy/manuals/IntroductionRAPIDProgOpManual/doc13.html
I think that will help you.
EDIT: Describing what type of conditions you have and how you want to change them is crucial for anyone to help you out.
Is it enough to have a num variable that changes value in-between each run?
Good luck!
/Oskar0 -
Are you searching for the Test CASE command ?
Regards
Knud Erik Lindberg
Jorgensen Engineering0
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