FB_BA_ActuatorAnalogTLog

The FB_BA_ActuatorAnalogTLog template is used to control analog aggregates. It essentially consists of an AO object for controlling an aggregate and the function block PlantLock, which collects all safety-relevant faults.
The control value of the AO object is recorded by a trend object.
Each template is available in 2 different configurations regarding the connection to the I/O process level, see I/O mapping. This documentation refers to the RAW variant.
![]() | The initialization of the template takes place within the method FB_Init. |
Block diagram

Syntax
FUNCTION_BLOCK FB_BA_ActuatorAnalog EXTENDS FB_BA_View
VAR_INPUT
stCmd : ST_BA_Analog;
END_VAR
VAR_OUTPUT
fMdlt : REAL;
bDst : BOOL;
eActivePrio : E_BA_Priority;
END_VAR
VAR_INPUT CONSTANT
Mdlt : FB_BA_AO_Raw;
TLogMdlt : FB_BA_Trend;
PlantLock : FB_BA_PlantLock;
END_VAR
VAR
bPrioSfty : BOOL;
bPrioCrit : BOOL;
END_VAR
Inputs
Name | Type | Description |
|---|---|---|
stCmd | The enables and switching values are transmitted to the template via the command structure stCmd. The command with the highest priority is output at the analog output object Mdlt. |
Outputs
Name | Type | Description |
|---|---|---|
fMdlt | REAL | Current value of the analog output object. |
bDst | BOOL | The variable is an evaluation of the lock priorities "Safety" and "Critical" of the project structure and indicates a triggered event. |
eActivePrio | Display of the active priority. |
Inputs CONSTANT
Name | Type | Description |
|---|---|---|
Mdlt | The analog output object is used to output the command and transmit it to the I/O level. | |
TLogMdlt | Trend logging of the control value of the Mdlt object. | |
PlantLock | PlantLock collects all safety-relevant faults at this level of the project structure and triggers commands in the template accordingly. |
