High−level Instructions
3 − 186
Outline Converts 16-bit binary data to BCD code the expresses a 4-digit
decimal.
For the FP0R/FPΣ/FP−X/FP0/FP−e, the P type high−level instruction
“P80 (PBCD)” is not available.
Program example
Boolean
Ladder Diagram
Address Instruction
10
F80 BCD , DT10 , DT20
S
D
Trigger
R0
10
11
ST R 0
F 80 (BCD)
DT 10
DT 20
S 16-bit equivalent constant or 16-bit area for storing 16−bit binary data (source)
D 16-bit area for 4-digit BCD data (destination)
Operands
modifier
S A A A A A A A A A A A A A A
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 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.
F80
P80
(PBCD)
(BCD)
16-bit binary data → 4-digit BCD data
A: Available
N/A: Not Available