SlideShare a Scribd company logo
PLC programming for
applications and
maintenance
By
Dr. Palitha Dassanayake
Content
 Programming a simple application
 Faultfinding and maintenance
 Programming application for
sequential operations
 Another program application
Constructing a PLC Program
Methodology in programming a PLC are given as
follows.
 
2.Write down or draw the requirements, logics or/and sequences 
in an understandable format using pseudocodes, flowcharts or 
UML (in some special cases). This may be skipped for smaller tasks,
 but essential when that the task becomes large or complicated. 
However, it is good practice to conduct this step to avoid unnecessary 
logical errors. 
1. Identify the requirements or logical sequences that are
going to be handled by a PLC.
Draw the necessary tables or maps to illustrate the PLC
ogic that match with the requirement, but independent
om the language code (ladder, logo or statement list)
4. Connect the PLC to the system to be controlled and to the 
computer that PLC is going to get programmed 
 Identify the input and output cables that are connected in 
der to program.
6. Write the PLC program according to step 3 using the identified 
inputs/outputs in step 5. 
7. See the possibilities of improving the program 
8. Validate the program before the actual run. This may be achieved 
through a simulation facilitated in the software or using a virtual 
model using bulb and switches 
 Check the program. Remove the connection from the computer 
necessary. It  may be conducted part by part in a large application. 
lso, when the program is run for the first time, required safety 
ecautions must be made before hand in order to avoid any damages
ue to logical errors.
0.Remove the connection from the computer if that has not been 
one and use the PLC for the application.
Example
A1
Is
C1
C2
 Fig:Two views of the system 
Is-Inductive
sensor
A1-Pneumatic Actuator
C1-Collector
C2-Collector
Gear
Box
 motor-m
item
Os-Optical sensor
A0
A0
1. When Os detects an item, it should be pushed by A0 and conveyor
         should start moving 
2.      If the item is metal, it has to be identified by Is.  
3.       Metal items are to be pushed by A1 and collected in C1.  
4.      Non-metal items are to be collected at the end of the belt to C2  
5. If an item is in process, even if Os detects an item, it should not be
    pushed by A1 until the previous item is fully processed.  
