FB_BA_AdsComClient

FB_BA_AdsComClient 1:

The template reads global data, for example weather data and global parameters, from another controller in the GA network. It copies this data to the GVL site.

FB_BA_AdsComClient 2:

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

Block diagram

FB_BA_AdsComClient 3:

Syntax

FUNCTION_BLOCK FB_BA_AdsComClient EXTENDS FB_BA_View
VAR_INPUT CONSTANT
  WeatherStation          : FB_BA_RawSubscriber;
  WeatherStationError     : FB_BA_BV;

  GeneralSettings         : FB_BA_RawSubscriber;
  GeneralSettingsError    : FB_BA_BV;
END_VAR

FB_BA_AdsComClient 4: Inputs CONSTANT

Name

Type

Description

WeatherStation

FB_BA_RawSubscriber

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

WeatherStationError

FB_BA_BV

Binary object indicating communication failure of the subscriber WeatherStation.

GeneralSettings

FB_BA_RawSubscriber

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

GeneralSettingsError

FB_BA_BV

Binary object indicating communication failure of the subscriber GeneralSettings.

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.35

TF8040 | TwinCAT Building Automation from V5.0.0.0