Is it possible to call inside de C# program (PC SDK) a procedure with several parameters/arguments?
Is it possible to call inside de C# program (PC SDK) a procedure with several parameters/arguments?
Inside RobotStudio I have:
MODULE MAR
PROC MAR_T(bool b0, bool b1, bool b2, bool b3)
(...)
ENDPROC
ENDMODULE
Inside de C# program (PC SDK) I can execute the procedures inside the RobotStudio but these procedures does not have any parameters.
Once Auto is OK, mastership is OK, the following sentence execute any routine without parameters:
task.TaskName.SetProgramPointer(_moduleName, auxRoutine.Name);
How can I send the boolean parameters I have to send (about 8 boolean)?
0
Comments
-
Hello,
You can only call routines without parameters.
If you want to use certain parameters, you can write the required values in Persistent data declaration before calling a routine and query the values in the RAPID routine0
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