BAC_AI_WthT_01

Functional description

The template maps the weather temperature. It logs the analog input value from a Bus Terminal (see I/O linking) and converts it to a real process value. This value is then written to the global variable g_WthT_rPrVal.
In addition, the status flag Fault of the AI object is evaluated and detected and processed by the alarm function block AlmAI.

Interface

BAC_AI_WthT_01 1:

Block diagram

BAC_AI_WthT_01 2:

VAR CONSTANT

PLT_NUM    : BYTE := 0;

PLT_NUM: all alarms and events of all plant components within a controller are included in a global alarm and event list. The assignment of events and alarms to a plant is defined by the assignment of a PLT_NUM plant number.
The recording and processing of an alarm from an aggregate or a device takes place within the templates by means of the alarm function block FB_BA_Alarm.
The evaluation of the alarms of a plant, e.g. for the generation of a collective message or for plant shutdown in case of relevant faults, takes place within the template BAC_PltAlm_01 by means of the function block FB_BA_AlarmPlt.
The evaluation of different plant events within the templates of a plant, takes place within the template BAC_PltComnMsg_01 by means of the function block FB_BA_ComnMsg.

Important! The assignment and evaluation of the alarms and events of a plant can only be done correctly if all templates of a plant have the same plant number!

The plant number can be assigned in the Project Builder in the parameter menu for the templates or via a column in the Excel import.

Program description

Instance

Type

optional

Task

AI

FB_BACnetAI1203

 

Analog input object for displaying the measured outside temperature

AlmAI

FB_BA_Alarm

 

Logging and further processing of the status flag Fault of the measured value outside temperature
Actions to be taken after the input Fault status flag was triggered can be parameterized in the template at function block AlmAI.

TLog

FB_BACnetTLog1201

 

Trend logging of the measured value of the AI object

IO linking

In the XML description associated with the template, variables with the ID Input or Output are declared in the Parameter section. These parameters can be linked with the process image of the input and output level in the PLC in the Project Builder or via the Excel import interface.

Parameter

Type

Instance

Type

Process image

 

AI_Weather_Temperature_State_Terminal

USINT

AI

FB_BACnetAI1203

Input

Analog input - weather temperature - status Bus Terminal

AI_Weather_Temperature_measured_value

INT

AI

FB_BACnetAI1203

Input

Analog input - weather temperature - measured value

Version history

Version number

Comments

1.0.1

First release