USER MANUAL – Z-GPRS2-SEAL / Z-LOGGER-SEAL
122
The Output function is TRUE because both the test are true.
Similarly you can test if INPUT1 has NR 0, 1, 2 and 4 bits at 1 but the 3,5 and 6 at 0
Or
if INPUT2 has the NR 0,5,8 bits at 1
using BIT_MASK1 and BIT_MASK2:
So, if the input1 is for example (in binary) 1001 0101 0
001 0111
or
if the input2 is for example (in binary) 1111 000
1
01
1
0 000
1
the output function is TRUE.
15.4.
Function Block CMP: ANALOG DIFFERENCE COMPARE FUNCTION
This block perform the analog difference between input1 and input2 and then compare it with the
threshold.
The output boolean (True/False) value is obtained by the relation:
OUTPUT = TRUE
IF (INPUT1 -INPUT2) > THRESHOLD
OUTPUT = FALSE
IF (INPUT1-INPUT2) <= THRESHOLD