Exercise for learn Program PLC

There are a few possibilities, this site has a at the top called PLC Tutorial, it covers the basics, there are many others if you search with google, also there are a few PLC manufacturers who supply free software like CMore & Do more (HMI & PLC) Click from Automation direct, codesys I believe & I'm sure there are others.
Some have simulators built in so you can test your code without a PLC.
 
Once you have a platform to experiment with, the classic learning project is simple set of traffic lights. From this you can learn many basic skills and concepts.
Before you start programming:
(write it down on a piece of paper)
What is the sequence?
What inputs are needed?
What outputs are needed?
What will happen after a power failure?
What will the structure of your program look like?

Once you have programmed it:
Does it work as planned?
Does it behave correctly following a power failure?
Add a pedestrial crossing?
Add filter lanes?
Add emergency services interrupt?
 
Traffic lights are great but there are limited inputs as traffic lights generally work on a cycle & timers, with the exception of interupting the sequence with things like traffic flow (amount of traffic in each direction) or pedestrian initiated crossings i.e. pressing a button to add an extra step to stop traffic in all or limited directions to allow pedestrians to cross.
Perhaps a better little process would be a simple pick & place system where you have two axis i.e. up/down & forward & back
For example the unit starts at up & back, a part is placed in a holder & when the part is detected the pick unit drives the vertical axis down, a gripper grabs the part, then the axis travels back up, then forward to the place holder, then the down axis is energised, when down the gripper opens, the down/up axis then goes up & when up the forward/reverse axis goes in reverse back to the start position & waits until another part is in place ready to be picked up.
So think about the inputs/outputs.
Inputs required:
Start button
Stop button
Sensors for the pneumatic cylinders for the axis
up/down cylinder sensors 2 off
Forward & reverse sensors 2 off
A sensor to detect a part placed in the holder to be picked up
A sensor to detect when a part is in place in the holder where it is placed.
5 outputs to drive the solenoids for the cylinders
Inputs:
I 0.0 Start Button
I 0.1 Stop button
I 0.2 Part in pick nest Sensor
I 0.3 Up/down axis in up position Sensor
I 0.4 Up/Down Axis in down position Sensor
I 0.5 Fwd/Rev Axis in home (back) position
I 0.6 Fwd/rev Axis in Forward position
I 0.7 Part in place nest sensor
Outputs:
O 1.0 Indicator light to show it's running
O 1.1 UP/Down cylinder Down solenoid
O 1.2 Up/down cylinder UP solenoid
O 1.3 Fwd/Rev Cylinder Back solenoid
O 1.4 Fwd/Rev Cylinder Forward solenoid
O 1.5 Gripper solenoid.
Then create the symbol names for the I/O
Now write down the steps required for example
When cycle is started (start button) then enable step 1 (if part in pick nest send up/down axis down)
step 2 Axis down Sensor, grip part, small delay to allow gripper to grip
Step 3 axis up/down send up until up sensor.
Step 4 Send axis fwd/back forward until Fwd sensor is reached,
Step 5 at fwd position send up/down axis down.
& so on.
Just remember that some of the steps have the same logical positions for example when you start at idle position & send it down to pick a part then when it comes back up it is the same as previous position so you need to know you have already sent it down to pick the part up.
So the down logic is AND Running AND Gripper open AND part in Place
The up logic will be AND Running AND Gripper Closed AND Part in place AND grip timer complete Send up Axis
& so on.
You do not actually need real inputs but use internal bits i.e. "M" bits instead of real inputs, write a seperate program block that sets & resets these bits on timers so for example when down solenoid is actuated, reset the up sensor bit start a delay timer & when timer is up set the down sensor bit
& do this for all the inputs.
you can use either some real inputs or internal bits for the start/stop buttons & the part in place sensors if required you just need to switch them on/off at the relevant times.
 

Similar Topics

I need help with Advanced Batch Exercise :D:D:D:D:D please
6
Replies
3,113
Views
Hello. I am having troubles with Batch Mixer Exercise 3. I need help with which PLC controls I need for the following steps. In Silo Lab Exercise...
10
Replies
3,444
Views
Hello, I am a student at university, and i need assistance with the FIFO instruction in RS5000. I was wondering if there are any type of...
3
Replies
2,395
Views
Is it possible to complete this exercise not using anything but XIC/XIO/OTE?:hmmm:🍻
4
Replies
2,071
Views
Hello, Im interested in a solution of one particular task. So lets say, i have one momentary push-button and button for resetting. The first...
2
Replies
2,158
Views
Top