PLC Program for Daily Production Record

PLC Program for Daily Production Record. Learn the problem description with a detailed explanation of the ladder logic.

Daily Production Record

Problem Description

In many industries, It is required to count the number of products that are made in one day and it is very necessary for selling the products or tracking the production quantity on a daily basis.

In the olden days, human operators were allotted for counting the final products but because of some human errors, precise counting is not possible. Therefore we cannot get proper counting of all products and are unable to track the production quantity effectively.

Mostly these types of problems occur in food and beverage industries, box packaging industries, bottle filling applications etc. So we can use a simple PLC based logic to track the daily production and to record it electronically.

Problem Diagram

PLC Program for Daily Production Record

PLC Solution

Here we will solve the problem of counting of final products by using sensors and PLC programming. First sensor sense the product and counts the quantity and the value will be shown on the digital display (as shown in above figure).

For easy explanation, we will consider one simple example of empty box counting system. In this system empty boxes are travelling form first process to second process (say one place to another).

Sensor is used for counting the empty boxes. So when sensor will detect empty box then display will start , say starts count from  1 and this is done by simple logic.

Every 24 hours / after one day, we can reset the counter value by using RESET button. Here we will consider two batches of production for easy explanation.

And also we have considered two batches completion indications for operator for each batch which will display on the Local Panel. By PLC logic we will implement the desired logic.

So when any batch will be completed then indication lamp will be ON as per PLC program.

Once production target will be completed, display counter can be reset by using RESET button.

List of Inputs/Outputs

Inputs List

  • Box detector Sensor: I0.0
  • Reset: I0.1
  • Main SWITCH: I0.2

Outputs List

  • Target completed: Q0.0
  • Batch 1 completed: Q0.1
  • Batch 2 completed: Q0.2

Ladder Diagram for Daily Production Record

Ladder Logic for Daily Production Record

PLC Program Description

In this application, we have used Siemens S7-1200 PLC and TIA Portal Software for programming.

Network 1:

In Network 1 we used Main SWITCH (I0.2) to start the system/batch and we used NO contact of box detector sensor (I0.0) in series. Here we considered one UP counter so when box detector sensor (I0.0) detects  the box then counter will starts counting.

Here also we have taken target completed output (Q0.0) for target completion indication for the operator indication on the panel. By pressing RESET button (I0.1) operator can RESET the old production record.

Counter operation is used to count the products, in which RESET (I0.1) used for reset the production record. And Preset value (PV) is 20 products. Counter value (CV) is MW2 indicates the actual number of products detected by sensor & this value will be used in the following rungs to track the batch status.

Network 2:

In Network 2 we used batch1 logic from counter block output CV. Here we used comparator for counting 10 boxes for batch 1 and when it will be completed then batch 1 completed lamp (Q0.1) will ON. In this add equal to equal comparator in which input is (MW2) and for 10 products.

Network 3:

In network 3 we used batch 1 logic from counter block output CV. Here we used comparator for counting 20 boxes for batch 2 and when it will be completed then batch 2 competed lamp (Q0.2) will ON

And this way we can decide that how many products and batches are produced.

Runtime Test Cases

PLC Production

Note: The above PLC Logic provided for basic idea about application of PLC in industrial production record. The Logic is limited and not complete application.

Author: Bhavesh

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.

Read Next:

Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address

Leave a Comment

Share via
Follow us and never miss an update!