Site
The site GVL is a list of global variables which are required system-wide by all automation stations of a GA network. The data is used to control and regulate the plant and room automation.
The distribution of the data within the GA network is organized by means of the templates FB_BA_AdsComClient and FB_BA_AdsComServer.
Regardless of whether it is the server or a client of the data within the GA network, all templates that create or read data always read or write to the GVL site.
Thus, the same GVL site is located in each automation station.
In the clients, e.g. of a floor controller for room automation, the data within the template FB_BA_AdsComClient is read from the server via ADS and copied to the GVL. All room automation templates then access this data from the GVL site.
In the IPC, which provides the data within the GA network, the template FB_BA_AdsComServer is called.
The system topology of the TF8040 templates provides that this data is generated by an IPC within the building and distributed with the function blocks FB_BA_RawPublisher and FB_BA_RawSubscriber.
Illustration
VAR_GLOBAL
Self_NetId : T_BA_MedString := '127.0.0.1.1.1';
ACE01_NetId : T_BA_MedString := Self_NetId;
ACE02_NetId : T_BA_MedString := Self_NetId;
ACE03_NetId : T_BA_MedString := Self_NetId;
ACE04_NetId : T_BA_MedString := Self_NetId;
ACE05_NetId : T_BA_MedString := Self_NetId;
GeneralSettings_Subject : T_BA_MedString := 'GeneralSettings';
GeneralSettings_NetId : T_BA_MedString := Self_NetId;
WeatherStation_Subject : T_BA_MedString := 'WeatherStation';
WeatherStation_NetId : T_BA_MedString := Self_NetId;
FacadeNorth_NetId : T_BA_MedString := ACE01_NetId;
FacadeNorth_Subject : T_BA_MedString := 'FcdNorth.FacadeSunBlind';
FacadeEast_NetId : T_BA_MedString := ACE01_NetId;
FacadeEast_Subject : T_BA_MedString := 'FcdEast.FacadeSunBlind';
FacadeSouth_NetId : T_BA_MedString := ACE01_NetId;
FacadeSouth_Subject : T_BA_MedString := 'FcdSouth.FacadeSunBlind';
FacadeWest_NetId : T_BA_MedString := ACE01_NetId;
FacadeWest_Subject : T_BA_MedString := 'FcdWest.FacadeSunBlind';
Building_NetId : T_BA_MedString := ACE01_NetId;
BuildingAlarms_Subject : T_BA_MedString := 'BuildingAlarms';
BuildingMode_Subject : T_BA_MedString := 'BuildingMode';
BuildingEnergyLevel_Subject : T_BA_MedString := 'BuildingEnergyLevel';
BuildingSpRmT_Subject : T_BA_MedString := 'BuildingSpRmT';
BuildingSunProtection_Subject : T_BA_MedString := 'BuildingSunProtection';
stGeneralSettings : ST_BA_GeneralSettings; // published by FB_BA_Settings
bGeneralSettings_Error : BOOL;
eBuildingEnergyLevel : E_BA_EnergyLvlEx; // published by FB_BA_BuildingEnergyLevel
bBuildingEnergyLevel_Error : BOOL;
eBuildingMode : E_BA_BuildingMode; // published by FB_BA_BuildingMode
bBuildingMode_Error : BOOL;
stBuildingSunBlind : ST_BA_BuildingSunBlind; // published by FB_BA_BuildingSunprotection
bBuildingSunBlind_Error : BOOL;
stBuildingAlarms : ST_BA_BuildingAlarms; // published by FB_BA_BuildingAlarms
bBuildingAlarms_Error : BOOL;
stWeatherStation : ST_BA_WeatherStation; // published by FB_BA_WeatherStation_xxx
bWeatherStation_Error : BOOL;
stFacadeNorthSunBlind : ST_BA_Facade; // published by FB_BA_Facade
bFacadeNorthSunBlind_Error : BOOL;
stFacadeEastSunBlind : ST_BA_Facade; // published by FB_BA_Facade
bFacadeEastSunBlind_Error : BOOL;
stFacadeSouthSunBlind : ST_BA_Facade; // published by FB_BA_Facade
bFacadeSouthSunBlind_Error : BOOL;
stFacadeWestSunBlind : ST_BA_Facade; // published by FB_BA_Facade
bFacadeWestSunBlind_Error : BOOL;
stBuildingSpRmT : ST_BA_SpRmT; // Published by FB_BA_BuildingSpRmT
bBuildingSpRmT_Error : BOOL;
END_VAR