![Omron CVM1D Скачать руководство пользователя страница 258](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532258.webp)
(082)
MLB
D00200
D00201
D00202
0000
00
253
Note An equivalent symbol math instruction (
*
U(422)) is also available.
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.
EQ (A50006):
The result is 0.
N (A50008):
Shows the status of bit 15 of R+1.
Example
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.
Address
Instruction
Operands
00000
LD
000000
00001
MLB(0820
D00200
D00201
D00202
0 F F F
D00200
0 2 0 0
D00201
D00203 D00202
X
0 0 1 F F E 0 0
5-19-4 BINARY DIVIDE: DVB(083)
Variations
j
DVB(083)
(083)
DVB
Dd
Dr
R
Operand Data Areas
Ladder Symbol
Dd: Dividend word
CIO, G, A, T, C, #, DM, DR, IR
R: Result word
CIO, G, A, DM
Dr: Divisor word
CIO, G, A, T, C, #, DM, DR, IR
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.
Dd
Dr
R
R + 1
Quotient
Remainder
Note An equivalent symbol math instruction (/U(432)) is also available.
Dr must not be 0.
Note Refer to page 101 for general precautions on operand data areas.
Flags
ER (A50003):
Dr contains 0.
Content of
*
DM word is not BCD when set for BCD.
EQ (A50006):
The result is 0.
N (A50008):
Shows the status of bit 15 of R.
Precautions
Description
Precautions
Binary Calculation Instructions
Section 5-19
Содержание CVM1D
Страница 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Страница 463: ...iv...
Страница 465: ...vi...