![background image](http://html1.mh-extra.com/html/omron/sysmac-c200h/sysmac-c200h_operation-manual_742423181.webp)
168
turned OFF for at least one cycle (resetting HR 2100) and then turned back
ON.
CLC(41)
@SUB(31)
010
DM 0100
HR 20
CLC(41)
@SUB(31)
#0000
HR 20
HR 21
TR 0
25504
HR 2100
00002
25504
HR 2100
First
subtraction
Second
subtraction
Turned ON to indicate
negative result.
00000
LD
00002
00001
OUT
TR
0
00002
CLC(41)
00003
@SUB(31)
010
DM
0100
HR
20
00004
AND
25504
00005
CLC(41)
00006
@SUB(31)
#
0000
HR
20
HR
20
00007
LD
TR
0
00008
AND
25504
00009
OR
HR
2100
00010
OUT
HR
2100
Address
Instruction
Operands
The first and second subtractions for this diagram are shown below using
example data for 010 and DM 0100.
Note The actual SUB(31) operation involves subtracting Su and CY from 10,000
plus Mi. For positive results the leftmost digit is truncated. For negative
results the 10s complement is obtained. The procedure for establishing the
correct answer is given below.
First Subtraction
IR 010 1029
DM 0100
– 3452
CY
– 0
HR 20 7577
(1029 + (10000 – 3452))
CY
1 (negative
result)
BCD Calculations
Section 5-17
Содержание 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 ...