Learn PLCs free
Intermediate11 min readIndustrial

Chemical Dosing System for Industrial

Complete PLC implementation guide for chemical dosing system in industrial settings. Learn control strategies, sensor integration, and best practices.

📊
Complexity
Intermediate
🏭
Industry
Industrial
Actuators
2
This comprehensive guide covers the implementation of chemical dosing system systems for the industrial industry. Chemical dosing systems inject precise quantities of treatment chemicals (chlorine, pH adjusters, coagulants, corrosion inhibitors) proportional to water flow rates maintaining target concentrations from 0.1-100 ppm in process streams handling 1-10,000 GPM. Modern systems employ peristaltic or diaphragm metering pumps with turndown ratios 100:1 achieving dosing accuracy +/- 1-2% while responding to real-time feedback from online analyzers (pH, ORP, chlorine, conductivity). The PLC implements feed-forward control based on flow measurement and feedback trim from water quality sensors maintaining precise chemical residuals. Applications include municipal water treatment, cooling tower treatment, wastewater neutralization, and industrial process chemical addition. Estimated read time: 11 minutes.

Problem Statement

Industrial operations require reliable chemical dosing system systems to maintain efficiency, safety, and product quality. Industrial operations face pressure for continuous productivity improvement with minimal capital investment, skilled workforce shortage particularly for multi-discipline technicians, aging infrastructure requiring strategic decisions on modernization vs. replacement, integration challenges between legacy and modern automation systems, global competition requiring world-class efficiency and quality, increasing energy costs driving conservation initiatives, cybersecurity risks from connected production systems, supply chain disruptions affecting spare parts availability and project schedules, and regulatory compliance burden requiring extensive documentation. Industry 4.0 transformation promises benefits but requires organizational change management and significant investment.

Automated PLC-based control provides:
• Consistent, repeatable operation
• Real-time monitoring and diagnostics
• Reduced operator workload
• Improved safety and compliance
• Data collection for optimization

This guide addresses the technical challenges of implementing robust chemical dosing system automation in production environments.

System Overview

A typical chemical dosing system system in industrial includes:

• Input Sensors: flow sensors, pH sensors, conductivity sensors
• Output Actuators: dosing pumps, solenoid valves
• Complexity Level: Intermediate
• Control Logic: State-based sequencing with feedback control
• Safety Features: Emergency stops, interlocks, and monitoring
• Communication: Data logging and diagnostics

The system must handle normal operation, fault conditions, and maintenance scenarios while maintaining safety and efficiency.

**Industry Environmental Considerations:** General industrial environments subject equipment to wide temperature variations (often 0°F to 120°F), high levels of dust and particulates requiring filtration and positive pressure enclosures, vibration from heavy machinery necessitating shock-mounted components, chemical exposure from solvents and cleaning agents, high humidity in some processes, and electromagnetic interference from large motor drives and arc welding. Outdoor equipment faces direct weather exposure. Manufacturing facilities may have poor power quality with voltage sags and harmonics from variable loads requiring conditioning and filtering.

Controller Configuration

For chemical dosing system systems in industrial, controller selection depends on:

• Discrete Input Count: Sensors for position, status, and alarms
• Discrete Output Count: Actuator control and signaling
• Analog I/O: Pressure, temperature, or flow measurements
• Processing Speed: Typical cycle time of 50-100ms
• Communication: Network requirements for monitoring

**Control Strategy:**
Deploy flow-proportional control calculating chemical dose: Dose (GPH) = Flow (GPM) × Concentration (ppm) × 0.0005 for typical specific gravities. Implement cascaded control with outer loop maintaining water quality parameter (pH 6.5-8.5, chlorine 1.0-3.0 ppm) and inner loop adjusting pump stroke frequency. Use PID trim control: Kp=5-15 (% stroke per unit error), Ki=0.5-2.0, Kd=0.1-0.5 compensating for chemical demand variations from raw water quality changes. Deploy ratio control maintaining multiple chemical balances (e.g., chlorine:ammonia ratio 3:1-5:1 for chloramines). Implement feed-forward dead-time compensation accounting for mixing/reaction time delays (typically 30 seconds-5 minutes). Use alarming for chemical tank levels (refill at 20% remaining), pump failures, and out-of-range water quality with automatic shutdown preventing over/under dosing.

