Omron SYSMAC CS Series Instruction & Reference Manual page 231

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

Name
Less Than Flag
Less Than or Equal Flag
Negative Flag
Function
 ZCPS
ZCPS(117) compares the 16-bit signed binary data in CD with the range defined by LL and UL and
outputs the result to the Arithmetic Flags.
 ZCPSL
ZCPSL(118) compares the 32-bit signed binary data in CD+1, CD with the range defined by LL+1, LL
and UL+1, UL and outputs the result to the Arithmetic Flags.
Comparison Result and Flag Operation
Result
CD > UL
LL
UL
CD
CD = UL
LL
UL
CD
LL < CD < UL
LL
UL
CD
CD = LL
LL
UL
CD
CD < LL
LL
UL
CD
Each flag shown below is ON when CD is on the bold lines or the filled circles.
Greater Than Flag
Equals Flag
Less Than Flag
Greater Than or Equals Flag*
Less Than or Equals Flag*
Not Equals Flag*
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Label
P_LT
• ON if CD < LL.
• OFF in all other cases.
P_LE
• ON if CD ≤ UL.
• OFF in all other cases.
P_N
Held
Greater
Less Than
Equals Flag
Than Flag
ON
OFF
OFF
OFF
ON
OFF
ON
LL
LL
LL
LL
LL
LL
Operation
ZCP
• ON if CD+1, CD < LL+1, LL.
• OFF in all other cases.
• ON if CD+1, CD ≤ UL+1, UL.
• OFF in all other cases.
Held
Greater Than or
Less Than or Equals
Equals Flag* (AND
Flag
of Greater Than Flag
and Equals Flag)
ON
OFF
ON
OFF
UL
UL
UL
UL
UL
UL
3. Instructions
ZCPL
Not Equals Flag*
Flag* (AND of Less
(AND of Greater
Than Flag and
Than Flag and Less
Equals Flag)
Than Flag)
ON
OFF
ON
3
197

Advertisement

Table of Contents
loading

Table of Contents