The OptionSetType VariableTypeis used to represent a bit mask. Each array element of the OptionSetValues Propertycontains either the human-readable representation for the corresponding bit used in the option set or an empty LocalizedTextfor a bit that has no specific meaning. The order of the bits of the bit mask maps to a position of the array, i.e. the first bit (least significant bit) maps to the first entry in the array, etc.

In addition to this VariableType, the DataType OptionSetcan alternatively be used to represent a bit mask. As a guideline the DataType wouldbeused when the bit mask is fixed and applies to several Variables.The VariableTypewould be used when the bit mask is specific for only that Variable.

The DataTypeof this VariableTypeshall be capable of representing a bit mask. It shall be either a numeric DataTyperepresenting a signed or unsigned integer, or a ByteString. For example, it can be the BitFieldMaskDataType.

The optional BitMask Propertyprovides the bit mask in an array of Booleans. This allows subscribing to individual entries of the bit mask. The order of the bits of the bit mask points to a position of the array, i.e. the first bit points to the first entry in the array, etc. The VariableTypeis formally defined inTable 82.

Table 82– OptionSetType definition

Attribute

Value

BrowseName

OptionSetType

IsAbstract

False

ValueRank

−1 (−1 = Scalar)

DataType

BaseDataType

References

NodeClass

Browse

Name

DataType

TypeDefinition

ModellingRule

Subtype of the BaseDataVariableType defined in 7.4

HasProperty

Variable

OptionSetValues

LocalizedText[]

PropertyType

Mandatory

HasProperty

Variable

BitMask

Boolean[]

PropertyType

Optional

Conformance Units

Base Info OptionSet