Yokogawa DAQWORX User Manual

Page 62

Advertising
background image

2-32

IM WX103-01E

Tme Functons

The table below shows the functions related to time. The functions are not case sensitive.

Only integer numeric constants can be written in the function parameters <year>,

<month>, <day>, <hours>, and <minutes> in the table below. The terminology used in

the description in the table are defined below.

Edge:

Returns 1.0 for computation immediately after the specified absolute or

relative time.

Previous edge: Returns 1.0 for computation immediately before the specified absolute

or relative time.

Level:

Returns 1.0 during the specified absolute time or relative time.

• Parameter Settng Ranges

Year:

1970-2036

<month>:

1-12

<day>:

1-31

<week day>: 0 to 6 (0: Sunday, 1: Monday, ..., 6: Saturday)

<hours>:

0-23

<minutes>:

0-59

Functon

Descrpton

Example

time(<year>,<month>,<day> <hours>,
<minutes>)

Edge operation on the date/time

time(2003,6,3,9,53) ? StartRec() : 0

bfTime(<year>,<month>,<day>,<hours>,
<minutes>)

Previous edge operation on the
date/time

bfTime(2003,6,3,9,3) ? StartRec() : 0

time(<year A>,<month A>,<day A>,<hours A>,
<minutes A>,<year B>,<month B>,<day B>,
<hours B>,<minutes B>)

Level operation between date/time
A and B

time(2003,6,3,8,53,2003,6,3,9,13) ?
sum(ch(00001),ch(00002),
ch(00003)) : 0

monthly (<day>,<hours>,<minutes>)

Edge operation every month on the
specified day, hour, and minute.

monthly(3,9,53) ? StartRec() : 0

bfMonthly (<day>,<hours>,<minutes>)

Previous edge operation every month on
the specified day, hour, and minute.

bfMonthly(3,9,53) ? StartRec() : 0

monthly (<day A>,<hours A>,<minutes A>,
<day B>,<hours B>, <minutes B>)

Level operation between the specified
day, hour, and minute of A to the specified
day, hour, and minute of B every month.

monthly (3,9,3,4,9,3) ? StartRec() : 0

weekly (<week day>,<hours>,<minutes>)

Edge operation every week on the
specified week day, hour, and minute.

weekly(3,9,53) ? StartRec() : 0

bfWeekly (<week day>,<hours>,<minutes>)

Previous edge operation every week on
the specified week day, hour, and minute.

bfWeekly(3,9,53) ? StartRec() : 0

weekly (<week day A>,<hours A>,
<minutes A>,<weekday B>,
<hours B>,<minutes B>)

Level operation between the specified
week day, hour and minute of A to the
specified week day, hour, and minute of B
every week.

weekly(3,10,00,4,11,05) ?
sum(ch(00001),ch(00002),
ch(00003)) : 0

daily (<hours>,<minutes>)

Edge operation at the specified hour and
minute every day

daily (10,00) ? StartRec() : 0

bfDaily (<hours>,<minutes>)

Previous edge operation at the specified
hour and minute every day

dfDaily(10,00) ? StartRec() : 0

daily (<hours A>,<minutes A>,<hours B>,
<minutes B>)

Level operation between time A and time
B

daily(10,00,11,05) ?
sum(ch(00001),ch(00002),
ch(00003)) : 0

hourly (<minutes>)

Edge operation at the specified minute
every hour

hourly(30) ? StartRec() : 0

bfHourly (<minutes>)

Previous edge operation at the specified
minute every hour and minute every hour

bfHourly(30) ? StartRec() : 0

hourly (<minutes A>, <minutes B>)

Level operation between minute A and
minute B

hourly (10,20) ? sum(ch(00001),
ch(00002),ch(00003)) : 0

timer(<timerNo>)

Returns the status of the specified timer

timer(1)==1.0 ? StartRec() : 0

2.5 Settng Computatons (Settng the Computaton Channels)

Advertising
This manual is related to the following products: