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.
%I0001
WORD1
WORD2
AND_
WORD
I1 Q
I2
RESULT
0 0 0 1 1 1 1 1 1 1 0 0 1 0 0 0
0 0 0
0 0 0 1 1 1 0 0 0 0 0 0 1
RESULT
WORD1
WORD2
1 1 1
1 1 0 1 1 1 0 0 0 0 0 0 1
Instruction Set Reference
GFK-1503E User Manual 125
For public disclosure
Summary of Contents for VersaMax PLC
Page 16: ...Notes 16 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 38: ...Notes 38 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 50: ...Notes 50 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 92: ...Notes 92 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 112: ...Notes 112 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 224: ...Notes 224 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 292: ...Notes 292 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 316: ...Notes 316 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 317: ......