beautypg.com

Eventschedulerset, Eventschedulerset -13, 3 eventschedulerset – Echelon i.LON 100 e2 Internet Server User Manual

Page 165

background image

i.

LON 100 Internet Server Programmer’s Reference

10-13

10.2.1.3 EventSchedulerSet

You can use the EventSchedulerSet function to create new Event Schedulers, or to overwrite
the configuration of existing Event Schedulers. The Event Schedulers to be created or

written to are signified by a list of elements in the parameter. The
properties you must define within each

>

element are the same, whether you are

creating a new Event Scheduler or modifying an existing Event Scheduler. The previous

section, EventSchedulerGet, describes these properties.

NOTE: When modifying an existing Event Scheduler, any optional properties left out of the

input string will be erased. Old values will not be carried over, so you should fill in every

property when writing to an Event Scheduler, even if you are not changing all of the values.

When creating or modifying an Event Scheduler with this function, you may want to use

output from EventSchedulerGet as the basis for your parameter. You would then

only need to modify the values of each property to match the new configuration you want, as
opposed to re-creating an entire string like the one shown below, to generate your input.
You can create up to 40 Event Schedulers per

i.

LON 100. The EventSchedulerSet function

will generate the EventScheduler.XML file in the /root/config/software directory of your

i.

LON 100, if the file does not already exist.

The example below creates an Event Scheduler that will update two data points,
NVL_nvoWeekend and NVL_nvoWeekday. It inlcudes two day-based schedules, one that

applies to weekdays and one that applies to weekends. It also includes a date-based schedule

that references a schedule exception created for holidays.


Parameter



1
Event Scheduler For Office
Scheduler- 1
0000-00-00,0000-00-00

0

NVL_nvoWeekday
0.0

1
NVL_nvoWeekend
0.0

0
Weekday
240

rity>

0,1,1,1,1,1,0

0
WEEKDAY
0:0


1
Weekend