FB_BA_AdsComClient_Room

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.
![]() | 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
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
VAR_INPUT CONSTANT
Name | Type | Description |
---|---|---|
BuildingEnergyLevel | The subscriber accesses the TwinCAT network structure eBuildingEnergyLevel and saves the data in the created enumeration eBuildingEnergyLevel of the GVL Site. | |
BuildingEnergyLevelError | Binary object indicating communication failure of the subscriber BuildingEnergyLevel. | |
BuildingSpRmT | The subscriber accesses the TwinCAT network structure BuildingSpRmT and saves the data in the created structure stBuildingSpRmT of the GVL Site. | |
BuildingSpRmTError | Binary object indicating communication failure of the subscriber BuildingSpRmT. | |
BuildingLighting | The subscriber accesses the TwinCAT network structure BuildingLighting and saves the data in the created structure stBuildingLighting of the GVL Site. | |
BuildingLightingError | 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 |