Skip to content
  • There are no suggestions because the search field is empty.

Bit Masked Reads within the TOP Server

Is it possible to encode individual bits or boolean tags into a single integer value?

The Advanced Tags Plug-in can be used to combine individual boolean tags into a single integer value. This Derived tag will be structured similarly to the expression below:
2n*(BooleanTag(n+1))+...+22*(BooleanTag3)+21*(BooleanTag2)+20*(BooleanTag1)

*an example can be found in the attached project file

3453 - SimulatorTags

3453 - DerivedTag

The resulting integer tag (MaskedRead) will be restricted to read only.  The individual boolean tags will maintain the original Read/Write access.

More information on this configuration can be found the Application Note below, along with a sample project.