BAC_AC_ErcT_PID_01
Functional description
The subtemplate BAC_AC_ErcT_PID_01 is an supply air temperature sequence controller for energy recovery.
The set value, actual value and control output are referenced via the BACnet value objects X, W and Y.
The PID sequence controller is enabled based on the plant operation mode udiOpMod and the global temperature communication structure g_stSeqLinkT[PLT_NUM]. This data and command structure is the link between the individual sequence controllers and the corresponding control function block FB_BA_SeqLink of a plant.
The BACnet BV object En is used to display the controller enable.
The limit value monitoring of PID controller is controlled by the function block EnEvtEn as a function of the plant startup process.
In dehumidification mode bDeHum = TRUE, the PID sequence controller is disabled.
Interface
Block diagram
Direction of action
The direction of action of the PID sequence controller is selected based on a comparison of the outside temperature with the exhaust air temperature.
If the outside temperature is lower than the outlet air temperature, the direction of action of the PID controller is indirect (heating mode)
If the outside temperature is higher than the outlet air temperature, the direction of action of the PID controller is direct (cooling mode)
VAR_INPUT
rX : REAL;
rW : REAL;
bDeHum : BOOL;
bSync : BOOL;
rFdb : REAL;
rExtAT : REAL;
udiPltStp : UDINT;
udiOpMod : UDINT;
rX: Measured value supply air temperature
rW: Set value of the supply air temperature
bDeHum: Dehumidification active, supply air temperature controller disabled. If dehumidification is active, energy recovery is disabled in heating mode. If the heat recovery unit recovers ‘coolth’ from the outlet air, it is switched to 100% in dehumidification mode.
bSync: Input for synchronisation of the controller
rFdb: Position feedback actuator
rExtAT: Measured value outlet air temperature
udiPltStp: Steps during startup of the air-conditioning plant. See also BAC_AC_StartT_01
udiOpMod: Plant operation mode. See also BAC_AC_OpMod_01
VAR_OUTPUT
rY : REAL;
bEn : BOOL;
bActn : BOOL;
rY: Control value output
bEn: Energy recovery control enabled
bActn: Direction of action of the supply air controller, required for the set value strategy; TRUE = direct = cooling; FALSE = reverse = heating
VAR CONSTANT
PLT_NUM : BYTE := 1;
PLT_NUM: all alarms and events of all plant components within a controller are included in a global alarm and event list. The assignment of events and alarms to a plant is defined by the assignment of a PLT_NUM plant number.
The recording and processing of an alarm from an aggregate or a device takes place within the templates by means of the alarm function block FB_BA_Alarm.
The evaluation of the alarms of a plant, e.g. for the generation of a collective message or for plant shutdown in case of relevant faults, takes place within the template BAC_PltAlm_01 by means of the function block FB_BA_AlarmPlt.
The evaluation of different plant events within the templates of a plant, takes place within the template BAC_PltComnMsg_01 by means of the function block FB_BA_ComnMsg.
Important! The assignment and evaluation of the alarms and events of a plant can only be done correctly if all templates of a plant have the same plant number!
Within a ventilation system with sequence controller the plant number indicates which field from the global data structure g_stSeqLinkT[PLT_NUM] is used as link between the individual sequence controllers and the corresponding control function blockFB_BA_SeqLink.
The plant number can be assigned in the Project Builder in the parameter menu for the templates or via a column in the Excel import.
Program description
Instance | Type | Task | |||
---|---|---|---|---|---|
X | The AV object is referenced to the actual value input of the BACnet loop object | ||||
W | The AV object is referenced to the setpoint input of the BACnet loop object | ||||
OpModPrio | The multiplexer defines the enable conditions of the sequence controller depending on the plant operation mode. | ||||
udiOpMod | Enable | Comment | |||
Manual on | TRUE | The plant is switched on manually via the plant selector switch | |||
On | TRUE | The plant runs in automatic mode via the timer program | |||
Overheating protection | TRUE | The plant operates in overheating protection mode | |||
Support operation, cooling protection | TRUE | The plant operates in cooling protection mode | |||
Forced ventilation | TRUE | The plant operates in forced ventilation mode | |||
En | The BV object is used to display the sequence controller enable in the MCL. | ||||
AND | When OpModPrio is enabled in dehumidification mode ( bDeHum = TRUE) , energy recovery is disabled. | ||||
Actn | The function block FB_BA_Swi2P determines the control direction of the sequence controller. | ||||
EnEvtEn | The BACnet loop object PID monitors the control function by comparing the setpoint W with the actual value X. If the deviation W-X is greater than the property ErrorLimit, then the loop object sends a message to the MCL. | ||||
| F_BA_EvtTrans | writes to the BACnetEventTransitionBits to_offnormal, to_fault and to_normal of the loop object. The input bEnEvtEn must be TRUE | |||
PID | Sequence controller supply air temperature energy recovery. | ||||
rtrigSync | R_TRIG | A rising edge at input bSync triggers synchronization of the loop object to the value of lrSync. | |||
Y | The AV object is referenced to the control value output of the BACnet loop object | ||||
| AND, SEL, MAX | Network which outputs the output value rY by the MAX selection. |
Version history
Version number | Comments |
---|---|
1.0.1 | First release |