ModuleCreateRoutine Method (String, Boolean, RoutineType, String, ParameterData) |
Namespace: ABB.Robotics.Controllers.RapidDomain
public bool CreateRoutine( string routineName, bool bLocal, RoutineType type, string rtnType, params ParameterData[] para )
using ABB.Robotics; using ABB.Robotics.Controllers; using ABB.Robotics.Controllers.RapidDomain; ... Controller c = new Controller(); Task[] allTasks = c.Rapid.GetTasks(); Task firstTask = allTasks[0]; Module mod = _task.GetModule("MyModule"); ParameterData p1 = new ParameterData("num","count"); ParameterData p2 = new ParameterData("string","aaa"); mod.CreateRoutine("Routine1", true, RoutineType.FUNC, "num", p1, p2); ...