List of facade elements

The data of all windows (facade elements) per facade are saved within the program in a field of structure elements of the type ST_BA_FcdElem.

The management function block FB_BA_FcdElemEntry and the shading correction FB_BA_ShdCorr read and write to this list (the latter sets the shading information); they access this field as input/output variables.

It is therefore advisable to declare this list globally:

VAR_GLOBAL
     aFcdElem : ARRAY[1..BA_Param.nSunPrt_MaxRowFcd, 1..BA_Param.nSunPrt_MaxColumnFcd] OF ST_BA_FcdElem;
END_VAR

The variables nSunPrt_MaxColumnFcd and nSunPrt_MaxRowFcd define the upper limit of the available elements and are declared as global constants within the program library:

VAR_GLOBAL CONSTANT
     nSunPrt_MaxRowFcd     : UINT := 10;
     nSunPrt_MaxColumnFcd  : UINT := 20;
END_VAR