beautypg.com

Xl™ series – Xylem XL Series H-522 - Plus User Manual

Page 237

background image

XL™ Series

Functions 22-3

Math Evaluator Operations:
Before discussing the user interface for entering and testing functions any further at this point,
lets look at the operations available, their priority and how the math section is tied to the
hardware. The following lists include all the functions, operators, variables, and constants used
by the math evaluator. Notice that all the functions and variables are in lower case. They may be
entered in either upper or lower case but the system will convert them to lower case before
storing them in memory, and will display them afterwards in lower case.

Highest Level Of Priority:

Trigonometry Functions:

sin(x)

Sine of x based on degrees, SIN(30) = 0.5

cos(x)

Cosine x based on degrees, COS(30) = 0.866025

tan(x)

Tangent x based on degrees, TAN(30) = 0.57735

asin(x)

Arc sine x based on degrees, ASIN(0.5) = 30.0

acos(x)

Arc cosine x based on degrees, ACOS(0.5) = 60.0

atan(x)

Arc tangent x based on degrees, ATAN(0.5) = 26.565051

sinr(x)

Sine of x based on radians, SINR(1) = 0.841471

cosr(x)

Cosine x based on radians, COSR(1) = 0.540302

tanr(x)

Tangent x based on radians, TANR(1) = 1.557408

asinr(x)

Arc sine x based on radians, ASINR(0.5) = 0.523599

acosr(x)

Arc cosine x based on radians, ACOSR(0.5) = 1.047198

atanr(x)

Arc tangent x based on radians, ATANR(0.5) = 0.46348

Logarithmic Functions:

log(x)

Log base 10 of x, LOG(1000) = 3.0

ln(x)

Natural log of x, LN(1000) = 6.90775

exp(x)

Natural log base of 2.718282 raised to the power of x, EXP(3) =
20.08554

Basic Math Functions:

abs(x)

Absolute value of x, ABS(-55.67) = 55.67

sqrt(x)

Square root of x, SQRT(100) = 10.0

Logical functions:

if(x,y,z)

If condition x is true then return y else return z

IF(ana1>2.5,10,-10) = 10.0 if analog 1 is greater than 2.5

= -10.0 if analog 1 is less than 2.5

This manual is related to the following products: