![background image](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532259.webp)
(083)
DVB
0007
D00100
D00101
0000
02
254
Example
When CIO 000002 is ON in the following example, the four-digit hexadecimal
content of CIO 0007 is divided by the four-digit hexadecimal content of D00100.
The quotient is stored in D00101 with the remainder stored in D00102.
Note If the content of the divisor word D00101 is zero, the Error Flag (bit A50003) is
set and the instruction is not executed.
Address
Instruction
Operands
00000
LD
000002
00001
DVB(083)
0007
D00100
D00101
0 2 A A
D00101
0 F F F
0007
0 0 0 3
D00102
0 0 0 6
D00100
Quotient
Remainder
5-19-5 DOUBLE BINARY ADD: ADBL(084)
Variations
j
ADBL(084)
(084)
ADBL
Au
Ad
R
Operand Data Areas
Ladder Symbol
Au: 1
st
augend word
CIO, G, A, T, C, #, DM
R: 1
st
result word
CIO, G, A, DM
Ad: 1
st
addend word
CIO, G, A, T, C, #, DM
When the execution condition is OFF, ADBL(084) is not executed. When the
execution condition is ON, ADBL(084) adds the 8-digit content of Au+1 and Au,
the 8-digit content of Ad+1 and Ad, and CY, and places the result in R. CY will be
set if the result is greater than FFFF FFFF.
Au + 1
Au
Ad + 1
Ad
R + 1
R
+
CY
CY
Note An equivalent symbol math instruction (+CL(403)) is also available, although
+CL(403) has the additional feature of controlling the Overflow (A50009) and
Underflow (A50010) Flags.
Refer to page 101 for general precautions on operand data areas.
Flags
ER (A50003):
Content of
*
DM word is not BCD when set for BCD.
CY (A50004):
The result is greater than FFFF FFFF.
EQ (A50006):
The result is 0.
N (A50008):
Shows the status of bit 15 of R+1.
Description
Precautions
Binary Calculation Instructions
Section 5-19
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...