RobotStudio event

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)?

Comments

  • Micky
    Micky ✭✭✭
    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 routine