Binary Calculation Instructions
Description
Flags
Example
00100
5-22-8 DOUBLE SIGNED BINARY MULTIPLY – MBSL(––)
Limitations
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.
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.
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.
X
R+1: DM 0101
F
Ladder Symbols
MBSL(−−)
Md
Mr
R
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.
X
R +1
Address Instruction
MBS(−−)
00000
DM 0010
00001
DM 0012
DM 0100
Md: DM 0010
1
5
B
Mr: DM 0012
F
C
1
R: DM 0100
F
A
A
D
8
2
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
@MBSL(−−)
Md
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
Mr
R
Section 5-22
Md
Mr
R
Operands
LD
MBS(−−)
DM
DM
DM
1
(5,553)
3
(−1,005)
3
(−5,580,765)
Operand Data Areas
Md: First multiplicand word
Mr: First multiplier word
R: First result word
IR, SR, AR, DM, EM, HR, LR
00100
0010
0012
0100
335
Need help?
Do you have a question about the CQM1H - PROGRAM and is the answer not in the manual?