![Omron CVM1D Скачать руководство пользователя страница 248](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532248.webp)
243
5-18-7 DOUBLE BCD ADD: ADDL(074)
Variations
j
ADDL(074)
(074)
ADDL
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, ADDL(074) is not executed. When the
execution condition is ON, ADDL(074) adds the content of CY to the 8-digit val-
ue in Au and Au+1 to the 8-digit value in Ad and Ad+1 and places the result in R
and R+1. CY will be set if the result is greater than 9999 9999.
Au + 1
Au
Ad + 1
Ad
R + 1
R
+
CY
CY
Note An equivalent symbol math instruction (+BCL(407)) is also available.
Au and Ad must be BCD.
Note Refer to page 101 for general precautions on operand data areas.
Flags
ER (A50003):
Content of Au or Ad is not BCD.
Content of *DM word is not BCD when set for BCD.
CY (A50004):
There is a carry in the result.
EQ (A50006):
The result is 0.
When CIO 000003 is ON, the following program adds two 12-digit numbers, the
first contained in CIO 0020 through CIO 0022 and the second in D00010 through
D00012. The result is placed in D02000 through D02002. In the second addition
(using ADD(070)), any carry from the first addition will be automatically included.
The carry from the second addition is placed in D02003 by using another
ADD(070) with two all-zero constants.
(074)
ADDL
0020
D00010
D02000
(079)
CLC
00000
03
(070)
ADD
0022
D00012
D02002
(070)
ADD
#0000
#0000
D02003
00000
LD
000003
00001
CLC(079)
00002
ADDL(074)
0020
D00010
D02000
00003
ADD(070)
0022
D00012
D02002
00004
ADD(070)
#0000
#0000
D02003
Address
Instruction
Operands
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...