![Omron CVM1D Скачать руководство пользователя страница 247](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532247.webp)
242
5-18-6 BCD DIVIDE: DIV(073)
Variations
j
DIV(073)
(073)
DIV
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, DIV(073) is not executed and the program
moves to the next instruction. When the execution condition is ON, Dd is divided
by Dr and the result is placed in R and R + 1: the quotient in R and the remainder
in R + 1.
R+1
R
Dd
Dr
Quotient
Remainder
Note An equivalent symbol math instruction (/B(434)) is also available.
Dd and Dr must be BCD.
Note Refer to page 101 for general precautions on operand data areas.
Flags
ER (A50003):
Content of Dd or Dr is not BCD.
Content of *DM word is not BCD when set for BCD.
EQ (A50006):
The result is 0.
When CIO 000000 is ON in the following example, the content of CIO 0020 is
divided by the content of CIO 1209 and the results is placed in D00017 and
D00018. Example data and calculations are shown below the program.
R: D00017
R + 1: D00018
1
1
5
0
0
0
0
2
Dd: CIO 0020
3
4
5
2
Quotient
Remainder
Dd: CIO 1209
0
0
0
3
(073)
DIV
0020
1209
D00017
0000
00
Address Instruction
Operands
00000
LD
000000
00001
DIV(073)
0020
1209
D00017
Description
Precautions
Example
BCD Calculation Instructions
Section 5-18
Содержание CVM1D
Страница 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Страница 463: ...iv...
Страница 465: ...vi...