Rockwell-automation GMLC Reference Manual Manual de usuario Pagina 500

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 958
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 499
Publication GMLC-5.2 - November 1999
Expression Operators 463
There are three kinds of GML Commander expression operators:
Mathematical — Combines the numerical values in an expres-
sion.
Logical — Combines the logical (true/false) variables, status
conditions, and discrete I/O states to make decisions.
Relational — Lets the numerical and logical comparisons to be
made and assigns a value to a variable
Mathematical Operators
Use mathematical operators to combine numerical values in an
expression. The available mathematical operators are:
+ (plus sign) — Addition
- (minus sign) — Subtraction and Unary Minus
* (asterisk) — Multiplication
/ (slash) — Division
^ (carat) —- Exponentiation (to the power of)
// (double slash) — Integer Division (Quotient)
@ (at symbol) — Integer Division (Remainder)
Addition +
Use the plus sign to add two elements together. For example, the
following expression evaluates to 12.5 if the most recent registration
position of Axis 0 is 2.5 position units.
Registration_Position_AXIS0 + 10
Vista de pagina 499
1 2 ... 495 496 497 498 499 500 501 502 503 504 505 ... 957 958

Comentarios a estos manuales

Sin comentarios