Echelon i.LON SmartServer Technical Information Page 363

  • Download
  • Add to my manuals
  • Print
  • Page
    / 443
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 362
i.LON SmartServer 2.0 Programmer’s Reference
21-11
sat.UCPTwednesday = 0;
sat.UCPTthursday = 0;
sat.UCPTfriday = 0;
dayBasedSchedule_Sat.Weekdays = sat;
//create daily schedule for Sundays
iLON_SmartServer.UFPTscheduler_CfgDayBased dayBasedSchedule_Sun =
new iLON_SmartServer.UFPTscheduler_CfgDayBased();
dayBasedSchedule_Sun.UCPTindex = 2;
dayBasedSchedule_Sun.UCPTindexSpecified = true;
dayBasedSchedule_Sun.UCPTdescription = "Sunday";
dayBasedSchedule_Sun.UCPTpriority = 255;
//create events for Sunday Schedule
dayBasedSchedule_Sun.Event = new iLON_SmartServer.UFPTscheduler_CfgEvent[2];
dayBasedSchedule_Sun.Event[0] = new iLON_SmartServer.UFPTscheduler_CfgEvent();
dayBasedSchedule_Sun.Event[1] = new iLON_SmartServer.UFPTscheduler_CfgEvent();
//---create ON event----
iLON_SmartServer.UFPTscheduler_CfgEvent onEvent_Sun =
new iLON_SmartServer.UFPTscheduler_CfgEvent();
onEvent_Sun.UCPTindex = 0;
onEvent_Sun.UCPTindexSpecified = true;
onEvent_Sun.UCPTtime = new DateTime(2009, 6, 8, 12, 00, 00);
onEvent_Sun.UCPTvalue = new iLON_SmartServer.E_LonString[1];
onEvent_Sun.UCPTvalue[0] = new iLON_SmartServer.E_LonString();
onEvent_Sun.UCPTvalue[0].Value = "ON";
onEvent_Sun.UCPTvalue[0].LonFormat = "UCPTvalueDef";
dayBasedSchedule_Sun.Event[0] = onEvent_Sun;
//---create OFF event---
iLON_SmartServer.UFPTscheduler_CfgEvent offEvent_Sun =
new iLON_SmartServer.UFPTscheduler_CfgEvent();
offEvent_Sun.UCPTindex = 1;
offEvent_Sun.UCPTindexSpecified = true;
offEvent_Sun.UCPTtime = new DateTime(2009, 6, 8, 18, 00, 00);
offEvent_Sun.UCPTvalue = new iLON_SmartServer.E_LonString[1];
offEvent_Sun.UCPTvalue[0] = new iLON_SmartServer.E_LonString();
offEvent_Sun.UCPTvalue[0].Value = "OFF";
offEvent_Sun.UCPTvalue[0].LonFormat =
"UCPTvalueDef";
dayBasedSchedule_Sun.Event[1] = offEvent_Sun;
//set Sunday as only day in this daily schedule
iLON_SmartServer.UFPTscheduler_CfgDayBasedWeekdays sun =
new iLON_SmartServer.UFPTscheduler_CfgDayBasedWeekdays();
sun.UCPTsunday = 1;
sun.UCPTsaturday = 0;
sun.UCPTmonday = 0;
sun.UCPTtuesday = 0;
sun.UCPTwednesday = 0;
sun.UCPTthursday = 0;
sun.UCPTfriday = 0;
dayBasedSchedule_Sun.Weekdays = sun;
//store daily schedules we created in a DayBased[]
myScheduler.DayBased = new iLON_SmartServer.UFPTscheduler_CfgDayBased[3];
myScheduler.DayBased[0] = new iLON_SmartServer.UFPTscheduler_CfgDayBased();
myScheduler.DayBased[0] = dayBasedSchedule_weekdays;
myScheduler.DayBased[1] = new iLON_SmartServer.UFPTscheduler_CfgDayBased();
myScheduler.DayBased[1] = dayBasedSchedule_Sat;
Page view 362
1 2 ... 358 359 360 361 362 363 364 365 366 367 368 ... 442 443

Comments to this Manuals

No comments