Integer Scheduler (T19)
Time scheduler, integer
FB : LIB.HVAC.V1_0.T19_INT_SCHEDULER := (TPGVALUE := [(STARTTIME := 0, STATE := 0),
(STARTTIME := 1630, STATE := 7),
(STARTTIME := 1750, STATE := 0),
(STARTTIME := 3070, STATE := 7),
(STARTTIME := 3190, STATE := 0),
(STARTTIME := 65535, STATE := 0)],
EXCEPTIONS := [(STARTTIME := 1000, ENDTIME := 2000, STATE := 0)]);
FB(CURRENTTIME:=DT1, OUT=> INT1);
Time scheduler is a source of an integer variable which value changes according to a weekly schedule with maximum 42 events (changes of state). Exception events (exceptions) defined by date, time, and state can be inserted.
||Date and time in case that other date and time than system date and time shall be used
||Output value if en=false
||Current time schedule state
Description of internal structures
||Current state of the time program
||Minutes from the beginning of the day
The time scheduler compares current date and time with the definition table and sends the actual state to the output. The output is a integer value. The possible scheduler states are defined The time scheduler can be edited from Idekit Studio or HMI - LCD display, web interface, touchscreen, SCADA or another client).
Time scheduler is used to specify variable setpoints in time directly. (Use T17_BOOLEAN_SCHEDULER for boolean (on/off) output, and T18_REAL_SCHEDULER for direct outout of analogue setpoints.) At the image below, T19 is used to switch between Off / Stage 1 / Stage 2 / CO2 control modes. In the CO2 mode, the fan stages are changed according to the CO2 concentration in the room.
In the editor there is a morning purge at 7:00 with Stage 2, Stage 1 is active in the morning and in the evening, while in the daytime the CO2 control is active.