.Buildings.Controls.OBC.ASHRAE.G36.Generic.TrimAndRespond

Block to inplement trim and respond logic

Information

This block implements the trim and respond logic according to Section 5.1.14.3 and 5.1.14.4 of ASHRAE Guideline 36, May 2020.

For each upstream system or plant set point being controlled by a trim and respond loop, define the initial values in system or plant sequences. Values for trim, respond, time step, etc. shall be tuned to provide stable control.

Variable Value Definition
DeviceAHU Supply Fan Associated device
SP0iniSetInitial setpoint
SPminminSetMinimum setpoint
SPmaxmaxSetMaximum setpoint
TddelTimDelay timer
TsamplePeriodTime step
InumIgnReqNumber of ignored requests
RnumOfReqNumber of requests
SPtrimtriAmoTrim amount
SPresresAmoRespond amount
SPres_maxmaxResMaximum response per time interval

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.

In other words, every time step samplePeriod:

Hold and release loop output

Optionally, if the parameter have_hol is set to true, an additional input signal uHol allows for holding the trim and respond loop output at a fixed value for the longer of the time the input uHol remains true and the duration specified by the parameter dtHol. When uHol switches back to false, the hold is released and resetting continues from the previously held value (without reinitializing to iniSet or going through a delay time of delTim).

This is typically used in control sequences to freeze the reset logic during the plant staging process. Consider for example the following specification:
"When a plant stage change is initiated, the reset logic shall be disabled and value fixed at its last value for the longer of 15 minutes and the time it takes for the plant to successfully stage."
Using this block with have_hol=true and dtHol=15*60 yields the following sequence of events.

Examples

The figure below illustrates the trim and respond logic with a negative trim amount, comparing scenarios with and without holding the loop output.

Trend graph for trim and response

The figure below illustrates the trim and respond logic with a positive trim amount.

Trend graph for trim and response

The figure below illustrates the trim and respond logic with a negative trim amount, in a scenario where the equipment switches on and off.

Trend graph for trim and response

Revisions


Generated at 2025-04-20T18:29:55Z by OpenModelicaOpenModelica 1.25.0 using GenerateDoc.mos