Start -No item Os=0
Os=1 A0 should be ejected provided no other item is in process
If the item is metal, it is sensed by Is.
If Is=1 item is metal, this should be remembered
If Is had been 1 it has to pushed by A1 after a time interval
If the item is not metal, it should not be pushed and collected at
the end. The time required to travel is also required.
Amplifier
Electro-pneumatic
valve
PLC
Operating
Voltage –24 v
I0.1
I0.0
Q0.0
Q0.1
I s-
C
C2
Gear
Box
m
Os
If output the sensor
is in mv
A/C motor
RelayA0
Q0.2
Electro-pneumatic
valve
A1
Os - I0.0
Is - I0.1
A1 - Q0.0
M - Q0.1
A0 - Q0.2
Input-output connections
M0.0 - An item is in process
M0.1- The item is Metallic
0.3 sec time is required for a pneumatic actuator to activate
Operation Time(s)
Activate A0 0
Near A1 10
End of the belt 15
Start -No item Os=0
Os=1 A0 should be ejected provided no other item is in process
Time=0.3 sec
T33 Q0.2
R
M0.0
S
Q0.2 T33
30+
IN
PT
TON
Q
ET
I0.0 M0.0 Q0.2
S
If the item is metal, it is sensed by Is.
If Is=1 item is metal, this should be remembered
I0.1 M0.1
S
If Is had been 1 it has to pushed by A1 after a time interval
T37 T34
30+
IN
PT
TOF
Q
ET
T34
T34 Q0.0M0.1
M0.0 T37
100+
IN
PT
TON
Q
ET
T37
If the item is not metal, it should not be pushed and collected at
the end. The time required to travel is also required.
You must reset already set items once the process is completed
M0.0 T38
150+
IN
PT
TON
Q
ET
T38
Q0.0
T38
M0.1
R
M0.0
R
Fault in a system
System is not working at all
1. Check whether PLC is in the run mode
Stop mode, change
Error Mode, Restart PLC again error go to Step 2
2. Check inputs
No input working check input power supply, connections etc
Some inputs not working, check the connected wires, sensors or switches
and interfaces
All inputs working go to Step 3
3. Check outputs
Check the outputs in the order it should work
Check the LED of the PLC, if it is working find the fault in the connection or device
No LED output is on, down load the program
Communication with PLC is not possible replace PLC
After downloading the programming Not working replace PLC
Faults and causes
Os Fault A0 –Not work and Motor not work
Is Fault A1-Not work
Motor Fault Motor not work
A0 Fault A0 Not Work
A1 Fault A1 Not Work
Sensor Faults Nothing Work
Pneumatic problem A0 and A1 Not work
PLC Fault Nothing Work
Fault Finding
A/C Motor is not working, but the pneumatic actuator A0 pushes
the item into conveyor
Check the output of the PLC connected to the relay of the PLC
That is Q 0.1 if it is on (LED on) fault is from that point
If it is off (Generally not possible)
check the program or check all sensors
Pneumatic Actuator A0 is not working, but the A/C motor is working
Check the output of the PLC connected to the electro-pneumatic valve
of the PLC That is Q 0.2 if it is on (LED on) fault is from that point
If it is off, Place a metal onto the conveyor and check A1 is working
A1 Not working Pneumatic problem
A1 is working (Generally not possible)
check the program or check all sensors
Fault Finding Contd.
A0 and A/C Motor is working, but the pneumatic actuator A1 does
not sort items
Check the output of the PLC connected to the electro-pneumatic valve
of the PLC That is Q 0.0 if it is on (LED on) fault is from that point
If it is off, check the sensor Is
Working generally not possible
check the program or check all sensors or sensor Is
System is not working at all
Check electrical connections, check sensor failure,
No program in PLC
Pneumatic failure+ Motor is not working
PLC is at fault
Setting and Resetting a Memory
I0.0 M0.0
S
I0.1 M0.0
R
Another method with one ladder
I0.0
M0.0
I0.1 M0.0
Cylinders are in the
original position
A
B
C
D
Cylinder 2
X2
Cylinder 1
X1
A
B
C
D
Cylinder 2
X2
Cylinder 1
X1
A
B
C
D
Cylinder 1
X1
Cylinder 2
X2
Cylinders are in the
original position
A
B
C
D
Cylinder 1
X1
Cylinder 2
X2
Cylinders are in the
original position
A
B
C
D
Cylinder 2
X2
Cylinder 1
X1
=1 =1
Cylinders are in the
original position
A
B
C
D
Cylinder 2
X2
Cylinder 1
X1
=0 =1
ABC
Pneumatic
Actuator
ProductProductProductProduct
Product
Product
ABC
Pneumatic
Actuator
Product
A=0 B=0 C=0
Product
A=1 B=0 C=0
Product
Time 1 sec after C=1
Product
A=1 B=1 C=0
If short when B=1 A=0
Product
A=0 B=1 C=1
If long when C=1 A=1
Product
Time 1.3 sec after C=1
If the product is long or short
A B M0.0
S
T34
M0.1
100+
IN
PT
TON
Q
ET
T33
30+
IN
PT
TOF
Q
ET
34T T33
M0.1
S
M0.0
A C
C
PLC programming using S7 Version
apT33 T34
M0.0
R
T33 T34 M0.1
R
C
END

More Related Content

PPTX
PLC programming example - Paint Spray
PPTX
Programmable Logic Controller
PDF
PLC based home automation (undergrad thesis)
PPTX
PLC Based Paint Mixing Machine
PDF
INVESTIGATING HUMAN-MACHINE INTERFACES’ EFFICIENCY IN INDUSTRIAL MACHINERY AN...
PDF
IRJET- PLC based Bottle Filling with Automatic Volume Detection
PDF
Programmable logic controllers (PLC) Questions
PDF
Instrumentation engineering multiple choice questions
PLC programming example - Paint Spray
Programmable Logic Controller
PLC based home automation (undergrad thesis)
PLC Based Paint Mixing Machine
INVESTIGATING HUMAN-MACHINE INTERFACES’ EFFICIENCY IN INDUSTRIAL MACHINERY AN...
IRJET- PLC based Bottle Filling with Automatic Volume Detection
Programmable logic controllers (PLC) Questions
Instrumentation engineering multiple choice questions

What's hot (8)

PPTX
Programmable Logic Controls training day 2
PDF
Risks of funcional safety with es short
PDF
Risks of funcional safety v2.1
PPTX
Programmable Logic Controls training day 1
PPTX
6 Month Industrial Automation Training
PDF
FYP. Automation Of Box Filling Machine Using PLC 2
DOCX
Plc & scada Training Report
DOCX
รายงานการทำ Lab วันที่ 10 ธันวาคม
Programmable Logic Controls training day 2
Risks of funcional safety with es short
Risks of funcional safety v2.1
Programmable Logic Controls training day 1
6 Month Industrial Automation Training
FYP. Automation Of Box Filling Machine Using PLC 2
Plc & scada Training Report
รายงานการทำ Lab วันที่ 10 ธันวาคม
Ad

