.jpg?sfvrsn=3ad09b0a_1)
Loop a msg until bool ture
Hey,
I have a msg line that i want to show until a bool is true.. How can i do this the easy way? I dont want to press any buttons for the robot to move on. Its on robotware 5.16
I have a msg line that i want to show until a bool is true.. How can i do this the easy way? I dont want to press any buttons for the robot to move on. Its on robotware 5.16
WHILE OkToSorter()=TRUE AND OkToPick_1()=FALSE DO
!
st1:="Empty";
st2:="Empty";
st3:="Empty.";
UIMsgBox
\Header:="Empty",
st1
\MsgLine2:=st2
\MsgLine3:=st3
\Buttons:=btnOk
\Icon:=iconWarning
\Result:=ButtonAnswer
\MaxTime:=2
\BreakFlag:=err_var;
!
ENDWHILE
!
ENDIF
Tagged:
0
Best Answer
-
If it's possible to use a signal (DI or DO) instead you could use dibreak / dobreak. Or maybe use a maxtime to close the messagebox and then show it again in your while-loop.
Or you could do as Lemster suggested and use a tpwrite instruction.tpwrite "Waiting for condition.."; !Shows message on tpu waituntil OkToSorter()=FALSE OR OkToPick_1()=TRUE; tperase; !Clears tpu log
0
Answers
-
Why not use a simple TPWrite?Lee Justice1
Categories
- 10.4K All Categories
- 5.3K RobotStudio
- 346 UpFeed
- 15 Tutorials
- 8 RobotApps
- 281 PowerPacs
- 404 RobotStudio S4
- 1.7K Developer Tools
- 238 ScreenMaker
- 2.6K Robot Controller
- 246 IRC5
- 36 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 691 RAPID Programming
- 14 Wizard Easy Programming
- 101 Collaborative Robots
- 3 Job listings