Omron CJ - INSTRUCTIONS Reference Manual page 303

Table of Contents

Advertisement

Flags
Name
Error Flag
Greater Than Flag
Greater Than or Equal Flag
Equal Flag
Not Equal Flag
Less Than Flag
Less Than or Equal Flag
Negative Flag
Note In CS1D CPU Units for Duplex Systems, CS1 CPU Units, and CJ1 CPU Units, these are turned OFF.
The following table shows the status of the Arithmetic Flags after execution of CPS(114).
CPS(114) Result
S
> S
1
2
S
= S
1
2
S
< S
1
2
*A status of "---" indicates that the Flag may be ON or OFF.
The following table shows the status of the Arithmetic Flags after execution of CPSL(115).
CPSL(115) Result
S
+1, S
> S
+1, S
1
1
2
2
S
+1, S
= S
+1, S
1
1
2
2
S
+1, S
< S
+1, S
1
1
2
2
*A status of "---" indicates that the Flag may be ON or OFF.
Function
CPS
CPS(114) compares the signed binary data in S
Greater Than, Greater Than or Equal, Equal, Less Than or Equal, Less Than, and Not Equal Flags) in
the Auxiliary Area.
CPSL
CPSL(115) compares the double signed binary data in S
Arithmetic Flags (the Greater Than, Greater Than or Equal, Equal, Less Than or Equal, Less Than, and
Not Equal Flags) in the Auxiliary Area.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Label
ER
Unchanged (See note.)
>
• ON if S
> S
.
1
2
• OFF in all other cases.
> =
• ON if S
S
.
1
2
• OFF in all other cases.
=
• ON if S
= S
.
1
2
• OFF in all other cases.
=
• ON if S
S
.
1
2
• OFF in all other cases.
<
• ON if S
< S
.
1
2
• OFF in all other cases.
< =
• ON if S
S
.
1
2
• OFF in all other cases.
N
Unchanged (See note.)
>
> =
ON
ON
OFF
OFF
ON
ON
OFF
OFF
OFF
Signed binary
comparison
S1
>
> =
ON
ON
OFF
OFF
ON
ON
OFF
OFF
OFF
Signed binary
comparison
S1+1
S1
Operation
CPS
OFF or unchanged (See note.)
• ON if S
• OFF in all other cases.
• ON if S
• OFF in all other cases.
• ON if S
• OFF in all other cases.
• ON if S
• OFF in all other cases.
• ON if S
• OFF in all other cases.
• ON if S
• OFF in all other cases.
OFF or unchanged (See note.)
Flag status
=
< =
<
OFF
OFF
ON
ON
OFF
OFF
ON
ON
ON
S2
Arithmetic Flags
(>, >=, =, <=, <, <>)
Flag status
=
< =
<
OFF
OFF
ON
ON
OFF
OFF
ON
ON
ON
S2+2
S2
Arithmetic Flags
(>, >=, =, <=, <, <>)
and S
and outputs the result to Arithmetic Flags (the
1
2
+1, S
and S
1
1
3. Instructions
CPSL
+1, S
> S
+1, S
.
1
1
2
2
+1, S
S
+1, S
.
1
1
2
2
+1, S
= S
+1, S
.
1
1
2
2
+1, S
S
+1, S
.
1
1
2
2
+1, S
< S
+1, S
.
1
1
2
2
+1, S
S
+1, S
.
1
1
2
2
< >
< >
+1, S
and outputs the result to
2
2
3
265

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents

Save PDF