Viewers also liked (20)

PPT
Plc Siemens Training Notes
PPT
Omron plc training
PDF
PLC and SCADA training.
PPTX
ppt on PLC
PPTX
Basics of Automation, PLC and SCADA
PDF
Load Flow Analysis of Jamshoro Thermal Power Station (JTPS) Pakistan Using MA...
DOCX
Exp 3 (1)3. To Formulate YBUS Matrix By Singular Transformation.
PPTX
Plc programming with fbd
PDF
NUMERICAL METHODS WITH MATLAB : bisection,mueller's,newton-raphson,false poin...
PPT
Aula#01 s7 200
PPTX
Plc and relay system used in ntpc
PDF
Plc systems-e xercise
DOCX
Exp 5 (1)5. Newton Raphson load flow analysis Matlab Software
PPT
Automationcontrol7
PPT
The basics of plc technology
PPTX
PPT
Power System Simulation Lab (Formation of Y-Bus & Z-Bus Matrix)
PDF
Plc Siemens Training Notes
Omron plc training
PLC and SCADA training.
ppt on PLC
Basics of Automation, PLC and SCADA
Load Flow Analysis of Jamshoro Thermal Power Station (JTPS) Pakistan Using MA...
Exp 3 (1)3. To Formulate YBUS Matrix By Singular Transformation.
Plc programming with fbd
NUMERICAL METHODS WITH MATLAB : bisection,mueller's,newton-raphson,false poin...
Aula#01 s7 200
Plc and relay system used in ntpc
Plc systems-e xercise
Exp 5 (1)5. Newton Raphson load flow analysis Matlab Software
Automationcontrol7
The basics of plc technology
Power System Simulation Lab (Formation of Y-Bus & Z-Bus Matrix)
Ad

Similar to Automationcontrol4 (20)

PPTX
Basics Of Programmable Logic Controllers PLC.pptx
PPTX
Weeks 16 17 pe 3231 maintenance and fault finding
PDF
PLC Troubleshooting & Maintenance
PDF
PLC Troubleshooting & Maintenance.pdf
PDF
PDF
Introduction to plc programming
PPTX
Plc by Mohamed Al-Emam, Session3
PPT
car wash system
PPTX
plc introduction
PPT
Plc description
PPTX
Module-4 PLC for Automation and control.pptx
PPT
Programmable_Logic_Controllers_Introduction_to_PLCs__(Chapter_1)_Lec1.ppt
PDF
PLC Controlled Automated Multiple Conveyor System for Sorting Process
DOCX
Pendant Control System report
PDF
Industrial Automation
PPTX
Plc (PROGRAMMABLE LOGIC CONTROLLER)
PDF
Pcb automatic vaccum loader user guidance | SunzonTech
PPTX
Electrician Training for USAF
PDF
PLC TECHNICIAN HANDBOOK beginners in automation
Basics Of Programmable Logic Controllers PLC.pptx
Weeks 16 17 pe 3231 maintenance and fault finding
PLC Troubleshooting & Maintenance
PLC Troubleshooting & Maintenance.pdf
Introduction to plc programming
Plc by Mohamed Al-Emam, Session3
car wash system
plc introduction
Plc description
Module-4 PLC for Automation and control.pptx
Programmable_Logic_Controllers_Introduction_to_PLCs__(Chapter_1)_Lec1.ppt
PLC Controlled Automated Multiple Conveyor System for Sorting Process
Pendant Control System report
Industrial Automation
Plc (PROGRAMMABLE LOGIC CONTROLLER)
Pcb automatic vaccum loader user guidance | SunzonTech
Electrician Training for USAF
PLC TECHNICIAN HANDBOOK beginners in automation

Recently uploaded (20)

PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
master seminar digital applications in india
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Complications of Minimal Access Surgery at WLH
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Institutional Correction lecture only . . .
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
Lesson notes of climatology university.
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Microbial diseases, their pathogenesis and prophylaxis
master seminar digital applications in india
2.FourierTransform-ShortQuestionswithAnswers.pdf
Supply Chain Operations Speaking Notes -ICLT Program
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
RMMM.pdf make it easy to upload and study
STATICS OF THE RIGID BODIES Hibbelers.pdf
Complications of Minimal Access Surgery at WLH
Chinmaya Tiranga quiz Grand Finale.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
Institutional Correction lecture only . . .
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
O7-L3 Supply Chain Operations - ICLT Program
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Lesson notes of climatology university.
102 student loan defaulters named and shamed – Is someone you know on the list?
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx

Automationcontrol4