165
and DM 0001 so that a negative result can be subtracted from 0 (inputting an
8-digit constant is not possible).
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
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
Address
Instruction
Operands
Address
Instruction
Operands
5-17-9
BCD MULTIPLY – MUL(32)
Md
: Multiplicand (BCD)
IR, SR, AR, DM, HR, TC, LR, #
Mr
: Multiplier (BCD)
IR, SR, AR, DM, HR, TC, LR, #
Ladder Symbols
Operand Data Areas
R
: First result word
IR, AR, DM, HR LR
MUL(32)
Md
Mr
R
@MUL(32)
Md
Mr
R
BCD Calculations
Section 5-17
Содержание SYSMAC C1000H
Страница 1: ...Cat No W140 E1 04 Programmable Controllers SYSMAC C1000H C2000H...
Страница 2: ...C1000H C2000H Programmable Controllers Operation Manual Revised May 2003...
Страница 3: ...iv...
Страница 5: ...vi...
Страница 395: ...Cat No W140 E1 04 Note Specifications subject to change without notice Printed in Japan Authorized Distributor...
Страница 396: ...Cat No W140 E1 04 SYSMAC C1000H C2000H Programmable Controllers OPERATION MANUAL...