
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
- 398 UpFeed
- 19 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 324 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 813 RAPID Programming
- 5 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings