JSup - Forlani

Tag bit fields (Bozza)

Tags of type Byte, Short, Int, Long can be defined (via Tag class) to have many bit fields link.

For example the state of an item can pack in a PLC word with the state of its alarms.
In this way only one tag can be defined (and read from the PLC) to read all the information about an item.

If a tag named dummy belongs to a tag class that define some bit fields (for example state and alarm) than the state information of the item can be accessed with the dummy.state notation from the application code.

Bit field dialog

/img/JSup/TagClassBitFields.png
The Integral tag bit field definition dialog shows a table with full information about the defined bit fields. On the bottom of the dialog a graphical table of the integral tag bits show how bit fields will be packed.

Definition of a bit field

/img/JSup/TagClassBitFieldProperties.png
To define a bit field the following properties must be specified:


The Description of the bit field boolean alarm (defined by the @B property) can include the following placeholders: