GE VersaMax PLC User Manual page 125

Table of Contents

Advertisement

Input/
Output
enable
I, Q, M, T, S, G, R, AI, AQ,
I1
I, Q, M, T, S, G, R, AI, AQ,
I2
ok
I, Q, M, T, SA, SB, SC (not S),
Q
%I0001
WORD1
WORD2
Instruction Set Reference
For public disclosure
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.
Enable
Input 1
Input 2
10.1.2.3 Parameters of the Logical AND and Logical OR
Functions
Choices
When the function is enabled, the operation is performed.
flow
Constant or reference for the first word of the first string.
constant
Constant or reference for the first word of the second string.
constant
flow, none
The OK output is energized whenever enable is energized.
Output Q contains the result of the operation.
G, R, AI, AQ
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.
AND_
WORD1
WORD
WORD2
I1 Q
RESULT
I2
RESULT
AND_
OK
WORD
Output
I1
Q
I2
Description
0 0 0 1 1 1 1 1 1 1 0 0 1 0 0 0
1 1 0 1 1 1 0 0 0 0 0 0 1
0 0 0 1 1 1 0 0 0 0 0 0 1
1 1 1
0 0 0
GFK-1503E User Manual 125

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents