FB_BA_AC_OpMod1St
The template represents the operation mode of an air conditioning system.
The priority switch PrioSwiOpMod prioritizes various events or commands such as fire alarms, requests from the time schedule or requests from the plant selector switch and writes a resulting operation mode or system status to the variable eOpMode.
The initialization of the template takes place within the method FB_Init. |
Block diagram
Principle diagram
The diagram shows the integration of the template within a plant.
Syntax
FUNCTION_BLOCK FB_BA_AC_OpMod1St EXTENDS FB_BA_View
VAR_INPUT
bSmExtt : BOOL;
bFireDetc : BOOL;
bForcVent : BOOL;
bEmgOff : BOOL;
bFrst : BOOL;
bCentSwiOff : BOOL;
bAlmShutOff : BOOL;
bNgtCol : BOOL;
bColDwnPrtc : BOOL;
bOvrHtgPrtc : BOOL;
END_VAR
VAR_OUTPUT
eOpMode : E_BA_AC_OpMod01;
END_VAR
VAR_INPUT CONSTANT
OpModMan : FB_BA_MV_Op;
Sched : FB_BA_SchedM;
OpModPr : FB_BA_MV_Op;
END_VAR
VAR
PrioSwiOpMod : FB_BA_PrioSwi_UDI24;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
bSmExtt | BOOL | Smoke extraction of the plant requested |
bFireDetc | BOOL | Fire alarm message from fire alarm center |
bForceVent | BOOL | Forced ventilation request |
bEmgOff | BOOL | Emergency stop |
bFrst | BOOL | Frost protection program active |
bCentSwiOff | BOOL | Central switch-off |
bAlmShutOff | BOOL | Collective error message - shut down plant |
bNgtCol | BOOL | Request from the summer night cooling program (see FB_BA_AC_SumNgtCol) |
bColDwnPrtc | BOOL | Request program cooling protection |
bOvrHtgPrtc | BOOL | Request program overheating protection |
Inputs CONSTANT
Name | Type | Description |
---|---|---|
OpModMan | The Multistate-Value object represents an operating modes switch with the operating modes Auto, Manual-Off and Manual-On. | |
Sched | Schedule object (automatic) for the "BuildingEnergyLevel". | |
OpModPr | The Multistate-Value object indicates the state of the currently valid plant operation mode. |
Variables
Name | Type | Description |
---|---|---|
PrioSwiOpMod | The priority switch determines the current operation mode eOpMode from the pending events or commands of the plant. |
Requirements
Development environment | Necessary function |
---|---|
TwinCAT from v3.1.4024.35 | TF8040 | TwinCAT Building Automation from V5.0.0.0 |