FB_BA_AC_PreHtrTSuACtrl
The template represents the supply air temperature control of a preheater in a ventilation system. The supply air controller Ctrl is the core of the template. It is integrated into a supply air temperature control sequence.
The sequence controller is enabled using the input variable bEn and the variable stSeqLink.bEnSeqLink of the data and command structure stSeqLink.
In dehumidification mode bDehumf, the sequence controller Ctrl is disabled and thus removed from the sequence control.
The sequence controllers are enabled for sequence control via the data and command structure stSeqLink. This is indicated by the variable bSeqActv.
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
bEn : BOOL;
fSpTSuA : REAL;
fTSuA : REAL;
bSync : BOOL;
fSync : REAL;
bDehumf : BOOL;
bResetDehumf : BOOL;
END_VAR
VAR_OUTPUT
fY : REAL;
bIsActive : BOOL;
bSeqActv : BOOL;
END_VAR
VAR_IN_OUT
stSeqLink : ST_BA_SeqLink;
END_VAR
VAR_INPUT CONSTANT
Ctrl : FB_BA_SeqCtrl;
END_VAR
VAR
srDehumf : SR;
ftrigDeHum : F_TRIG;
rtrigSync : R_TRIG;
PrioSwiSync : FB_BA_PrioSwi_R04;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
bEn | BOOL | Enable the sequence controller Ctrl. |
fSpTSuA | REAL | Setpoint of the supply air temperature. |
fTSuA | REAL | Measured value of the supply air temperature. |
bSync | BOOL | Pulse for synchronization of the sequence controller Ctrl. |
fSync | REAL | Value for the synchronization of the sequence controller Ctrl. |
bDehumf | BOOL | Input to set the dehumidification mode on the RS flip-flop srDehumf. |
bResetDehumf | BOOL | Input to reset the dehumidification mode on the RS flip-flop srDehumf. |
Outputs
Name | Type | Description |
---|---|---|
fY | REAL | Control value output control valve. |
bIsActive | BOOL | The sequence controller is the active one in the sequence control. |
bSeqActv | BOOL | The sequence controller is implemented in the control sequence. |
Inputs/outputs
Name | Type | Description |
---|---|---|
stSeqLink |
The data and command structure stSeqLink is the link between the supply air temperature sequence controller Ctrl and the supply air temperature sequence control TSeqLink of an air conditioning system. |
Inputs CONSTANT
Name | Type | Description |
---|---|---|
Ctrl | The supply air temperature sequence controller Ctrl is the core of this template. It is responsible for the supply air temperature control of the preheater. The sequence controller is also part of the supply air temperature sequence control of an air conditioning system. The data exchange within this sequence control takes place via the data and command structure stSeqLink. The global variable E_BA_AC_SeqNumber_T.ePreHeater gives the sequence controller its sequence number within the temperature sequence control. |
Variables
Name | Type | Description |
---|---|---|
srDehumf |
SR |
Setting the RS flip-flop srDehumf indicates that dehumidification mode is active within the air conditioning system. The sequence controller Ctrl is no longer enabled. The RS flip-flop srDehumf is reset via the input bResetDehumf. |
ftrigDeHum |
F_TRIG |
A falling edge at input CLK of the function block ftrigDeHum synchronizes the sequence controller Ctrl to the value 0. The falling edge is triggered by resetting the dehumidification mode on the RS flip-flop srDehumf. |
rtrigSync |
R_TRIG |
On a rising edge at input CLK of the function block rtrigSync, the sequence controller Ctrl is synchronized to the value of fSync. |
PrioSwiSync |
The priority switch prioritizes the synchronization of the sequence controller Ctrl |
Requirements
Development environment | Necessary function |
---|---|
TwinCAT from v3.1.4024.35 | TF8040 | TwinCAT Building Automation from V5.0.0.0 |