Double Bcd Subtract: Subl(075) - Omron SYSMAC CVM1 Series Operation Manual

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

Advertisement

BCD Calculation Instructions

5-18-8 DOUBLE BCD SUBTRACT: SUBL(075)

Ladder Symbol
(075)
SUBL
Mi
Variations
j SUBL(075)
Description
Precautions
Flags
244
Su
R
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.
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.
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.
Operand Data Areas
st
Mi: 1
minuend word
CIO, G, A, T, C, #, DM
st
Su: 1
subtrahend wordCIO, G, A, T, C, #, DM
st
R: 1
result word
CIO, G, A, DM
Mi + 1
Su + 1
CY
R + 1
Section 5-18
Mi
Su
CY
R

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents