The following example illustrates the results when defining holidays using both the PPCL HOLIDA statement and the TOD calendar.

NOTE:
Problems can occur if different holiday schedules are defined in the HOLIDA statement and in the TOD calendar, and then both methods are used at the same time. The equipment commanded by the PPCL TOD command will not only execute the holidays defined in the HOLIDA statement, but also those defined in the TOD calendar.

If you choose to define a holiday using the PPCL HOLIDA statement and the TOD calendar, make sure that the holiday is defined the same in both places.

The following TOD commands are defined in the TOD database:

Monday - Sunday

07:00:00

OFF

LITE1

18:00:00

ON

FAN1

18:00:00

ON

LITE1

19:00:00

OFF

FAN1

Holiday

10:30:00

OFF

LITE1

17:00:00

ON

LITE1

The PPCL HOLIDA command defines the following holidays:

100  HOLIDA(4,1,6,14)

The TOD calendar defines the following holidays:

03-May-1994

Holiday

08-Sept-1994

Holiday

Based on these schedules, the following will occur:

  • LITE1 operates according to the holiday schedule on four days: April 1, May 3, June 14, and September 8.
  • This causes a problem if LITE1 should only operate on a holiday schedule of May 3 and September 8.