EasyManua.ls Logo

Omron CQM1H - PROGRAM

Omron CQM1H - PROGRAM
602 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
335
Binary Calculation Instructions Section 5-22
Description MBS(––) multiplies the signed binary content of two words and outputs the 8-
digit signed binary result to R+1 and R. The rightmost four digits of the result
are placed in R, and the leftmost four digits are placed in R+1.
Note Refer to 1-7 Calculating with Signed Binary Data for more details.
Flags ER: Indirectly addressed EM/DM word is non-existent.
(Content of *EM/*DM word is not BCD, or the EM/DM area boundary
has been exceeded.)
EQ: ON when the result is 0000 0000, otherwise OFF.
Example In the following example, MBS(––) is used to multiply the signed binary con-
tents of DM 0010 with the signed binary contents of DM 0012 and output the
result to DM 0100 and DM 0101.
5-22-8 DOUBLE SIGNED BINARY MULTIPLY – MBSL(––)
Limitations Md and Md+1 must be in the same data area, as must Mr and Mr+1.
R and R+3 must be in the same data area.
DM 6143 to DM 6655 cannot be used for R.
Md
Mr
R +1 R
X
MBS(−−)
DM 0010
DM 0012
DM 0100
Address Instruction Operands
00000 LD 00100
00001 MBS(−−)
DM 0010
DM 0012
DM 0100
00100
Md: DM 0010
1 5 B 1
Mr: DM 0012
F C 1 3
R: DM 0100
D 8 2 3
X
R+1: DM 0101
F F A A
(5,553)
(1,005)
(5,580,765)
Md: First multiplicand word
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
Mr: First multiplier word
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
Ladder Symbols
Operand Data Areas
R: First result word
IR, SR, AR, DM, EM, HR, LR
MBSL(−− )
Md
Mr
R
@MBSL(−− )
Md
Mr
R

Table of Contents

Related product manuals