EasyManua.ls Logo

Omron C200H - Page 193

Omron C200H
374 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
000127A7
Au: IR 010
A6E2
Ad: DM 0100
80C5
+
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

Table of Contents

Related product manuals