![Omron CVM1D Operation Manual Download Page 249](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532249.webp)
244
5-18-8 DOUBLE BCD SUBTRACT: SUBL(075)
Variations
j
SUBL(075)
(075)
SUBL
Mi
Su
R
Operand Data Areas
Ladder Symbol
Mi: 1
st
minuend word
CIO, G, A, T, C, #, DM
R: 1
st
result word
CIO, G, A, DM
Su: 1
st
subtrahend wordCIO, G, A, T, C, #, DM
When the execution condition is OFF, SUBL(075) is not executed. When the
execution condition is ON, SUBL(075) subtracts CY and the 8-digit content of Su
and Su+1 from the 8-digit value in Mi and Mi+1, and places the result in R and
R+1. If the result is negative, CY is set and the 10’s complement of the actual
result is placed in R. To convert the 10’s complement to the true result, subtract
the content of R from zero.
Mi + 1
Mi
Su + 1
Su
R + 1
R
–
CY
CY
Note An equivalent symbol math instruction (–BCL(417)) is also available.
Mi and Su must be BCD.
Constants are input using eight digits.
Note Refer to page 101 for general precautions on operand data areas.
Flags
ER (A50003):
Content of Mi, Mi+1,Su or Su+1 is not BCD.
Content of *DM word is not BCD when set for BCD.
CY (A50004):
There is a carry in the result.
EQ (A50006):
The result is 0.
Description
Precautions
BCD Calculation Instructions
Section 5-18
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...