Fancoil3Stage (FB)¶
FUNCTION_BLOCK Fancoil3Stage
Controls a fan coil unit with an N-stage fan (N 1..3)
For application examples and device examples see FancoilContinuous.
Functionality¶
Fancoil3Stage provides a control strategy for a fan coil unit with an N-stage fan (N 1..3). The fan is controlled either by:
control signal inputs - the heat / cool valve position setpoints compute by SequenceControl
control deviation related to active operation mode (eModeIn)
The Fancoil3Stage control strategy takes into account:
control of fan speed dependent on valve position or control deviation
minimum fan speed
delays switching from on stage to another one
fan follow-up time
coil pre-heat / pre-cool
control of optional condensate pump (cooling mode)
manual control of fan
manual control of valves
Control of fan speed dependent on valve position or control deviation¶
The fan can be controlled dependent on valve position or control deviation - default is dependent control deviation. Please be aware, that negative heating control deviation and positive heating control deviation should activate the fan. Usually a “dead zone” is supposed to be in between heating sequence and cooling sequence - for more details see SequenceControl. To setup the fan stage thresholds for fan control dependent control deviation choose rFanTresholdStage1Heat..rFanTresholdStage3Heat to appropriate heat deviation. Set rFanTresholdStage1Cool..rFanTresholdStage3Cool accordingly for cooling.
To setup the fan stage thresholds for fan control dependent valve position choose rFanTresholdStage1Heat..rFanTresholdStage3Heat with appropriate heat valve. Set rFanTresholdStage1Cool..rFanTresholdStage3Cool accordingly for cooling.
- InOut:
Scope
Name
Type
Initial
Comment
Input
xEnableBOOLTRUE
Enable
usiNumStagesUSINT (1..3)
3
Number of stages - 1 .. 3
rHeatInREALHeat control signal (0..100%).
rCoolInREALCool control signal (0..100%).
eModeInHeatCoolOperationMode.UNUSED
Controller operation mode.
rDeviationModeREALControl deviation related to active operation mode - negative value for HEAT, positive value for COOL
xFanSpeedByDeviationBOOLTRUE
Control fan speed dependent on control signal (FALSE) or control deviation (TRUE).
rFanTresholdStage1HeatREAL-0.5
Treshold to enable fan stage 1 heating (in K for fan control dependent on control deviation, in % for fan control dependent on valve position)
rFanTresholdStage2HeatREAL-1.0
Treshold to enable fan stage 2 heating
rFanTresholdStage3HeatREAL-2.0
Treshold to enable fan stage 2 heating
rFanTresholdStage1CoolREAL0.5
Treshold to enable fan stage 1 cooling (in K for fan control dependent on control deviation, in % for fan control dependent on valve position)
rFanTresholdStage2CoolREAL1.0
Treshold to enable fan stage 2 cooling
rFanTresholdStage3CoolREAL2.0
Treshold to enable fan stage 2 cooling
rFanHysteresisREAL0.2
Fan stage hysteresis (0..INF K for fan control dependent on control deviation, 0..100 % for fan control dependent on valve position) Fan control dependent on control deviation: fan stage is reduced if control deviation reaches threshold + rFanHysteresis (heat) resp. threshold - rFanHysteresis (cool). Fan control dependent on valve position: fan stage is reduced if valve position reaches threshold + rFanHysteresis.
tFanDelay12TIMETIME#0ms
Delay to switch stage 1 => stage 2
tFanDelay23TIMETIME#0ms
Delay to switch stage 2 => stage 3
tFanDelay32TIMETIME#0ms
Delay to switch stage 3 => stage 2
tFanDelay21TIMETIME#0ms
Delay to switch stage 2 => stage 1
tFanFollowUpTIMETIME#2m0s0ms
Fan follow-up time - continue to run in stage 1 beyond request.
tPreHeatTIMETIME#0ms
Coil pre-heat time.
tPreCoolTIMETIME#0ms
Coil pre-cool time.
xCpumpErriBOOLFALSE
Condensate pump error indication - condensate pump is signaling an error
rHeatManualREAL0.0
Heat valve manual control (0..100%).
xHeatManualBOOLFALSE
Heat valve manual control used.
rCoolManualREALCool valve manual control (0..100%).
xCoolManualBOOLFALSE
Cool valve manual control used.
usiFanStageManualUSINT (0..3)
0
Fan speed manual control - 0 => off, or stage 1 .. 3
xFanStageManualBOOLFALSE
Fan speed manual manual control used.
xResetBOOLFALSE
Reset
itfDateTimeProviderUtil.IDateTimeProviderGlobals.g_dtpDateTimeProvider
Source for the current date and time information in milliseconds since 1.1.1970 00:00:00.000
Output
eModeOutHeatCoolOperationMode.INACTIVE
Operation mode.
rHeatOutREALHeat valve signal (0..100%).
rCoolOutREALCool valve signal (0..100%).
xFanStage1BOOLFan stage 1
xFanStage2BOOLFan stage 2
xFanStage3BOOLFan stage 3
usiFanStageOutUSINT (0..3)
Fan stage - 0 => off, or stage 1 .. 3 - supposed to be used in visualisation
eFanStateActual state
xCpumpOutBOOLFALSE
Condensate pump.
xErrorBOOLError indication
eErrorIDError ID