OPC Foundation
  • Documents
  • NodeSets
  • Search
8.41 OptionSet

This abstract DataTypeis the base DataTypefor all DataTypesrepresenting a bit mask. All OptionSet DataTypesrepresenting bit masks shall inherit from this DataType. Its elements are described in Table 33.

Table 33– OptionSet Definition

Name

Type

Description

OptionSet

structure

value

ByteString

Array of bytes representing the bits in the option set. The length of the ByteString depends on the number of bits. The number of bytes may be larger than needed for the valid bits in the case of a spare allocation.

validBits

ByteString

Array of bytes with same size as value representing the valid bits in the value parameter.

When the Serverreturns the value to the Client, the validBitsprovides information of which bits in the bit mask have a meaning. If a bit is 1 then the corresponding bit in the value is used by the Server. If it is set to a 0 it should be ignored as it has no meaning. When the Clientpasses the value to the Server, the validBitsdefines which bits should be written. Only those bits defined in validBitsare changed in the bit mask, all others are not written.

The DataType Nodesrepresenting concrete subtypes of the OptionSetshall have an OptionSetValues Propertydefined in Table 16.

Please report errors or issues with the site to webmaster.

Copyright © 2023 - OPC Foundation