Programming Commands U511 User’s Manual
5-4 Aerotech, Inc. Version 1.1
Table 5-3 Supported Functions (Continued)
Function Description Examples
ASIN(arg)
Calculates the arcsine (inverse sine) of the
argument (where arg is dimensionless,
and the result is in radians)
V90=ASIN( -0.958924)
;V90=5 radians
COS(angle)
Calculates the cosine of the term angle
(where angle is in radians and the result is
dimensionless)
V22=COS(4)
;V22= -0.653643
V71=COS(RAD(30))
;V71=0.8660254
ACOS(arg)
Calculates the arccosine (inverse cosine)
of the argument (where arg is
dimensionless and the result is in radians)
V38=ACOS(0.5)
;V38=1.0471975
SQR(pos_num)
Calculates the square root of pos_num V34=SQR(36)
;V34=6
ABS(number)
Returns the absolute value of number V84=ABS(-12.876)
;V84=12.876
5.2.4. Operators and Evaluation Hierarchy
Constants, functions, and variables may be combined using the mathematical operators
listed in Table 5-4.
Table 5-4. Mathematical Operators and Their Evaluation Hierarchy
Operator Function Priority
( ) Grouping Highest
* , / , ^ , | , & Respectively-Multiplication, Division,
Exponentiation, Bitwise OR, Bitwise AND
↓
+ , - , || , && Respectively-Addition, Subtraction, Logic
OR, Logic AND
↓
= , < , > , <> , <=
, >=
Respectively-Equate or Assignment, Less
than, Greater than, Not equal to, Less than or
equal to, Greater than or equal to
Lowest
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com