FB_HVACScheduler7TCHandling

FB_HVACScheduler7TCHandling 1:

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 arr7TimeChannel .

VAR_INPUT

bGoChannelUp    : BOOL;
bGoChannelDown  : BOOL;

bGoChannelUp: a positive edge shifts the focus to the next higher index in the data array arr7TimeChannel.

bGoChannelDown: a positive edge shifts the focus to the next lower index in the data array  arr7TimeChannel.

VAR_IN_OUT

arr7TimeChannel    : ARRAY[1..7] OF ST_HVACTimeChannel;
stCurrChannel      : ST_HVACTimeChannel;
iCurrChannelNumber : INT;
iNumOfChannelsToUse: INT;

arr7TimeChannel : data set array for timer FB_HVACScheduler7CH.

stCurrChannel: contains the contents of the data set from the array arr7TimeChannel, which is selected via the variable iCurrChannelNumber.

iCurrChannelNumber: index for the array arr7TimeChannel.

iNumOfChannelsToUse : maximum permissible index for iCurrChannelNumber in case not all channels are needed.