Double Binary Multiply: Mlbl(086) - Omron SYSMAC CVM1 Series Operation Manual

Duplex system
Hide thumbs Also See for SYSMAC CVM1 Series:
Table of Contents

Advertisement

Binary Calculation Instructions
Precautions
Flags
Example
0000
00

5-19-7 DOUBLE BINARY MULTIPLY: MLBL(086)

Ladder Symbol
(086)
MLBL
Md
Variations
j MLBL(086)
Description
256
Refer to page 101 for general precautions on operand data areas.
Content of *DM word is not BCD when set for BCD.
ER (A50003):
CY (A50004):
The result is negative.
EQ (A50006):
The result is 0.
N (A50008):
Shows the status of bit 15 of R+1.
In this example, the 8-digit number in CIO 0201 and CIO 0200 is subtracted
from the 8-digit number in D00101 and D00100 when CIO 000000 is ON, and the
result is output to D00501 and D00500. If the result is negative, CY (A50004) is
turned ON and the 2's complement of the result is output to D00501 and
D00500. Refer to 5-19-2 BINARY SUBTRACT: SBB(081) for an example of con-
verting a 2's complement.
(079)
CLC
(085)
SBBL
D00100
0200
D00500
97A071CA – 0F3B52D8 = 88651DF2
Mi + 1 : D00101
9
7
A
0
Su +1 : CIO 0201
0
F
3
B
D + 1 : DD00501
8
8
6
5
Operand Data Areas
Md: 1
Mr
R
Mr: 1
R: 1
When the execution condition is OFF, MLBL(086) is not executed. When the
execution condition is ON, MLBL(086) multiplies the 8-digit content of Md and
Md+1 by the content of Mr and Mr+1, and places the result in R to R+3.
Mi : D00100
7
1
C
A
Su : CIO 0200
5
2
D
8
0
D : D00500
1
E
F
2
0
1
st
multiplicand wd CIO, G, A, T, C, #, DM
st
multiplier word
CIO, G, A, T, C, #, DM
st
result word
CIO, G, A, DM
Md + 1
x
Mr + 1
R + 3
R + 2
R + 1
Section 5-19
Address Instruction
Operands
00000
LD
000000
00001
CLC(079)
00002
SBBL(085)
D00100
D00500
CY (Cleared with CYC(079))
CY (No carry)
N (Leftmost bit is ON)
Md
Mr
R
0200

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents