Omron C200H Operation Manual page 193

Hide thumbs Also See for C200H:
Table of Contents

Advertisement

Binary Calculations
00000
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.
Au: IR 010
A
Ad: DM 0100
+
8
R+1: HR 11
0
0
0
1
2
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)
@ADB(50)
LR 20
DM 0200
DM 0300
@ADB(50)
LR 21
DM 0201
DM 0301
@ADB(50)
#0000
#0000
DM 0302
6
E
2
0
C
5
R: HR 10
7
A
7
Address
Instruction
00000
LD
00001
CLC(41)
00002
@ADB(50)
00003
@ADB(50)
00004
@ADB(50)
Section 5-18
Operands
00000
LR
20
DM
0200
DM
0300
LR
21
DM
0201
DM
0301
#
0000
#
0000
DM
0302

Advertisement

Table of Contents
loading

Table of Contents