Index, Arthmetc functons – Yokogawa DAQWORX User Manual

Page 61

Advertising
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 (<value>)

Returns the sine of the <value>

sin(ch(“TagNo.00001” ))

cos (<value>)

Returns the cosine of the <value>

cos(ch(“TagNo.00001” ))

tan (<tan>)

Returns the tangent of the <value>

tan(ch(“TagNo.00001” ))

asin (<value>)

Inverse sine

asin(ch(“TagNo.00001” ))

acos (<value>)

Inverse cosine

acos(ch(“TagNo.00001” ))

sinh (<value>)

Hyperbolic sine

sinh(ch(“TagNo.00001” ))

cosh (<value>)

Hyperbolic cosine

cosh(ch(“TagNo.00001” ))

tanh (<value>)

Hyperbolic tangent

tanh(ch(“TagNo.00001” ))

pow (<value1>, <value2>)

<value1> to the power of <value 2>

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

sqrt (<value>)

Square root

sqrt(ch(00001))

logE (<value>)

Natural logarithm

logE(ch(00001))

log10 (<value>)

Common logarithm

log10(ch(00001))

expE (<value>)

e to the power of <value>

expE(ch(00001))

exp10 (<value>)

10 to the power of <value>

exp10(ch(00001))

abs (<value>)

Absolute value

abs(ch(00001))

max (<value>, ..., <value>)

Maximum value among multiple
specified values

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

min (<value>, ..., <value>)

Minimum value among multiple
specified values

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

pp (<value>, ..., <value>)

(Maximum - minimum) among
multiple specified values

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

sum (<value>, ..., <value>)

Sum of multiple specified values

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

ave (<value>, ..., <value>)

Average of multiple specified values

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

poly(<x>,<a

0

>,<a

1

>, ..., <a

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 (<value>)

Returns the minimum integer greater
than <value>

ceil(ch(00001))

floor (<value>)

Returns the maximum integer less
than <value>

floor(ch(00001))

limit(<x>,<a>,<b>)

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 (<value>)

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

IsNaN(ch(00001))

2.5 Settng Computatons (Settng the Computaton Channels)

Advertising
This manual is related to the following products: