166
When the execution condition is OFF, MUL(32) is not executed. When the
execution condition is ON, MUL(32) multiplies Md by the content of Mr, and
places the result In R and R+1.
Md
Mr
R +1
R
X
When IR 00000 is ON with the following program, the contents of IR 013 and
DM 0005 are multiplied and the result is placed in HR 07 and HR 08. Exam-
ple data and calculations are shown below the program.
MUL(32)
013
DM 0005
HR 07
00000
R+1: HR 08
R: HR 07
0
0
0
8
3
9
0
0
Md: IR 013
3
3
5
6
Mr: DM 0005
0
0
2
5
X
Address
Instruction
Operands
00000
LD
00000
00001
MUL(32)
013
DM
00005
HR
07
ER:
Md and/or Mr is not BCD.
Indirectly addressed DM word is non-existent. (Content of
*
DM word
is not BCD, or the DM area boundary has been exceeded.)
CY:
ON when there is a carry in the result.
EQ
:
ON when the result is 0.
5-17-10 DOUBLE BCD MULTIPLY – MULL(56)
Md
: First multiplicand word (BCD)
IR, SR, AR, DM, HR, TC, LR, #
Mr
: First multiplier word (BCD)
IR, SR, AR, DM, HR, TC, LR, #
Ladder Symbols
Operand Data Areas
R
: First result word
IR, AR, DM, HR LR
MULL(56)
Md
Mr
R
@MULL(56)
Md
Mr
R
Description
Example
Flags
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...