FB_BA_AdsComClient_DGWS

FB_BA_AdsComClient_DGWS 1:

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.

FB_BA_AdsComClient_DGWS 2:

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

Block diagram

FB_BA_AdsComClient_DGWS 3:

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

FB_BA_AdsComClient_DGWS 4: VAR_INPUT CONSTANT

Name

Type

Description

BuildingSunBlind

FB_BA_RawSubscriber

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

BuildingSunBlindError

FB_BA_BV_ErrorState

Binary object indicating communication failure of the subscriber BuildingSunBlind.

arrFacade

FB_BA_FacadeSubscr

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

FB_BA_BV_ErrorState

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