blockTrimAndRespond
Block to inplement trim and respond logic
Information
This block implements the trim and respond logic according to ASHRAE guideline G36, PART 5.A.15 (trim and respond setpoint reset logic).
The trim and respond logic shall reset setpoint within the range minSet to
maxSet.
When the associated device is off (uDevSta=false), the setpoint
shall be iniSet.
The reset logic shall be active while the associated device is proven
on (uDevSta=true), starting delTim after initial
device start command.
When active, every time step samplePeriod, trim the setpoint by
triAmo.
If there are more than numIgnReq requests, respond by changing
the setpoint by resAmo*(numOfReq-numIgnReq), i.e., the number of
requests minus the number of ignored requests, but no more than maxRes.
samplePeriod:
- Change setpoint by
triAmo; - If
numOfReq > numIgnReq, also change setpoint byresAmo*(numOfReq -numIgnReq)but no more thanmaxRes.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | iniSet | Initial setpoint | |
| Real | minSet | Minimum setpoint | |
| Real | maxSet | Maximum setpoint | |
| Real | delTim | Delay time | |
| Real | samplePeriod | Sample period of component | |
| Integer | numIgnReq | Number of ignored requests | |
| Real | triAmo | Trim amount | |
| Real | resAmo | Respond amount (must have opposite sign of triAmo) | |
| Real | maxRes | Maximum response per time interval (must have same sign as resAmo) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.IntegerInput | numOfReq | Number of requests from zones/systems | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanInput | uDevSta | On/Off status of the associated device | |
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput | y | Setpoint that have been reset |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Logical.TrueDelay | tim | Send an on signal after some delay time | |
| Buildings.Controls.OBC.CDL.Reals.GreaterThreshold | greThr | Check if the real requests is more than ignored requests setting | |
| Buildings.Controls.OBC.CDL.Reals.Switch | netRes | Net setpoint reset value | |
| Buildings.Controls.OBC.CDL.Reals.Sources.Constant | resAmoCon | Respond amount constant | |
| Buildings.Controls.OBC.CDL.Reals.Multiply | pro | Products of net requests and respond amount value | |
| Buildings.Controls.OBC.CDL.Reals.Multiply | pro1 | Product of trim and respond amount | |
| Buildings.Controls.OBC.CDL.Reals.Multiply | pro2 | Product of respond and maximum amount | |
| Buildings.Controls.OBC.CDL.Discrete.UnitDelay | uniDel | Output the input signal with a unit delay | |
| Buildings.Controls.OBC.CDL.Reals.Switch | swi | Switch between initial setpoint and reseted setpoint | |
| Buildings.Controls.OBC.CDL.Reals.Switch | swi1 | Before instant (device ON + delTim + samplePeriod), the setpoint should not be trimmed | |
| Buildings.Controls.OBC.CDL.Reals.Switch | swi2 | Reinitialize setpoint to initial setting when device become OFF | |
| Buildings.Controls.OBC.CDL.Reals.Switch | swi3 | Logical switch | |
| Buildings.Controls.OBC.CDL.Discrete.Sampler | sampler | Sample number of requests | |
| Buildings.Controls.OBC.CDL.Reals.LessThreshold | lesThr1 | Check if trim and response amount have same sign | |
| Buildings.Controls.OBC.CDL.Reals.GreaterThreshold | greThr2 | Check if trim and response amount have opposite sign | |
| Buildings.Controls.OBC.CDL.Reals.GreaterThreshold | greThr1 | Check if response amount have positive sign | |
| Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter | gai | Convert results back to negative |