6. Function blocks6.1 Manufacturer function blocks6.1.7.2 BV - Boolean operationGeneraleasyE4 base devices provide 32 (Boolean operation) functionblocks, BV01 through BV32. This means that the values at func-tion block inputs BV…I1 and BV…I2 will be connected with aBoolean operator. This function block can be used to mask spe-cific bits from values, detect bit patterns, or change bit pat-terns.Operating principleThis 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 thesame, 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 parametersFunction block inputsDescription Note(Bit)EN 1: Activates thefunction block.The checkbox for theFunction block release by EN is necessaryparameter must first be enabled(DWord)I1 First value 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 1111111111110110 (bin) = FFFFFFF6 (hex)Bit 32 is retained at 1 as a sign bit.I2 Second valueAssigning operandsYou can assign the following operands to the function block inputs that are numericinputs.Operands Value inputsConstant, timer constant xMD, MW, MB - Markers xNB, NW, ND - NET markers xnNB, nND, nND- NET markersNET stations nxeasyE4 11/18 MN050009 EN www.eaton.com 353