BAC_BO_01

Functional description

The template determines the current switch value from several prioritized setpoints (priority matrix, inputs of the template) and transmits the switch value to a Bus Terminal (see I/O link).
On the one hand, the template records the manual intervention by means of a digital input LocSwi and the feedback of the actuator via the two inputs bEnFdb/bFdb of the template.
The template is used to output and monitor switching commands or pulses (e.g. 1-stage motors/pumps, dampers).

Interface

BAC_BO_01 1:

Block diagram

BAC_BO_01 2:

VAR_INPUT

bEnSfty    : BOOL;
bValSfty   : BOOL;
bEnDst     : BOOL;
bValDst    : BOOL;
bEnLoc     : BOOL;
bValLoc    : BOOL;
bEnPgm     : BOOL;
bValPgm    : BOOL;

bEnSfty: Safety priority enable

bValSfty: Digital value safety priority

bEnDst: Enable fault priority.

bValDst: Digital value fault priority.

bEnLoc: Enable priority manual intervention

bValLoc: Digital value priority manual intervention

bEnPgm: Enable program priority

bValPgm: Digital value program priority

VAR_OUTPUT

bPrVal        : BOOL;
udiActvPrio   : UDINT;
bStaOverrd    : BOOL;

bPrVal: current value of the binary output object.

udiActvPrio: display of the current priority of the BO object

bStaOverrd: indicates that the BO object is overridden by a local mechanism, see LocSwi

VAR CONSTANT

PLT_NUM    : BYTE := 1;

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

BO

FB_BACnetBO1203

 

BO object for output of the switching value

Priority:

Enable

Value

PRIO_SAFETY (1)

Input bEnSfty

Input bValSfty

PRIO_DISTURBANCE (3)

Input bEnDst

Input bValDst

PRIO_LOCAL (8)

Input bEnLoc

Input bValLoc

PRIO_PROGRAM (15)

Input bEnPgm

Input bValPgm

LocSwi

FB_BACnetBI1203

 

Digital input object for displaying the switch for the local override of the switch value for the BO 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

LocSwi_bVal

USINT

LocSwi

FB_BACnetBI1203

Input

BO_bRawIoPrVal

BOOL

BO

FB_BACnetBO1203

Output

IO linking

Variables for linking with the terminals

Parameter

Type

optional

Process image

 

BI_LocalSwitch

BOOL

 

Input

Digital input - switch manual - message - manual/auto

BO_SwitchingCommand

BOOL

 

Output

Digital output - switching command - on/off

Version history

Version number

Comments

1.0.1

First release