Mathematical operators – Rockwell Automation GMLC Reference Manual User Manual
Page 500

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