Application:-Understand the concept of UP counter instruction in the PLC. Explain UP counter concept using PLC program.
Components:-Programmable logic controller.
Explanation:-
Generally counter is used to count events in the application. Counter is used in so many application like object count, students counts, cars count etc. Counter instruction used in programmable logic controller for deferent types of logic. Here our aim is to understand UP counter, UP counter counts the objects.
PLC program:-
Write the ladder program for above application using ladder diagram language. Here for ladder logic we can use any supported PLC system like S7-1200, S7-300, S7-1500 or any other PLC which can support this instruction. For PLC logic we need digital inputs and outputs.
For our application ON/OFF button is digital input and lamp is the digital output. So define digital input address and output address as per below explanation,
Digital inputs:-
ON/OFF button=I0.0
Counter Reset=I0.1
Digital Output:-
Lamp=Q0.0
|
PLC program Explanation:-
In above network 1, we have used UP counter (CTU). We can use INT data type for the counter. When ON/FF button (I0.0) is pressed five times, valve (Q0.0) should be ON.
Here UP counter will continue to count till reset button pressed. If we will not press reset button, counter will continue to count after five. UP counter should be reset after its PV value over.
In in PV, we can set preset count value and actual count value can be monitored in CV (current count value).
No comments:
Post a Comment