beautypg.com

Rockwell Automation GMLC Reference Manual User Manual

Page 509

background image

Publication GMLC-5.2 - November 1999

472

The Expression Builder

This result is exactly opposite from that obtained when the equal sign is
used.

Greater Than

>

Use a greater-than sign to determine if one element or expression is
greater than another element or expression. If the element or expression
on the left side of the greater-than sign has a greater value than the
element or expression on the right side, the comparison is true (1). If not,
it is false (0). For example, the following expression has a value of 1
(true) if the current position of Axis 0 is greater than the cut length
variable, and 0 (false) otherwise.

Actual_Position_AXIS0 > Cut_Length

Less Than

<

Use a less-than sign to determine if one element or expression is less than
another element or expression. If the element or expression on the left
side of the less-than sign has a lower value than the element or expression
on the right side, the comparison is true (1). Otherwise it is false (0). For
example, the following expression has a value of 1 (true) if the current
position of Axis 0 is less than the cut length variable, and 0 (false)
otherwise.

Actual_Position_AXIS0 < Cut_Length

Greater Than or Equal to

>=

Use a greater-than sign followed by an equal sign to determine if one
element or expression is greater than or equal to another element or
expression. If the element or expression on the left side of the >= is equal
to or has a higher value than the element or expression on the right side,
the comparison is true (1). Otherwise it is false (0). For example, the
following expression has a value of 1 (true) if the current position of Axis
0 is greater than or equal to the cut length variable, and 0 (false)
otherwise.

Actual_Position_AXIS0 >= Cut_Length