beautypg.com

0 - compare instructions, 0 compare instructions – Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual

Page 61

background image

4Ć1

4.0 Compare Instructions

Use the Compare instructions to compare two or three integer or double integer

variables. Choose from these instructions:
D Equal To (EQ)
D Greater Than or Equal To (GE)
D Greater Than (GT)
D Less Than or Equal To (LE)
D Less Than (LT)
D LIMIT (Limit)
D Mask Compare (MSK)
D Not Equal To (NE)
The supported parameters are:
D simple integers and double integers
D integer and double integer constants
D elements of integer and double integer arrays
D Timer variables (name.TPreset and name.Elapsed)
D Counter variables (name.CPreset and name.Current)
See each input and output parameter description for each instruction for specific

information.
When integer and double integer variable types are mixed within a compare instruction,

integer values are converted to signed, double integer values before the compare

operation is performed. An exception is the MSK instruction, which converts integer

values to unsigned double integers.