FB_HVACScheduler7TCHandling

This function block can be used to select and modify an individual line from the data array of a weekly timer. In this way it is easily possible to edit the data sets with a visualization that only offers a low graphic resolution, without having to show all the data of the array.
The data set from arr7TimeChannel with index iCurrChannelNumber is copied to 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: With a positive edge the focus is placed on the next higher index in the data array arr7TimeChannel.
bGoChannelDown: With a positive edge the focus is placed on 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: Array of the data sets of the timer FB_HVACScheduler7ch (see ST_HVACTimeChannel).
stCurrChannel: Contains the contents of the data set from the array arr7TimeChannel, which is selected via the variable iCurrChannelNumber (see ST_HVACTimeChannel).
iCurrChannelNumber: Selection index for the array arr7TimeChannel.
iNumOfChannelsToUse: Maximum (7) permissible index for iCurrChannelNumber in case not all channels are needed.
Requirements
Development environment | required library | required function |
---|---|---|
TwinCAT 3.1 build 4022.16 or higher | Tc2_HVAC V3.3.1.0 | TF8000 | TC3 HVAC V1.0.0.0 |