Step-by-Step PLC Ladder Logic for Automatic Liquid Mixing Process with Interlocks

This article uses Schneider Electric’s EcoStruxure Machine Expert platform to describe PLC-based design of a semi-automatic liquid mixing application. Operating two solenoid valves (for two liquids) and an agitator motor using discrete pushbutton commands takes front stage in the application. It guarantees correct and safe filling by means of interlock systems.

Accurate mixing of many liquids is crucial in modern process sectors including chemical plants, beverage manufacturers, water treatment facilities, and pharmaceutical companies. Manual control with valves and stopwatches usually results in:

  • Human errors and safety risks
  • Inconsistent product quality due to inaccurate mixing ratios
  • Loss or spillage of expensive raw materials
  • Time delays during startup and filling cycles
  • Increased operator workload

Programmable Logic Controllers (PLC) enable operators exact control with less human intervention. This advances production consistency, safety, and quality assurance.

Operators have three control options:

  • Fill only Liquid 1
  • Fill only Liquid 2
  • Fill both liquids together for a mixed batch

In each scenario, an agitator motor operates automatically during filling to guarantee complete mixing. Inlet isolation and discharge are accomplished with manual valves; digital I/O handles the main automation logic.

Step-by-Step PLC Ladder Logic for Automatic Liquid Mixing Process with Interlocks 1

Use the Above Illustrated Process Overview Diagram to grasp the hardware configuration and signal flow including:

  • Manual Valves (V1, V3, V5)
  • Solenoid Valves (V2, V4)
  • Agitator Motor (M1)
  • Operator Pushbuttons (S1, S2, S3)
  • Corresponding PLC input/output address mapping

How to Scale Analog Values in PLCs: Scaling Analog Values in Industrial Automation (PLC)

InputDescriptionPLC Address
S1Fill Liquid 1 Button%I0.0
S2Fill Liquid 2 Button%I0.1
S3Fill Mixed Liquids Button%I0.2
OutputDescriptionPLC Address
V2Solenoid Valve – Liquid 1%Q0.0
V4Solenoid Valve – Liquid 2%Q0.1
M1Agitator Motor%Q0.2

Refer to the below Illustrated Ladder Logic Diagram for visual confirmation of the logic networks explained below for Fill Liquid 1.

Step-by-Step PLC Ladder Logic for Automatic Liquid Mixing Process with Interlocks 2

Explanation:
When the Fill Liquid 1 button (S1) is pressed:

  • It checks that S2 and S3 are not pressed.
  • If the condition is met, it activates solenoid valve V2 to fill Liquid 1.

This logic prevents accidental opening of both valves and ensures exclusive operation.

Top 6 Ladder Logic Rules Every PLC Programmer Should Know: Top 6 Important Rules for PLC Ladder Diagram Programming

Refer to the below Illustrated Ladder Logic Diagram for visual confirmation of the logic networks explained below for Fill Liquid 2

Step-by-Step PLC Ladder Logic for Automatic Liquid Mixing Process with Interlocks 3

Explanation:
When the Fill Liquid 2 button (S2) is pressed:

  • It verifies that S1 and S3 are not pressed.
  • If valid, it energizes solenoid valve V4 to admit Liquid 2 into the tank.

Again, the interlock ensures only one valve operates at a time unless mixing is explicitly commanded.

The Complete Beginner’s Guide for Rungs and Rails in Ladder Logic : Understanding Rungs and Rails: The Foundation of PLC Ladder Logic

Refer to the below Illustrated Ladder Logic Diagram for visual confirmation of the logic networks explained below for Fill Both Liquid 

Step-by-Step PLC Ladder Logic for Automatic Liquid Mixing Process with Interlocks 4

Explanation:
If the Fill Both Liquids button (S3) is pressed alone:

  • Both V2 and V4 are activated simultaneously.
  • This allows Liquid 1 and Liquid 2 to enter the tank together.

The interlock (checking that S1 and S2 are not active) prevents unintended mixing when S3 is not the intended choice.

NO vs NC Contacts Explained for PLC Logic: Understanding NO vs NC Contacts is key for Logic Writing in PLC Programming

Refer to the below Illustrated Ladder Logic Diagram for visual confirmation of the logic networks explained below for Agitator Motor Control

Step-by-Step PLC Ladder Logic for Automatic Liquid Mixing Process with Interlocks 5

Explanation:
The agitator motor M1 runs when either V2 or V4 is energized. This logic ensures:

  • Mixing is performed during all fill conditions, whether single or mixed.
  • The operator does not need to manually start the motor.
  • No mixing occurs if no valves are open, thus saving energy.

Which Should You Use Sinking vs Sourcing in PLC Wiring?: Sinking and Sourcing: Which Connection is Best for Your PLC?

ScenarioS1S2S3V2V4M1
Fill Liquid 1100101
Fill Liquid 2010011
Fill Both Liquids (Mixed Fill)001111
S1 and S2 pressed together110000
All buttons pressed111000
No buttons pressed000000
Test Case DescriptionInput Buttons PressedValve V2Valve V4Agitator M1
Fill only Liquid 1S1ONOFFON
Fill only Liquid 2S2OFFONON
Fill both liquids togetherS3ONONON
S1 + S2 pressedS1 + S2OFFOFFOFF
All buttons pressedS1 + S2 + S3OFFOFFOFF
No input pressedNoneOFFOFFOFF


Mastering Logic Gates in PLC Programming with Ladder and Truth Tables: Logic Gates in PLC Programming: A Guide with Truth Tables and Ladder Logic Diagrams

  • Agitator Logic: Automatically switches on mixing during any valve operation guarantees higher consistency without burdening the operator.
  • Safety Interlocks: Prevent conflicting operations, critical when working with chemicals or expensive fluids.
  • Modular Design: Modular design allows you to include more logic (such as alarm relays or tank level sensors) without compromising the central program.

PLC Timer Example: Motor Control with a Single Pushbutton: PLC Programming Example: Using Timers to Control Motors with a Single Switch

  • Use level switch inputs to stop filling when tank reaches high level.
  • Add timers to run agitator for a fixed period even after valve closes.
  • Combine HMI for pushbutton control, tank level display, and alert acknowledgement.
  • Add data logging for recording operator use, operation cycles, or liquid volume (if flowmeters are added).
    What’s the Difference in ON Delay vs OFF Delay Timers in PLCs?: Understanding ON Delay and OFF Delay Timers in PLC Programming

This PLC-based control system guarantees:

  • Accurate and safe filling operation for Liquid 1, Liquid 2, or both.
  • Automated mixing during any fill cycle.
  • Use input interlock to prevent harmful sequences.
  • Designed with easy future scalability and explicit logic utilizing Schneider EcoStruxure Machine Expert.

Read More

Recent