EasyManuals Logo

Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 User Manual

Omron SYSMAC CJ - REFERENCE MANUAL 08-2008
1405 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 #354 background imageLoading...
Page #354 background image
314
Comparison Instructions Section 3-7
Flags
Note In CS1 and CJ1 CPU Units, these Flags are turned OFF.
In CS1-H, CJ1-H, CJ1M, and CS1D CPU Units, these Flags are left
unchanged.
Precautions Do not program another instruction between CPSL(115) and an input condi-
tion that accesses the result of CPSL(115) because the other instruction
might change the status of the Arithmetic Flags.
Example When CIO 000000 is ON in the following example, the eight-digit signed
binary data in D00002 and D00001 is compared to the eight-digit signed
binary data in D00006 and D00005 and the result is output to the Arithmetic
Flags.
• If the content of D00002 and D00001 is greater than that of D00006 and
D00005, the Greater Than Flag will be turned ON, causing CIO 002000 to
be turned ON.
• If the content of D00002 and D00001 is equal to that of D00006 and
D00005, the Equals Flag will be turned ON, causing CIO 002001 to be
turned ON.
• If the content of D00002 and D00001 is less than that of D00006 and
D00005, the Less Than Flag will be turned ON, causing CIO 002002 to
be turned ON.
CPSL
S1
S2
A
Incorrect Use of CPSL(115)
Instruction
B
Arithmetic Flag
(Example: Equal Flag)
Name Label Operation
Error Flag ER OFF or unchanged (See note.)
Greater Than Flag > ON if S
1
+1, S
1
> S
2
+1, S
2
.
OFF in all other cases.
Greater Than or Equal Flag > = ON if S
1
+1, S
1
≥ S
2
+1, S
2
.
OFF in all other cases.
Equal Flag = ON if S
1
+1, S
1
= S
2
+1, S
2
.
OFF in all other cases.
Not Equal Flag = ON if S
1
+1, S
1
≠ S
2
+1, S
2
.
OFF in all other cases.
Less Than Flag < ON if S
1
+1, S
1
< S
2
+1, S
2
.
OFF in all other cases.
Less Than or Equal Flag < = ON if S
1
+1, S
1
≤ S
2
+1, S
2
.
OFF in all other cases.
Negative Flag N OFF or unchanged (See note.)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 and is the answer not in the manual?

Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Specifications

General IconGeneral
BrandOmron
ModelSYSMAC CJ - REFERENCE MANUAL 08-2008
CategoryController
LanguageEnglish

Related product manuals