EasyManuals Logo
Home>Omron>Controller>SYSMAC CJ - REFERENCE MANUAL 08-2008

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 #348 background imageLoading...
Page #348 background image
308
Comparison Instructions Section 3-7
Flags
Note In CS1-H, CJ1-H, CJ1M, and CS1D (for Single-CPU System) CPU Units,
these Flags are left unchanged.
In CS1 and CJ1 CPU Units, these Flags are turned OFF.
Precautions Do not program another instruction between CMPL(060) and an input condi-
tion that accesses the result of CMPL(060) 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 unsigned
binary data in CIO 0011 and CIO 0010 is compared to the eight-digit
unsigned binary data in CIO 0009 and CIO 0008 and the result is output to
the Arithmetic Flags. The results recorded in the Greater Than, Equals, and
Less Than Flags are immediately saved to CIO 000200 (Greater Than),
CIO 000201 (Equals), and CIO 000202 (Less Than).
CMPL
S1
S2
A
Incorrect Use of CMPL(060)
Instruction
B
Arithmetic Flag
(Example: Equals Flag)
Name CX-Programmer
label
Programming
Console label
Operation
Error Flag P_ER ER Unchanged (See note.)
Greater Than Flag P_GT > ON if S
1
+1, S
1
> S
2
+1, S
2
.
OFF in all other cases.
Greater Than or Equal Flag P_GE > = ON if S
1
+1, S
1
≥ S
2
+1, S
2
.
OFF in all other cases.
Equal Flag P_EQ = ON if S
1
+1, S
1
= S
2
+1, S
2
.
OFF in all other cases.
Not Equal Flag P_NE <> ON if S
1
+1, S
1
≠ S
2
+1, S
2
.
OFF in all other cases.
Less Than Flag P_LT < ON if S
1
+1, S
1
< S
2
+1, S
2
.
OFF in all other cases.
Less Than or Equal Flag P_LE < = ON if S
1
+1, S
1
≤ S
2
+1, S
2
.
OFF in all other cases.
Negative Flag P_N N 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