FB_BA_BuildingAutomation

FB_BA_BuildingAutomation 1:

The template is a function block for calling all sub-templates that perform general tasks of the building automation systems.

FB_BA_BuildingAutomation 2:

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

Block diagram

FB_BA_BuildingAutomation 3:

Syntax

FUNCTION_BLOCK FB_BA_BuildingAutomation EXTENDS FB_BA_View
VAR_INPUT CONSTANT
  BuildingGlobal    : FB_BA_EventsAndSettings;
  Weatherstation    : FB_BA_WeatherStation_Draft;
  AdsComServer      : FB_BA_AdsComServer;
END_VAR

FB_BA_BuildingAutomation 4: VAR_INPUT CONSTANT

Name

Type

Description

BuildingGlobal

FB_BA_EventsAndSettings

The template includes weather station data, weather parameters, building modes, and building-specific safety criteria for a building automation project.

Weatherstation

FB_BA_WeatherStation_Draft

The template is used to collect and display data from a weather station.

AdsComServer

FB_BA_AdsComServer

The template accesses locally determined data and makes them available to a TwinCAT network. If the automation station to be programmed is not a data server within the GA network but a data client, the template FB_BA_AdsComClient must be instantiated instead of the template FB_BA_AdsComServer.

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.35

TF8040 | TwinCAT Building Automation from V5.0.0.0