10.1.4
Bit Operation Functions Exclusive OR
10.1.4.1
Example
In the example, whenever %I0001 is set, the bit string represented by the nickname
WORD3 is cleared (set to all zeros).
%I0001
WORD3
WORD3
XOR_
WORD
I1 Q
I2
WORD3
I1 (WORD3)
0
0
0
1
1
1
1
1
1
1
0
0
1
0
0
0
I2 (WORD3)
0
0
0
1
1
1
1
1
1
1
0
0
1
0
0
0
Q (WORD3)
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
10.1.5
Bit Operation Functions Logical Invert (NOT)
The Logical Invert (NOT) function sets the state of each bit in the output bit string Q to
the opposite of the state of the corresponding bit in bit string I1.
All bits are altered on each scan that power is received, making output string Q the logical
complement of I1. The function passes power flow to the right whenever power is
received. A length of 256 words can be selected.
Input 1
Output
OK
Enable
NOT_
WORD
I1 Q
10.1.5.1
Parameters of the Logical Invert Function
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 word to be
negated.
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.5.2
Example
In the example, whenever input %I0001 is set, the bit string represented by the nickname
TAC is set to the inverse of bit string CAT.
Instruction Set Reference
GFK-1503E User Manual 127
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: ......