Binary

Previous chapterNext chapter Show allShow all    Hide allHide all

A binary reaction matrix is used for the evaluation of any kind of flags and status bits of variables. The evaluation is bit-oriented. Also analog variables can be evaluated in this way.

The definition of the combination of state and/or status value is made by way of releasing the option fields. The state value is the binary encoded non-scaled value of the variables. The value transformed into the measuring range (linear or non-linear value adjustment) is not considered! By pressing the button New a new line for state value and status combination is added. The value bit assignment is

The bit assignment is:

Status:

Non-scaled value bit "0" set

2^0 = 1

Non-scaled value bit "1" set

2^1 = 2

Non-scaled value bit "2" set

2^2 = 4 ....

Two linkages are possible. The meaning of the fields is

Status:

not considered

dot, not set

check for "0"

0, bit is checked for logical value "0"

check for "1"

1, bit is checked for logical value "1"

The sequence of the configuring is decisive for the later use. During the processing of the reaction matrix in online operation the check of the state and status bit combination is started in the top line.

The check in the Runtime system is continued until the line which meets the given states. All other states are not checked further.

If no line fulfills the current variable condition, the default entry applies. This enables a priorization of the limit texts for the chronological event list, the alarming and the alarm information list.

The status evaluation is done in the same way as the value evaluation of the variable. The different stati are described in detail in the corresponding Tutorial.

Evaluation:

In binary variables only bit 0 is evaluated. The other bits are ignored, In 8 bit variables (IEC data types SINT, USINT) only the bits 0 to 7 are evaluated, and so on.

Example

(single information and monitoring for disturbance)

Check whether I-Bit is set

................, ............1...

Check whether bit 0 is set

...............0, ................

Check whether bit 1 is set

...............1, ................

In the above example, irrespective of the condition of the single information, the check is completed after the first line when the I-Bit is present (no connection to PLC - data point disturbed). The variable properties (alarm, blinking, CEL, etc.) are controlled exclusively by this condition. Once the I-Bit is no longer present, the other lines are processed. If the sequence is to be changed, then this can be effected with the selection of the respective line and the operations New, Delete, Upwards und Down.