ModuleModuleType Property |
Namespace: ABB.Robotics.Controllers.RapidDomain
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 module = firstTask.GetModule("Home"); ModuleType type = module.ModuleType; if(type == ModuleType.Program) { // it´s a program module, do something } else if(type == ModuleType.System) { // it´s a system module, do something }