June 21, 2020

Up counter instruction using example.

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).

























June 13, 2020

Sequential operation of two lamps.

Sequential operation of two lamps.

Application:-Operate two lamps in sequence. There are two lamps in the system and we need to operate it in sequence, hence first L1 will be on and after 10s second L2 will be ON.

Components:-Programmable logic controller, Electrical panel, wires, 24VDC switch with NO contacts, 24VDC solenoid valve, and 24 VDC timer.



















Explanation:-

As per above application, there are two lamps in the system and we need to operate them in sequence. So when lamp on/off button is pressed L1 will be on and second lamp L2 will on after 10 second delay. In this case we need to use on delay timer because we are giving delay between two lamps.


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 switch is digital input and lamps are the digital output. So define digital input address and output address as per below explanation,

Digital inputs:-

Digital Output:-

L1=Q0.0

L2=Q0.1

Memory Coil:-

On/off switch:-M0.0
























PLC program Explanation:-

In network 1, we have used NO contact of lamp ON/OFF (M0.0), so when switch is pressed L1 (Q0.0) will be on immediately.

In network 2, we have used NO contact of L1 (Q0.0) to operate L2 (Q0.1). Here we used on delay timer to provide delay between two lamps.