Rockwell-automation 9301 Series RSView32 Users Guide Manuel d'utilisateur Page 520

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 769
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 519
Creating expressions 14–7
<expression> A value or string, a tag name, or a more complex
expression.
Enclose tag names that contain dashes or start with a
number in braces { } when you use them in an
expression. This distinguishes the characters in the
tag name from the characters in the expression. Also
use braces when using wildcards (* or ?) to represent
multiple tags in an expression.
Enclose strings in quotes. The string can contain any
character, and can include spaces.
Do not use braces for the tag name before the equal
sign.
You cannot nest braces.
Examples: The = (Equal) command
Tag1 = Tag1 + 1
Increases the value of tag1 by 1.
Tag1 = Tag2
Sets the value of Tag1 to be the same as Tag2.
Tag1 = if (Tag2 < Tag1) then 4 else 3
Performs the if–then–else calculation and stores the result in Tag1.
1Pump = {Industry–2} + {2Pump}
Adds the values of Industry–2 and 2Pump and stores the result in
1Pump.
Braces surround Industry–2 because of the dash in the name. Braces
surround 2Pump because the name starts with a number. No braces
are used for 1Pump because this name is on the left side of the equal
sign.
Vue de la page 519
1 2 ... 515 516 517 518 519 520 521 522 523 524 525 ... 768 769

Commentaires sur ces manuels

Pas de commentaire