Recommended controller features:
• Fast enough for real-time control
• Sufficient I/O for all sensors and actuators
• Built-in safety functions for critical applications
• Ethernet connectivity for diagnostics

**Regulatory Requirements:** Industrial facilities must comply with OSHA general industry safety standards (29 CFR 1910), National Electrical Code (NEC) for electrical installations, NFPA 70E for electrical safety in the workplace, EPA regulations for air emissions and wastewater discharge, state and local building and fire codes, industry-specific regulations (FDA, USDA, etc.), ISO 14001 environmental management standards, and potentially ISO 45001 occupational health and safety management. Control system cybersecurity increasingly requires NIST Cybersecurity Framework implementation. Hazardous material storage must comply with EPA Tier II reporting.

Sensor Integration

Effective sensor integration requires:

• Sensor Types: flow sensors, pH sensors, conductivity sensors
• Sampling Rate: 10-100ms depending on process dynamics
• Signal Conditioning: Filtering and scaling for stability
• Fault Detection: Monitoring for sensor failures
• Calibration: Regular verification and adjustment

**Application-Specific Sensor Details:**
• **flow sensors**: [object Object]
• **pH sensors**: [object Object]
• **conductivity sensors**: [object Object]

Key considerations:
• Environmental factors (temperature, humidity, dust)
• Sensor accuracy and repeatability
• Installation location for optimal readings
• Cable routing to minimize noise
• Proper grounding and shielding

PLC Control Logic Example

Basic structured text (ST) example for chemical dosing control:

PROGRAM CHEMICAL_DOSING_CONTROL
VAR
    // Inputs
    start_button : BOOL;
    stop_button : BOOL;
    system_ready : BOOL;
    error_detected : BOOL;

    // Outputs
    motor_run : BOOL;
    alarm_signal : BOOL;

    // Internal State
    system_state : INT := 0; // 0=Idle, 1=Running, 2=Error
    runtime_counter : INT := 0;
END_VAR

CASE system_state OF
    0: // Idle state
        motor_run := FALSE;
        alarm_signal := FALSE;

        IF start_button AND system_ready AND NOT error_detected THEN
            system_state := 1;
        END_IF;

    1: // Running state
        motor_run := TRUE;
        alarm_signal := FALSE;
        runtime_counter := runtime_counter + 1;

        IF stop_button OR error_detected THEN
            system_state := 2;
        END_IF;

    2: // Error state
        motor_run := FALSE;
        alarm_signal := TRUE;

        IF stop_button AND NOT error_detected THEN
            system_state := 0;
            runtime_counter := 0;
        END_IF;
END_CASE;

Code Explanation:

  • 1.State machine ensures only valid transitions occur
  • 2.Sensor inputs determine allowed state changes
  • 3.Motor runs only in safe conditions
  • 4.Error state requires explicit acknowledgment
  • 5.Counter tracks runtime for predictive maintenance
  • 6.Boolean outputs drive actuators safely

Implementation Steps

  1. 1Conduct comprehensive site survey documenting existing equipment, utilities, and infrastructure
  2. 2Design scalable control architecture supporting future expansion and technology upgrades
  3. 3Implement industrial network infrastructure with redundant switches and fiber backbone
  4. 4Configure centralized motor control centers (MCCs) with intelligent motor protection relays
  5. 5Design material handling systems with automated guided vehicles (AGVs) or conveyors
  6. 6Implement predictive maintenance using vibration analysis, thermography, and oil analysis
  7. 7Configure energy management with demand monitoring and load shedding capabilities
  8. 8Design compressed air management with leak detection and pressure optimization
  9. 9Implement environmental monitoring for noise, dust, and emissions compliance
  10. 10Configure production scheduling integration with ERP systems for materials management
  11. 11Design utility systems including boilers, chillers, and cooling towers with optimization control
  12. 12Establish comprehensive documentation including single-line diagrams, loop sheets, and as-builts

Best Practices

  • Use industrial-grade components rated for 24/7 continuous operation in harsh environments
  • Implement proper cable tray organization with separation between power and signal cables
  • Design control panels with adequate space for future additions and proper thermal management
  • Use standardized naming conventions for tags, I/O, and networks across facility
  • Implement centralized UPS systems protecting critical control equipment from power disturbances
  • Log equipment runtime hours triggering preventive maintenance work orders automatically
  • Use motor soft-starters or VFDs reducing mechanical stress and electrical demand charges
  • Implement proper grounding with separate grounds for power, control, and instrumentation
  • Design spare I/O capacity (20-30%) for future additions and modifications
  • Use industrial Ethernet switches with managed features including VLAN and QoS
  • Implement comprehensive spare parts inventory based on criticality and lead time
  • Maintain as-built documentation with redlines tracked and drawings updated quarterly

