FB_BA_AdsComClient_DGWS

The template reads global data that is assigned to the "Doors, gates, windows, sun protection" trade from another controller that provides this data with the counter-block FB_BA_AdsComServer_DGWS. 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
BuildingSunBlind : FB_BA_RawSubscriber;
BuildingSunBlindError : FB_BA_BV_ErrorState;
arrFacade : ARRAY[1..BA2_Param.nMaxNumberOfFacades] OF FB_BA_FacadeSubscr;
arrFacadeError : ARRAY[1..BA2_Param.nMaxNumberOfFacades] OF FB_BA_BV_ErrorState;
END_VAR
VAR_INPUT CONSTANT
Name | Type | Description |
---|---|---|
BuildingSunBlind | The subscriber accesses the TwinCAT network structure BuildingSunBlind and saves the data in the created structure stBuildingSunBlind of the GVL Site. | |
BuildingSunBlindError | Binary object indicating communication failure of the subscriber BuildingSunBlind. | |
arrFacade | These templates receive the facade data that has been defined or made available elsewhere via an FB_BA_Facade. In the global parameter list BA2_Param, 4 facades are predefined with nMaxNumberOfFacades, which are initialized here in FB_Init verbally to north, east, south and west. | |
arrFacadeError | Binary objects indicating communication failure of the facade subscriber. |
Requirements
Development environment | Necessary function |
---|---|
TwinCAT from v3.1.4024.56 | TF8040 | TwinCAT Building Automation from V5.8.0.0 |