Omron SYSMAC C2000H Operation Manual page 181

Hide thumbs Also See for SYSMAC C2000H:
Table of Contents

Advertisement

Binary Calculations
00000
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
0
0
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.
In the case below, 4F52A6E2 + EC3B80C5 = 13B8E27A7. The sum of the
addition of the lower 4 digits is a 5-digit number, so CY (SR 25504) = 1, and
the sum of the higher 4-digit addition is incremented by 1.
Lower 4 digits.
Au: LR 20
A
6
E
2
+
Ad: DM 0200
8
0
C
5
R: DM 0300
2
7
A
7
R+2: DM 0302
0
0
0
Au: IR 010
A
6
E
2
Ad: DM 0100
8
0
C
5
R: HR 10
0
1
2
7
A
7
CLC(41)
Address
00000
@ADB(50)
00001
LR 20
00002
DM 0200
DM 0300
@ADB(50)
00003
LR 21
DM 0201
DM 0301
00004
@ADB(50)
#0000
#0000
DM 0302
+
CY = 1
CY = 1
R+1: DM 0301
1
3
B
8
E
2
Section 5-18
Instruction
Operands
LD
CLC(41)
@ADB(50)
LR
DM
DM
@ADB(50)
LR
DM
DM
@ADB(50)
#
#
DM
Higher 4 digits.
Au: LR 21
4
F
5
2
Ad: DM 0201
E
C
3
B
R: DM 0301
3
B
8
E
R: DM 0300
7
A
7
00000
20
0200
0300
21
0201
0301
0000
0000
0302
175

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SYSMAC C2000H and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Sysmac c1000h

Table of Contents