beautypg.com

Using built-in functions in expressions, Math functions, Using built-in functions in expressions – 11 – Rockwell Automation FactoryTalk View Site Edition Users Guide User Manual

Page 557: Math functions – 11

background image

20

C

REATING

EXPRESSIONS

20–11

• •

20

Pla
ceho

lde

r

The expression evaluates to 1 (true).

_____________________________

NOT tag1 AND tag2>tag3 ** 2

is evaluated in this sequence:

1. NOT tag1=0

2. 0 AND tag2=0

3. tag3 ** 2=100

4. 0>100=0

The expression evaluates to 0 (false).

Using built-in functions in expressions

The following sections describe the built-in functions you can use in FactoryTalk
View SE expressions.

Many of the built-in functions check for specific true and false conditions. If the condition
is true, the expression returns a value of 1. If the condition is false, the expression returns
a value of 0.

Math functions

Use the built-in math functions to calculate the square root, log (natural or base 10), or
trigonometry ratios (in radians or degrees) of a tag or expression.

This function

Returns this value

SQRT (expression)

The square root of the expression

LOG (expression)

The natural log of the expression

LOG10 (expression)

The base ten log of the expression

SIN (expression)

The sine of the expression in radians

COS (expression)

The cosine of the expression in radians

TAN (expression)

The tangent of the expression in radians

ARCSIN (expression)

The arc sine of the expression in radians

ARCCOS (expression)

The arc cosine of the expression in radians

ARCTAN (expression)

The arc tangent of the expression in radians

SIND (expression)

The sine of the expression in degrees