167
When the execution condition is OFF, MULL(56) is not executed. When the
execution condition is ON, MULL(56) multiplies the eight-digit content of Md
and Md+1 by the content of Mr and Mr+1, and places the result in R to R+3.
Md + 1
Md
Mr + 1
Mr
R + 1
R
R + 1
R + 2
x
ER:
Md, Md+1,Mr, or Mr+1 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-11 BCD DIVIDE – DIV(33)
Dd
: Dividend word (BCD)
IR, SR, AR, DM, HR, TC, LR, #
Ladder Symbol
Dr
: Divisor word (BCD)
IR, SR, AR, DM, HR, TC, LR, #
Operand Data Areas
DIV(33)
Dd
Dr
R
R
: First result word (BCD)
IR, AR, DM, HR, LR
R and R+1 must be in the same data area.
When the execution condition is OFF, DIV(33) is not executed and the pro-
gram moves to the next instruction. When the execution condition is ON, Dd
is divided by Dr and the result is placed in R and R + 1: the quotient in R and
the remainder in R + 1.
R+1
R
Dd
Dr
Quotient
Remainder
ER
:
Dd or Dr is not in BCD.
Indirectly addressed DM word is non-existent. (Content of
*
DM word
is not BCD, or the DM area boundary has been exceeded.)
EQ:
ON when the result is 0.
Description
Flags
Limitations
Description
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...