Table of Contents

Advertisement

5.2.3

INV

Operation results inversion
5.2.3
INV
INV
Setting
Internal Devices
Data
Bit
Word
––
Function
Inverts the operation result immediately prior to the INV instruction.
Operation Result Immediately Prior to
the INV Instruction
OFF
ON
Operation Error
(1) There is no operation error in the INV instruction.
Program Example
(1) A program which inverts the X0 ON/OFF data, and outputs from Y10.
[Ladder Mode]
[Timing Chart]
ON
OFF
X0
ON
Y10
OFF
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.
M0
0
ANB
10
For details of the ANB instruction, refer to Page 131, Section 5.2.1
Command
J
R, ZR
Bit
Operation Result Following the
Execution of the INV Instruction
ON
OFF
[List Mode]
Step
Range inverted
M1
M2
M10
M20
Basic
\
U
\G
Word
––
Instruction
Device
High
Process
Redundant Universal
performance
Zn
Constants
Y10
END
INV
LCPU
1
2
3
Other
4
5
6
7
8
135

Advertisement

Table of Contents
loading

Table of Contents