FB_HVACScheduler28TCHandling

FB_HVACScheduler28TCHandling 1:

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

VAR_INPUT

bGoChannelUp       : BOOL;
bGoChannelDown     : BOOL;

bGoChannelUp: With a positive edge the focus is placed on the next higher index in the data array arr28TimeChannel.

bGoChannelDown: With a positive edge the focus is placed on 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: Array of the data sets (28) of the timer FB_HVACScheduler28CH.

stCurrChannel: Contains the contents of the data set from the array arr28TimeChannel, which is selected via the variable iCurrChannelNumber (see ST_HVACTimeChannel).

iCurrChannelNumber: Selection index for the array arr28TimeChannel.

iNumOfChannelsToUse: Maximum permissible index for iCurrChannelNumber, if not all channels are used.

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