Write a PLC program so that when a selector switch is ON, the timer starts to count for 5 seconds and switch motor to ON, when the selector switch is OFF before the 5 seconds the timer stops counting and when the selector switch is ON again then the timer starts to count from the last value the timer stopped counting. And so on.
Note: the best practice to learn the PLC programming is to start writing the PLC program, take your time before you review the answer.
I0.0: selector
Q0.0: Motor
Convert instruction to convert from the integer format to BCD format.
When the selector is ON, the timer start to count from the preset value stored in MW2 and stores the remaining time in MW4 while the motor is ON.
When the selector is OFF before 5 seconds elapsed, the motor stops and the negative edge detector energizes the move instruction to move the remaining time to the initial time value MW0.
So when the selector is ON again the timer starts to count from the preset value which is remaining time from the last run.
When the remaining time is equal to zero, 5 seconds is moved to MW0 to start counting for the next time.
Author: Karim Ali Anwar
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:
Learn the example of flip-flop PLC program for lamps application using the ladder logic to…
In this article, you will learn the STAR DELTA programming using PLC controller to start…
Lube oil consoles of rotary equipment packages in industrial process plants are usually equipped with…
Rotating equipment packages such as pumps, compressors, turbines need the lube oil consoles for their…
This article explains how to blink lights in ladder logic with a detailed explanation video…
In this article, a simple example will teach you the conversion from Boolean algebra to…
View Comments
thank you very much for simple methods in explaining plc