EasyManua.ls Logo

Omron CJ - PROGRAMMING MANUAL 12-2009 - Page 142

Omron CJ - PROGRAMMING MANUAL 12-2009
448 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
102
Symbol Math Instructions
Section 3-9
SIGNED BINARY
SUBTRACT
WITH CARRY
–C
@–C
412
Output
Required
DOUBLE
SIGNED BINARY
WITH CARRY
–CL
@–CL
413
Output
Required
BCD SUBTRACT
WITHOUT
CARRY
–B
@–B
414
Output
Required
DOUBLE BCD
SUBTRACT
WITHOUT
CARRY
–BL
@–BL
415
Output
Required
BCD SUBTRACT
WITH CARRY
–BC
@–BC
416
Output
Required
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution condition
C(412)
Mi
Su
R
Mi: Minuend word
Su: Subtrahend
word
R: Result word
CY
Mi
Su
RCY
(Signed binary)
(Signed binary)
(Signed binary)
CY will turn ON
when there is a
borrow.
Subtracts 4-digit (single-word) hexadecimal data and/or constants
with the Carry Flag (CY).
CL(413)
Mi
Su
R
Mi: Minuend word
Su: Subtrahend
word
R: Result word
Mi+1
Su+1
R+1
CY
Mi
Su
RCY
Subtracts 8-digit (double-word) hexadecimal data and/or constants
with the Carry Flag (CY).
(Signed binary)
(Signed binary)
(Signed binary)
CY will turn
ON when
there is a
borrow.
B(414)
Mi
Su
R
Mi: Minuend word
Su: Subtrahend
word
R: Result word
Mi
Su
RCY
(BCD)
(BCD)
(BCD)
Subtracts 4-digit (single-word) BCD data and/or constants.
CY will turn ON
when there is a
carry.
BL(415)
Mi
Su
R
Mi: 1st minuend
word
Su: 1st
subtrahend word
R: 1st result word
Mi +1
Su+1
R+1CY
Mi
Su
R
(BCD)
(BCD)
(BCD)
Subtracts 8-digit (double-word) BCD data and/or constants.
CY will turn
ON when there
is a borrow.
BC(416)
Mi
Su
R
Mi: Minuend word
Su: Subtrahend
word
R: Result word
CY
Mi
Su
RCY
(BCD)
(BCD)
(BCD)
CY will turn ON
when there is a
borrow.
Subtracts 4-digit (single-word) BCD data and/or constants with the
Carry Flag (CY).

Table of Contents

Related product manuals