![background image](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532261.webp)
0000
00
(079)
CLC
(085)
SBBL
D00100
0200
D00500
256
Refer to page 101 for general precautions on operand data areas.
Flags
ER (A50003):
Content of
*
DM word is not BCD when set for BCD.
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.
Address
Instruction
Operands
00000
LD
000000
00001
CLC(079)
00002
SBBL(085)
D00100
0200
D00500
97A071CA – 0F3B52D8 = 88651DF2
Mi + 1 : D00101
Mi
: D00100
Su
+1 : CIO 0201
Su : CIO 0200
9
7
A
0
7
1
C
A
0
F
3
B
5
2
D
8
0
–
D + 1 : DD00501
D : D00500
1
E
F
2
8
8
6
5
0
1
CY (Cleared with CYC(079))
CY (No carry)
N (Leftmost bit is ON)
5-19-7 DOUBLE BINARY MULTIPLY: MLBL(086)
Variations
j
MLBL(086)
(086)
MLBL
Md
Mr
R
Operand Data Areas
Ladder Symbol
Md: 1
st
multiplicand wd CIO, G, A, T, C, #, DM
R: 1
st
result word
CIO, G, A, DM
Mr: 1
st
multiplier word
CIO, G, A, T, C, #, DM
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.
Md + 1
Md
Mr + 1
Mr
R + 1
R
R + 3
R + 2
x
Precautions
Example
Description
Binary Calculation Instructions
Section 5-19
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...