List of facade elements

The data of all windows (facade elements) per facade are saved within the program in a field of structural 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..gBA_cMaxColumnFcd, 1..gBA_cMaxRowFcd] OF ST_BA_FcdElem;
END_VAR


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

VAR_GLOBAL CONSTANT
     gBA_cMaxRowFcd    : INT :=10;
     gBA_cMaxColumnFcd : INT :=20;
END_VAR