Rockwell Automation 8520-GUM 9/Series CNC Grinder Operation and Programming Manual Documentation Set User Manual
Page 652

Paramacros
Chapter 20
20-8
Table 20.C
Conditional Operators
Operator
Condition Tested
EQ
Equal
NE
Not equal
GT
Greater than
LT
Less than
GE
Greater than or equal
LE
Less than or equal
A condition is programmed between the [ and ] brackets in the following
format:
[A EQ B]
where:
- A and B represent some numerical value
- the values for A and B are in the form of some mathematical equation
or in the form of a paramacro parameter
Example 20.6 illustrates the use of the conditional operators found in
Table 20.C.
Example 20.6
Evaluation of Conditional Expressions
Expression
Evaluation
[6.03 EQ 6.0301]
FALSE
[6.03 NE 6.0301]
TRUE
[2.5 GT 2.5]
FALSE
[2.5 LT 2.51]
TRUE
[2.51 GE 2.5]
TRUE
[2.5 LE 2.5]
TRUE
[[2.5-3] LE 1]
TRUE
[#1 GT #2]
This depends on the value of the parameters #1 and #2
For details on the use of conditional expressions, see page 20-9 for details
on “IF” statements and page 20-11 for details on “WHILE” statements.
For details on the use of paramacro parameters, see page 20-12.