Configure Bit Masks

Bit masks are used to define a specific status for an OPC tag based on its integer value for up to 16 bits. In configurations which used bitwise for the status instead of integer, specific bits are used to determine the state of the OPC device. E.g., the bit in position 5 might use a 1 to determine if a door is locked, and a 0 to determine if it is unlocked. Other bits may be used to determine more information about the door status, or they may not be relevant to the information we require for a state.

Before a bit mask can be created, a bitwise profile must be created for it first.

To create a bit mask:

  1. In the IPFusion OPC integrated system configuration, go to General Settings > Bitwise and select a profile from the navigation pane.
  2. If you wish to generate bit masks based on the named positions in the profile, click Generate Bit Masks. This create bit masks which:
    • Have a 1 at the position of the specific position it is for, all other positions are empty
    • Have the same name as the position
    Note: If the position is unnamed, a bit mask will not be generated for it
  3. To manually create a bit mask, click the + icon.
  4. Configure the name of the bit mask which describes the hardware state it captures, e.g., Door Locked.
  5. For each position in the bit mask, configure one of the following:
    • 1 — True/High
    • 0 — False/Low
    • Empty — Ignore this position

You can check your configuration by generating a status resolution report. If the report shows your desired configuration, status tables can be created directly from the bit mask configuration.

Note:
  • Multiple bit masks cannot have the same name
  • A maximum of 64 bit masks can be added to a profile