Binary Divide: Dvb(083) - Omron SYSMAC CV Series Operation Manual

Ladder diagrams
Hide thumbs Also See for SYSMAC CV Series:
Table of Contents

Advertisement

Binary Calculation Instructions
Precautions
Flags
Example
0000
00

5-19-4 BINARY DIVIDE: DVB(083)

Ladder Symbol
(083)
DVB
Dd
Variations
j DVB(083)
Description
Precautions
Note With version-2 CVM1 CPUs, mathematics instructions can use symbols. The
instructions corresponding to MLB(082) and MLBL(086) are
UL(423).
*
Refer to page 115 for general precautions on operand data areas.
Content of *DM word is not BCD when set for BCD.
ER (A50003):
EQ (A50006):
The result is 0.
N (A50008):
Shows the status of bit 15 of R+1.
When CIO 000000 is ON in the following example, the four-digit hexadecimal
content of D00200 is multiplied by the four-digit hexadecimal content of D00201
and the 8-digit hexadecimal result is stored in D00202 and D00203.
(082)
MLB
D00200
D00201
X
D00203 D00202
0 0 1 F F E 0 0
Dr
R
When the execution condition is OFF, DVB(083) is not executed. When the
execution condition is ON, DVB(083) divides the content of Dd by the content of
Dr and the result is placed in R and R+1: the quotient in R, the remainder in R+1.
Dr
Note With version-2 CVM1 CPUs, mathematics instructions can use symbols. The
instructions corresponding to DVB(083) and DVBL(085) are /U(432) and /
UL(433).
Dr must not be 0.
D00202
D00200
0 F F F
D00201
0 2 0 0
Operand Data Areas
Dd: Dividend word
CIO, G, A, T, C, #, DM, DR, IR
Dr: Divisor word
CIO, G, A, T, C, #, DM, DR, IR
R: Result word
CIO, G, A, DM
Quotient
Remainder
R
R + 1
Dd
Section 5-19
U(422) and
*
Address Instruction
Operands
00000
LD
000000
00001
MLB(0820
D00200
D00201
D00202
265

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cv2000Cvm1Cv500Cv1000

Table of Contents