Pump Control (Single — On/Off with Protection) — Control Design
Shared by TSIMEREZIVO Team · 4 Oct 2026 · 38 views
# Generic Module: Pump Control (Single — On/Off with Protection)
**Version**: 1.0
**Complexity**: Low-Medium
**Industries**: Water, Chemical, Oil & Gas, Food, Pharmaceuticals
**Motor Type**: 3-phase induction, 5-400 kW typical
**Control**: Soft-starter or VFD (recommended), or across-line contactor
---
## 📋 Overview
Start/stop a single electric motor pump with automatic overload protection, dry-run prevention, and fault reporting.
**Use When:**
- ✅ Simple on/off pump operation (not needing speed modulation)
- ✅ Constant flow demand meeting
- ✅ Overload protection mandatory (motor thermal protection)
- ✅ Dry-run protection required (cavitation/damage prevention)
**Do NOT Use When:**
- ❌ Variable speed needed (use VFD Motor Control template instead)
- ❌ Dual pump duty/standby needed (use Pump Lead/Lag)
- ❌ Soft-start capability not available (use simpler contactor relay)
---
## 🎯 Control Philosophy
```
Startup Sequence:
1. Check initial conditions (motor cool, suction pressure OK)
2. Energize motor (contactor or soft-starter)
3. Monitor current ramp (inrush → running steady ~70% rated)
4. Hold run state until stop command
5. De-energize on demand or on fault
Fault Protection:
- Current > nameplate × 1.2 for >5 sec → thermal fault
- Current = 0 while running → loss of supply
- Suction pressure < 0.5 bar → dry-run, stop motor
```
**Why This Matters:**
- ✅ Prevents pump bearing damage from dry-running
- ✅ Protects motor winding temperature
- ✅ Reduces mechanical shock at startup
- ✅ Automatic fault recovery capability
---
## 🏗️ Control Logic (Pseudocode)
```pascal
PROGRAM Pump_Single_Control
VAR
(* ─── COMMAND INPUTS ─── *)
Start_Command : BOOL := FALSE;
Stop_Command : BOOL := FALSE;
Remote_Mode : BOOL := TRUE; (* TRUE = PLC control, FALSE = local *)
(* ─── FEEDBACK FROM MOTOR ─── *)
Motor_Current : REAL; (* Amps from current transformer *)
Motor_Temperature : REAL; (* °C from thermal overload relay *)
Supply_Voltage_OK : BOOL := TRUE; (* 480V ±10% available *)
(* ─── FEEDBACK FROM PUMP ─── *)
Suction_Pressure : REAL; (* bar, inlet side *)
Discharge_Pressure : REAL; (* bar, outlet side *)
(* ─── SETTINGS ─── *)
Nameplate_Current : REAL := 25.0; (* Amps, from motor nameplate *)
Inrush_Current_Max : REAL := 75.0; (* 3× nameplate typical *)
Overload_Threshold : REAL := 30.0; (* 1.2× nameplate *)
Overload_Timeout_Sec : REAL := 5.0; (* Allow 5 sec inrush *)
Low_Suction_Pressure : REAL := 0.5; (* bar, dry-run threshold *)
Soft_Starter_Acceleration_Sec : REAL := 3.0;
(* ─── STATE MACHINE ─── *)
Pump_State : INT := 0;
(* 0 = Stopped
1 = Starting (ramping)
2 = Running
3 = Fault (overload or dry-run)
*)
(* ─── RUN TIME & CYCLING ─── *)
Pump_Runtime_Seconds : REAL := 0.0;
Pump_Runtime_Hours : REAL := 0.0;
Pump_Cycles : INT := 0; (* Count of start/stop cycles *)
(* ─── FAULT HANDLING ─── *)
Motor_Overload : BOOL := FALSE;
Dry_Run_Condition : BOOL := FALSE;
Supply_Lost : BOOL := FALSE;
Motor_Fault : BOOL := FALSE;
Last_Fault_Code : INT := 0; (* For diagnostics *)
(* ─── TIMING ─── *)
Inrush_Timer_Sec : REAL := 0.0;
Overload_Duration_Sec : REAL := 0.0;
Restart_Delay_Sec : REAL := 0.0;
(* ─── OUTPUT COMMAND ─── *)
Motor_Contactor_Coil : BOOL := FALSE;
Soft_Starter_Reference : REAL := 0.0; (* 0-100% ramp *)
(* ─── STATUS ─── *)
Motor_Running : BOOL := FALSE;
Ready_To_Start : BOOL := TRUE;
END_VAR
(* ═════════════════════════════════════════════════════════════ *)
(* 1. SENSOR INPUTS & CONVERSIONS *)
(* ═════════════════════════════════════════════════════════════ *)
(* Motor current (from CT transformer, 5A secondary) *)
Motor_Current := READ_ANALOG_INPUT(AI_MOTOR_CURRENT) / 100.0; (* 0-50A *)
(* Suction pressure (pump inlet, measured in bar) *)
Suction_Pressure := (READ_ANALOG_INPUT(AI_SUCTION) / 4095.0) * 10.0; (* 0-10 bar *)
(* Discharge pressure *)
Discharge_Pressure := (READ_ANALOG_INPUT(AI_DISCHARGE) / 4095.0) * 100.0; (* 0-100 bar *)
(* ═════════════════════════════════════════════════════════════ *)
(* 2. FAULT DETECTION LAYER *)
(* ═════════════════════════════════════════════════════════════ *)
(* Dry-run protection: stop motor if suction pressure too low *)
IF Suction_Pressure < Low_Suction_Pressure AND Motor_Running THEN
Dry_Run_Condition := TRUE;
Motor_Fault := TRUE;
Last_Fault_Code := 3; (* Dry-run code *)
ELSE
Dry_Run_Condition := FALSE;
END_IF;
(* Motor overload: too much current too long *)
IF Motor_Current > Overload_Threshold THEN
Overload_Duration_Sec := Overload_Duration_Sec + SCAN_TIME_SEC;
IF Overload_Duration_Sec > Overload_Timeout_Sec THEN
Motor_Overload := TRUE;
Motor_Fault := TRUE;
Last_Fault_Code := 1; (* Overload code *)
END_IF;
ELSE
Overload_Duration_Sec := 0.0;
Motor_Overload := FALSE;
END_IF;
(* Supply voltage loss *)
IF NOT Supply_Voltage_OK AND Motor_Running THEN
Supply_Lost := TRUE;
Motor_Fault := TRUE;
Last_Fault_Code := 2; (* Supply loss code *)
ELSE
Supply_Lost := FALSE;
END_IF;
(* ═════════════════════════════════════════════════════════════ *)
(* 3. STATE MACHINE (Core Logic) *)
(* ═════════════════════════════════════════════════════════════ *)
CASE Pump_State OF
(* ───────────────────── STATE 0: STOPPED ───────────────────── *)
0:
Motor_Contactor_Coil := FALSE;
Soft_Starter_Reference := 0.0;
Motor_Running := FALSE;
Overload_Duration_Sec := 0.0;
Inrush_Timer_Sec := 0.0;
(* Check if we can transition to starting *)
IF Start_Command AND Remote_Mode AND Ready_To_Start THEN
(* Pre-start checks *)
IF Suction_Pressure >= Low_Suction_Pressure THEN
(* Suction OK, safe to start *)
Pump_State := 1; (* Go to STARTING *)
Pump_Cycles := Pump_Cycles + 1;
ALARM_STARTING := TRUE;
ELSE
(* Suction pressure too low *)
ALARM_DRY_RUN_PROTECTION := TRUE;
Ready_To_Start := FALSE;
END_IF;
END_IF;
(* ───────────────────── STATE 1: STARTING ───────────────────── *)
1:
(* Soft-starter ramp-up (0% → 100% over 3 seconds) *)
Soft_Starter_Reference := (Inrush_Timer_Sec / Soft_Starter_Acceleration_Sec) * 100.0;
Soft_Starter_Reference := MIN(100.0, Soft_Starter_Reference);
Inrush_Timer_Sec := Inrush_Timer_Sec + SCAN_TIME_SEC;
(* Check for faults during starting *)
IF Motor_Fault THEN
Pump_State := 3; (* Go to FAULT *)
(* Ramp complete, transition to running *)
ELSIF Inrush_Timer_Sec >= Soft_Starter_Acceleration_Sec THEN
Motor_Contactor_Coil := TRUE;
Motor_Running := TRUE;
Pump_State := 2; (* Go to RUNNING *)
ALARM_RUNNING := TRUE;
END_IF;
(* ───────────────────── STATE 2: RUNNING ───────────────────── *)
2:
Motor_Contactor_Coil := TRUE;
Soft_Starter_Reference := 100.0; (* Full speed *)
Motor_Running := TRUE;
(* Accumulate runtime *)
Pump_Runtime_Seconds := Pump_Runtime_Seconds + SCAN_TIME_SEC;
IF Pump_Runtime_Seconds >= 3600.0 THEN
Pump_Runtime_Seconds := 0.0;
Pump_Runtime_Hours := Pump_Runtime_Hours + 1.0;
END_IF;
(* Check for fault conditions *)
IF Motor_Fault THEN
Pump_State := 3; (* Go to FAULT *)
(* Stop command *)
ELSIF Stop_Command THEN
Motor_Contactor_Coil := FALSE;
Pump_State := 0; (* Go to STOPPED *)
END_IF;
(* ───────────────────── STATE 3: FAULT ───────────────────── *)
3:
Motor_Contactor_Coil := FALSE;
Soft_Starter_Reference := 0.0;
Motor_Running := FALSE;
(* Mandatory restart delay (30 seconds) *)
Restart_Delay_Sec := Restart_Delay_Sec + SCAN_TIME_SEC;
IF Restart_Delay_Sec > 30.0 THEN
(* Conditions for auto-recovery *)
IF NOT Motor_Fault AND Suction_Pressure >= Low_Suction_Pressure THEN
Ready_To_Start := TRUE;
Restart_Delay_Sec := 0.0;
Pump_State := 0; (* Return to STOPPED, ready for restart *)
END_IF;
END_IF;
(* Manual reset command *)
IF (Reset_Fault_Command) THEN
Motor_Fault := FALSE;
Ready_To_Start := TRUE;
Restart_Delay_Sec := 0.0;
Pump_State := 0;
END_IF;
END_CASE;
(* ═════════════════════════════════════════════════════════════ *)
(* 4. OUTPUTS TO FIELD EQUIPMENT *)
(* ═════════════════════════════════════════════════════════════ *)
(* Motor contactor coil (outputs digital DO_MOTOR_CONTACTOR) *)
WRITE_DIGITAL_OUTPUT(DO_MOTOR_CONTACTOR, Motor_Contactor_Coil);
(* Soft-starter ramp command (outputs analog AO_SOFT_STARTER) *)
WRITE_ANALOG_OUTPUT(AO_SOFT_STARTER, Soft_Starter_Reference);
(* ═════════════════════════════════════════════════════════════ *)
(* 5. ALARMS & STATUS LOGGING *)
(* ═════════════════════════════════════════════════════════════ *)
(* Map fault codes to messages *)
IF Motor_Fault THEN
CASE Last_Fault_Code OF
1: ALARM_TEXT := "Motor overload - current > threshold";
2: ALARM_TEXT := "Supply voltage lost during run";
3: ALARM_TEXT := "Dry-run condition detected (low suction)";
END_CASE;
END_IF;
END_PROGRAM
```
---
## 🏷️ Tag List
| Tag | Type | I/O | Range | Description |
|-----|------|-----|-------|-------------|
| `PUMP_01_START` | BOOL | Cmd | - | Start pump (rising edge) |
| `PUMP_01_STOP` | BOOL | Cmd | - | Stop pump (any logic) |
| `PUMP_01_RESET_FAULT` | BOOL | Cmd | - | Clear fault & allow restart |
| `PUMP_01_RUNNING` | BOOL | Status | - | Motor contactor energized |
| `PUMP_01_STATE` | INT | Status | 0-3 | State: 0=Stopped, 1=Starting, 2=Running, 3=Fault |
| `PUMP_01_READY` | BOOL | Status | - | Ready to start (all checks pass) |
| `PUMP_01_CURRENT` | REAL | Feedback | 0-100 A | Motor current draw |
| `PUMP_01_CURRENT_NP` | REAL | Param | 5-400 A | Nameplate rated current |
| `PUMP_01_TEMPERATURE` | REAL | Feedback | 0-120 °C | Motor winding temperature (if sensor) |
| `PUMP_01_SUCTION_PRESSURE` | REAL | Feedback | 0-10 bar | Pump inlet pressure |
| `PUMP_01_DISCHARGE_PRESSURE` | REAL | Feedback | 0-100 bar | Pump outlet pressure |
| `PUMP_01_SUPPLY_OK` | BOOL | Status | - | 480V ±10% available |
| `PUMP_01_FAULT` | BOOL | Alarm | - | ANY fault detected |
| `PUMP_01_FAULT_CODE` | INT | Alarm | 0-3 | 0=OK, 1=Overload, 2=SupplyLoss, 3=DryRun |
| `PUMP_01_RUNTIME_HOURS` | REAL | Metric | 0-99999 | Total cumulative hours |
| `PUMP_01_RUNTIME_SECONDS` | REAL | Metric | 0-3600 | Seconds in current hour |
| `PUMP_01_CYCLES` | INT | Metric | 0-999999 | Total start/stop cycles |
| `PUMP_01_SOFT_START_RAMP` | REAL | Param | 1-30 sec | Acceleration time on startup |
| `PUMP_01_OVERLOAD_TIMEOUT` | REAL | Param | 1-60 sec | How long to tolerate overcurrent |
| `PUMP_01_DRY_RUN_THRESHOLD` | REAL | Param | 0-5 bar | Suction pressure cutoff |
---
## 🚨 Alarm & Trip Matrix
| Alarm | Condition | Severity | Auto-Reset |
|-------|-----------|----------|-----------|
| **Motor Overload** | Current > Nameplate × 1.2 for >5 sec | Critical | Auto (after 30 sec cooldown) |
| **Dry-Run Protection** | Suction pressure < 0.5 bar while running | Critical | Auto (when pressure recovers) |
| **Supply Voltage Lost** | 480V dropped during run | Critical | Auto (manual reset recommended) |
| **Soft-Starter Failure** | Ramp stuck at 50% for 10 sec | Critical | Manual |
| **Contactor Stuck-On** | Can't de-energize despite command | Critical | Manual |
| **Motor Temperature High** | Winding > 110°C (if RTD available) | Warning | Auto |
| **Low Suction Pressure** | Below 0.5 bar during idle | Warning | Auto |
| **High Discharge Pressure** | Exceeds line rating | Warning | Manual (check for blockage) |
---
## 📺 HMI Layout
```
┌──────────────────────────────────────────┐
│ PUMP MOTOR CONTROL #1 │
├──────────────────────────────────────────┤
│ │
│ Status: [RUNNING] 🟢 (2h 47m) │
│ │
│ Motor Current: 18.5A / 25A rated ✓ │
│ [████████░░░░░░░░░░] 74% │
│ │
│ Suction: 3.2 bar ✓ (Min: 0.5 bar) │
│ Discharge: 42.5 bar ✓ │
│ │
│ Soft-Start Ramp: Complete (100%) │
│ Cycles: 847 (avg 15 min each) │
│ Runtime: 210 hours total │
│ │
│ ┌────────────────────────────────┐ │
│ │ Quick Actions │ │
│ │ [STOP] [START] [RESET FAULT] │ │
│ └────────────────────────────────┘ │
│ │
│ Last Fault: None (7 days clean) │
│ │
│ Alerts: ○ None │
│ │
└──────────────────────────────────────────┘
```
---
## 🔧 Configuration Parameters
```json
{
"nameplate_current_amps": 25.0,
"nameplate_voltage_volts": 480.0,
"nameplate_power_kw": 18.5,
"motor_pole_pairs": 2,
"inrush_current_max_amps": 75.0,
"overload_threshold_amps": 30.0,
"overload_timeout_seconds": 5.0,
"soft_starter_acceleration_seconds": 3.0,
"dry_run_suction_threshold_bar": 0.5,
"low_suction_alarm_bar": 1.0,
"high_discharge_alarm_bar": 50.0,
"restart_delay_after_fault_seconds": 30,
"pump_type": "centrifugal",
"pump_head_meters": 45,
"pump_flow_m3_h": 120,
"supply_voltage_acceptable_range_percent": 10
}
```
---
## 📝 Implementation Checklist
### Before Deployment
- [ ] **Motor nameplate** (verify current, voltage, power, cooling type)
- [ ] **Current transformer (CT) verified** (5A secondary, burden <2VA)
- [ ] **Soft-starter tested** (acceleration ramp smooth, no noise)
- [ ] **Contactor tested** (pickup voltage <90V, dropout >75V)
- [ ] **Suction line checked** (no air leaks, foot valve holding prime)
- [ ] **Discharge line tested** (check for blockages or kinks)
- [ ] **Grounding verified** (motor frame bonded to plant ground)
### During Commissioning
1. **Manual soft-start test**:
- 0% ramp → verify no current
- 25% ramp → motor hums (no full torque)
- 50% ramp → motor torque increasing
- 100% ramp → full speed (inrush settled to ~70% rated)
2. **Auto start/stop test**:
- Remote mode ON
- Issue START command
- Monitor ramp over 3 seconds
- Verify RUNNING bit sets at completion
- Issue STOP command
- Verify RUNNING clears immediately
3. **Current monitoring**:
- At idle: ~70% nameplate (4-20mA: 14mA = 25A)
- At 10% flow demand: ~50% nameplate
- At 100% flow demand: ~100% nameplate
4. **Dry-run protection test**:
- Close suction isolation valve (simulate dry-run)
- Suction pressure drops
- Verify pump stops within 5 seconds
- Verify fault code = 3 (dry-run)
5. **Overload test**:
- Close discharge valve (max back-pressure)
- Current rises to 150% nameplate
- Monitor timer (should count 0-5 seconds)
- At 5 seconds: verify pump shuts down
- Verify fault code = 1 (overload)
---
## 📊 Expected Performance
| Metric | Target | Achievable |
|--------|--------|-----------|
| **Ramp time** | 3-5 sec | 3.0 sec (configurable) |
| **Inrush current** | <3× nameplate | 2.8× nameplate typical |
| **Dry-run detection** | <5 seconds | 1-3 seconds |
| **Overload detection** | <5 seconds | 1-5 seconds |
| **Start cycle overhead** | <60 sec total | 5-10 sec actual |
| **Motor protection** | Zero burnouts | <1 per 10,000 hours |
---
## 🔄 Advanced Variations
### Dual Pump Redundancy
Two identical pumps, either can supply demand (cross-check valves).
→ Use with Pump Lead/Lag for duty cycling
### Flow-Compensated Start
If discharge pressure very high at startup, reduce ramp rate to avoid water hammer.
### Condition Monitoring
Log vibration, temperature trends per cycle.
→ Predict bearing wear before failure
### Energy Optimization
Monitor suction/discharge over time. If system aging (pressure rising for same flow),
alert for impeller wear, seal leakage.
---
**Production-ready single pump control for water, chemical, and oil/gas applications.**