Click or drag to resize

ModuleModuleType Property

Gets the type of the module

Namespace:  ABB.Robotics.Controllers.RapidDomain
Assembly:  ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax
C#
public ModuleType ModuleType { get; }

Property Value

Type: ModuleType
Returns a ModuleType
Examples
This examples gets the module type to find out if it is a program or a system module.
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

}
See Also