BAC_AO_01
Functional description
The template determines the current control value from several, prioritised set values (priority matrix, template inputs) and transfers the control value to a Bus Terminal (see IO linking).
In addition, the manual intervention is logged via a digital input LocSwi.
Interface
Block diagram
VAR_INPUT
bEnSfty : BOOL;
rValSfty : REAL;
bEnDst : BOOL;
rValDst : REAL;
bEnLoc : BOOL;
rValLoc : REAL;
bEnPgm : BOOL;
rValPgm : REAL;
bEnSfty: Safety priority enable
rValSfty: Analog value safety priority
bEnDst: Enable fault priority.
rValDst: Analog value fault priority.
bEnLoc: Enable priority manual intervention
rValLoc: Analog value priority manual intervention
bEnPgm: Enable program priority
rValPgm: Analog value program priority
VAR_OUTPUT
rPrVal : REAL;
udiActvPrio : UDINT;
bStaOverrd : BOOL;
rPrVal: current value of the analog output object.
udiActvPrio: display of the current priority of the AO object
bStaOverrd: indicates that the AO 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 | ||
---|---|---|---|---|---|
AO |
| AO object for outputting the control value | |||
Priority: | Enable | Value | |||
PRIO_SAFETY (1) | Input bEnSfty | Input rValSfty | |||
PRIO_DISTURBANCE (3) | Input bEnDst | Input rValDst | |||
PRIO_LOCAL (8) | Input bEnLoc | Input rValLoc | |||
PRIO_PROGRAM (15) | Input bEnPgm | Input rValPgm | |||
LocSwi |
| Digital input object for displaying the switch for the local override of the control value for the AO object | |||
TLog |
| Trend logging of the control value for the AO object |
IO linking
Variables for linking with the terminals
Parameter | Type | optional | Process image |
|
---|---|---|---|---|
BI_LocalSwitch | BOOL |
| Input | Digital input - switch manual - message - manual/auto |
AO_PositioningCommand | INT |
| Output | Analog output - control command |
Version history
Version number | Comments |
---|---|
1.0.1 | First release |