ModuleCreateRapidData Method (String, String, Scope, StorageType, Int32) |
Namespace: ABB.Robotics.Controllers.RapidDomain
public bool CreateRapidData( string dataName, string dataType, Scope scope, StorageType type, params int[] dim )
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("Conveyor"); //Create a RapidData array of 2 dimensions. Length of first dimension is 2, length of second dimension is 5. //pointtype is user defined data type and its definition is in another module. mod.CreateRapidData("SubPath2", "pointtype", false, StorageType.Pesistent, 2, 5); //The following code creates a simple rapid data instance. mod.CreateRapidData("count", "num", false, StorageType.Pesistent); ...