Panasonic FP-E Programming Manual page 454

Fp series
Table of Contents

Advertisement

High−level Instructions
F82
(DBCD)
P82
(PDBCD)
Outline
Converts 32-bit binary data to BCD code that expresses an 8-digit
decimal.
For the FP0R/FPΣ/FP−X/FP0/FP−e, the P type high−level instruction
"P82 (PDBCD)" is not available.
Program example
Trigger
R20
10
F82 DBCD, DT10 , DT20
S
D
Operands
Relay
Operand
Operand
WX WY WR
S
A
A
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.
Explanation of example
Converts the contents of data registers DT11 and DT10 to BCD code that expresses an 8-digit decimal when
trigger R20 turns on. The converted data is stored in data registers DT21 and DT20.
Description
Converts the 32-bit data specified by S to BCD code that expresses an 8-digit decimal. The converted data is
stored in D+1 and D.
Precaution during programming
The maximum value of binary data that can be converted to BCD code is K99999999 (H5F5E0FF).
3 − 190
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
32-bit binary data → 8-digit BCD data
Ladder Diagram
Ladder Diagram
S
D
32-bit equivalent constant or lower 16-bit area of 32-bit data (source)
Lower 16-bit area for 8-digit BCD code (destination)
Timer/Counter
WL
SV
EV
DT
(*1)
A
A
A
A
A
A
A
A
Index
Register
register
LD
FL
IX
IY
(*1)
(*2)
(*3)
A
A
A
A
N/A
A
A
A
A
N/A
Boolean
Address
Instruction
10
ST
R
11
F 82
(DBCD)
DT
DT
Constant
Index
Index
modifier
K
H
A
A
A
N/A
N/A
A
A:
Available
N/A: Not Available
20
10
20

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents