Omron SYSMAC CS Series Programming Manual page 109

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1g/h-cpu-ev1 seriesCj1g-cpu seriesSysmac cj series

Table of Contents