PLC Exercises
Practice your PLC Programming skills in EcoStructure Machine Expert Basic using the following exercises
The solution to the exercises are given in the course titled Learn 5 PLC's in a Day and Schneider PLC Programming Course
Section 1 - Series & Parallel logics
Create a logic when I0.0 is ON, Q0.0 should be ON and when I0.0 is OFF, Q0.0 should be OFF.
Create a series logic such that when I0.0 & I0.1 are ON, Q0.0 is ON
Create a Parallel Input logic such that when either of I0.0 or I0.1 is ON, Q0.0 is ON
Create a Parallel Output logic such that when I0.0 is ON, Q0.0 & Q0.1 are ON
Create a logic when I0.0 is ON, Q0.0 is ON & Q0.1 is OFF & when I0.0 is OFF, Q0.1 should be ON & Q0.0 should be OFF
Section 2 - Latching & Interlocking โ Using direct coil
Create a logic when I0.0 is pressed, Q0.0 should be latched & when I0.1 is Pressed, Q0.0 should be unlatched. (In this case consider I0.0 and I0.1 as NO Push Buttons)
Create a logic to interlock Q0.0 & Q0.1 using I0.0 & I0.1. Consider I0.0 & I0.1 as NO Push Buttons & use I0.2 as NC Push Button to reset Q0.0 & Q0.1.
Section 3 - Latching & Interlocking โ Using SET/RESET coil
Create a logic when I0.0 is pressed, Q0.0 should be latched & when I0.1 is Pressed, Q0.0 should be unlatched. (In this case consider I0.0 and I0.1 as NO Push Button)
Create a logic to interlock Q0.0 & Q0.1 using I0.0 & I0.1. Consider I0.0 & I0.1 as NO Push Buttons & use I0.2 as NC Push Button to reset Q0.0 & Q0.1.
Section 4 โ Timers
Create a Logic such that when I0.0 is ON, Q0.0 gets ON after delay of 5 secs. When I0.0 is OFF, Q0.0 should be OFF
Do the similar operation, but delay should change to 0.05 seconds (or 50ms)
Do the similar operation, but delay should change to 0.005 seconds (or 5ms)
Create a Logic when:
When I0.0 turns ON, Q0.0 will turn ON after 3 seconds.
After another 3 seconds, Q0.1 will turn ON.
After a final 3 seconds, Q0.2 will turn ON.
Create a Logic, when I0.0 is ON, Q0.0 is ON for 10 seconds then OFF.
Create a Logic that can be used to start a Motor 1 (Q0.0) using I0.0 (NO) and then after a delay of 10 sec start Motor 2 (Q0.1). When the Motor 1 is switched off using I0.1(NC) there should be delay of 10 sec before the Motor 2 is off.
Create a logic where Q0.0 latches ON if I0.1 is pressed within 10 seconds of I0.0 turning ON. If I0.1 is pressed after 10 seconds, nothing happens. Q0.0 unlatches when I0.0 is turned OFF..
Section 5- Timers (TMR) with Comparators
Use one push button (I0.0) to turn ON Q0.0 in following sequence: Q0.0 on for 2 sec. then off for 2 sec. then on for 3 sec. then continuously off.
Use I0.0 to blink Q0.0. (On Time 0.5 second & OFF time 0.5 second).
Use I0.0 to blink Q0.0. (On Time 0.5 second & OFF time 1 second).
When I0.0 is pressed, Q0.0 and Q0.1 should blink with a 1 second ON and 1 second OFF cycle. When I0.1 is pressed, Q0.0 and Q0.1 should blink with a 1.5 second ON and 1.5 second OFF cycle.
Section 6- Use of Counters (CNT) with Comparators
Create a logic such that When I0.0 is pressed 3 times, Q0.0 should be ON.
Create a logic such that When I0.0 is pressed 3 times, Q0.0 should be ON & when I0.1 is pressed Q0.0 should be OFF (Use Counter reset command)
Create a logic where I0.0 latches the conveyor (Q0.0) ON. Sensor I0.1 counts bottles on the conveyor. After counting 10 bottles, the conveyor (Q0.0) unlatches.
Create a logic in which
When I0.1 is pressed onceโ Q0.0 gets ON, Q0.1, Q0.2 get off,
When I0.1 is pressed twice โ Q0.1 gets ON and Q0.0, Q0.2 get OFF
When I0.1 is pressed thrice โ Q0.2 gets ON and Q0.0, Q0.1 get OFF
When I0.1 is pressed fourth time, all outputs should be OFF & cycle should repeat on pressing I0.1 again
Section 7- Data Registers
Switch ON the lamp (Q0.0) after a 5-second delay. Use the 'Assign' command to change the delay to 10 seconds when I0.1 is pressed, and back to 5 seconds when I0.2 is pressed. Use I0.0 (maintained button) to turn the lamp ON or OFF, and I0.1 and I0.2 (push buttons) to toggle the delay time between 5 and 10 seconds.
Update the logic of 7.1 where the delay time of the timer can be adjusted. Pressing I0.3 increments the timer by 0.1 second, and pressing I0.4 decrements it by 0.1 second. The current delay will either increase or decrease in steps of 0.1 second based on these inputs.
Create a logic to blink Q0.0 based on the following delay sequence using the 'Assign' command:
Default: ON time 1 second, OFF time 1 second.
Case A: When I0.1 is pressed, ON time 2 seconds, OFF time 1 second.
Case B: When I0.2 is pressed, ON time 1.5 seconds, OFF time 2 seconds.
Create a logic where Q0.0 blinks, and the ON/OFF times can be adjusted using the following:
Default ON/OFF time: 1 second.
I0.1 (Increment): Increases the ON/OFF time by 0.1 second.
I0.2 (Decrement): Decreases the ON/OFF time by 0.1 second.
Time limits: Minimum ON/OFF time is 0.5 seconds, and the maximum is 3 seconds.
Move a constant 10 in the register
Multiply it with 100
Add 56 to it
Subtract 14 from it
Finally store it in the another data register
Last updated