Rockwell-automation FactoryTalk View Machine Edition Users Guide Instrukcja Użytkownika Strona 488

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 677
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 487
FACTORYTALK VIEW MACHINE EDITION USERS GUIDE
23-10
• • • • •
Examples: Bitwise operators
For these examples, tag1 = 5 (binary 0000 0000 0000 0101) and
tag2 = 2 (binary 0000 0000 0000 0010)
tag1 & tag2
Returns 0 (binary 0000 0000 0000 0000).
tag1 | tag2
Returns 7 (binary 0000 0000 0000 0111).
tag1 ^ tag2
Returns 7 (binary 0000 0000 0000 0111).
tag1 >> 1
Returns 2 (binary 0000 0000 0000 0010).
tag1 << 1
Returns 10 (binary 0000 0000 0000 1010).
~ tag1
Returns -6 (binary 1111 1111 1111 1010).
Evaluation order of operators
Expressions with more than one operator are evaluated in this order:
Operators in parentheses are evaluated first.
Therefore, to change the order of precedence, use parentheses.
The operator with the highest precedence is evaluated next.
When two operators have equal precedence, they are evaluated from left to right.
Przeglądanie stron 487
1 2 ... 483 484 485 486 487 488 489 490 491 492 493 ... 676 677

Komentarze do niniejszej Instrukcji

Brak uwag