Field fix / guideDesign DocumentVendor-agnostic (IEC 61131-3)Miningindustrial-automation

Water Recycling Circuit & Density Balance — Control Design

Shared by TSIMEREZIVO Team · 4 Oct 2026 · 32 views

# Mining Template: Water Recycling Circuit & Density Balance ## 1. Overview **Purpose:** Mining operations recycle water from thickener overflow back to upstream processes (crusher, mill) to conserve water and recover valuable solids from clarified water. However, recycled water carries suspended fines and reagents (flotation collectors, pH modifiers) that can change process chemistry. This template monitors recycled water density, pH, and ionic composition to ensure it doesn't degrade metallurgical recovery. The controller blends fresh water with recycled water to maintain target chemistry while maximizing recycling ratio (% of water reused). **Industry Standards:** - ISO 9308 (Water Quality—Microbionuclides) - ASME WQA (Water Quality Association) Guidelines - EPA 40 CFR Part 421 (Nonferrous Metals Processing—Effluent Limits) - ISO 5667 (Water Sampling—Guidance on Sampling Techniques) **Critical Constraints:** - **Recycled water density:** typically 1.01–1.05 sg (slightly denser than fresh due to dissolved minerals & fines); density affects flotation efficiency - **Suspended solids:** recycled water may contain 50–200 ppm fines; excess fines reduce float recovery - **pH range:** must be maintained 7.5–9.5 for optimal flotation; recycled water may drift acidic or basic - **Ionic strength:** recycled water accumulates sodium, chloride, other salts; high ionic strength reduces bubble size - **Recycling ratio:** target 70–90% recycled water; >90% causes mineral loss - **Makeup water rate:** the difference; fresh water balances out losses to tailings **Relevant Physics:** - **Density of slurry:** $\rho = X_{solids} \rho_{solids} + (1 - X_{solids}) \rho_{water}$ (mass fraction, component densities) - **Conductivity (ionic strength):** $\kappa = \sum_i c_i \lambda_i$ (concentration × molar conductivity of each ion) - **Flotation bubble size:** $d_{bubble} \propto 1 / (1 + \kappa/\kappa_{ref})$ (inversely proportional to ionic strength) - **Water balance:** $V_{in}(fresh + recycled) = V_{out}(product) + V_{loss}(tailings evap)$ (mass conservation) --- ## 2. Control Philosophy ``` LAYER 1: Recycled Water Quality Monitoring Measure: density, pH, conductivity, turbidity Setpoint: density 1.02 sg, pH 8.5, conductivity <5000 µS/cm Feedback: inline sensors in recycled water header LAYER 2: Fresh Water Makeup Cascade If recycled quality degrades: blend more fresh water Ratio control: 70% recycled + 30% fresh (nominal) Adjust: if density or conductivity high, reduce recycled water proportion LAYER 3: Recycle Ratio Optimization Goal: maximize recycling % while maintaining metallurgy Monitor: flotation recovery rate as downstream feedback If recovery drops: increase fresh water ratio LAYER 4: Acid/Base Addition for pH Control Recycled water may drift acidic (CO₂ absorption) or basic (volatilization) Add H₂SO₄ or NaOH as needed to maintain pH 8.5 setpoint Meter pump command proportional to pH error LAYER 5: Fines Settling Before Recirculation Install settling weir or polishing screen Allow 5–10 minutes settling to remove coarse fines Periodic backflush of screen to return fines to thickener ``` --- ## 3. Control Logic (Condensed) ```pascal { === MINING WATER RECYCLING & DENSITY BALANCE === } PROCEDURE Water_Recycling_Control CONSTANTS RECYCLE_RATIO_TARGET_PCT = 75 { 75% recycled, 25% fresh } RECYCLE_RATIO_MIN_PCT = 50 { safety minimum } RECYCLE_RATIO_MAX_PCT = 90 { max before issues } DENSITY_SETPOINT_SG = 1.02 { target specific gravity } DENSITY_TOLERANCE_SG = 0.01 { ±0.01 sg acceptable } DENSITY_HIGH_SG = 1.05 { too many fines } DENSITY_LOW_SG = 1.00 { too much fresh } PH_SETPOINT = 8.5 { optimal for flotation } PH_TOLERANCE = 0.3 { ±0.3 pH } CONDUCTIVITY_HIGH_USPS_CM = 5000 { excessive salts } TURBIDITY_HIGH_NTU = 100 { too many fines } FLOW_TOTAL_T_HR = 200 { total water circuit } VARIABLES water_density_sg : REAL { recycled water density } water_density_error_sg : REAL water_ph : REAL water_ph_error : REAL water_conductivity_usps_cm : REAL { ionic strength } water_turbidity_ntu : REAL { suspended solids } fresh_water_flow_t_hr : REAL { makeup } recycled_water_flow_t_hr : REAL { from thickener } total_flow_t_hr : REAL { sum } recycle_ratio_pct : REAL { (recycled / total) × 100 } recycle_ratio_error_pct : REAL acid_dose_kg_hr : REAL { H₂SO₄ for pH control } base_dose_kg_hr : REAL { NaOH for pH control } flotation_recovery_pct : REAL { feedback from downstream } recovery_trend_pct_per_day : REAL water_circuit_status : ENUMERATION { NORMAL | HIGH_FINES | POOR_CHEMISTRY | DEGRADED_RECOVERY } BEGIN { === SENSOR INPUT === } water_density_sg = Read_Density_Transmitter() { recycled header } water_ph = Read_pH_Transmitter() water_conductivity_usps_cm = Read_Conductivity_Sensor() water_turbidity_ntu = Read_Turbidity_Meter() recycled_water_flow_t_hr = Read_Recycled_Water_Flowmeter() fresh_water_flow_t_hr = Read_Fresh_Water_Flowmeter() total_flow_t_hr = recycled_water_flow_t_hr + fresh_water_flow_t_hr flotation_recovery_pct = Read_Flotation_Recovery_Feedback() { from flotation circuit } { === RECYCLING RATIO CONTROL === } recycle_ratio_pct = (recycled_water_flow_t_hr / total_flow_t_hr) × 100 recycle_ratio_error_pct = RECYCLE_RATIO_TARGET_PCT − recycle_ratio_pct { Adjust fresh water flow to maintain recycle ratio } fresh_water_setpoint_t_hr = total_flow_t_hr × (100 − RECYCLE_RATIO_TARGET_PCT) / 100 { Clamp to avoid extreme ratios } IF recycle_ratio_pct < RECYCLE_RATIO_MIN_PCT THEN fresh_water_setpoint_t_hr = 0 { use all recycled available } END IF IF recycle_ratio_pct > RECYCLE_RATIO_MAX_PCT THEN fresh_water_setpoint_t_hr = total_flow_t_hr × 0.15 { force 15% fresh minimum } END IF Command_Fresh_Water_Pump_Setpoint(fresh_water_setpoint_t_hr) { === WATER QUALITY MONITORING === } water_circuit_status = NORMAL { initialize } { Density check (fines content) } water_density_error_sg = DENSITY_SETPOINT_SG − water_density_sg IF water_density_sg > DENSITY_HIGH_SG THEN water_circuit_status = HIGH_FINES Log_Alarm("RECYCLED_WATER_HIGH_DENSITY_FINES", density=water_density_sg) { Emergency: increase fresh water ratio to dilute } recycle_ratio_pct = RECYCLE_RATIO_MIN_PCT { drop to 50% recycled } ELSIF water_density_sg < DENSITY_LOW_SG THEN { Very dilute; likely fresh water overfeed } Log_Warning("RECYCLED_WATER_LOW_DENSITY", density=water_density_sg) END IF { pH Control (acid/base addition) } water_ph_error = PH_SETPOINT − water_ph IF ABS(water_ph_error) > PH_TOLERANCE THEN { Proportional dose control (Kp = 0.5 kg/hr per pH unit) } IF water_ph < PH_SETPOINT THEN { Water too acidic; add base (NaOH) } base_dose_kg_hr = 0.5 × ABS(water_ph_error) acid_dose_kg_hr = 0 ELSE { Water too basic; add acid (H₂SO₄) } acid_dose_kg_hr = 0.5 × water_ph_error base_dose_kg_hr = 0 END IF Command_Acid_Pump_Setpoint(acid_dose_kg_hr) Command_Base_Pump_Setpoint(base_dose_kg_hr) Log_Info("PH_ADJUSTMENT", current_ph=water_ph, dose_acid_kg_hr=acid_dose_kg_hr, dose_base_kg_hr=base_dose_kg_hr) END IF { Conductivity (ionic strength) check } IF water_conductivity_usps_cm > CONDUCTIVITY_HIGH_USPS_CM THEN Log_Warning("HIGH_IONIC_STRENGTH_SALTS", conductivity=water_conductivity_usps_cm) { Likely causes: evaporation, salt concentration; increase fresh water ratio } recycle_ratio_pct = recycle_ratio_pct − 10 { reduce recycled by 10% } END IF { Turbidity (suspended fines) check } IF water_turbidity_ntu > TURBIDITY_HIGH_NTU THEN water_circuit_status = HIGH_FINES Log_Alarm("RECYCLED_WATER_HIGH_TURBIDITY_FINES", turbidity=water_turbidity_ntu) { Trigger settling weir backflush or increase settling time } Command_Settling_Weir_Backflush() END IF { === DOWNSTREAM METALLURGICAL FEEDBACK === } { Monitor flotation recovery; if declining, recycle chemistry may be at fault } IF MOD(scan_count, 86400) = 0 THEN { every 24 hours } recovery_trend_pct_per_day = flotation_recovery_pct − prev_recovery_pct { If recovery declining >2% per day, suspect recycle water issue } IF recovery_trend_pct_per_day < −2 THEN water_circuit_status = DEGRADED_RECOVERY Log_Alarm("FLOTATION_RECOVERY_DECLINING_CHECK_WATER", recovery=flotation_recovery_pct, trend_pct_day=recovery_trend_pct_per_day) { Emergency response: increase fresh water ratio to 50% minimum } recycle_ratio_pct = RECYCLE_RATIO_MIN_PCT END IF END IF { === CHEMISTRY OVERRIDE LOGIC === } { If ANY water quality parameter out of spec, increase fresh water as safety } chemistry_alert_count = 0 IF ABS(water_density_error_sg) > DENSITY_TOLERANCE_SG THEN chemistry_alert_count + + END IF IF ABS(water_ph_error) > PH_TOLERANCE THEN chemistry_alert_count + + END IF IF water_conductivity_usps_cm > CONDUCTIVITY_HIGH_USPS_CM THEN chemistry_alert_count + + END IF IF chemistry_alert_count >= 2 THEN { Multiple parameters out of spec; increase fresh water safety margin } recycle_ratio_pct = RECYCLE_RATIO_TARGET_PCT − 20 { drop to 55% recycled } water_circuit_status = POOR_CHEMISTRY Log_Alarm("MULTIPLE_CHEMISTRY_PARAMETERS_OUT_SPEC") END IF { === DATA LOGGING (every hour) === } IF MOD(scan_count, 3600) = 0 THEN Log_Process_Data({ timestamp: Get_Timestamp(), water_density_sg: water_density_sg, water_ph: water_ph, water_conductivity_usps_cm: water_conductivity_usps_cm, water_turbidity_ntu: water_turbidity_ntu, recycled_flow_t_hr: recycled_water_flow_t_hr, fresh_flow_t_hr: fresh_water_flow_t_hr, recycle_ratio_pct: recycle_ratio_pct, acid_dose_kg_hr: acid_dose_kg_hr, base_dose_kg_hr: base_dose_kg_hr, flotation_recovery_pct: flotation_recovery_pct, water_circuit_status: water_circuit_status }) END IF prev_recovery_pct = flotation_recovery_pct END PROCEDURE ``` --- ## 4. Tag List ``` WATER_DENSITY_SG { recycled header density } WATER_DENSITY_ERROR_SG { deviation from setpoint } WATER_PH { acidity/basicity } WATER_PH_ERROR { vs. 8.5 setpoint } WATER_CONDUCTIVITY_USPS_CM { ionic strength } WATER_TURBIDITY_NTU { suspended solids } RECYCLED_WATER_FLOW_T_HR { from thickener } FRESH_WATER_FLOW_T_HR { makeup water } FRESH_WATER_SETPOINT_T_HR { pump command } RECYCLE_RATIO_PCT { 75% nominal } ACID_DOSE_KG_HR { H₂SO₄ pump } BASE_DOSE_KG_HR { NaOH pump } FLOTATION_RECOVERY_PCT { downstream feedback } WATER_CIRCUIT_STATUS { quality indicator } SETTLING_WEIR_BACKFLUSH { command } ``` --- ## 5. Alarm & Trip Matrix | **Condition** | **Severity** | **Action** | |---|---|---| | **Density > 1.05 sg** | 🔴 CRIT | High fines; increase fresh water to 50% | | **pH out ±0.3** | ⚠ WARN | Add acid or base to setpoint | | **Conductivity > 5000 µS/cm** | ⚠ WARN | Reduce recycled ratio; check evaporation | | **Turbidity > 100 NTU** | ⚠ WARN | Backflush settling weir; increase RT | | **Recovery decline > 2%/day** | 🔴 CRIT | Increase fresh water; check chemistry | --- **Document Version:** 1.0 **Last Updated:** 2026-04-13 **Status:** Ready for Production

More like this

Rate, comment, and get full access

Members can download files, rate contributions, and discuss fixes with the engineers who posted them — free.

Join the library