Home » Automatic Bottle Filling System using PLC
PLC Tutorials

Automatic Bottle Filling System using PLC

Automatic Bottle Filling System is one of the example in PLC program using RSLOGIX 500.

Bottle Filling System

Automatic Bottle Filling System using PLC

Problem Logic

Step Conditions:

  1. Start and Stop PB is used to start and stop the process.
  2. Start is pressed Conveyor starts moving until the Proximity Sensor is ON.
  3. Then solenoid valve is open for 5 seconds. After 5s Conveyor should start moving.
  4. The above process should continue unto 3 bottles.
  5. Process should continue still stop push button pressed.

List of Inputs and Outputs

Bottle Filling System Inputs

PLC Program

Bottle Filling Ladder Logic
Automatic Bottle Filling PLC Program

Program Description

RUNG 0000

Latching rung to operate the system through Master Start and Stop PB.

RUNG 0001

To turn ON Conveyor motor, memory bit (B3:0/1 ) is used .

 RUNG 0002

To turn on Conveyor motor using memory bit of start latching PB and B3:0/1, it will automatically turn off when B3:0/2 turns on once Proximity sensor activates.

Timer done is connected in parallel to turn conveyor motor ON again.

RUNG 0003

Proximity sensor output saved in memory bit to use in previous rung.

 RUNG 0004 and Rung 0005

To store the status of proximity sensor B3:0/3 is used, Comparator block is used to compare counter accumulator value to stop the process once three bottle process had filled.

Rung 0006

To count the number of bottles, proximity sensor is given to up counter with preset value sets to 3.

RUNG 0007

Stop input is given to reset the counter.


  1. Memory bits are used to store the sensor output, since it is the simulation, sensor cannot turn off automatically.
  2. Memory bits are used to get the sequence of operation.


The above explained simple bottle filling system is for example only. It may vary from real time.

Author : Hema Sundaresan

If you liked this article, then please subscribe to our YouTube Channel for PLC and SCADA video tutorials.

You can also follow us on Facebook and Twitter to receive daily updates.

Allen Bradley Logical Operations

Lube Oil Pump Motor PLC Logic

Gas Pressure Control using PLC

Scaling in PLC Ladder Logics

PLC Instructions – UP Counter

Share With Your Friends

Related Articles

Types of PLC

S Bharadwaj Reddy

PLC Memory Mapping and I/O addressing

S Bharadwaj Reddy

PLC Motor Logic with START, STOP, TEST Push buttons

S Bharadwaj Reddy

ON Delay Timer using PLC

S Bharadwaj Reddy

Label the Electrical Circuit Schematic

S Bharadwaj Reddy

Interposing Relay Panel (IRP) – Wiring and Testing Requirements

S Bharadwaj Reddy


jairo francisco oliveira paula January 10, 2020 at 8:53 pm

What is PB? several articles speak in this BP but I can not identify

S Bharadwaj Reddy January 12, 2020 at 1:19 pm

PB stands for Push Button. Examples – Start push button, stop push button, etc.


Leave a Comment

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

Automatic Bottle Filling System using PLC

WordPress Image Lightbox
Send this to a friend