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
Syntaxpublic static bool IsOptionPresent(
string optionName
)
Parameters
- optionName
- Type: SystemString
Name of the option to look for.
Return Value
Type:
BooleanTrue if the option exists, false if not.
Exceptions
RemarksThe 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)
{
}
catch (System.Exception ee)
{
}
}
See Also