User Manual

Highlevel Instructions
3 193
Outline Inverts all bits in the 16-bit area.
For the FP0R/FPΣ/FPX/FP0/FPe, the P type highlevel instruction
“P84 (PINV)” is not available.
Program example
Ladder
Diagram
Boolean
Ladder Diagram
Address Instruction
10 F84 INV , DT 0
D
Trigger
R20
10
11
ST R 20
F 84 (INV)
DT 0
D 16-bit area to be inverted
Operands
Operand
Relay Timer/Counter Register
Index
register
Constant
Inde
x
Operand
WX WY WR
WL
(*1)
SV EV DT
LD
(*1)
FL
(*2)
IX
(*3)
IY
(*4)
K H
Index
modifier
D N/A A A A A A A A A A A N/A N/A A
(*1) This cannot be used with the FP0 and FPe.
(*2) This cannot be used with the FP0, FPe, FP0R, FPΣ, FPX.
(*3) With the FP0R, FPΣ,FPX, FP2, FP2SH, and FP10SH, this is I0 to IC.
(*4) With the FP0R, FPΣ,FPX, FP2, FP2SH, and FP10SH, this is ID.
Explanation of example
Inverts the contents of data register DT0 when trigger R20 turns on.
····
Bit position
·····
DT0
15
010
12
1
11
111
8
0
7
101
4
1
3
110
0
1
Destination
R20: on (inversion)
····
Bit position
·····
DT0
15
101
12
0
11
000
8
1
7
010
4
0
3
001
0
0
Destination
Description
Inverts each bit (0 or 1) of the 16-bit data specified by D.
This instruction is useful for controlling an external device (7segment display) that uses negative logic
operation.
Flag conditions
Error flag (R9008): Turns on for an instant when the area specified using the index modifier
exceeds the limit.
Error flag (R9007): Turns on and stays on when the area specified using the index modifier
exceeds the limit.
F84
P84
(PINV)
(INV)
16-bit data invert
A: Available
N/A: Not Available