PLC Exercises LD
PLC Exercises LD
PLC Exercises LD
Ladder Diagram
Programming
By
Control Problem
The PLC task is to move the
piston in and out. When
switch SW1 is momentarily
turned on, piston A is to
move out of the cylinder in
A+ direction. When switch
٣ SW2 is momentarily turned
on, piston A is to move into
the cylinder in A- direction.
Dr. Mohammad Salah – Mechatronics
٤
Dr. Mohammad Salah – Mechatronics
Control Problem
The PLC task is to operate piston A followed by
piston B followed by piston C. The sequence is A+,
A-, B+, B-, C+, C- is to be repeated when switch
SW1 is turned on
Dr. Mohammad Salah – Mechatronics
٧
Dr. Mohammad Salah – Mechatronics
٨
If the system does not work or sequence in not
correct, what would be the possible reasons?
• Solenoid valves do not work
• The wiring of solenoid valves is not correct or not in
the correct order (wiring problem)
• The ladder diagram is not properly written (sequence
in not correct)
Dr. Mohammad Salah – Mechatronics
Control Problem
The PLC task is to control a simple
٩ machine which counts and batches
components moving along a conveyor. It
is required that ten components be
channeled down route A and twenty
components down route B. A reset facility
is required
Dr. Mohammad Salah – Mechatronics
١٠
Dr. Mohammad Salah – Mechatronics
١١
Dr. Mohammad Salah – Mechatronics
١٣ Control Problem
The PLC task is to detect and reject faulty components. Components are
transported on a conveyor past a retro-reflective type photoelectric switch. The
photoelectric switch is positioned at a height (H) above the conveyor where (H)
represents a tolerance value for component height. Good components pass
underneath the photoelectric switch and no signal is generated. Faulty
components break the light beam twice as they pass the photoelectric switch.
Dr. Mohammad Salah – Mechatronics
١٤
Dr. Mohammad Salah – Mechatronics
١٥
Dr. Mohammad Salah – Mechatronics
١٦
If the system does not reject faulty components, what would be the
possible reasons?
• The photoelectric switch is too high (H is too big)
• The photoelectric switch does not work
• The pneumatic blower does not work
• The ladder diagram is not properly written
• The faulty components is not as described in the drawing
Dr. Mohammad Salah – Mechatronics
١٧
Control Problem
The PLC task is to:
a) move the gripper to X+ position
b) close the gripper so that it takes hold of a component
c) rotate the gripper through 180o to the Θ+ position
d) Release the component
e) Rotate the gripper back to the Θ- position so that the pick and place
operation may be repeated
Dr. Mohammad Salah – Mechatronics
١٨
Dr. Mohammad Salah – Mechatronics
٢٠ Control Problem
The PLC task is to organize the production process. Cans filled with fluid and
capped before passing into a conveyor. The photoelectric switches P1 and P2 are
used to check that each can has a cap. Photoelectric switch P3 provides a trigger
for the ink jet printer which prints a batch number on each can. Photoelectric
switch P4 is used to count three cans into the palletizing machine that transports
three cans through a machine which heat shrinks a plastic wrapping over them.
All photoelectric switches on the production line are of the retro reflective type.
Dr. Mohammad Salah – Mechatronics
٢١
Dr. Mohammad Salah – Mechatronics
٢٢
Dr. Mohammad Salah – Mechatronics
٢٣
If the system allows uncapped cans to pass, what would be the
possible reasons?
• The height of the photoelectric switch needs to be readjusted
• The photoelectric switch does not work (transmitter or receiver)
• The photoelectric transmitter is not aligned with the receiver
• The ladder diagram is not properly written (or timer is not set properly)
Dr. Mohammad Salah – Mechatronics
٢٤
Dr. Mohammad Salah – Mechatronics
٢٥
Dr. Mohammad Salah – Mechatronics
٢٦
٢٧