High−level Instructions
3 − 105
Outline Subtracts one BCD data item that expresses an 8-digit decimal number
(8-digit BCD H code) from another (minuend).
For the FP0R/FPΣ/FP−X/FP0/FP−e, the P type high−level instruction
“P46 (PDB−)” is not available.
Program example
Boolean
Ladder Diagram
Address Instruction
10 F46 DB− , DT10 , DT20
S
D
Trigger
R0
10
11
ST R 0
F 46 (DB−)
DT 10
DT 20
S 8-digit BCD equivalent constant or lower 16-bit area for 8-digit BCD data (for
subtrahend)
D Lower 16-bit area for 8-digit BCD data (for minuend and result)
Operands
modifier
S A A A A A A A A A A N/A K A A
D N/A A A A A A A A A A N/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.
F46
P46
(PDB−)
(DB−)
8-digit BCD data subtraction
[(D+1, D) − (S+1, S) → (D+1, D)]
A: Available
N/A: Not Available
K: K0 to K9