Reference functons and tlog functons – Yokogawa DAQWORX User Manual

Page 60

Advertising
background image

2-30

IM WX103-01E

Reference Functons and TLOG Functons

The functions below are used to retrieve measured values and alarm values. The

functions are not case sensitive. For the format used to specify the <channel>, <alarm

level>, and <manual> see “Channel Numbers,” ” Alarm Level,” and “Manual” in this

section.

Functon

Descrpton

Example

ch (<channel>)

Returns the current value of the specified
channel (see page 2-36)

ch(00001)/ch(“Tag”)

prech (<channel>)

Returns the previous value of the specified
channel (see page 2-36)

prech(00001)/
prech(“Tag”)

alarm (<channel>,
<alarm level>)

Returns the alarm value of the specified
channel and specified alarm level;
ON=1, OFF=0

alarm(00001,2)/
alarm(“Tag” 2)

alarm (<channel>)

Returns the alarm value of the specified
channel, ON=1, OFF=0

alarm(00001)/
alarm(“Tag”)

alarm()

Returns the alarm value of an arbitrary
channel, ON=1, OFF=0

alarm()==1 ?
StartRec() : 0

tlogmax (<channel>)

Returns the maximum value of the TLOG
computation of the specified channel

tlogmax(00001)/
tlogmax(“Tag”)

tlogmin (<channel>)

Returns the minimum value of the TLOG
computation of the specified channel

tlogmin(00001)/
tlogmin(“Tag”)

tlogpp (<channel>)

Returns the (maximum-minimum) value of the
TLOG computation of the specified channel

tlogpp(00001)/
tlogpp(“Tag”)

tlogsum (<channel>)

Returns the sum of the TLOG computation
of the specified channel

tlogsum(00001)/
tlogsum(“Tag”)

tlogave (<channel>)

Returns the average value of the TLOG
computation of the specified channel

tlogave(00001)/
tlogave(“Tag”)

ManualDO (<manual>) Returns the values being output on the

specified ManualDO.

ManualDO(1)

ManualAO((<manual>) Returns the values being output on an

arbitrary channel.

ManualAO(1)

*1

The TLOG computation computes the maximum, minimum, maximum-minimum, sum,

and average values of the specified channel.If the TLOG function is present in the equation,

the computation is executed.

*2

The reference function or TLOG function returns NaN in the following cases.

• When the data to be referenced by the CH function or PRECH function does not exist

(when disconnected or immediately after starting the monitor operation)

• When the specified channel does not exist or when the specified alarm level is not 1 or 2.

• When the MX100 returns an INVALID value

*3

Select the behavior taken when the value of the measurement channel is ±Over from the

following:

• Continue the computation as ±Over (behavior when the check box is not selected)

• Continue the computation by setting ±Over to the maximum or minimum value of the

measurement range of the specified channel (see “Notes on Computation” in this section).

The selection is made using the Calculate +Over/-Over as the MAX/MIN value of a range

check box.

2.5 Settng Computatons (Settng the Computaton Channels)

Advertising
This manual is related to the following products: