Programmable Controllers

Programmable Logic Controllers

Pico Controllers

PicoGFX Memory Functions

Boolean Operation for Pico GFX

Data Block Comparator for Pico GFX
Symbol in the function
block diagram

The devices allow the use of 32 BV01...BV32 function blocks for linking values in Boolean operations. Use the Boolean operation Association possible.

The Function Block and its Parameters

  Description Note
Function block inputs (DWord)    
I1 First setpoint Associate a negative value, such as: -10 (dec) the central processing unit (CPU) forms the two's complement 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.
I2 Second setpoint
Function block output    
QV Result of the operation  
Contact (bit output)    
ZE Status 1 if the value of the QV function block output (i.e. the operation result) is zero  
Coil    
- -  
Operating mode    
AND AND operation Example: I1 AND I2 = QV
 decimalbinary
I113 2190000 0000 0000 0000 0011 0011 1010 0011
I257 1930000 0000 0000 0000 1101 1111 0110 1001
QV4 8970000 0000 0000 0000 0001 0011 0010 0001
OR OR operation Example: I1 OR I2 = QV
 decimalbinary
I113 2190000 0000 0000 0000 0011 0011 1010 0011
I257 1930000 0000 0000 0000 1101 1111 0110 1001
QV65 515 0000 0000 0000 0000 1111 1111 1110 1011
XOR Exclusive OR operation (eXclusive OR) Example: I1 XOR I2 = QV
 decimalbinary
I113 2190000 0000 0000 0000 0011 0011 1010 0011
I257 1930000 0000 0000 0000 1101 1111 0110 1001
QV60 618 0000 0000 0000 0000 1110 1100 1100 1010
NOT Inverts the individual bits of the value at I1. The inverted value is shown as a signed decimal value. Example: NOT I1 = QV
 decimalbinary
I113 2190000 0000 0000 0000 0011 0011 1010 0011
QV-13 220 1111 1111 1111 1111 1100 1100 0101 1100
Parameter set    
Call enabled Function block parameters can be viewed on the device.  
Simulation    
Possible    

Memory Requirement

The Boolean operation function block requires 40 bytes of memory plus 4 bytes per constant at the function block inputs.