EasyManua.ls Logo

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #389 background imageLoading...
Page #389 background image
351
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Symbol Math Instructions
3
+/+L
Flags
Function
z +
+(400) adds the binary values in Au and Ad and outputs the result to R.
z +L
+L(401) adds the binary values in Au and Au+1 and Ad and Ad+1 and outputs the result to R.
Example Programming
Name Label
Operation
+ +L
Error Flag ER OFF OFF
Equals Flag = • ON when the result is 0.
• OFF in all other cases.
• ON when the result is 0.
• OFF in all other cases.
Carry Flag CY • ON when the addition results in a carry.
• OFF in all other cases.
• ON when the addition results in a carry.
• OFF in all other cases.
Overflow Flag OF • ON when the result of adding two positive num-
bers is in the range 8000 to FFFF hex.
• OFF in all other cases.
• ON when the result of adding two positive num-
bers is in the range 80000000 to FFFFFFFF hex.
• OFF in all other cases.
Underflow Flag UF • ON when the result of adding two negative num-
bers is in the range 0000 to 7FFF hex.
• OFF in all other cases.
• ON when the result of adding two negative num-
bers is in the range 00000000 to 7FFFFFFF hex.
• OFF in all other cases.
Negative Flag N • ON when the leftmost bit of the result is 1.
• OFF in all other cases.
• ON when the leftmost bit of the result is 1.
• OFF in all other cases.
+
CY
R
Au
Ad
(Signed binary)
(Signed binary)
(Signed binary)
CY will turn ON
when there is a
carry.
+
CY
R+1 R
Au+1
Ad+1
Au
Ad
(Signed binary)
(Signed binary)
(Signed binary)
CY will turn ON
when there is a
carry.
+
D100
D110
D120
0.00
+L
D100
D110
D120
0.00
When CIO 0.00 is ON in this example, D100 and D110 will be
added as 4-digit signed binary values and the result will be output
to D120.
When CIO 0.00 is ON, D101 and D100 and D111 and D110 will
be added as 8-digit signed binary values and the result will be
output to D121 and D120.

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
CategoryController
ManufacturerOmron
TypePLC
SeriesCJ Series
Instruction TypesBit, Compare, Data Control, Data Processing
Programming LanguagesLadder Diagram (LD), Structured Text (ST), Function Block Diagram (FBD), Sequential Function Chart (SFC)

Related product manuals