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

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 <Schedule> elements in the <Data> parameter. The
properties you must define within each <Schedule
>
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 <Data> 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.
<Data>
Parameter
<Data>
<iLONEventScheduler>
<Schedule>
<UCPTindex>1</UCPTindex>
<UCPTdescription>Event Scheduler For Office</UCPTdescription>
<UCPTfbName>Scheduler- 1</UCPTfbName>
<UCPTscheduleEffectivePeriod>0000-00-00,0000-00-00</UCPTscheduleEffectivePeriod>
<Point>
<UCPTindex>0</UCPTindex>
<UCPTpointName>NVL_nvoWeekday</UCPTpointName>
<SCPTdelayTime>0.0</SCPTdelayTime>
</Point>
<Point>
<UCPTindex>1</UCPTindex>
<UCPTpointName>NVL_nvoWeekend</UCPTpointName>
<SCPTdelayTime>0.0</SCPTdelayTime>
</Point>
<DayBased>
<UCPTindex>0</UCPTindex>
<UCPTdescription>Weekday</UCPTdescription>
<UCPTpriority>240
rity>
</UCPTprio
<UCPTweekdays>0,1,1,1,1,1,0</UCPTweekdays>
<DayTimeVal>
<UCPTindex>0</UCPTindex>
<UCPTscheduleValue>WEEKDAY</UCPTscheduleValue>
<UCPTscheduleTime>0:0</UCPTscheduleTime>
</DayTimeVal>
</DayBased>
<DayBased>
<UCPTindex>1</UCPTindex>
<UCPTdescription>Weekend</UCPTdescription>