Duplex pump controller

Executed reference model; no field commissioning

Operating sequence

A deterministic two-pump controller with low/start/assist level inputs, independent run feedback, availability and manual requests. Start demand latches an automatic cycle until the low switch becomes dry. The next lead changes after a cycle with proven running feedback.

Inputs at the same timestamp are one atomic snapshot. Power loss, invalid sensors, unavailability and feedback faults take priority over run requests. A dry low switch stops both pumps regardless of the minimum-run timer.

Reference settings

settingvalue
sourceDefined reference sequence; no plant data or hardware observations
start_timeout_s3.0
feedback_loss_timeout_s1.0
minimum_run_s10.0
lead_at_first_bootA
restart_policyPower restoration requires quiet inputs and an explicit reset
low_level_policyDry low-level input stops both commands immediately
scan_contractAll inputs at one timestamp are applied atomically; timers checked on each scan

Executed checks

checkvalue
tests_passed23
input_snapshots_per_seed_state2048
representative_seed_states7
one_scan_interlock_cases14336
independent_trace_checkpoints10
declared_pump_state_edges_tested7
reference_failover_time_s4.0
field_commissionedFalse

The regression suite contains an independent expected-output trace and transition-specific tests. The scripted 46-second trace adds ten fixed checkpoints rather than deriving expectations from the controller.

Simulation trace

Lead failure, loss of availability, power interruption, restart reset, and manual minimum-run hold.
Lead failure, loss of availability, power interruption, restart reset, and manual minimum-run hold.
time_sABmode
000IDLE
110PUMP_A
401PUMP_B
1200NO_CAPACITY
2400POWER_OFF
2500INHIBITED
2801PUMP_B
3410PUMP_A
3710PUMP_A
4400IDLE

Cause and effect

priorityconditioncommandsrecovery
1Power absentBoth offQuiet-input reset after power returns
2Invalid level orderBoth off; sensor fault latchedValid dry inputs and reset
3Pump unavailableAffected pump off; select usable alternativeAvailability returns
4Start timeout or lost run feedbackAffected pump off; fault latched; select alternativeDry, no feedback/manual request, available and reset
5Dry low levelBoth off, including manual/minimum runWet permissive and new demand
6Start demandLead or usable substituteCycle ends at dry low
7Assist demandBoth usable pumpsAssist hold until minimum run expires
8Manual requestRequested usable pump with wet permissiveMinimum-run hold applies after release

Files

Controller source · Tests · Trace CSV · I/O list · Hardware acceptance procedure

Limits

Virtual validation

Executed synthetic and theoretical run-through. The report includes cases, acceptance results and model boundaries.