Common Pitfalls to Avoid

  • Inadequate panel cooling in harsh environments causing premature component failures
  • Poor cable management creating difficulties during troubleshooting and modifications
  • Failing to implement proper network segmentation creating cybersecurity vulnerabilities
  • Inadequate documentation making troubleshooting and modifications time-consuming
  • Not standardizing on common equipment platforms increasing spare parts inventory costs
  • Overlooking proper surge protection on long cable runs to remote equipment
  • Failing to implement energy monitoring missing opportunities for cost reduction
  • Inadequate consideration of maintenance access during equipment layout design
  • Not implementing version control on PLC programs causing uncertainty about production code
  • Overlooking importance of operator training reducing effective utilization of automation
  • Failing to validate actual equipment performance against manufacturer specifications
  • Inadequate coordination between mechanical, electrical, and controls engineering disciplines
  • Overdosing causing water quality exceedances - Flow meter error or pump calibration drift | Solution: Recalibrate flow meter using bucket test or calibrated reference meter, verify pump output using graduated cylinder over timed interval, check for air in chemical lines causing pulsation, implement high-limit alarms on water quality
  • Chemical feed pump losing prime - Air leaks in suction line or tank level too low | Solution: Pressure test suction piping for leaks (should hold vacuum >20 inches Hg), verify tank level above pump suction inlet, install foot valves preventing siphon break, prime pump and check valve operation
  • pH control oscillating around setpoint - Excessive PID gain or inadequate mixing time | Solution: Reduce proportional gain 30-50%, increase mixing time allowing chemistry to react before measurement (30-60 seconds typical), implement deadband +/- 0.2 pH units, verify sensor response time adequate
  • Inconsistent chemical dose despite constant flow - Pump diaphragm wear or check valve failure | Solution: Inspect pump diaphragm for tears or deterioration (replace typically every 3,000-5,000 hours), test check valves for proper seating preventing backflow, verify chemical viscosity not changed by temperature variations
  • Sensor reading drifting or erratic - Fouling, chemical coating, or electrical interference | Solution: Clean sensor using appropriate method (acid soak for pH electrodes, mechanical cleaning for conductivity cells), verify flow velocity adequate preventing stagnation (>0.5 ft/s minimum), check sensor cable shielding and grounding

Safety Considerations

  • 🛡Implement comprehensive lockout/tagout program with equipment-specific procedures posted at panels
  • 🛡Use arc flash labeled panels with appropriate PPE requirements clearly posted
  • 🛡Install machine guarding meeting OSHA requirements preventing access to moving parts
  • 🛡Implement safety circuits using dual-channel monitoring with diagnostic coverage
  • 🛡Use emergency stop circuits with hard-wired logic independent of PLC control
  • 🛡Install proper lighting in all electrical rooms and control areas meeting OSHA standards
  • 🛡Implement hot work permits for any maintenance requiring welding or cutting operations
  • 🛡Use proper fall protection for elevated equipment access and maintenance platforms
  • 🛡Install fire detection and suppression in critical electrical and control rooms
  • 🛡Implement hearing protection requirements in areas exceeding 85 dBA time-weighted average
  • 🛡Train maintenance personnel on electrical safety including shock and arc flash hazards
  • 🛡Maintain safety data sheets for all materials including lubricants and hydraulic fluids
Successful chemical dosing system automation in industrial requires careful attention to control logic, sensor integration, and safety practices. By following these industry-specific guidelines and standards, facilities can achieve reliable, efficient operations with minimal downtime. Remember that every chemical dosing system system is unique—adapt these principles to your specific requirements while maintaining strong fundamentals of state-based control and comprehensive error handling. Pay special attention to industrial-specific requirements including regulatory compliance and environmental challenges unique to this industry.

Free PLC simulator

Stop reading, start doing

Write ladder logic in your browser, hit Run, and watch real machine scenarios react. 12 guided lessons across 8 PLC dialects — free account, no credit card.

Practice PLCs free →