Omron CJ - PROGRAMMING MANUAL 08-2008 Programming Manual page 138

Programmable controllers
Hide thumbs Also See for CJ - PROGRAMMING MANUAL 08-2008:
Table of Contents

Advertisement

Symbol Math Instructions
Instruction
Symbol/Operand
Mnemonic
Code
SIGNED BINARY
−C(412)
SUBTRACT
WITH CARRY
–C
@–C
412
Mi: Minuend word
Su: Subtrahend
word
R: Result word
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
−BC(416)
WITH CARRY
–BC
@–BC
416
Mi: Minuend word
Su: Subtrahend
word
R: Result word
100
Subtracts 4-digit (single-word) hexadecimal 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) hexadecimal data and/or constants
with the Carry Flag (CY).
Mi
Su
R
CY will turn
ON when
there is a
CY
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.
Function
(Signed binary)
Mi
(Signed binary)
Su
CY
CY
R
(Signed binary)
Mi+1
Mi
Su+1
Su
CY
R+1
R
(BCD)
Mi
(BCD)
Su
(BCD)
CY
R
Mi +1
Mi
Su+1
Su
CY
R+1
R
(BCD)
Mi
(BCD)
Su
CY
(BCD)
CY
R
Section 3-9
Location
Execution condition
Output
Required
Output
Required
(Signed binary)
(Signed binary)
(Signed binary)
Output
Required
Output
Required
(BCD)
(BCD)
(BCD)
Output
Required

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - PROGRAMMING MANUAL 08-2008 and is the answer not in the manual?

Questions and answers

Table of Contents