Is it possible to call inside de C# program (PC SDK) a procedure with several parameters/arguments?
Options
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.4K RobotStudio
- 383 UpFeed
- 14 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 279 IRC5
- 46 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 733 RAPID Programming
- 15 Wizard Easy Programming
- 105 Collaborative Robots
- 3 Job listings