Omron SYSMAC CP Series Instruction & Reference Manual page 135

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

The following table shows the status of the Arithmetic Flags after execution of 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).
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.
CP1E CPU Unit Instructions Reference Manual(W483)
>
> =
ON
ON
OFF
ON
OFF
OFF
Signed binary
comparison
S1
Arithmetic Flags
(>, >=, =, <=, <, <>)
>
> =
ON
ON
OFF
ON
OFF
OFF
Signed binary
comparison
S1+1
S1
Arithmetic Flags
(>, >=, =, <=, <, <>)
and S
1
Flag status
=
< =
OFF
OFF
OFF
ON
ON
OFF
OFF
ON
ON
S2
Flag status
=
< =
OFF
OFF
OFF
ON
ON
OFF
OFF
ON
ON
S2+1
S2
and outputs the result to Arithmetic Flags (the
2
+1, S
and S
+1, S
and outputs the result to
1
1
2
2
2 Instructions
<
< >
ON
OFF
ON
2
<
< >
ON
OFF
ON
2-99

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents