FB_BA_OpMod1St
The template maps a single-stage plant selector switch with the operating modes Auto, Manual Off and Manual On.
A plant can be switched on or off via the input bValPgm in the operating mode Auto.
The initialization of the template takes place within the method FB_Init. |
Block diagram
Syntax
FUNCTION_BLOCK FB_BA_OpMod1St EXTENDS FB_BA_View
VAR_INPUT
bValPgm : BOOL;
END_VAR
VAR_INPUT CONSTANT
OpModMan : FB_BA_MV_Op;
OpModPr : FB_BA_MV_Op;
END_VAR
VAR_OUTPUT
eOpMod : E_BA_OnOff;
bCmd : BOOL;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
bValPgm | BOOL | A plant can be switched on or off via the input in the operating mode "Auto". |
Inputs CONSTANT
Name | Type | Description |
---|---|---|
OpModMan | The Multistate-Value object represents an operating mode switch with the operating modes "Auto", "Manual Off" and "Manual On". | |
OpModPr | The Multistate-Value object indicates the state of the currently valid plant operating mode. |
Outputs
Name | Type | Description |
---|---|---|
eOpMod | Displays the state of the currently valid plant operating mode. | |
bCmd | BOOL | The output shows the state of the currently valid plant operating mode. |
Requirements
Development environment | Necessary function |
---|---|
TwinCAT from v3.1.4024.35 | TF8040 | TwinCAT Building Automation from V5.0.0.0 |