Bcd Division: /B(434)/ /Bl(435) - Omron SYSMAC CVM1 Series Operation Manual

Duplex system
Hide thumbs Also See for SYSMAC CVM1 Series:
Table of Contents

Advertisement

Symbol Math Instructions
0000
00
(431)
/L D00100 D00110 D00120
0000
01
(433)
/UL D00200 D00210 D00220

5-20-8 BCD Division: /B(434)/ /BL(435)

BCD DIVIDE: /B(434)
Ladder Symbol
(434)
/B
Dd
Variations
j /B(434)
DOUBLE BCD DIVIDE: /BL(435)
Ladder Symbol
(435)
/BL
Dd
Variations
j /BL(435)
Description
278
/UL Operation
When CIO 000001 is ON in the following example, the unsigned content of
D00201 and D00200 is divided by the unsigned content of D00211 and D00210,
in eight-digit binary. When the result is obtained, the quotient is output to D00221
and D00220, and the remainder is output to D00223 and D00222.
Operand Data Areas
Dd: Dividend word
Dr
R
Dr: Divisor word
R: Result word
Operand Data Areas
Dd: 1
Dr
R
Dr: 1
R: 1
BCD DIVIDE
When the execution condition is OFF, /B(434) is not executed and the program
moves to the next instruction. When the execution condition is ON, the BCD con-
tent of Dd is divided by the BCD content of Dr and the result is placed in R and R +
1: the quotient in R and the remainder in R + 1.
CIO, G, A, T, C, #, DM, DR, IR
CIO, G, A, T, C, #, DM, DR, IR
CIO, G, A, DM
st
dividend word
CIO, G, A, T, C, #, DM
st
divisor word
CIO, G, A, T, C, #, DM
st
result word
CIO, G, A, DM
Remainder
Quotient
R+1
R
Dr
Dd
Section 5-20
Address Instruction
Operands
00000
LD
000000
00001
/L(431)
D00100
D00110
D00120
00002
LD
000001
00003
/UL(433)
D00200
D00210
D00220

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents