Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual page 92

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Instruction Functions
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
SIGNED BINARY
WITH CARRY
–CL
@–CL
413
Mi: Minuend word
Su: Subtrahend
word
R: Result word
BCD SUBTRACT
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
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
CL(413)
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.
B(414)
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
(Signed binary)
CY
R
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 2-2
Location
Execution
condition
Output
Required
Output
Required
(Signed binary)
(Signed binary)
(Signed binary)
Output
Required
Output
Required
(BCD)
(BCD)
(BCD)
Output
Required
Page
447
449
452
453
457
53

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents