Function blocks
For more information visit:
www.EatonElectrical.com
MN05013005E
185
Function of Boolean operation function block
The function block creates the operation depending on the
operating mode.
AND Boolean operation
OR Boolean operation
XOR Boolean operation
J
If you program a negative value, e.g.: –10
dec
, the CPU will
form the two's complement of the amount.
Example:
–10
dec
= 10000000000000000000000000001010
bin
Two's complement =
11111111111111111111111111110110
bin
=
FFFFFFF6
hex
Bit 32 is the signed bit and remains as 1.
Value
>I1
:
13219
dec
= 0011001110100011
bin
Value
>I2
:
57193
dec
= 1101111101101001
bin
Result QV>:
4897
dec
= 0001001100100001
bin
Value
>I1
:
13219
dec
= 0011001110100011
bin
Value
>I2
:
57193
dec
= 1101111101101001
bin
Result QV>:
65515
dec
= 1111111111101011
bin
Value
>I1
:
13219
dec
= 0011001110100011
bin
Value
>I2
:
57193
dec
= 1101111101101001
bin
Result QV>:
60618
dec
= 1110110011001010
bin