ControllerOperatingMode Property |
Gets the controller operating mode.
Namespace:
ABB.Robotics.Controllers
Assembly:
ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax Exceptions Remarks A call to the controller is performed each time this property is called. Thus, if you want to repeatedly check the
ControllerOperatingMode in a conditional clause, you should get the controller state and save the value locally. See code example below.
Examples This example gets the operating mode and displays an associated text.
ControllerOperatingMode mode = c.OperatingMode;
switch (mode)
{
case ControllerOperatingMode.Auto:
label4.Text = "Auto mode";
break;
case ControllerOperatingMode.AutoChange:
label4.Text = "Auto change mode";
break;
case ControllerOperatingMode.Init:
label4.Text = "Initial mode";
break;
case ControllerOperatingMode.ManualFullSpeed:
label4.Text = "Manual full speed mode";
break;
case ControllerOperatingMode.ManualFullSpeedChange:
label4.Text = "Manual full speed change mode";
break;
case ControllerOperatingMode.ManualReducedSpeed:
label4.Text = "Manual reduced speed";
break;
case ControllerOperatingMode.Unknown:
label4.Text = "Unknown mode";
break;
}
See Also