10.1.2.2 Logical OR
If either or both bits examined by the Logical OR function is 1, a 1 is placed in the
corresponding location in output string Q. If both bits are 0, a 0 is placed in string Q in
that location. The Logical OR function can be used to combine strings or to control many
outputs with one simple logical structure. The Logical OR function is the equivalent of
two relay contacts in parallel multiplied by the number of bits in the string. It can be used
to drive indicator lamps directly from input states, or to superimpose blinking conditions
on status lights.
Input 2
Output
OK Enable
AND_
WORD
I2
Q
Input 1
I1
10.1.2.3 Parameters of the Logical AND and Logical OR
Functions
Input/
Output
Choices
Description
enable flow
When the function is enabled, the operation is performed.
I1
I, Q, M, T, S, G, R, AI, AQ,
constant
Constant or reference for the first word of the first string.
I2
I, Q, M, T, S, G, R, AI, AQ,
constant
Constant or reference for the first word of the second string.
ok
flow, none
The OK output is energized whenever enable is energized.
Q
I, Q, M, T, SA, SB, SC (not S),
G, R, AI, AQ
Output Q contains the result of the operation.
10.1.2.4 Example of the Logical AND Function
In the example, when input %I0001 is set, the 16-bit strings represented by nicknames
WORD1 and WORD2 are examined. The results of the Logical AND are placed in output
string RESULT.
Instruction Set Reference GFK-1503E User Manual 125
For public disclosure