Omron SYSMAC CS/CJ Series Programming Manual page 117

Table of Contents

Advertisement

Symbol Math Instructions
Instruction
Symbol/Operand
Mnemonic
Code
DOUBLE
– CL(413)
SIGNED BINARY
WITH CARRY
–CL
@–CL
413
Mi: Minuend word
Su: Subtrahend
word
R: Result word
BCD SUBTRACT
– B(414)
WITHOUT
CARRY
–B
@–B
414
Mi: Minuend word
Su: Subtrahend
word
R: Result word
DOUBLE BCD
– BL(415)
SUBTRACT
WITHOUT
CARRY
–BL
@–BL
415
Mi: 1st minuend
word
Su: 1st
subtrahend word
R: 1st result word
BCD SUBTRACT
WITH CARRY
– BC(416)
–BC
@–BC
416
Mi: Minuend word
Su: Subtrahend
word
R: Result word
DOUBLE BCD
BCL(417)
SUBTRACT
WITH CARRY
–BCL
@–BCL
417
Mi: 1st minuend
word
Su: 1st
subtrahend word
R: 1st result word
96
Subtracts 8-digit (double-word) hexadecimal data and/or constants with
the Carry Flag (CY).
Mi
Su
R
CY will turn
ON when
there is a
borrow.
Subtracts 4-digit (single-word) BCD data and/or constants.
Mi
Su
R
CY will turn
ON when there
is a carry.
Subtracts 8-digit (double-word) BCD data and/or constants.
Mi
Su
R
CY will turn
ON when there
is a borrow.
Subtracts 4-digit (single-word) BCD data and/or constants with the Carry
Flag (CY).
Mi
Su
R
CY will turn
ON when there
is a borrow.
Subtracts 8-digit (double-word) BCD data and/or constants with the Carry
Flag (CY).
Mi
Su
R
CY will turn
ON when there
is a borrow.
Function
Mi+1
Mi
Su+1
Su
CY
CY
R+1
R
Mi
Su
CY
R
Mi +1
Su+1
CY
R+1
(BCD)
Mi
(BCD)
Su
CY
(BCD)
CY
R
Mi +1
Su+1
CY
R+1
Section 3-9
Output
Required
(Signed binary)
(Signed binary)
(Signed binary)
Output
Required
(BCD)
(BCD)
(BCD)
Output
Required
(BCD)
Mi
(BCD)
Su
R
(BCD)
Output
Required
Output
Required
Mi
(BCD)
Su
(BCD)
CY
(BCD)
R
Location
Execution
condition

Advertisement

Table of Contents
loading

Table of Contents