![background image](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532257.webp)
252
In the following example, 20F55A10 – B8A360E3 = 97AE06D3. In the rightmost
four-digit subtraction, Su is less than Mi, so CY (A50004) becomes 1, and the
result of the leftmost four-digit subtraction is decremented by 1. In the final cal-
culations, 0000 – F9D2 = 0000 + (10000 – F9D2) = 06D3.
0000 – 6851 –1 (because CY is 1) = 0000 + (10000 – 6851 – 1) = 97AE.
The content of 0102, 0001, indicates a negative result.
R: 0100
F
9
2
D
Mi: 0010
5
A
1
0
Su: D00100
6
0
E
3
–
R+1: 0101
6
8
5
1
Mi+1: 0011
2
0
F
5
Su+1: D00101
B
8
A
3
–
CY = 1
Rightmost 4 Digits
Leftmost 4 Digits
R+2: 0102
R+1: 0101
R: 0100
0
0
0
1
9
7
A
E
0
6
D
3
5A10 + (10000 – 60E3)
–
1
0
–
20F5 + (10000 – B8A3) – 1
CY = 0
(from CLC(079))
CY = 1
0
0
0
0
R: 0100
F
9
2
D
R: 0100
0
6
D
3
R+1: 0101
6
8
5
1
R: 0101
9
7
A
E
–
–
CY = 1
0000 + (10000 – F92D)
–
1
0
–
0000 + (10000 – 6851) – 1
CY = 0
(from CLC(079))
0
0
0
0
Converting 2’s Complement
5-19-3 BINARY MULTIPLY: MLB(082)
Variations
j
MLB(082)
(082)
MLB
Md
Mr
R
Operand Data Areas
Ladder Symbol
Md: Multiplicand word
CIO, G, A, T, C, #, DM, DR, IR
R: Result word
CIO, G, A, DM
Mr: Multiplier word
CIO, G, A, T, C, #, DM, DR, IR
When the execution condition is OFF, MLB(082) is not executed. When the
execution condition is ON, MLB(082) multiplies the content of Md by the content
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
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...