beautypg.com

Rockwell Automation 9301 Series RSView32 Users Guide User Manual

Page 530

background image

Creating expressions

14–17

The time functions are described on the following pages.

The time parameter can include the following options:

day of week [Sun, Mon, Tue, Wed, Thu, Fri, or Sat]

month

[Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct,
Nov, or Dec]

date

[1-31]

year

[1997-2100]

hour

of

day [00:-23:]

minute

[:00-:59]

seconds

[:00-:59]

It does not matter in what order options are listed. You can include
any or all of these options; the more you include, the more specific the
time becomes.

BEFORE_TIME(“time”)

1 (true) if the expression is evaluated before the specified time.

AFTER_TIME(“time”)

1 (true) if the expression is evaluated after the specified time.

INTERVAL(“interval”)

1 (true) if the specified time interval has elapsed—the interval timer
starts running when an event file starts running.

GetDayofWeek(D)

Return value is from 1 to 7. 1 indicates Sunday and 7 indicates
Saturday. The other values correspondingly represent each day of
week.

This function

Returns

The time and interval parameters must be enclosed in quotes.

IMPORTANT