beautypg.com

Index, Arthmetc functons – Yokogawa DAQWORX User Manual

Page 61

background image

2-31

IM WX103-01E

1

2

3

4

5

Index

Logger

Arthmetc Functons

Below are the arithmetic functions that are available. They are not case-sensitive.

Functon

Descrpton

Example

sin ()

Returns the sine of the

sin(ch(“TagNo.00001” ))

cos ()

Returns the cosine of the

cos(ch(“TagNo.00001” ))

tan ()

Returns the tangent of the

tan(ch(“TagNo.00001” ))

asin ()

Inverse sine

asin(ch(“TagNo.00001” ))

acos ()

Inverse cosine

acos(ch(“TagNo.00001” ))

sinh ()

Hyperbolic sine

sinh(ch(“TagNo.00001” ))

cosh ()

Hyperbolic cosine

cosh(ch(“TagNo.00001” ))

tanh ()

Hyperbolic tangent

tanh(ch(“TagNo.00001” ))

pow (, )

to the power of

pow(ch(00001),
ch(00002))

sqrt ()

Square root

sqrt(ch(00001))

logE ()

Natural logarithm

logE(ch(00001))

log10 ()

Common logarithm

log10(ch(00001))

expE ()

e to the power of

expE(ch(00001))

exp10 ()

10 to the power of

exp10(ch(00001))

abs ()

Absolute value

abs(ch(00001))

max (, ..., )

Maximum value among multiple
specified values

max(ch(00001),
ch(00002),ch(00003))

min (, ..., )

Minimum value among multiple
specified values

min(ch(00001),
ch(00002),ch(00003))

pp (, ..., )

(Maximum - minimum) among
multiple specified values

pp(ch(00001),ch(00002),
ch(00003))

sum (, ..., )

Sum of multiple specified values

sum(ch(00001),
ch(00002),ch(00003))

ave (, ..., )

Average of multiple specified values

ave(ch(00001),
ch(00002),ch(00003))

poly(,

0

>,

1

>, ...,

n

>)

Polynomial with variable parameters
Calculate

0

x

n

+a

1

x

n-1

+...+a

n

x

0

poly(ch(00001)
ch(00002),ch(00003)),

ceil ()

Returns the minimum integer greater
than

ceil(ch(00001))

floor ()

Returns the maximum integer less
than

floor(ch(00001))

limit(,,)

If x is outside the range defined by a
and b,round the value to b.

limit(ch(00001),10,20)

rnd()

Returns a random number between
0 and 1

ch(00001)*rnd()

IsNaN ()

Returns 1 if \value is NaN, otherwise
returns 0.

IsNaN(ch(00001))

2.5 Settng Computatons (Settng the Computaton Channels)

This manual is related to the following products: