Arithmetic instructions
408
Part III FP Instructions
F53_DBDIV
8-digit BCD division, destination can be specified
31 . . 28 27 . . 24 23 . . 20 19 . . 16
15 . . 12 10 . . 8 7 . . 4 3 . . 0
s1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0
16# BCD
31 . . 28 27 . . 24 23 . . 20 19 . . 16
15 . . 12 10 . . 8 7 . . 4 3 . . 0
s2
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1
16# BCD
31 . . 28 27 . . 24 23 . . 20 19 . . 16
15 . . 12 10 . . 8 7 . . 4 3 . . 0
d
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0
16# BCD
31 . . 28 27 . . 24 23 . . 20 19 . . 16
15 . . 12 10 . . 8 7 . . 4 3 . . 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0
16# BCD
DT9016/DDT90016
DT9015/DDT90015
0 0 0 0 0 1 1 0
0 0 0 0 0 0 1 1
0 0 0 0 0 1 0 0
0 0 0 0 0 0 1 0
Remainder 16#00000010 (BCD) if trigger is ON stored in DT9015 to DT9016
(DDT90015 to DDT90016)
Bit
Bit
Result value 16#00000100 (BCD) if trigger is ON
Example value 16#0000011 (BCD)
Bit
32-bit area
Bit
Example value 16#00001110 (BCD)
This instruction also exists as a P instruction (for FP2/2SH, FP3/5, FP10/10SH PLC types), which
is only executed at the rising edge of the EN trigger. Select [Insert P instruction] from the
"Instructions" pane if you require a P instruction. To facilitate reuse, the instruction then appears
under "Recently used" in the pop-up menu. Press <Ctrl>+<Shift>+<v> within the programming
area to open the list of recently used elements.
PLC types
Availability of F53_DBDIV (see page 1325)
Description
The result is stored in the area specified by d, and the remainder is stored in the special data
registers DT9016 and DT9015 (DT90016 and DT90015 for FP2/2SH and FP10/10S/10SH).