beautypg.com

Yokogawa DAQWORX User Manual

Page 62

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 ,

, , , and 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

:

1-12

:

1-31

: 0 to 6 (0: Sunday, 1: Monday, ..., 6: Saturday)

:

0-23

:

0-59

Functon

Descrpton

Example

time(,, ,
)

Edge operation on the date/time

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

bfTime(,,,,
)

Previous edge operation on the
date/time

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

time(,,,,
,,,,
,)

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

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

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

bfMonthly (,,)

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

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

monthly (,,,
,, )

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

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

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

bfWeekly (,,)

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

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

weekly (,,
,,
,)

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

Edge operation at the specified hour and
minute every day

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

bfDaily (,)

Previous edge operation at the specified
hour and minute every day

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

daily (,,,
)

Level operation between time A and time
B

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

hourly ()

Edge operation at the specified minute
every hour

hourly(30) ? StartRec() : 0

bfHourly ()

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

bfHourly(30) ? StartRec() : 0

hourly (, )

Level operation between minute A and
minute B

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

timer()

Returns the status of the specified timer

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

2.5 Settng Computatons (Settng the Computaton Channels)

This manual is related to the following products: