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.
Syntax
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;
stWeatherStation : ST_BA_WeatherStation; // published by FB_BA_WeatherStation_xxx
bWeatherStation_Error : BOOL;
stBuildingAlarms : ST_BA_BuildingAlarms; // published by FB_BA_BuildingAlarms
bBuildingAlarms_Error : BOOL;
eBuildingMode : E_BA_BuildingMode; // published by FB_BA_BuildingMode
eBuildingEnergyLevel : E_BA_EnergyLvlEx; // published by FB_BA_BuildingEnergyLevel
bBuildingEnergyLevel_Error : BOOL; bBuildingMode_Error : BOOL;
stBuildingSpRmT : ST_BA_SpRmT; // Published by FB_BA_BuildingSpRmT
bBuildingSpRmT_Error : BOOL;
stBuildingSunBlind : ST_BA_BuildingSunBlind; // published by FB_BA_BuildingSunprotection
bBuildingSunBlind_Error : BOOL;
stBuildingLighting : ST_BA_BuildingLighting; // provided by FB_BA_BuildingLighting
bBuildingLighting_Error : BOOL;
eHeatCoolMedium : E_BA_Medium; // actual medium running in case of a two-pipe-system
bHeatCoolMedium_Error : BOOL;
arrFacade : ARRAY [1..BA2_Param.nMaxNumberOfFacades] OF ST_BA_Facade; // provided by Array [1..BA2_Param.nMaxNumberOffFacades Of FB_BA_Facade]
arrFacade_Error : ARRAY [1..BA2_Param.nMaxNumberOfFacades] OF BOOL;
arrAreaLighting : ARRAY [1..BA2_Param.nMaxNumberOfAreas] OF ST_BA_Lighting; // provided by Array [1..BA2_Param.nMaxNumberOffFacades Of FB_BA_Lighting]
END_VARName | Type | Description |
|---|---|---|
Self_NetId | T_BA_MedString | NetId of your own controller, pre-set to the Net-Id that by definition points to your own controller. |
ACE01_NetId…ACE05_NetId | T_BA_MedString | NetId automation station 1 to 5, pre-set to the Net-Id Self_NetId. |
GeneralSettings_Subject | T_BA_MedString | Instance name of the send block (publisher) that sends the data stGeneralSettings, see below. Pre-set to GeneralSettings. |
GeneralSettings_NetId | T_BA_MedString | NetId of the controller from which the data stGeneralSettings, see below, is sent. Pre-set to the NetId of automation station 1, ACE01_NetId. |
WeatherStation_Subject | T_BA_MedString | Instance name of the send block (publisher) that sends the stWeatherStation data, see below. Pre-set to WeatherStation. |
WeatherStation_NetId | T_BA_MedString | NetId of the controller from which the stWeatherStation data, see below, is sent. Pre-set to the NetId of automation station 1, ACE01_NetId. |
FacadeNorth_Subject | T_BA_MedString | Instance name of the send block (publisher) that sends the North facade data arrFacade[1], see below. Pre-set to arrFacadeData[1]. |
FacadeNorth_NetId | T_BA_MedString | NetId of the controller from which the North facade data is sent. Pre-set to the NetId of automation station 1, ACE01_NetId. |
FacadeEast_Subject | T_BA_MedString | Instance name of the sending block (publisher) that sends the East facade data arrFacade[2], see below. Pre-set to arrFacadeData[2]. |
FacadeEast_NetId | T_BA_MedString | NetId of the controller from which the East facade data is sent. Pre-set to the NetId of automation station 1, ACE01_NetId. |
FacadeSouth_Subject | T_BA_MedString | Instance name of the send block (publisher) that sends the South facade data arrFacade[3], see below. Pre-set to arrFacadeData[3]. |
FacadeSouth_NetId | T_BA_MedString | NetId of the controller from which the South facade data is sent. Pre-set to the NetId of automation station 1, ACE01_NetId. |
FacadeWest_Subject | T_BA_MedString | Instance name of the send block (publisher) that sends the West facade data arrFacade[4], see below. Pre-set to arrFacadeData[4]. |
FacadeWest_NetId | T_BA_MedString | NetId of the controller from which the West facade data is sent. Pre-set to the NetId of automation station 1, ACE01_NetId. |
Building_NetId | T_BA_MedString | NetId of the building controller. Pre-set to the NetId of automation station 1, ACE01_NetId. |
BuildingAlarms_Subject | T_BA_MedString | Instance name of the send block (publisher) that sends the building alarm data, see below. Pre-set to BuildingAlarms. |
BuildingMode_Subject | T_BA_MedString | Instance name of the send block (publisher) that sends the building mode, see below. Pre-set to BuildingMode. |
BuildingEnergyLevel_Subject | T_BA_MedString | Instance name of the send block (publisher) that sends the building energy level, see below. Pre-set to BuildingEnergyLevel. |
BuildingSpRmT_Subject | T_BA_MedString | Instance name of the send block (publisher) that sends the building temperature setpoints, see below. Pre-set to BuildingSpRmT. |
BuildingSunBlind_Subject | T_BA_MedString | Instance name of the send block (publisher) that sends the building shading data, see below. Pre-set to BuildingSunBlind. |
BuildingLighting_Subject | T_BA_MedString | Instance name of the send block (publisher) that sends the building lighting data, see below. Pre-set to BuildingLighting. |
stGeneralSettings | Global structure of general weather parameters. These parameters are prepared in the FB_BA_WeatherData template. | |
bGeneralSettings_Error | BOOL | Error during data transmission. |
stWeatherStation | Global structure of the weather station data. These parameters are prepared in the template FB_BA_WeatherStation_Draft/FB_BA_WeatherStation_Thies. | |
bWeatherStation_Error | BOOL | Error during data transmission. |
stBuildingAlarms | Global structure of building-wide alarms. These parameters are prepared in the FB_BA_BurglarAlarmSystem and FB_BA_FireAlarmSystem template. | |
bBuildingAlarms_Error | BOOL | Error during data transmission. |
eBuildingMode | Global enumeration of the building operation mode. This parameter is prepared in the FB_BA_BuildingMode template. | |
bBuildingMode_Error | BOOL | Error during data transmission. |
eBuildingEnergyLevel | Global enumeration of the building energy level. This parameter is prepared in the FB_BA_BuildingEnergyLevel template. | |
bBuildingEnergyLevel_Error | BOOL | Error during data transmission. |
stBuildingSpRmT | Global structure of the temperature setpoints. These parameters are prepared in the FB_BA_BuildingSpRmT template. | |
bBuildingSpRmT_Error | BOOL | Error during data transmission. |
stBuildingSunBlind | Global structure of building-wide shading data. These parameters are prepared in the FB_BA_BuildingSunprotection template. | |
bBuildingSunBlind_Error | BOOL | Error during data transmission. |
stBuildingLighting | Global structure of building-wide lighting data. These parameters are prepared in the FB_BA_BuildingLighting template. | |
bBuildingLighting_Error | BOOL | Error during data transmission. |
eHeatCoolMedium | Currently valid medium, should only a two-lines system prevail. | |
bHeatCoolMedium_Error | BOOL | Error during data transmission. |
arrFacade | ARRAY [1..BA2_Param.nMaxNumberOfFacades] OF ST_BA_Facade | Global structures of each facade. This is prepared for each facade in the corresponding instance of the FB_BA_Facade template. |
arrFacade_Error | ARRAY [1..BA2_Param.nMaxNumberOfFacades] OF BOOL | The respective error in the transmission of the data. |
arrAreaLighting | ARRAY [1..BA2_Param.nMaxNumberOfAreas] OF ST_BA_Lighting | Global structures of lighting data for a building area. This is processed for each floor, see FB_BA_FloorLighting. This data is not usually transferred across controllers. |