User manual
Toolbox 32 User Manual 1.47d www.cse-semaphore.com/mykingfisher
Page
77
Ladder Logic - Logic
For each of the following Logic Functions, the input parameters can be 16-bit registers or constants. These
functions all perform bit-wise operations; ie. they treat the registers as 16 individual bits.
Invert
The Source (R2) is inverted, and placed in the Destination (R1).
An Invert causes all the 16-bits in the register to be changed (ie. 1's are changed to 0's and 0's are changed
to 1's).
AND
Parameters 1 and 2 (R2, R3) are ANDed together and the result is placed in the Destination (R1). This
means only the bits which are a 1 in both parameters, will be a 1 in the destination. All other bits will be 0.
OR
Parameters 1 and 2 (R2, R3) are ORed together and the result is placed in the Destination (R1). This means
that all the bits which are a 1 in either parameter will be a 1 in the destination. All other bits will be 0.
NAND
Parameters 1 and 2 (R2, R3) are NANDed together and the result is placed in the Destination (R1). This
means that the bits which are a 1 in both parameters will be a 0 in the destination. All other bits will be 1.
NOR
Parameters 1 and 2 (R2, R3) are NORed together and the result is placed in the Destination (R1). This
means that all the bits which are a 1 in either parameter will be a 0 in the destination. All other bits will be 1.
XOR
Parameters 1 and 2 (R2, R3) are XORed together and the result is placed in the Destination (R1). This
means that all the bits which are the same in both parameters will be a 0 in the destination. All other bits will
be 1.