Panasonic FP-E Programming Manual page 457

Fp series
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents