EasyManua.ls Logo

Omron CJ - PROGRAMMING MANUAL 12-2009 - Page 141

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...
101
Symbol Math Instructions
Section 3-9
DOUBLE BCD
ADD WITHOUT
CARRY
+BL
@+BL
405
Output
Required
BCD ADD WITH
CARRY
+BC
@+BC
406
Output
Required
DOUBLE BCD
ADD WITH
CARRY
+BCL
@+BCL
407
Output
Required
SIGNED BINARY
SUBTRACT
WITHOUT
CARRY
@–
410
Output
Required
DOUBLE
SIGNED BINARY
SUBTRACT
WITHOUT
CARRY
–L
@–L
411
Output
Required
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution condition
+BL(405)
Au
Ad
R
Au: 1st augend
word
Ad: 1st addend
word
R: 1st result word
Ad+1
R+1CY
+
Au
Ad
R
Au+1
(BCD)
(BCD)
(BCD)
CY will turn ON
when there is a
carr
y
.
Adds 8-digit (double-word) BCD data and/or constants.
+BC(406)
Au
Ad
R
Au: Augend word
Ad: Addend word
R: Result word
CY
+
Au
Ad
RCY
(BCD)
(BCD)
(BCD)
CY will turn ON
when there is a
carry.
Adds 4-digit (single-word) BCD data and/or constants with the Carry
Flag (CY).
+BCL(407)
Au
Ad
R
Au: 1st augend
word
Ad: 1st addend
word
R: 1st result word
Ad+1
R+1
CY
+
Au
Ad
RCY
(BCD)
(BCD)
(BCD)
Au+1
Adds 8-digit (double-word) BCD data and/or constants with the Carry
Flag (CY).
CY will turn ON
when there is a
carr
y
.
(410)
Mi
Su
R
Mi: Minuend word
Su: Subtrahend
word
R: Result word
Mi
Su
RCY
Subtracts 4-digit (single-word) hexadecimal data and/or constants.
(Signed binary)
(Signed binary)
(Signed binary)
CY will turn ON
when there is a
borrow.
L(411)
Mi
Su
R
Mi: Minuend word
Su: Subtrahend
word
R: Result word
Mi+1
Su+1
R+1CY
Mi
Su
R
(Signed binary)
(Signed binary)
(Signed binary)
Subtracts 8-digit (double-word) hexadecimal data and/or constants.
CY will turn
ON when there
is a borrow.

Table of Contents

Related product manuals