Panasonic FP-E Programming Manual page 387

Fp series
Table of Contents

Advertisement

F57
(B−1)
P57
(PB−1)
Outline
Subtracts 1 from BCD data that expresses a 4-digit decimal number
(4-digit BCD H code).
For the FP0R/FPΣ/FP−X/FP0/FP−e, the P type high−level instruction
"P57 (PB−1)" is not available.
Program example
Trigger
R0
10
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
Subtracts 1 from the contents of data register DT0 when trigger R0 turns on.
Original data [D]: H10 (BCD)
Bit position
15
12
11
· · ·
DT0
0 0 0
0
0 0 0
BCD H code
0
Result [D]: H9 (BCD)
Bit position
15
12
11
· · ·
DT0
0 0 0
0
0 0 0
BCD H code
0
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
4-digit BCD data decrement
[D − 1 → D]
Ladder Diagram
Ladder Diagram
F57 B−1 , DT 0
D
16-bit area for BCD data to be decreased by 1
Timer/Counter
WL
SV
EV
(*1)
A
A
A
A
8
7
4
3
0
·
·
· ·
· ·
0
0 0 0
1
0 0 0
0
0
1
0
−1
8
7
4
3
0
·
·
· ·
· ·
0
0 0 0
0
1 0 0
1
0
0
9
Index
Register
register
LD
FL
IX
IY
DT
(*1)
(*2)
(*3)
(*4)
A
A
A
A
High−level Instructions
Boolean
Address
Instruction
10
ST
11
F 57
DT
Constant
Index
Index
modifier
K
H
A
N/A
N/A
A
A:
Available
N/A: Not Available
R
0
(B−1)
0
3 − 123

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents