7-22
Section
Binary Calculation Instructions
470
7-22-3 BINARY MULTIPLY – MLB(52)
Md
: Multiplicand word (binary)
IR, SR, AR, DM, HR, TC, LR, #
Mr
: Multiplier word (binary)
IR, SR, AR, DM, HR, TC, LR, #
Ladder Symbols
Operand Data Areas
R
: First result word
IR, SR, AR, DM, HR LR
MLB(52)
Md
Mr
R
@MLB(52)
Md
Mr
R
DM 6144 to DM 6655 cannot be used for R.
MLB(52) cannot be used to multiply signed binary data.
When the execution condition is OFF, MLB(52) is not executed. When the
execution condition is ON, MLB(52) multiplies the content of Md by the contents
of Mr, places the rightmost four digits of the result in R, and places the leftmost
four digits in R+1.
Md
Mr
R +1
R
X
Flags
ER:
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.
7-22-4 BINARY DIVIDE – DVB(53)
Dd
: Dividend word (binary)
IR, SR, AR, DM, HR, TC, LR, #
Dr
: Divisor word (binary)
IR, SR, AR, DM, HR, TC, LR, #
Ladder Symbols
Operand Data Areas
R
: First result word
IR, SR, AR, DM, HR LR
DVB(53)
Dd
Dr
R
@DVB(53)
Dd
Dr
R
DM 6144 to DM 6655 cannot be used for R.
DVB(53) cannot be used to divide signed binary data.
When the execution condition is OFF, DVB(53) is not executed. When the
execution condition is ON, DVB(53) divides the content of Dd by the content of
Dr and the result is placed in R and R+1: the quotient in R, the remainder in R+1.
Dd
Dr
R
R + 1
Quotient
Remainder
Limitations
Description
Limitations
Description
Содержание SRM1 - PROGRAMING 02-2001
Страница 1: ...Programmable Controllers Cat No W353 E1 06 SYSMAC CPM1 CPM1A CPM2A CPM2C SRM1 V2 PROGRAMMING MANUAL ...
Страница 2: ...CPM1 CPM1A CPM2A CPM2C SRM1 V2 Programmable Controllers Programming Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 9: ...x ...
Страница 15: ...xvi ...