Omron SYSMAC CP Series Instruction & Reference Manual page 220

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

2 Instructions
Function
/B
/B(434) divides the BCD content of Dd by those of Dr and outputs the quotient to R and the remainder
to R+1.
/BL
/BL(435) divides BCD values in Dd and Dd+1 by those in Dr and Dr+1 and outputs the quotient to R,
R+1 and the remainder to R+2, R+3.
Sample program
2-184
(BCD)
Dd
÷
(BCD)
Dr
(BCD)
R +1
R
Remainder
Quotient
Dd + 1
Dd
÷
Dr + 1
Dr
R + 3
R + 2
R + 1
R
Remainder
Quotient
0.00
When CIO 0.00 is ON in the following example, D100 will be
/B
divided by D110 as 4-digit BCD values and the quotient will
D100
be output to D120 and the remainder to D121.
D110
D120
0.00
When CIO 0.00 is ON in the following example, D101 and
/BL
D100 will be divided by D111 and D110 as 8-digit BCD values
D100
and the quotient will be output to D121 and D120 and the
remainder to D123 and D122.
D110
D120
(BCD)
(BCD)
(BCD)
CP1E CPU Unit Instructions Reference Manual(W483)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents