Sample job
AHU-1, traced from sequence to code
A VAV AHU, economizer, pumped preheat, 2-stage direct evap, CHW coil, SF/RF on VFDs on a Distech ECY-S1000 + 2x ECY-8UI6UO-HOA, ECY-16DI, ECY-8DOR. Every control function below links back to the part of the sequence it implements. Open the files in EC-gfxProgram, Workbench and Excel and check them yourself.
Traceability
Every function, traced
Grouped by the logic sheet it lives on, in the order the sheets appear in the program.
Modes
-
Sequence A.2, D.2, D.3→Modes sheet
optimumStartDistech OptimumStart (adaptive): from the coldest / warmest zone, the occupied setpoints and the BAS schedule (state now, state next, minutes to next) it opens the optimum-start window and says whether it is a warm-up or a pre-cool; it learns the min-per-degree factors in two AVs. Schedule state: 1 = occupied.
- Blocks
- OptimumStartSwitch ×2
- Writes
optStartActiveoptStartWarmUpoptStartPreCool- On the graphic
optStartActiveminutesToOccupancyoccCoolStptoccHeatStptoccupiedCmdoptStartMaxTime
RFI-01 Built on an assumption until the engineer answersOptimal start: the sequence asks for Optimal Start-Stop but gives no limits. Confirm the BAS schedule is the source of occupancy and minutes-to-next-occupancy, and the maximum early start.
Assumed: Distech OptimumStart (adaptive, learns min/degF factors) with the BAS schedule as source; maximum early start 120 min; warm-up / cool-down limited to the OA conditions in D.2 / D.3.
-
Sequence D.2, D.3→Modes sheet
morningModesWarm-up / cool-down are OptimumStart's MrngWrmUp / PreCool, held to the OA limits in the sequence (warm-up below 35 F OA, cool-down above 60 F OA); warm-up has priority.
- Blocks
- Compare ×2AND ×2NOT
- Writes
warmUpModecoolDownMode- On the graphic
warmUpModecoolDownModecoolDownOaTempLimitoutdoorAirTempwarmUpOaTempLimit
-
Sequence D.4, D.5→Modes sheet
nightSetbackLatches with the 4 F differential; only while unoccupied and outside the optimal-start window.
- Blocks
- Compare ×6AND ×4Math ×2Latch ×2NOT ×2OR
- Writes
nightHeatModenightCoolMode- On the graphic
nightHeatModenightCoolModecoolDownOaTempLimitnightSetbackDboccupiedCmdoptStartActive
-
Sequence B.1, D.1-D.5, B.12→Modes sheet
fanRequestUnit runs for any occupied/optimized/night mode or the evap media dry-out; heat modes and cool modes are summarized for the downstream loops.
- Blocks
- OR ×3
- Writes
unitRunRequestheatModeActivecoolModeActive- On the graphic
coolDownModedryOutActivenightCoolModenightHeatModeoccupiedCmdwarmUpMode
-
Points list, AHU1-OCC-MODE→Modes sheet
unitModeIndicatorNumeric mode for the graphic and trends (0..7); highest number wins.
- Blocks
- Switch ×7OR
- Writes
unitMode- On the graphic
unitModecoolDownModefreezeStatTripAlarmnightCoolModenightHeatModeoccupiedCmd
-
Sequence B.2, B.5, B.10, D.1-D.5; VAV schedule→Modes sheet
zoneDataValidationDistech InputValidation on every BAS-written zone value: out of range or missing falls back to a safe default (occupied setpoints for temperatures, 0 %RH) so a lost network value cannot start night modes or lock out evap.
- Blocks
- InputValidation ×3OR
- Writes
coldestZoneTempValidwarmestZoneTempValidmaxZoneRhValidzoneDataFault- On the graphic
zoneDataFaultcoldestZoneTempmaxZoneRhoccCoolStptoccHeatStptwarmestZoneTemp
Safeties
-
Sequence C.1-C.3; Points list, trend/alarm defaults→Safeties sheet
safetyShutdownsEach group is a Distech DelayedAlarm with no delay: latches on the trip; the BAS reset clears it only once the field device has cleared. Devices are also hardwired in the VFD safety chain.
- Blocks
- DelayedAlarm ×3OR ×3
- Writes
smokeShutdownAlarmstaticSafetyAlarmfreezeStatTripAlarmsafetyShutdown- On the graphic
smokeShutdownAlarmstaticSafetyAlarmfreezeStatTripAlarmfireAlarmShutdownfreezeStatAlarmreturnLowStaticAlarm
RFI-10 Built on an assumption until the engineer answersSmoke detector auxiliary contact action (opens or closes on alarm) is not stated.
Assumed: Closes on alarm (no reverse action on SA-SMK / RA-SMK).
Fans
-
Sequence B.1→Fans sheet
supplyFanStartStopSupply fan runs on a unit run request unless a safety has tripped.
- Blocks
- NOTAND
- Writes
supplyFanCmd- On the graphic
supplyFanCmd
-
Sequence B.1; Control diagram, note 3→Fans sheet
returnFanStartStopReturn fan proven-interlocked to the supply fan.
- Blocks
- AND
- Writes
returnFanCmd- On the graphic
returnFanCmdsupplyFanCmdsupplyFanStatus
-
Sequence B.2, B.5→Fans sheet
trimRespondTimerDistech PulseInterval: one-scan pulse every interval for both trim & respond resets and the preheat ramp.
- Blocks
- PulseInterval
- Writes
trimRespondTick- On the graphic
trimRespondIntervalTime
-
Sequence B.2→Fans sheet
ductStaticResetEach interval: requests above the ignore count raise the setpoint (respond, capped); otherwise it trims down. Held at the initial value while the fan is off.
- Blocks
- Math ×4Switch ×3CompareMin / max selectLimit
- Writes
ductStaticStpt- On the graphic
ductStaticStptductStaticInitStptductStaticMaxRespondPressductStaticMaxStptductStaticMinStptductStaticRespondPress
RFI-03 Built on an assumption until the engineer answersDuct static trim & respond parameters (initial, minimum, trim, respond, max respond, interval) are not given.
Assumed: Initial 0.5, min 0.3, max 1.0 in.wc; trim 0.04, respond 0.06/request, max 0.15; 2 min interval; 2 ignored requests.
-
Sequence B.2→Fans sheet
supplyFanSpeedStatic PID with a high-limit PID; the lower output wins; minimum speed while running, 0 when off.
- Blocks
- PID loop ×2Min / max selectLimitSwitch
- Writes
supplyFanSpeedCmd- On the graphic
supplyFanSpeedCmdductStaticHighLimitductStaticPressductStaticStptsupplyFanCmdsupplyFanMinSpeed
RFI-02 Built on an assumption until the engineer answersDuct static high limit: "does not exceed 1.0 in. WC above scheduled total fan static / TAB value" - what absolute limit at PT-1 should be used?
Assumed: 2.0 in.wc at PT-1 (adjustable) until TAB sets it.
-
Sequence B.3→Fans sheet
returnFanSpeedReturn airflow setpoint = supply airflow x (100 - offset)%; building static PID in parallel; the higher speed wins.
- Blocks
- Math ×3PID loop ×2Min / max selectLimitSwitch
- Writes
returnFanSpeedCmd- On the graphic
returnFanSpeedCmdbuildingStaticPressbuildingStaticStptdischargeAirflowreturnAirflowreturnFanCmd
Discharge Air
-
Sequence B.5, D.2-D.5→Discharge Air sheet
pdatResetTrim & respond on cooling requests (requests lower the setpoint, otherwise it trims up), then mode overrides.
Discharge Air sheet, as it opens in EC-gfxProgram. Tap to enlarge.
- Blocks
- Switch ×5Math ×4CompareMin / max selectLimit
- Writes
pdatResetStptpdatStpt- On the graphic
pdatResetStptpdatStptcoolDownDatStptcoolingRequestCountpdatMaxRespondAmtpdatMaxStpt
RFI-04 Built on an assumption until the engineer answersPDAT reset range and trim & respond amounts are not given.
Assumed: 55-65 F; trim +0.2 F, respond -0.3 F/request, max -1.0 F; starts at 65 F.
-
Sequence B.6, B.7, B.8, B.13→Discharge Air sheet
cascadeSetpointsMaster PID on SA-T (50% = no correction) trims the upstream setpoints by up to +/- range. Cooling coil (last element, on SA-T) uses PDAT-SP directly. Heat modes: preheat targets the 70 F discharge.
Discharge Air sheet, as it opens in EC-gfxProgram. Tap to enlarge.
- Blocks
- LinearLimitMath ×4Limit ×3PID loopSwitch
- Writes
preheatDischStptmixedAirStptcoolingDischStpt- On the graphic
preheatDischStptmixedAirStptcoolingDischStptcascadeTrimRangecoolingHighStptcoolingLowStpt
RFI-05 Built on an assumption until the engineer answersPreheat setpoint clamp limits and the start-up ramp (span and duration) are not given.
Assumed: Clamp 45-60 F; ramp starts 10 F high and steps down 1 F every 2 min (20 min) when OA < 40 F at start.
-
Sequence B.7→Discharge Air sheet
preheatStartRampCalcArmed to the full span while the fan is off and OA is cold; after the fan proves, one step is removed each interval until zero.
Discharge Air sheet, as it opens in EC-gfxProgram. Tap to enlarge.
- Blocks
- Switch ×3MathMin / max selectCompare
- Writes
preheatStartRamp- On the graphic
preheatStartRampoutdoorAirTempsupplyFanStatus
RFI-05 Built on an assumption until the engineer answersPreheat setpoint clamp limits and the start-up ramp (span and duration) are not given.
Assumed: Clamp 45-60 F; ramp starts 10 F high and steps down 1 F every 2 min (20 min) when OA < 40 F at start.
Preheat
-
Sequence B.7, C.1-C.3, D.1→Preheat sheet
preheatValveFreeze protection (unit not running or tripped, OA < 35 F, or freezestat) holds PH-T at 70 F with a minimum position scheduled on OA-T. Heating closed in cool-down / night cool.
- Blocks
- LinearLimitOR ×3Switch ×3NOT ×2AND ×2ComparePID loopMin / max select
- Writes
preheatValveCmd- On the graphic
preheatValveCmdfreezeStatTripAlarmoutdoorAirTemppreheatDischStptpreheatDischTemppreheatFreezeMinPos
RFI-06 Built on an assumption until the engineer answers"Minimum position vs. OA-T" for the preheat valve is not defined.
Assumed: 0% at 35 F OA rising linearly to 30% at 0 F OA.
-
Sequence B.7→Preheat sheet
preheatPumpStart / stop latch per the sequence.
- Blocks
- Compare ×4ORANDDelayLatch
- Writes
preheatPumpCmd- On the graphic
preheatPumpCmdoutdoorAirTemppreheatValveCmd
Economizer
-
Sequence B.9→Economizer sheet
co2VentilationCO2 PID resets the minimum OA airflow between the TAB minimum and the CO2 maximum (Distech LinearLimit, clamped).
- Blocks
- LinearLimitPID loop
- Writes
activeMinOaCfm- On the graphic
activeMinOaCfmco2MaxOaCfmminOaCfmreturnAirCO2returnAirCO2LimitsupplyFanStatus
RFI-07 Built on an assumption until the engineer answersMinimum OA airflow, CO2 maximum setpoint and the CO2-reset maximum airflow are not given.
Assumed: Min OA 4,000 CFM; RA-CO2 limit 1,000 ppm; CO2 reset up to 8,000 CFM.
-
Sequence B.8, B.10, C.1-C.3, D.1-D.5→Economizer sheet
economizerDampersMA PID (economizer) and minimum OA airflow PID - higher wins; 100% with evap; closed in heat modes, when the fan is not proven or a safety has tripped. EA tracks OA, RA is the complement.
- Blocks
- Switch ×3Math ×2AND ×2PID loop ×2CompareMin / max selectORNOT
- Writes
outdoorAirDamperCmdexhaustAirDamperCmdreturnAirDamperCmd- On the graphic
outdoorAirDamperCmdexhaustAirDamperCmdreturnAirDamperCmdactiveMinOaCfmeconDbevapPump1Cmd
RFI-07 Built on an assumption until the engineer answersMinimum OA airflow, CO2 maximum setpoint and the CO2-reset maximum airflow are not given.
Assumed: Min OA 4,000 CFM; RA-CO2 limit 1,000 ppm; CO2 reset up to 8,000 CFM.
Evaporative
-
Points list, AHU1-OA-DP→Evaporative sheet
oaDewpointCalcPw = RH/100 x Psat(OA-T); dew point from Pw. Two cubic fits (Horner form), within ~1 F for 25-75 F dew points.
- Blocks
- Math ×14
- Writes
oaDewpoint- On the graphic
oaDewpointoutdoorAirHumidityoutdoorAirTemp
-
Sequence B.10→Evaporative sheet
coolingCallCalcCall when MA-T is above the cooling setpoint by the deadband; ends when MA-T falls to the setpoint or the fan stops.
- Blocks
- Compare ×2MathLatchAND
- Writes
coolingCall- On the graphic
coolingCallcoolingDischStptmixedAirTempsupplyFanStatus
RFI-08 Built on an assumption until the engineer answersEvap "call for cooling" and the stage 2 off condition are not defined; minimum on/off times are not given.
Assumed: Call when MA-T > cooling setpoint + 2 F (off at setpoint); stage 2 off when EV-T < setpoint - 1 F; pumps 5 min on / 5 min off.
-
Sequence B.10→Evaporative sheet
evapHumidityRecoveryHigh RH locks evap out; once RH is back down the CHW valve limit ramps closed one step per interval, then the lockout clears.
- Blocks
- Compare ×2AND ×2Switch ×2NOTLatchMathMin / max select
- Writes
evapHumidityLockoutchwValveRampLimit- On the graphic
evapHumidityLockoutchwValveRampLimitchilledWaterValveCmdevapStage1RhLimit
-
Sequence B.10→Evaporative sheet
evapStagingStage 1 on all permissives; stage 2 latched on EV-T error for the delay, off below setpoint - offset; min on/off per pump. LS-1 also breaks the pump starters in hardware.
- Blocks
- min_on_off ×2NOT ×6Compare ×5AND ×2Math ×2DelayORLatch
- Writes
evapPump1CmdevapPump2Cmd- On the graphic
evapPump1CmdevapPump2CmdcoolingCallcoolingDischStptdryOutActiveevapDischTemp
RFI-08 Built on an assumption until the engineer answersEvap "call for cooling" and the stage 2 off condition are not defined; minimum on/off times are not given.
Assumed: Call when MA-T > cooling setpoint + 2 F (off at setpoint); stage 2 off when EV-T < setpoint - 1 F; pumps 5 min on / 5 min off.
Sump
-
Sequence B.11, B.12→Sump sheet
sumpFillDrainMV-1 opens for cold-weather drain, conductivity bleed or the weekly drain; SOV-1 fills only when warm with a cooling call and no drain; pumps wait 15 min after the sump is full.
- Blocks
- Compare ×4Delay ×3AND ×3NOT ×2LatchOR
- Writes
sumpDrainValveCmdsumpBleedActivesumpFillValveCmdsumpReady- On the graphic
sumpDrainValveCmdsumpBleedActivesumpFillValveCmdsumpReadycoolingCalldryOutActive
RFI-09 Built on an assumption until the engineer answersDry-out: confirm "ran >= 1 hr" may be one continuous hour, and what runs during dry-out (assumed fan on with OA at minimum, pumps off). Weekly drain day?
Assumed: One continuous hour of stage 1 in the last 24 h; fan on, pumps off, MV-1 open on the weekly drain day from the BAS schedule.
-
Sequence B.12→Sump sheet
evapDryOutBAS schedule opens the 02:00 window; armed if a stage-1 run of at least an hour ended within the look-back. Fan runs, pumps off.
- Blocks
- Delay ×2NOTAND
- Writes
dryOutActive- On the graphic
dryOutActiveevapPump1Cmd
RFI-09 Built on an assumption until the engineer answersDry-out: confirm "ran >= 1 hr" may be one continuous hour, and what runs during dry-out (assumed fan on with OA at minimum, pumps off). Weekly drain day?
Assumed: One continuous hour of stage 1 in the last 24 h; fan on, pumps off, MV-1 open on the weekly drain day from the BAS schedule.
Cooling Coil
-
Sequence B.13, C.1-C.3, D.1-D.5, B.10→Cooling Coil sheet
chilledWaterValveCooling PID on SA-T, limited by the humidity-recovery ramp; closed outside cooling-capable modes; 10% on a freezestat trip.
- Blocks
- NOT ×2Switch ×2ANDPID loopMin / max select
- Writes
chilledWaterValveCmd- On the graphic
chilledWaterValveCmdchwValveRampLimitcoolingDischStptdischargeAirTempfreezeChwValvePosfreezeStatTripAlarm
Alarms
-
Sequence B.1; Points list, trend/alarm defaults→Alarms sheet
statusAlarmsCommand / status mismatch for 60 s (either direction, catches HOA in hand) - Distech DelayedAlarm per motor, latched until the operator resets it after the condition clears.
- Blocks
- DelayedAlarm ×5Compare ×5
- Writes
supplyFanFailAlarmreturnFanFailAlarmpreheatPumpFailAlarmevapPump1FailAlarmevapPump2FailAlarm- On the graphic
supplyFanFailAlarmreturnFanFailAlarmpreheatPumpFailAlarmevapPump1FailAlarmevapPump2FailAlarmalarmResetCmd
-
Sequence B.14; Points list, trend/alarm defaults→Alarms sheet
filterAndTempAlarmsFilter alarms (5 min) while the fan is proven, discharge temp alarm (|SA-T - PDAT-SP| > band for 10 min), sump low level while evap is called (60 s) - each a Distech DelayedAlarm, operator reset.
- Blocks
- DelayedAlarm ×4AND ×4Compare ×3Math ×2
- Writes
preFilterDirtyAlarmfinalFilterDirtyAlarmdischargeTempAlarmsumpLowLevelEvapAlarm- On the graphic
preFilterDirtyAlarmfinalFilterDirtyAlarmdischargeTempAlarmsumpLowLevelEvapAlarmalarmResetCmdcoolingCall
First deliverable
The RFI
Sent to the engineer of record before anything else. Each question carries the assumption the code is built on until it is answered, so the build doesn't wait.
- RFI-01Sequence A.2
Optimal start: the sequence asks for Optimal Start-Stop but gives no limits. Confirm the BAS schedule is the source of occupancy and minutes-to-next-occupancy, and the maximum early start.
Assumed: Distech OptimumStart (adaptive, learns min/degF factors) with the BAS schedule as source; maximum early start 120 min; warm-up / cool-down limited to the OA conditions in D.2 / D.3.
- RFI-02Sequence B.2
Duct static high limit: "does not exceed 1.0 in. WC above scheduled total fan static / TAB value" - what absolute limit at PT-1 should be used?
Assumed: 2.0 in.wc at PT-1 (adjustable) until TAB sets it.
- RFI-03Sequence B.2
Duct static trim & respond parameters (initial, minimum, trim, respond, max respond, interval) are not given.
Assumed: Initial 0.5, min 0.3, max 1.0 in.wc; trim 0.04, respond 0.06/request, max 0.15; 2 min interval; 2 ignored requests.
- RFI-04Sequence B.5
PDAT reset range and trim & respond amounts are not given.
Assumed: 55-65 F; trim +0.2 F, respond -0.3 F/request, max -1.0 F; starts at 65 F.
- RFI-05Sequence B.7
Preheat setpoint clamp limits and the start-up ramp (span and duration) are not given.
Assumed: Clamp 45-60 F; ramp starts 10 F high and steps down 1 F every 2 min (20 min) when OA < 40 F at start.
- RFI-06Sequence C.2, D.1
"Minimum position vs. OA-T" for the preheat valve is not defined.
Assumed: 0% at 35 F OA rising linearly to 30% at 0 F OA.
- RFI-07Sequence B.8, B.9
Minimum OA airflow, CO2 maximum setpoint and the CO2-reset maximum airflow are not given.
Assumed: Min OA 4,000 CFM; RA-CO2 limit 1,000 ppm; CO2 reset up to 8,000 CFM.
- RFI-08Sequence B.10
Evap "call for cooling" and the stage 2 off condition are not defined; minimum on/off times are not given.
Assumed: Call when MA-T > cooling setpoint + 2 F (off at setpoint); stage 2 off when EV-T < setpoint - 1 F; pumps 5 min on / 5 min off.
- RFI-09Sequence B.11, B.12
Dry-out: confirm "ran >= 1 hr" may be one continuous hour, and what runs during dry-out (assumed fan on with OA at minimum, pumps off). Weekly drain day?
Assumed: One continuous hour of stage 1 in the last 24 h; fan on, pumps off, MV-1 open on the weekly drain day from the BAS schedule.
- RFI-10Points list, M3-DI11/12
Smoke detector auxiliary contact action (opens or closes on alarm) is not stated.
Assumed: Closes on alarm (no reverse action on SA-SMK / RA-SMK).