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
     arrFcdElem : ARRAY[1..uiMaxRowFcd, 1..uiMaxColumnFcd] OF ST_BA_FcdElem;
END_VAR


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

VAR_GLOBAL CONSTANT
     uiMaxRowFcd    : UINT :=10;
     uiMaxColumnFcd : UINT :=20;
END_VAR