FB_BA_AdsComClient_Basic

FB_BA_AdsComClient_Basic 1:

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.

FB_BA_AdsComClient_Basic 2:

The initialization of the template takes place within the method FB_Init.

Block diagram

FB_BA_AdsComClient_Basic 3:

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

FB_BA_AdsComClient_Basic 4: VAR_INPUT CONSTANT

Name

Type

Description

WeatherStation

FB_BA_RawSubscriber

The subscriber accesses the TwinCAT network structure WeatherStation and saves the data in the created structure stWeatherStation of the GVL Site.

WeatherStationError

FB_BA_BV_ErrorState

Binary object indicating communication failure of the subscriber WeatherStation.

GeneralSettings

FB_BA_RawSubscriber

The subscriber accesses the TwinCAT network structure GeneralSettings and saves the data in the created structure stGeneralSettings of the GVL Site.

GeneralSettingsError

FB_BA_BV_ErrorState

Binary object indicating communication failure of the subscriber GeneralSettings.

BuildingAlarms

FB_BA_RawSubscriber

The subscriber accesses the TwinCAT network structure BuildingAlarms and saves the data in the created structure stBuildingAlarms of the GVL Site.

BuildingAlarmsError

FB_BA_BV_ErrorState

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