This sequence sets the series fan flow rate setpoint, damper and valve position for variable-volume series fan-powered terminal unit. The implementation is according to Section 5.10.5 of ASHRAE Guideline 36, May 2020. The calculation is done following the steps below.
uCoo > 0), then
the cooling loop output uCoo shall be mapped to the
primary airflow setpoint from the minimum VActMin_flow
to the cooling maximum VActCooMax_flow airflow
setpoints. The heating coil is disabled (yVal=0).
TSup from the AHU is
greater than room temperature TZon, cooling supply
airflow setpoint shall be no higher than the minimum.uCoo=0 and
uHea=0), then the primary airflow setpoint shall be
the minimum airflow setpoint VActMin_flow. The heating
coil is disabled (yVal=0).uHea > 0),
uHea increases from 0%
to 50%, it shall reset the discharge temperature
THeaDisSet from the current AHU setpoint temperature
TSupSet to a maximum of dTDisZonSetMax
above space temperature setpoint.VActMin_flow.u1Fan=true) for a fixed time delay (15 seconds), the
damper override is released.uCoo > 0), the
series fan airflow setpoint shall be the larger of
VOAMin_flow and the VPri_flow_Set. If
supply air temperature TSup from the AHU is greater
than room temperature TZon, the series fan airflow
setpoint shall be no higher than VOAMin_flow.uCoo=0 and
uHea=0), the series fan airflow setpoint shall be
equal to VOAMin_flow.uHea > 0), as
the heating-loop output uHea increases from 50% to
100%, it shall reset the series fan airflow setpoint from
VOAMin_flow to the maximum heating-fan airflow
setpoint maxRat.The sequences of controlling fan, damper position for variable-volume series fan-powered terminal unit are described in the following figure below.

As specified in Section 5.10.7 of ASHRAE Guideline 36, the airflow setpoint could be override by providing software switches that interlock to a system-level point to:
oveFloSet equals to 1, force the zone airflow
setpoint VPri_flow_Set to zero,oveFloSet equals to 2, force the zone airflow
setpoint VPri_flow_Set to zone cooling maximum airflow
rate VCooMax_flow,oveFloSet equals to 3, force the zone airflow
setpoint VPri_flow_Set to zone minimum airflow
setpoint VMin_flow.have_preIndDam to exclude the
option of using pressure independant damper.