![Omron CVM1D Скачать руководство пользователя страница 246](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532246.webp)
241
Second Subtraction
0000
CIO 0200
–7577
CY
–0
CIO 0200
2423
(0000 + (10000 – 7577))
CY
1
(negative result)
In the above case, the program would turn ON CIO 002100 to indicate that the
value held in CIO 0200 is negative.
5-18-5 BCD MULTIPLY: MUL(072)
Variations
j
MUL(072)
(072)
MUL
Md
Mr
R
Operand Data Areas
Ladder Symbol
Md: Multiplicand word
CIO, G, A, T, C, #, DM, DR, IR
R: Result word
CIO, G, A, DM
Mr: Multiplier word
CIO, G, A, T, C, #, DM, DR, IR
When the execution condition is OFF, MUL(072) is not executed. When the
execution condition is ON, MUL(072) multiplies Md by the content of Mr, and
places the result in R and R+1.
Md
Mr
R +1
R
X
Note An equivalent symbol math instruction (
*
B(424)) is also available.
Md and Mr must be BCD.
Note Refer to page 101 for general precautions on operand data areas.
Flags
ER (A50003):
Content of Md or Mr is not BCD.
The content of a
*
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 contents of CIO 0013
and D00005 are multiplied and the results is placed in CIO 1207 and CIO 1208.
Example data and calculations are shown below the program.
R+1: CIO 1208
R: CIO 1207
0
0
0
8
3
9
0
0
Md: CIO 0013
3
3
5
6
Mr: D00005
0
0
2
5
X
00000
LD
000000
00001
MUL(072)
0013
D00005
1207
Address Instruction
Operands
(072)
MUL
0013
D00005
1207
0000
00
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...