FB_HVACScheduler28TCHandling
Application
This function block can be used to select and modify an individual line from the data array of a weekly timer. Thus, it is possible to edit the data sets very easily even with a visualization that offers only a low graphical resolution, without having to display all the data of the array.
The data set from arr7TimeChannel with the index iCurrChannelNumber is copied into data structure stCurrChannel. Modifications of the data in structure stCurrChannel take effect immediately and are transferred to array arr28TimeChannel .
VAR_INPUT
bGoChannelUp : BOOL;
bGoChannelDown : BOOL;
bGoChannelUp: a positive edge shifts the focus to the next higher index in the data array arr28TimeChannel.
bGoChannelDown: a positive edge shifts the focus to the next lower index in the data array arr28TimeChannel.
VAR_IN_OUT
arr28TimeChannel : ARRAY[1..28]OF ST_HVACTimeChannel;
stCurrChannel : ST_HVACTimeChannel;
iCurrChannelNumber : INT;
iNumOfChannelsToUse : INT;
arr28TimeChannel : data set array for timer FB_HVACScheduler28CH.
stCurrChannel: contains the contents of the data set from the array arr28TimeChannel, which is selected via the variable iCurrChannelNumber.
iCurrChannelNumber: index for the array arr28TimeChannel.
iNumOfChannelsToUse : maximum permissible index for iCurrChannelNumber in case not all channels are needed.