Symbol Math Instructions - Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual

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

Advertisement

Instruction Functions
2-2-9

Symbol Math Instructions

Instruction
Symbol/Operand
Mnemonic
Code
SIGNED BINARY
+(400)
ADD WITHOUT
CARRY
+
@+
400
Au: Augend word
Ad: Addend word
R: Result word
DOUBLE
+L(401)
SIGNED BINARY
ADD WITHOUT
CARRY
+L
@+L
401
Au: 1st augend
word
Ad: 1st addend
word
R: 1st result word
SIGNED BINARY
+C(402)
ADD WITH
CARRY
+C
@+C
402
Au: Augend word
Ad: Addend word
R: Result word
DOUBLE
+CL(403)
SIGNED BINARY
ADD WITH
CARRY
+CL
@+CL
403
Au: 1st augend
word
Ad: 1st addend
word
R: 1st result word
BCD ADD WITH-
+B(404)
OUT CARRY
+B
@+B
404
Au: Augend word
Ad: Addend word
R: Result word
Adds 4-digit (single-word) hexadecimal data and/or constants.
Au
Ad
R
CY will turn ON
when there is a
carry.
Adds 8-digit (double-word) hexadecimal data and/or constants.
Au
Ad
+
R
CY will turn
ON when
CY
there is a
carry.
Adds 4-digit (single-word) hexadecimal 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) hexadecimal data and/or constants with the
Carry Flag (CY).
Au
Ad
R
CY will turn ON
when there is a
CY
carry.
Adds 4-digit (single-word) BCD data and/or constants.
Au
Ad
R
CY will turn ON
when there is a
carry.
Function
(Signed binary)
Au
Ad
(Signed binary)
+
(Signed binary)
CY
R
Au+1
Au
Ad+1
Ad
R+1
R
(Signed binary)
Au
(Signed binary)
Ad
CY
+
(Signed binary)
CY
R
Au+1
Au
Ad+1
Ad
CY
+
R+1
R
(BCD)
Au
(BCD)
Ad
+
(BCD)
CY
R
Section 2-2
Location
Execution
condition
Output
Required
Output
Required
(Signed binary)
(Signed binary)
(Signed binary)
Output
Required
Output
Required
(Signed binary)
(Signed binary)
(Signed binary)
Output
Required
Page
427
429
431
433
435
51

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents