FB_BA_ActuatorMdlt
The template is used to control modulating aggregates. It essentially consists of an AO object for controlling an aggregate, the priority switch PrioSwiVal for determining the modulation command, the multiplexer MuxMdlt for determining the control value and the function block PlantLock, which collects all safety-related faults.
The initialization of the template takes place within the method FB_Init. |
Block diagram
Syntax
FUNCTION_BLOCK FB_BA_ActuatorMdlt EXTENDS FB_BA_View
VAR_INPUT
stCmd : ST_BA_Mdlt;
fValPgm : REAL;
END_VAR
VAR_OUTPUT
fMdlt : REAL;
bDst : BOOL;
eActivePrio : E_BA_Priority;
END_VAR
VAR_INPUT CONSTANT PERSISTENT
{attribute 'parameterCategory' := 'Behaviour'}
fMinModulation : REAL := 20;
{attribute 'parameterCategory' := 'Behaviour'}
fMaxModulation : REAL := 100;
END_VAR
VAR_INPUT CONSTANT
Mdlt : FB_BA_AO_Raw;
PlantLock : FB_BA_PlantLock;
END_VAR
VAR
bPrioSfty : BOOL;
bPrioCrit : BOOL;
PrioSwiVal : FB_BA_PrioSwi_UDI04;
MuxMdlt : FB_BA_MMUX_R04;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
stCmd | The enables and modulation commands are transmitted to the template via the command structure stCmd. The command with the highest priority determines the switching command at the binary output object Cmd and the control command at the analog output object Mdlt. | |
fValPgm | REAL | The control signal for modulation command E_BA_MdltCmd.eOn is transmitted to the template via the input variable fValPgm. |
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 PERSISTENT
Name | Type | Description |
---|---|---|
fMinModulation | REAL | Constant minimum value when modulation command E_BA_MdltCmd.eMin is pending. |
fMaxModulation | REAL | Constant maximum value when modulation command E_BA_MdltCmd.eMax is pending. |
Inputs CONSTANT
Name | Type | Description |
---|---|---|
Mdlt | Current value of the analog output object. | |
PlantLock | The function block PlantLock collects all safety-relevant faults at this level of the project structure and triggers switching commands in the template accordingly. |
Variables
Name | Type | Description |
---|---|---|
bPrioSfty | BOOL | The variable is an evaluation of the "Safety" lock priority of the project structure. |
bPrioCrit | BOOL | The variable is an evaluation of the "Critical" lock priority of the project structure. |
bPrioSwiVal | The priority switch PrioSwiVal uses the command structure stCmd to determine the modulation command for the multiplexers MuxCmd and MuxMdlt. | |
MuxMdlt | The multiplexer MuxMdlt determines the current control value from the modulation values fValPgm, fMinModulation and fMaxModulation and the modulation command of the priority switch PrioSwiVal. The result is sent to the analog output object Mdlt. |
Requirements
Development environment | Necessary function |
---|---|
TwinCAT from v3.1.4024.35 | TF8040 | TwinCAT Building Automation from V5.0.0.0 |