Rockwell-automation 8520-GUM 9/Series CNC Grinder Operation and Progra Instrukcja Użytkownika Strona 652

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 820
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 651
Paramacros
Chapter 20
20-8
Table 20.C
Conditional Operators
Operator Condition Tested
EQ Equal
NE Notequal
GT Greaterthan
LT Lessthan
GE Greaterthan or equal
LE Less thanorequal
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] Thisdepends on the valueofthe 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.
Przeglądanie stron 651
1 2 ... 647 648 649 650 651 652 653 654 655 656 657 ... 819 820

Komentarze do niniejszej Instrukcji

Brak uwag