135
INV
1
2
3
4
5
6
7
8
5.2
A
ssociation Instru
ctions
5.2.3
INV
F
unct
io
n
Inverts the operation result immediately prior to the INV instruction.
O
perat
io
n
E
rr
o
r
(1) There is no operation error in the INV instruction.
P
r
og
ram
E
xamp
l
e
(1) A program which inverts the X0 ON/OFF data, and outputs from Y10.
[Ladder Mode]
[List Mode]
[Timing Chart]
1. The INV instruction operates based on the results of calculation made until the INV instruction is given. Accordingly, use it
in the same position as that of the AND instruction.
The INV instruction cannot be used at the LD and OR positions.
2. When a ladder block is used, the operation result is inverted within the range of the ladder block. To operate a ladder using
the INV instruction in combination with the ANB instruction, pay attention to the range that will be inverted.
For details of the ANB instruction, refer to Page 131, Section 5.2.1
INV
Operation results inversion
5.2.3
INV
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
Other
Bit
Word
Bit
Word
––
––
Operation Result Immediately Prior to
the INV Instruction
Operation Result Following the
Execution of the INV Instruction
OFF
ON
ON
OFF
Basic
Process
High
performance
Redundant Universal
LCPU
INV
Co
mman
d
Step
Instruction
Device
X0
Y10
ON
OFF
ON
OFF
R
an
g
e
i
n
v
erte
d
M0
0
10
ANB
M10
Y10
END
M1
M2
M20