Conditional procedure argument
l.holetzke
✭✭
Hi,
could you please provide an example, how to use a conditional procedure argument?
The "conditional procedure argument" is described as part of the language in the "RAPID kernel" topic Statements/Procedure call:
could you please provide an example, how to use a conditional procedure argument?
The "conditional procedure argument" is described as part of the language in the "RAPID kernel" topic Statements/Procedure call:
'\' <identifier> '?' ( <parameter> | <VAR> )
<p><conditional procedure argument> ::=</p>
Tagged:
0
Comments
-
Ok, got it by myself
MODULE TestModule<br> PROC Main() <br> VAR wobjdata ok2;<br> TPErase;<br> TestProc \ok:=ok2;<br> ENDPROC<br> <br> PROC TestProc(\wobjdata wobj,\wobjdata ok)<br> TestProc2 \wobj?wobj, \ok?ok;<br> ENDPROC<br> <br> PROC TestProc2(\wobjdata wobj,\wobjdata ok)<br> IF Present(wobj) THEN<br> TPWrite "wobj present";<br> ENDIF<br> IF Present(ok) THEN<br> TPWrite "ok present";<br> ENDIF<br> ENDPROC<br>ENDMODULE
0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 312 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 793 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings