
B-63983EN/02 4.LADDER LANGUAGE
- 319 -
4.10.4 DIVB (Binary Division: SUB 39)
This instruction divides binary data items 1, 2, and 4 byte in length. In
the operation result register (R9000), operation data is set and
remainder is set to R9002 and following addresses.
A required number of bytes is necessary to store the dividend, divisor,
and the result (quotient).
Format
Fig. 4.10.4 shows the ladder format and Table 4.10.4 shows the
mnemonic format.
DIVB
SUB 39
CT
W1
o00o
¡¡¡¡ *
¡¡¡¡ *
¡¡¡¡ *
Error output
RST
Format specification
Dividend address
Divisor data (address)
Result output address
Fig. 4.10.4 Format of DIVB instruction
Table 4.10.4 Mnemonic of DIVB instruction
Mnemonic format Status of operation result
Step
number
Instruction
Address
No.
Bit No. Remarks ST3 ST2 ST1 ST0
1RD ¡¡¡¡ .¡ RST RST
2 RD. STK ¡¡¡¡ .¡ ACT RST ACT
3 SUB 39 DIVB instruction
4(PRM) o00o Format specification
5(PRM) ¡¡¡¡ Dividend address
6(PRM) ¡¡¡¡ Divisor data (address)
7(PRM) ¡¡¡¡ Result output address
8WRT ¡¡¡¡ .¡ Error output W1