A bank having three counters for Deposit /Withdraw cash in which totally 15 people are allowed for a day. When people count reaches 15, display will show Counter Closed and should not allow the 16th person to check-in. Develop a suitable program for this plc programming example.
PLC Program for Bank Counter
List of Inputs and Outputs
PLC Counter Example
Ladder Logic Description
RUNG000
Latching rung to operate the system through Master Start and Stop PB.
RUNG001
When a person enters Counter 1, Sw 1 is pressed by the bank person to make count .One shot is used to give single pulse input which will be store in O:0/1
RUNG 0002
When a person enters Counter 2, Sw 2 is pressed by the bank person to make count .One shot is used to give single pulse input which will be store in O:0/2.Counter done bit is used to restrict the 16th person to enter.
Rung 0003
When a person enters Counter 3, Sw 3 is pressed by the bank person to make count .One shot is used to give single pulse input which will be store in O:0/3
Rung 0004
Collected outputs from the above rungs are accumulate in Counter block. Comparator block is used to limit the count by 15.
Rung 0005
Counter (C5:0) done bit is used to refresh the Process from beginning
Program runs continuously until STOP PB is pressed.
Conclusion:
The above explained Bank counter using PLC is for example only. It may vary from real time. We can use this example program to understand the working of Counters function in AB PLC.
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: