FB_BA_AdsComClient_Basic
The template reads global data assigned to the "General building automation" trade from another controller, which makes this data available with the counter-block FB_BA_AdsComServer_Basic. The information read is copied to the global variable list Site.
The initialization of the template takes place within the method FB_Init. |
Block diagram
Syntax
FUNCTION_BLOCK FB_BA_AdsComClient EXTENDS FB_BA_View
VAR_INPUT CONSTANT
WeatherStation : FB_BA_RawSubscriber;
WeatherStationError : FB_BA_BV_ErrorState;
GeneralSettings : FB_BA_RawSubscriber;
GeneralSettingsError : FB_BA_BV_ErrorState;
BuildingAlarms : FB_BA_RawSubscriber;
BuildingAlarmsError : FB_BA_BV_ErrorState;
END_VAR
VAR_INPUT CONSTANT
Name | Type | Description |
---|---|---|
WeatherStation | The subscriber accesses the TwinCAT network structure WeatherStation and saves the data in the created structure stWeatherStation of the GVL Site. | |
WeatherStationError | Binary object indicating communication failure of the subscriber WeatherStation. | |
GeneralSettings | The subscriber accesses the TwinCAT network structure GeneralSettings and saves the data in the created structure stGeneralSettings of the GVL Site. | |
GeneralSettingsError | Binary object indicating communication failure of the subscriber GeneralSettings. | |
BuildingAlarms | The subscriber accesses the TwinCAT network structure BuildingAlarms and saves the data in the created structure stBuildingAlarms of the GVL Site. | |
BuildingAlarmsError | Binary object indicating communication failure of the subscriber BuildingAlarms. |
Requirements
Development environment | Necessary function |
---|---|
TwinCAT from v3.1.4024.56 | TF8040 | TwinCAT Building Automation from V5.8.0.0 |