170
and DM 0001 so that a negative result can be subtracted from 0 (inputting an
8-digit constant is not possible).
CLC(41)
@SUBL(55)
HR 20
120
DM 0100
CLC(41)
@SUBL(55)
DM 0000
DM 0100
DM 0100
TR 0
25504
HR 2100
00003
25504
HR 2100
First
subtraction
Second
subtraction
Turned ON to indicate
negative result.
@BSET(71)
#0000
DM 0000
DM 0001
00000
LD
00003
00001
OUT
TR
0
00002
CLC(41)
00003
@SUBL(55)
HR
20
120
DM
0100
00004
AND
25504
00005
@BSET(71)
#
0000
DM
0000
DM
0001
00006
CLC(41)
00007
@SUBL(55)
DM
0000
DM
0100
DM
0100
00008
LD
TR
0
00009
AND
25504
00010
OR
HR
2100
00011
OUT
HR
2100
Address
Instruction
Operands
Address
Instruction
Operands
BCD Calculations
Section 5-17
Summary of Contents for SYSMAC C200H
Page 1: ...OPERATION MANUAL C200H CPU01 E 03 E 11 E SYSMAC Programmable Controllers Cat No W130 E1 05 ...
Page 2: ...C200H Programmable Controllers CPU01 E 03 E 11 E Operation Manual Revised June 2003 ...
Page 3: ...iv ...
Page 5: ...vi ...
Page 8: ...TABLE OF CONTENTS ix Glossary 345 Index 363 Revision History 369 ...
Page 342: ...336 Programmer Program Date Page Word Contents Notes Word Contents Notes Data Storage ...
Page 374: ...Cat No W130 E1 05 C200H Programmable Controllers CPU01 E 03 E 11 E OPERATION MANUAL ...