blockNextChiller
Identify next enable and disable chillers
Information
This block identifies the index of next enabling (yNexEnaChi and
yEnaSmaChi) or disabling chiller (yDisSmaChi and
yLasDisChi) based on the current chiller stage setpoint
uStaSet and the chiller status setpoint uChiSet.
This implementation assumes that the stage-up process (increased uStaSet)
will enable only one more chiller (yOnOff=false), or enable a larger
chiller and disable a smaller chiller (yOnOff=true); the stage-down
process (decreased uStaSet) will disable only one existing chiller
(yOnOff=false), or disable a larger chiller and enable a smaller
chiller (yOnOff=true).
Note that when applying the sequence:
-
If it is not in the staging process, the outputs
yNexEnaChi,yDisSmaChi,yLasDisChi,yEnaSmaChiequal 1. TheyOnOffisfalse. -
If it is in the staging up process (
yUp=true), the outputsyLasDisChiandyEnaSmaChi, which become valid only when it is in the staging down process, equal the default 1. -
If it is in the staging down process (
yDow=true), the outputsyNexEnaChiandyDisSmaChi, which become valid only when it is in the staging up process, equal the default 1.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nChi | 2 | Total number of chillers |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.IntegerInput | uStaSet | Chiller stage setpoint | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanInput[nChi] | uChiSet | Vector of chillers status setpoint | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanInput | endPro | True: the staging process is end | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput | yUp | True if it is in staging up process | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput | yDow | True if it is in staging down process | |
| Buildings.Controls.OBC.CDL.Interfaces.IntegerOutput | yNexEnaChi | Next enabling chiller index | |
| Buildings.Controls.OBC.CDL.Interfaces.IntegerOutput | yDisSmaChi | Smaller chiller to be disabled in staging-up process | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput | yOnOff | True: if the stage change require one chiller to be enabled while another is disabled | |
| Buildings.Controls.OBC.CDL.Interfaces.IntegerOutput | yLasDisChi | Disable last chiller when it is in stage-down process | |
| Buildings.Controls.OBC.CDL.Interfaces.IntegerOutput | yEnaSmaChi | Smaller chiller to be enabled in stage-down process |
Revisions
-
May 06, 2020, by Jianjun Hu:
First implementation.