FB_BA_Device
The template includes several basic functions.
The function block FB_BA_ProjectEx provides information about the project and offers information and diagnostic options. It triggers the persistent storage of data. A partial parameterization of the BACnet Device takes place via the function block FB_BA_ProjectEx.
The template FB_BA_TrendLogging contains various Trendlog objects.
The function block FB_BA_Parameter is used to parameterize global parameter lists of the library Tc3_XBA.
Within the TimeSettings folder there are two possibilities to integrate the BACnet system time or the local NT system time of the TwinCAT system.
The initialization of the template takes place within the method FB_Init. |
Block diagram
Syntax
FUNCTION_BLOCK FB_BA_Settings EXTENDS FB_BA_View
VAR_INPUT CONSTANT
Trend : FB_BA_TrendLogging;
Project : FB_BA_ProjectEx;
Parameter : FB_BA_Parameter;
END_VAR
VAR
tonDlyStartPLC : TON;
END_VAR
Inputs CONSTANT
Name | Type | Description |
---|---|---|
Trend | FB_BA_TrendLogging | Calling the Trendlog objects. |
Project | FB_BA_ProjectEx | The function block provides information about the project and offers information and diagnostic options. It also stores the persistent data. It has the input bWrtPrsOnPowerFail, which stores the persistent data in case of an edge and is intended for linking a UPS function block. Furthermore, it is used to parameterize the object name and the object description of the BACnet Device object (server). |
Parameter | Within the function block global parameter lists of the libraries Tc3_XBA, Tc3_BACnetRev14, Tc3_BA2_Common and Tc3_BA2 are parameterized. |
Variables
Name | Type | Description |
---|---|---|
tonDlyStartPLC | TON | The timing element sets the global variable bDlyStartPLC delayed after a PLC restart. |
Requirements
Development environment | Necessary function |
---|---|
TwinCAT from v3.1.4024.35 | TF8040 | TwinCAT Building Automation from V5.0.0.0 |