Click or drag to resize

SystemInfoIsOptionPresent Method

Checks if an option is part of the current system of the controller. The method searches System.xml in the SYSTEM directory of the controller for a specified optionName. It will find both system options (e.g. "617-1 FlexPendant Interface") and additional options (e.g. "ROBOTWAREPLASTICS").

Namespace:  ABB.Robotics.Controllers.SystemInfoDomain
Assembly:  ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax
C#
public static bool IsOptionPresent(
	string optionName
)

Parameters

optionName
Type: SystemString
Name of the option to look for.

Return Value

Type: Boolean
True if the option exists, false if not.
Exceptions
ExceptionCondition
GeneralExceptionA General Exception has occurred.
Remarks
The Option function keys used internally by ABB can also be used as the OptionName argument, e.g. "BUEY" for BullsEye or "WOZO" for World Zones.
Examples
This example checks if the current robot system has the option 875-1 DieCast.
private void CheckOption()
{
  try
  {
    bool exists = false;
    exists = ABB.Robotics.Controllers.SystemInfoDomain.SystemInfo.IsOptionPresent("875-1 DieCast");
  }
  catch (GeneralException ee)
  {
      // TODO: Add error handling
  }
  catch (System.Exception ee)
  {
      // TODO: Add error handling
  }
}
See Also