List of shading elements
The shading elements per facade are stored within the program in a field of structural elements of the type ST_BARShadingObject.
The declaration is global, because the management function block FB_BARShadingObjectsEntry as well as the shading correction FB_BARShadingCorrection / FB_BARShadingCorrectionSouth access this field directly via input/output variable:
VAR_GLOBAL
arrShadingObject : ARRAY[1..iShadingObjects] OF ST_BARShadingObject;
END_VAR
The variable iShadingObjects thereby represents the upper limit of the available elements and is to be globally defined as a constant:
VAR_GLOBAL CONSTANT
iShadingObjects : INT := 20;
END_VAR