Bv - Boolean Operation - Eaton easyE4 series Manual

Hide thumbs Also See for easyE4 series:
Table of Contents

Advertisement

6.1.7.2 BV - Boolean operation

General
easyE4 base devices provide 32 (Boolean operation) function
blocks, BV01 through BV32. This means that the values at func-
tion block inputs BV...I1 and BV...I2 will be connected with a
Boolean operator. This function block can be used to mask spe-
cific bits from values, detect bit patterns, or change bit pat-
terns.
Operating principle
This function block makes it possible to apply Boolean operators to bit groups (bytes,
words, or even double words). The size of the parameters at I1 and I2 must be the
same, in which case a bitwise AND, OR, XOR, or NOT operator will be applied to them,
with the result being output at QV.
The function block and its parameters
Function block inputs
Description Note
(Bit)
EN
1: Activates the
function block.
(DWord)
I1
First value
I2
Second value
Assigning operands
You can assign the following operands to the function block inputs that are numeric
inputs.
Operands
Constant, timer constant
MD, MW, MB - Markers
NB, NW, ND - NET markers
nNB, nND, nND- NET markers
NET stations n
easyE4 11/18 MN050009 EN www.eaton.com
6.1 Manufacturer function blocks
The checkbox for the
Function block release by EN is necessary
parameter must first be enabled
If one operand assumes a negative value, such as -
10 (dec) the processing unit forms the two's com-
plement of the amount.
Example
-10 (dec) = 10000000 00000000 00000000 00001010 (bin)
Two's complement = 11111111 11111111 11111111
11110110 (bin) = FFFFFFF6 (hex)
Bit 32 is retained at 1 as a sign bit.
Value inputs
x
x
x
x
6. Function blocks
353

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents