FB_BA_AdsComClient_Room

FB_BA_AdsComClient_Room 1:

The template reads global data that is assigned to the "Room automation" trade from another controller, which makes this data available with the FB_BA_AdsComServer_Room counter-block. The information read is copied to the global variable list Site.

FB_BA_AdsComClient_Room 2:

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

Block diagram

FB_BA_AdsComClient_Room 3:

Syntax

FUNCTION_BLOCK FB_BA_AdsComClient EXTENDS FB_BA_View
VAR_INPUT CONSTANT
  BuildingEnergyLevel         : FB_BA_RawSubscriber;
  BuildingEnergyLevelError    : FB_BA_BV_ErrorState;
  BuildingSpRmT               : FB_BA_RawSubscriber;
  BuildingSpRmTError          : FB_BA_BV_ErrorState;
  BuildingLighting            : FB_BA_RawSubscriber;
  BuildingLightingError       : FB_BA_BV_ErrorState;
END_VAR

FB_BA_AdsComClient_Room 4: VAR_INPUT CONSTANT

Name

Type

Description

BuildingEnergyLevel

FB_BA_RawSubscriber

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

BuildingEnergyLevelError

FB_BA_BV_ErrorState

Binary object indicating communication failure of the subscriber BuildingEnergyLevel.

BuildingSpRmT

FB_BA_RawSubscriber

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

BuildingSpRmTError

FB_BA_BV_ErrorState

Binary object indicating communication failure of the subscriber BuildingSpRmT.

BuildingLighting

FB_BA_RawSubscriber

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

BuildingLightingError

FB_BA_BV_ErrorState

Binary object indicating communication failure of the subscriber BuildingLighting.

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.56

TF8040 | TwinCAT Building Automation from V5.8.0.0