![background image](http://html1.mh-extra.com/html/omron/sysmac-c200h/sysmac-c200h_operation-manual_742423193.webp)
180
In the case below, A6E2 + 80C5 = 127A7. The result is a 5-digit number, so
CY (SR 25504) = 1, and the content of R + 1 becomes #0001.
R+1: HR 11
R: HR 10
0
0
0
1
2
7
A
7
Au: IR 010
A
6
E
2
Ad: DM 0100
8
0
C
5
+
The following example performs eight-digit addition by using ADB(50) twice.
ADB(50) is also used to place the carry into DM 0302 (one word greater than
the rest of the answer). The complete answer thus ends up in DM 0300
through DM 0302.
CLC(41)
00000
@ADB(50)
LR 20
DM 0200
DM 0300
@ADB(50)
LR 21
DM 0201
DM 0301
@ADB(50)
#0000
#0000
DM 0302
Address
Instruction
Operands
00000
LD
00000
00001
CLC(41)
00002
@ADB(50)
LR
20
DM
0200
DM
0300
00003
@ADB(50)
LR
21
DM
0201
DM
0301
00004
@ADB(50)
#
0000
#
0000
DM
0302
Binary Calculations
Section 5-18
Содержание SYSMAC C200H
Страница 1: ...OPERATION MANUAL C200H CPU01 E 03 E 11 E SYSMAC Programmable Controllers Cat No W130 E1 05 ...
Страница 2: ...C200H Programmable Controllers CPU01 E 03 E 11 E Operation Manual Revised June 2003 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 8: ...TABLE OF CONTENTS ix Glossary 345 Index 363 Revision History 369 ...
Страница 342: ...336 Programmer Program Date Page Word Contents Notes Word Contents Notes Data Storage ...
Страница 374: ...Cat No W130 E1 05 C200H Programmable Controllers CPU01 E 03 E 11 E OPERATION MANUAL ...