If the following equation is true prior to enabling the HRC, set the control mode to heating. Otherwise, set the control mode to cooling.
QChiWatReq_flow > QHeaWat_flow * (1 - 1 / COPHea_nominal)
Write mode via the chiller’s BACnet interface prior to sending the chiller an enable command.
When the control mode is cooling, the active setpoint shall be the CHW supply temperature setpoint. When the control mode is heating, the active setpoint shall be the HW supply temperature setpoint.
The condition "prior to enabling the HRC" is evaluated in the block Buildings.Templates.Plants.Controls.HeatRecoveryChillers.Enable.