This is a multi zone VAV AHU economizer enable/disable sequence based on ASHRAE G36 PART 5.N.7 and PART 5.A.17. Additional conditions included in the sequence are: freeze protection (freeze protection stage 0-3, see PART 5.N.12), supply fan status (on or off, see PART 5.N.5).
The economizer is disabled whenever the outdoor air conditions exceed the economizer high limit setpoint. This sequence allows for all device types listed in ASHRAE 90.1-2013 and Title 24-2013.
In addition, the economizer gets disabled without a delay
whenever any of the following is true:
uSupFan = false),stage0.The following state machine chart illustrates the transitions between enabling and disabling:

After the disable signal is activated, the following procedure is applied, per PART 5.N.7.d, in order to prevent pressure fluctuations in the HVAC system:
yRetDamPosMax =
uRetDamPhyPosMax and yRetDamPosMin =
uRetDamPhyPosMax) for retDamFulOpeTim time
period, after which the return damper gets released to its minimum
outdoor airflow control position (yRetDamPosMax =
uRetDamPosMax and yRetDamPosMin =
uRetDamPosMax).yOutDamPosMax = uOutDamPosMin) after a
disDel time delay.This sequence also has an overwrite of the damper positions to
track a minimum mixed air temperature of TFreSet,
which is by default set to 4°C (39.2 F). This is
implemented using a proportional controller with a default deadband
of 1 K, which can be adjusted using the parameter
kPFrePro.
and2 as this input
was always true if and2.u2 = true.