SlideShare a Scribd company logo
1 of 39
1
NUS IA- Programmable Logic Controllers
Programmable
Logic Controllers
2
NUS IA- Programmable Logic Controllers
Programmable Logic Controllers
•microcomputer-based controllers
•can be programmed for sequence control purposes
•other powerful features: counting and timing,
arithmetic processing, process control, etc.
•provides flexible automation; reprogrammable.
Ladder diagrams can be programmed into the PLC
•cost-effective for medium- or large-sized applications
•takes up less space; can often replace several
hundred relays.
3
NUS IA- Programmable Logic Controllers
•generally more reliable than relay circuits. Relays have life-
cycles of the order of hundreds of thousands while that for the
PLC are in millions.
•eliminates the often appreciable cost of wiring a relay panel.
Programmable Logic Controllers
4
NUS IA- Programmable Logic Controllers
Basic Architecture of PLC
Solenoids
Relay coils
Indicator lights
Alarms,etc
Main Processing
Unit (MPU)
I
n
p
u
t
s
O
u
t
p
u
t
s
Sensors
Pushbutton switches
Limit switches
Programming Unit
Programmable Logic Controller
5
NUS IA- Programmable Logic Controllers
Basic Operation of the PLC
Microcomputer
I
n
p
u
t
s
O
u
t
p
u
t
s
Sensors
Pushbutton switches
Limit switches
Solenoids
Relay coils
Indicator lights
Alarms,etc
Programming Unit
Programmable Logic Controller
The input program (e.g.
ladder diagram) is first
entered and stored in
memory of the
microcomputer.
The CPU then reads
the “program”, e.g.
rung by rung of the
ladder diagram at a
constant sampling
frequency.
6
NUS IA- Programmable Logic Controllers
Microcomputer
I
n
p
u
t
s
O
u
t
p
u
t
s
Sensors
Pushbutton switches
Limit switches
Solenoids
Relay coils
Indicator lights
Alarms,etc
Programming Unit
Programmable Logic Controller
For each “rung” of the ladder, the
CPU reads the states of the
necessary inputs and, together
with the states of any internal
“relays”, determines the state of
the affected output.
The affected output is
then changed accordingly.
Basic Operation of the PLC
The process repeats
until the whole ladder
is processed from top
to bottom. The
program then repeats
again from the top
rung.
7
NUS IA- Programmable Logic Controllers
A typical commercial PLC
8
NUS IA- Programmable Logic Controllers
Typical PLC Specifications
9
NUS IA- Programmable Logic Controllers
Typical Input Interface Circuit
To detect state of sensors, switches, etc.
10
NUS IA- Programmable Logic Controllers
Typical Output Interface Circuit
To translate low voltage/current signals to large current,
high voltage outputs.
11
NUS IA- Programmable Logic Controllers
Programming the PLC
Various methods available.
Varies from manufacturer to manufacturer.
Done directly through a programming unit or through
a connection to a PC, depending upon the PLC
used.
Actual programming is a relatively easy process.
The difficult part is deriving the logic, or ladder
diagram, required.
12
NUS IA- Programmable Logic Controllers
• ladder-diagram based
– carry-over from the popular ladder diagram approach used
in the past and familiar to many automation engineers
– ladder diagram or Boolean expressions of all logic function
first derived and “program” input via graphical means of
text editor.
• Instruction List (mnemonics)
– Low level language similar to assembly language codes.
• Others: sequential function chart (SFC), function block
diagram (FBD),structured text (ST).
Programming the PLC
13
NUS IA- Programmable Logic Controllers
Basic Devices
Programming the PLC(based on Mitsubishi)
Xn:
– Reserved for physical input devices, e.g. limit switches,
pushbuttons, sensors, connected directly to inputs of PLC.
– Number n available limited depending upon PLC used.
– State of contacts corresponds directly to the physical input
connection to the PLC.
– Any number of contacts available for program.
Yn:
– Reserved for physical output device, e.g. relays, solenoids,
motors, connected directly to outputs of PLC.
– Number n available is limited depending upon PLC used.
– These are also implemented as “software” relays with many
contacts.
14
NUS IA- Programmable Logic Controllers
Basic Devices
Programming the PLC(based on Mitsubishi)
Tn:
– internal “software” timers used for generating time
delays. Number n almost unlimited.
Mn:
– internal auxiliary “software” relays which comprises
a coil and contacts. Number n almost unlimited.
Cn:
– internal “software” counters for counting events.
Number n almost unlimited.
15
NUS IA- Programmable Logic Controllers
Preparing for the Program
+ V S T A R T
Y 1
Y 1
Y 1
s o l.a
S TOP
Temp
S witch
The original
ladder diagram
Input
Module
Output
Module
Connected
to
X7 START
X8 STOP
X9 Temperature
Switch
Y3 Sol a
Input-Output
assignments
16
NUS IA- Programmable Logic Controllers
+ V S T A R T
Y 1
Y 1
Y 1
s o l.a
S TOP
Temp
S witch
Input
Module
Output
Module
Connected
to
X7 START
X8 STOP
X9 Temperature
Switch
Y3 Sol a
Y 3
Y 3
X 7 X 8 X 9
Equivalent PLC ladder
diagram
Preparing for the Program
17
NUS IA- Programmable Logic Controllers
A Sample Programming Language
Y 3
Y 3
X 7 X 8 X 9 Ladder
Diagram
0 LD X7
1 OR Y3
2 ANI X8
3 ANI X9
4 OUT Y3
5 END
Program
18
NUS IA- Programmable Logic Controllers
Mnemonic Instructions (based on Mitsubishi)
Mnemonic Function Figure Devices Example
LD
(Load)
Initial logical operation
– NO contacts
X,Y,T,M,C LD X3
LDI
(Load
Inverse)
Initial logical operation
– NC contacts
X,Y,T,M,C LDI X3
OUT
(Out)
Final logical operation
- connects to right rail
Y,T,M,C OUT Y3
The LD and LDI instruction initiates a new logical block. Y,T,M,C
would be contacts associated with the respective devices.
OUT connects output device to right hand rail or bus bar. Cannot
be used with X input devices. Multiple parallel connections
allowed.
19
NUS IA- Programmable Logic Controllers
Mnemonic Instructions (LD, LDI, OUT)
LD X0
OUT T0 K19
LDI T0
OUT Y1
OUT M100
END
19x100msec
X0
M100
T0
Y1
T0
20
NUS IA- Programmable Logic Controllers
Mnemonic Instructions (AND,ANI,OR,ORI)
Mnemonic Function Figure Devices Example
AND
(AND)
Serial connection
– NO contacts
X,Y,T,M,C AND X 3
ANI
(AND
Inverse)
Serial connection
– NC contacts
X,Y,T,M,C ANI Y 3
OR
(OR)
Parallel connection
– NO contacts
X,Y,T,M,C OR M 3
ORI
(OR
Inverse)
Parallel connection
– NC contacts
X,Y,T,M,C ORI X 3
21
NUS IA- Programmable Logic Controllers
LD X0
ORI X1
ANI Y1
OUT M100
LDI Y2
AND X3
OR Y1
ANI M100
OR X0
OUT Y1
END
X0
M100
Y1
Y2
X1
Y1
X3 M100
Y1
X0
Mnemonic Instructions (AND,ANI,OR,ORI)
22
NUS IA- Programmable Logic Controllers
Mnemonic Function Figure Example
ORB
(OR block)
Parallel connection of
multiple serial circuits
ORB
ANB
(AND
block)
Serial connection of
multiple parallel
circuits
ANB
Mnemonic Instructions (ORB,ANB)
23
NUS IA- Programmable Logic Controllers
LD X1
ORI X3
LD X2
AND X3
LD X4
ANI X5
ORB
OR X6
ANB
OR Y7
OUT Y1
END
X1
X3
X2 X3
X4 X5
X6
Y1
Y1
Mnemonic Instructions (ORB,ANB)
24
NUS IA- Programmable Logic Controllers
Mnemonic Instructions (MPS,MRD,MPP)
Mnemonic Function Figure Example
MPS
(Point
Store)
Stores current result
MPS
MPS
MRD
(Read)
Reads current result
MRD
MRD
MPP
(Pop)
Pops (reads and
removes) currently
stored result
MPP
MPP
25
NUS IA- Programmable Logic Controllers
Ld X1
AND X2
OR Y1
ANI M2
MPS
AND M3
OUT Y1
AND Y1
OUT Y2
MRD
AND Y1
OUT Y3
MPP
AND Y2
MPS
AND Y1
OUT M2
MPP
AND M2
OUT M3
END
Mnemonic Instructions (MPS,MRD,MPP)
X1 X2
Y1
M2 M3
Y1
Y1
Y2 Y1
M2
Y3
M3
M2
Y2
Y1
26
NUS IA- Programmable Logic Controllers
Mnemonic Instructions (END)
Mnemonic Function Figure
END
Forces current program
scan to end.
END
• END forces program to end current scan and
restart a new scan.
• Useful for debugging purposes as instructions
after END are ignored.
27
NUS IA- Programmable Logic Controllers
Timers
• “Software” timers are normally
available in PLCs. In the Mitsubishi
PLC, there are 1msec, 10msec and
100msec timers. These have timer
“Coils” and “Contacts”.
Ld X1
OUT T100 K235
Ld T1
OUT Y1
• If T1 is a 10msec timer, then relay
Y1 will turn on after 2.35 sec after
X1 closes and remains closed. At any
time X1 opens, T1 resets.
X1
T1
K235
Y1
T1
2.35s
Y1
X1
28
NUS IA- Programmable Logic Controllers
Counters
Closure of X1 resets the counter C0.
C0 counts up each time its coil is
turned ON by X2. Its output contacts
are activated when its coil is turned
ON for the fifth time. Thereafter its
count value does not change and its
outputs remain ON until it is reset to
zero X1 closing.
Ld X1
RST C0
Ld X2
OUT C0 K5
Ld C0
OUT Y1
X1
RST C0
C0
Y1
X2
C0
K5
X1
X2
Y1
29
NUS IA- Programmable Logic Controllers
Program Scan
Program Scan:
A single processing of the loaded program from start to
END. The process is continuous and once one scan
ends, a new one is started.
Scan Time:
Time period for one scan, dependent upon program
length and complexity.
Input/Output updating:
In some PLCs, all physical inputs are updated at the
beginning of the scan and all physical outputs updated
at the end of the scan.
30
NUS IA- Programmable Logic Controllers
Program Scan – Double coiling
X1
Y1
Y1
Y2
X2
Y1
Double coiling, or
specifying the same
output twice, is
allowed.
In figure, if X1=ON
and X2=OFF, then
Y2=ON and Y1=OFF.
31
NUS IA- Programmable Logic Controllers
Differences between Relay and PLC ladder diagrams
Hardware components, relays
and other switches, have a
limited number of contacts.
Software components,
internal relays, inputs and
outputs, have a “unlimited”
number of contacts. No need
to try to “save”. Better to
make program easier to read.
Relay circuit For PLC
32
NUS IA- Programmable Logic Controllers
Differences between Relay and PLC ladder diagrams
Current flow can take place
in any direction .
Relay circuit For PLC
“Current flow" takes place
only in one direction, from
left to right.
X 3
X 4
Y 2
X 5
X 2
X 8
Y 3
Sneak path
This ladder diagram will need to be
modified for PLC implementation.
33
NUS IA- Programmable Logic Controllers
Differences between Relay and PLC ladder diagrams
Contacts cannot be placed
vertically , with crossover
lines.
Relay circuit For PLC
Ladder diagrams are strictly
two-dimensional and there
can be no crossover lines.
X1
X4
Y2
X2
X3
X5
Relay circuit. Will need
to be modified for PLC.
X1
X4
Y2
X2
X3
X3
X2 X5
X4
X1 X5
Equivalent PLC circuit
34
NUS IA- Programmable Logic Controllers
Differences between Relay and PLC ladder diagrams
All rungs of the ladder
diagram are active
simultaneously. This
"parallel" operation
sometimes causes "race"
problems and malfunctions .
Relay circuit For PLC
Each rung of the ladder is
scanned, and acted upon,
successively starting from the
first rung. When the last rung
has been scanned, a new
cycle begins from the first
rung again. Scanning period
of the order of 5 to 50 ms
The order in which the
rungs are drawn is
immaterial.
The order in which the
rungs are "programmed" into
memory is very important.
35
NUS IA- Programmable Logic Controllers
X3
X3
M1
Y1
M1
Y1
X3
0
0
1
1
X3
X3
M1
Y1
M1
Y1
X3
0
0
1
1
1 scan period
One output pulse for every
positive transition of X3
Y2 always OFF
Program Scan – Program order
For the PLC, the order in which the rungs are
"programmed" into memory is very important.
36
NUS IA- Programmable Logic Controllers
An Example
Input
Module
Output
Module
Connected
to
X3 a+
X4 b+
X5 d+
Y12 B+
Y13 C+
a+
1R 3R
2R
2R
d+
b+
B+
C+
1R
Original Ladder diagram
I/O allocation
M1 M3
M2
M2
M1
X3
X5
X4
Y12
Y13
Re-drawn Ladder diagram
For PLC
37
NUS IA- Programmable Logic Controllers
An Example
M1 M3
M2
M2
M1
X3
X5
X4
Y12
Y13
Cannot be
programmed
M1 M3
M2
M2
M1
X3
X5
X4
Y12
Y13
M2
Redrawn
M2=(X3.M1+M2).M3’
M1 M3
M2
X3
38
NUS IA- Programmable Logic Controllers
An Example
M1 M3
M2
M2
M1
X3
X5
X4
Y12
Y13
M2
Program
LD X3
AND M1
OR M2
ANI M3
OUT M2
AND X5
OUT Y12
LD M2
AND X4
OR M1
OUT Y13
END
39
NUS IA- Programmable Logic Controllers
End of PLC

More Related Content

Similar to 12817584.ppt

Similar to 12817584.ppt (20)

Plc Basics
Plc BasicsPlc Basics
Plc Basics
 
INTERRUPT DRIVEN MULTIPLEXED 7 SEGMENT DIGITAL CLOCK
INTERRUPT DRIVEN MULTIPLEXED 7 SEGMENT DIGITAL CLOCKINTERRUPT DRIVEN MULTIPLEXED 7 SEGMENT DIGITAL CLOCK
INTERRUPT DRIVEN MULTIPLEXED 7 SEGMENT DIGITAL CLOCK
 
PLC_1.ppt
PLC_1.pptPLC_1.ppt
PLC_1.ppt
 
1913523 vanshika
1913523 vanshika1913523 vanshika
1913523 vanshika
 
ie450pp10.ppt
ie450pp10.pptie450pp10.ppt
ie450pp10.ppt
 
plc1.ppt
plc1.pptplc1.ppt
plc1.ppt
 
PLC Basics
PLC BasicsPLC Basics
PLC Basics
 
n5acb0f1c011fb.pdf
n5acb0f1c011fb.pdfn5acb0f1c011fb.pdf
n5acb0f1c011fb.pdf
 
DIGITAL ELECTRONICS .pptx
DIGITAL ELECTRONICS .pptxDIGITAL ELECTRONICS .pptx
DIGITAL ELECTRONICS .pptx
 
ie450pp10.ppt
ie450pp10.pptie450pp10.ppt
ie450pp10.ppt
 
ie450pp10.ppt
ie450pp10.pptie450pp10.ppt
ie450pp10.ppt
 
PLC.ppt
PLC.pptPLC.ppt
PLC.ppt
 
PLC good.ppt
PLC good.pptPLC good.ppt
PLC good.ppt
 
ie450pp10.ppt
ie450pp10.pptie450pp10.ppt
ie450pp10.ppt
 
ie450pp10.ppt
ie450pp10.pptie450pp10.ppt
ie450pp10.ppt
 
ie450pp10.ppt
ie450pp10.pptie450pp10.ppt
ie450pp10.ppt
 
PLC, or Programmable Logic Controller, is a specialized industrial computer u...
PLC, or Programmable Logic Controller, is a specialized industrial computer u...PLC, or Programmable Logic Controller, is a specialized industrial computer u...
PLC, or Programmable Logic Controller, is a specialized industrial computer u...
 
PLC (PROGRAMMABLE LOGIC CONTROLLER)
PLC (PROGRAMMABLE LOGIC CONTROLLER)PLC (PROGRAMMABLE LOGIC CONTROLLER)
PLC (PROGRAMMABLE LOGIC CONTROLLER)
 
ppt on PLC.pptx
ppt on  PLC.pptxppt on  PLC.pptx
ppt on PLC.pptx
 
PLC, DCS and PLC vs DCS Presentation by Jitender Singh Shekhawat
PLC, DCS and PLC vs DCS Presentation by Jitender Singh ShekhawatPLC, DCS and PLC vs DCS Presentation by Jitender Singh Shekhawat
PLC, DCS and PLC vs DCS Presentation by Jitender Singh Shekhawat
 

Recently uploaded

UNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxUNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxkalpana413121
 
5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...archanaece3
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Ramkumar k
 
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdflitvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdfAlexander Litvinenko
 
Working Principle of Echo Sounder and Doppler Effect.pdf
Working Principle of Echo Sounder and Doppler Effect.pdfWorking Principle of Echo Sounder and Doppler Effect.pdf
Working Principle of Echo Sounder and Doppler Effect.pdfSkNahidulIslamShrabo
 
Developing a smart system for infant incubators using the internet of things ...
Developing a smart system for infant incubators using the internet of things ...Developing a smart system for infant incubators using the internet of things ...
Developing a smart system for infant incubators using the internet of things ...IJECEIAES
 
Artificial Intelligence in due diligence
Artificial Intelligence in due diligenceArtificial Intelligence in due diligence
Artificial Intelligence in due diligencemahaffeycheryld
 
Geometric constructions Engineering Drawing.pdf
Geometric constructions Engineering Drawing.pdfGeometric constructions Engineering Drawing.pdf
Geometric constructions Engineering Drawing.pdfJNTUA
 
Augmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxAugmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxMustafa Ahmed
 
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxSLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxCHAIRMAN M
 
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and ToolsMaximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Toolssoginsider
 
engineering chemistry power point presentation
engineering chemistry  power point presentationengineering chemistry  power point presentation
engineering chemistry power point presentationsj9399037128
 
Path loss model, OKUMURA Model, Hata Model
Path loss model, OKUMURA Model, Hata ModelPath loss model, OKUMURA Model, Hata Model
Path loss model, OKUMURA Model, Hata ModelDrAjayKumarYadav4
 
Raashid final report on Embedded Systems
Raashid final report on Embedded SystemsRaashid final report on Embedded Systems
Raashid final report on Embedded SystemsRaashidFaiyazSheikh
 
Adsorption (mass transfer operations 2) ppt
Adsorption (mass transfer operations 2) pptAdsorption (mass transfer operations 2) ppt
Adsorption (mass transfer operations 2) pptjigup7320
 
What is Coordinate Measuring Machine? CMM Types, Features, Functions
What is Coordinate Measuring Machine? CMM Types, Features, FunctionsWhat is Coordinate Measuring Machine? CMM Types, Features, Functions
What is Coordinate Measuring Machine? CMM Types, Features, FunctionsVIEW
 
Call for Papers - Journal of Electrical Systems (JES), E-ISSN: 1112-5209, ind...
Call for Papers - Journal of Electrical Systems (JES), E-ISSN: 1112-5209, ind...Call for Papers - Journal of Electrical Systems (JES), E-ISSN: 1112-5209, ind...
Call for Papers - Journal of Electrical Systems (JES), E-ISSN: 1112-5209, ind...Christo Ananth
 
Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...IJECEIAES
 
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdfInvolute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdfJNTUA
 
01-vogelsanger-stanag-4178-ed-2-the-new-nato-standard-for-nitrocellulose-test...
01-vogelsanger-stanag-4178-ed-2-the-new-nato-standard-for-nitrocellulose-test...01-vogelsanger-stanag-4178-ed-2-the-new-nato-standard-for-nitrocellulose-test...
01-vogelsanger-stanag-4178-ed-2-the-new-nato-standard-for-nitrocellulose-test...AshwaniAnuragi1
 

Recently uploaded (20)

UNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxUNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptx
 
5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)
 
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdflitvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
 
Working Principle of Echo Sounder and Doppler Effect.pdf
Working Principle of Echo Sounder and Doppler Effect.pdfWorking Principle of Echo Sounder and Doppler Effect.pdf
Working Principle of Echo Sounder and Doppler Effect.pdf
 
Developing a smart system for infant incubators using the internet of things ...
Developing a smart system for infant incubators using the internet of things ...Developing a smart system for infant incubators using the internet of things ...
Developing a smart system for infant incubators using the internet of things ...
 
Artificial Intelligence in due diligence
Artificial Intelligence in due diligenceArtificial Intelligence in due diligence
Artificial Intelligence in due diligence
 
Geometric constructions Engineering Drawing.pdf
Geometric constructions Engineering Drawing.pdfGeometric constructions Engineering Drawing.pdf
Geometric constructions Engineering Drawing.pdf
 
Augmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxAugmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptx
 
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxSLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
 
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and ToolsMaximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
 
engineering chemistry power point presentation
engineering chemistry  power point presentationengineering chemistry  power point presentation
engineering chemistry power point presentation
 
Path loss model, OKUMURA Model, Hata Model
Path loss model, OKUMURA Model, Hata ModelPath loss model, OKUMURA Model, Hata Model
Path loss model, OKUMURA Model, Hata Model
 
Raashid final report on Embedded Systems
Raashid final report on Embedded SystemsRaashid final report on Embedded Systems
Raashid final report on Embedded Systems
 
Adsorption (mass transfer operations 2) ppt
Adsorption (mass transfer operations 2) pptAdsorption (mass transfer operations 2) ppt
Adsorption (mass transfer operations 2) ppt
 
What is Coordinate Measuring Machine? CMM Types, Features, Functions
What is Coordinate Measuring Machine? CMM Types, Features, FunctionsWhat is Coordinate Measuring Machine? CMM Types, Features, Functions
What is Coordinate Measuring Machine? CMM Types, Features, Functions
 
Call for Papers - Journal of Electrical Systems (JES), E-ISSN: 1112-5209, ind...
Call for Papers - Journal of Electrical Systems (JES), E-ISSN: 1112-5209, ind...Call for Papers - Journal of Electrical Systems (JES), E-ISSN: 1112-5209, ind...
Call for Papers - Journal of Electrical Systems (JES), E-ISSN: 1112-5209, ind...
 
Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...
 
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdfInvolute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
 
01-vogelsanger-stanag-4178-ed-2-the-new-nato-standard-for-nitrocellulose-test...
01-vogelsanger-stanag-4178-ed-2-the-new-nato-standard-for-nitrocellulose-test...01-vogelsanger-stanag-4178-ed-2-the-new-nato-standard-for-nitrocellulose-test...
01-vogelsanger-stanag-4178-ed-2-the-new-nato-standard-for-nitrocellulose-test...
 

12817584.ppt

  • 1. 1 NUS IA- Programmable Logic Controllers Programmable Logic Controllers
  • 2. 2 NUS IA- Programmable Logic Controllers Programmable Logic Controllers •microcomputer-based controllers •can be programmed for sequence control purposes •other powerful features: counting and timing, arithmetic processing, process control, etc. •provides flexible automation; reprogrammable. Ladder diagrams can be programmed into the PLC •cost-effective for medium- or large-sized applications •takes up less space; can often replace several hundred relays.
  • 3. 3 NUS IA- Programmable Logic Controllers •generally more reliable than relay circuits. Relays have life- cycles of the order of hundreds of thousands while that for the PLC are in millions. •eliminates the often appreciable cost of wiring a relay panel. Programmable Logic Controllers
  • 4. 4 NUS IA- Programmable Logic Controllers Basic Architecture of PLC Solenoids Relay coils Indicator lights Alarms,etc Main Processing Unit (MPU) I n p u t s O u t p u t s Sensors Pushbutton switches Limit switches Programming Unit Programmable Logic Controller
  • 5. 5 NUS IA- Programmable Logic Controllers Basic Operation of the PLC Microcomputer I n p u t s O u t p u t s Sensors Pushbutton switches Limit switches Solenoids Relay coils Indicator lights Alarms,etc Programming Unit Programmable Logic Controller The input program (e.g. ladder diagram) is first entered and stored in memory of the microcomputer. The CPU then reads the “program”, e.g. rung by rung of the ladder diagram at a constant sampling frequency.
  • 6. 6 NUS IA- Programmable Logic Controllers Microcomputer I n p u t s O u t p u t s Sensors Pushbutton switches Limit switches Solenoids Relay coils Indicator lights Alarms,etc Programming Unit Programmable Logic Controller For each “rung” of the ladder, the CPU reads the states of the necessary inputs and, together with the states of any internal “relays”, determines the state of the affected output. The affected output is then changed accordingly. Basic Operation of the PLC The process repeats until the whole ladder is processed from top to bottom. The program then repeats again from the top rung.
  • 7. 7 NUS IA- Programmable Logic Controllers A typical commercial PLC
  • 8. 8 NUS IA- Programmable Logic Controllers Typical PLC Specifications
  • 9. 9 NUS IA- Programmable Logic Controllers Typical Input Interface Circuit To detect state of sensors, switches, etc.
  • 10. 10 NUS IA- Programmable Logic Controllers Typical Output Interface Circuit To translate low voltage/current signals to large current, high voltage outputs.
  • 11. 11 NUS IA- Programmable Logic Controllers Programming the PLC Various methods available. Varies from manufacturer to manufacturer. Done directly through a programming unit or through a connection to a PC, depending upon the PLC used. Actual programming is a relatively easy process. The difficult part is deriving the logic, or ladder diagram, required.
  • 12. 12 NUS IA- Programmable Logic Controllers • ladder-diagram based – carry-over from the popular ladder diagram approach used in the past and familiar to many automation engineers – ladder diagram or Boolean expressions of all logic function first derived and “program” input via graphical means of text editor. • Instruction List (mnemonics) – Low level language similar to assembly language codes. • Others: sequential function chart (SFC), function block diagram (FBD),structured text (ST). Programming the PLC
  • 13. 13 NUS IA- Programmable Logic Controllers Basic Devices Programming the PLC(based on Mitsubishi) Xn: – Reserved for physical input devices, e.g. limit switches, pushbuttons, sensors, connected directly to inputs of PLC. – Number n available limited depending upon PLC used. – State of contacts corresponds directly to the physical input connection to the PLC. – Any number of contacts available for program. Yn: – Reserved for physical output device, e.g. relays, solenoids, motors, connected directly to outputs of PLC. – Number n available is limited depending upon PLC used. – These are also implemented as “software” relays with many contacts.
  • 14. 14 NUS IA- Programmable Logic Controllers Basic Devices Programming the PLC(based on Mitsubishi) Tn: – internal “software” timers used for generating time delays. Number n almost unlimited. Mn: – internal auxiliary “software” relays which comprises a coil and contacts. Number n almost unlimited. Cn: – internal “software” counters for counting events. Number n almost unlimited.
  • 15. 15 NUS IA- Programmable Logic Controllers Preparing for the Program + V S T A R T Y 1 Y 1 Y 1 s o l.a S TOP Temp S witch The original ladder diagram Input Module Output Module Connected to X7 START X8 STOP X9 Temperature Switch Y3 Sol a Input-Output assignments
  • 16. 16 NUS IA- Programmable Logic Controllers + V S T A R T Y 1 Y 1 Y 1 s o l.a S TOP Temp S witch Input Module Output Module Connected to X7 START X8 STOP X9 Temperature Switch Y3 Sol a Y 3 Y 3 X 7 X 8 X 9 Equivalent PLC ladder diagram Preparing for the Program
  • 17. 17 NUS IA- Programmable Logic Controllers A Sample Programming Language Y 3 Y 3 X 7 X 8 X 9 Ladder Diagram 0 LD X7 1 OR Y3 2 ANI X8 3 ANI X9 4 OUT Y3 5 END Program
  • 18. 18 NUS IA- Programmable Logic Controllers Mnemonic Instructions (based on Mitsubishi) Mnemonic Function Figure Devices Example LD (Load) Initial logical operation – NO contacts X,Y,T,M,C LD X3 LDI (Load Inverse) Initial logical operation – NC contacts X,Y,T,M,C LDI X3 OUT (Out) Final logical operation - connects to right rail Y,T,M,C OUT Y3 The LD and LDI instruction initiates a new logical block. Y,T,M,C would be contacts associated with the respective devices. OUT connects output device to right hand rail or bus bar. Cannot be used with X input devices. Multiple parallel connections allowed.
  • 19. 19 NUS IA- Programmable Logic Controllers Mnemonic Instructions (LD, LDI, OUT) LD X0 OUT T0 K19 LDI T0 OUT Y1 OUT M100 END 19x100msec X0 M100 T0 Y1 T0
  • 20. 20 NUS IA- Programmable Logic Controllers Mnemonic Instructions (AND,ANI,OR,ORI) Mnemonic Function Figure Devices Example AND (AND) Serial connection – NO contacts X,Y,T,M,C AND X 3 ANI (AND Inverse) Serial connection – NC contacts X,Y,T,M,C ANI Y 3 OR (OR) Parallel connection – NO contacts X,Y,T,M,C OR M 3 ORI (OR Inverse) Parallel connection – NC contacts X,Y,T,M,C ORI X 3
  • 21. 21 NUS IA- Programmable Logic Controllers LD X0 ORI X1 ANI Y1 OUT M100 LDI Y2 AND X3 OR Y1 ANI M100 OR X0 OUT Y1 END X0 M100 Y1 Y2 X1 Y1 X3 M100 Y1 X0 Mnemonic Instructions (AND,ANI,OR,ORI)
  • 22. 22 NUS IA- Programmable Logic Controllers Mnemonic Function Figure Example ORB (OR block) Parallel connection of multiple serial circuits ORB ANB (AND block) Serial connection of multiple parallel circuits ANB Mnemonic Instructions (ORB,ANB)
  • 23. 23 NUS IA- Programmable Logic Controllers LD X1 ORI X3 LD X2 AND X3 LD X4 ANI X5 ORB OR X6 ANB OR Y7 OUT Y1 END X1 X3 X2 X3 X4 X5 X6 Y1 Y1 Mnemonic Instructions (ORB,ANB)
  • 24. 24 NUS IA- Programmable Logic Controllers Mnemonic Instructions (MPS,MRD,MPP) Mnemonic Function Figure Example MPS (Point Store) Stores current result MPS MPS MRD (Read) Reads current result MRD MRD MPP (Pop) Pops (reads and removes) currently stored result MPP MPP
  • 25. 25 NUS IA- Programmable Logic Controllers Ld X1 AND X2 OR Y1 ANI M2 MPS AND M3 OUT Y1 AND Y1 OUT Y2 MRD AND Y1 OUT Y3 MPP AND Y2 MPS AND Y1 OUT M2 MPP AND M2 OUT M3 END Mnemonic Instructions (MPS,MRD,MPP) X1 X2 Y1 M2 M3 Y1 Y1 Y2 Y1 M2 Y3 M3 M2 Y2 Y1
  • 26. 26 NUS IA- Programmable Logic Controllers Mnemonic Instructions (END) Mnemonic Function Figure END Forces current program scan to end. END • END forces program to end current scan and restart a new scan. • Useful for debugging purposes as instructions after END are ignored.
  • 27. 27 NUS IA- Programmable Logic Controllers Timers • “Software” timers are normally available in PLCs. In the Mitsubishi PLC, there are 1msec, 10msec and 100msec timers. These have timer “Coils” and “Contacts”. Ld X1 OUT T100 K235 Ld T1 OUT Y1 • If T1 is a 10msec timer, then relay Y1 will turn on after 2.35 sec after X1 closes and remains closed. At any time X1 opens, T1 resets. X1 T1 K235 Y1 T1 2.35s Y1 X1
  • 28. 28 NUS IA- Programmable Logic Controllers Counters Closure of X1 resets the counter C0. C0 counts up each time its coil is turned ON by X2. Its output contacts are activated when its coil is turned ON for the fifth time. Thereafter its count value does not change and its outputs remain ON until it is reset to zero X1 closing. Ld X1 RST C0 Ld X2 OUT C0 K5 Ld C0 OUT Y1 X1 RST C0 C0 Y1 X2 C0 K5 X1 X2 Y1
  • 29. 29 NUS IA- Programmable Logic Controllers Program Scan Program Scan: A single processing of the loaded program from start to END. The process is continuous and once one scan ends, a new one is started. Scan Time: Time period for one scan, dependent upon program length and complexity. Input/Output updating: In some PLCs, all physical inputs are updated at the beginning of the scan and all physical outputs updated at the end of the scan.
  • 30. 30 NUS IA- Programmable Logic Controllers Program Scan – Double coiling X1 Y1 Y1 Y2 X2 Y1 Double coiling, or specifying the same output twice, is allowed. In figure, if X1=ON and X2=OFF, then Y2=ON and Y1=OFF.
  • 31. 31 NUS IA- Programmable Logic Controllers Differences between Relay and PLC ladder diagrams Hardware components, relays and other switches, have a limited number of contacts. Software components, internal relays, inputs and outputs, have a “unlimited” number of contacts. No need to try to “save”. Better to make program easier to read. Relay circuit For PLC
  • 32. 32 NUS IA- Programmable Logic Controllers Differences between Relay and PLC ladder diagrams Current flow can take place in any direction . Relay circuit For PLC “Current flow" takes place only in one direction, from left to right. X 3 X 4 Y 2 X 5 X 2 X 8 Y 3 Sneak path This ladder diagram will need to be modified for PLC implementation.
  • 33. 33 NUS IA- Programmable Logic Controllers Differences between Relay and PLC ladder diagrams Contacts cannot be placed vertically , with crossover lines. Relay circuit For PLC Ladder diagrams are strictly two-dimensional and there can be no crossover lines. X1 X4 Y2 X2 X3 X5 Relay circuit. Will need to be modified for PLC. X1 X4 Y2 X2 X3 X3 X2 X5 X4 X1 X5 Equivalent PLC circuit
  • 34. 34 NUS IA- Programmable Logic Controllers Differences between Relay and PLC ladder diagrams All rungs of the ladder diagram are active simultaneously. This "parallel" operation sometimes causes "race" problems and malfunctions . Relay circuit For PLC Each rung of the ladder is scanned, and acted upon, successively starting from the first rung. When the last rung has been scanned, a new cycle begins from the first rung again. Scanning period of the order of 5 to 50 ms The order in which the rungs are drawn is immaterial. The order in which the rungs are "programmed" into memory is very important.
  • 35. 35 NUS IA- Programmable Logic Controllers X3 X3 M1 Y1 M1 Y1 X3 0 0 1 1 X3 X3 M1 Y1 M1 Y1 X3 0 0 1 1 1 scan period One output pulse for every positive transition of X3 Y2 always OFF Program Scan – Program order For the PLC, the order in which the rungs are "programmed" into memory is very important.
  • 36. 36 NUS IA- Programmable Logic Controllers An Example Input Module Output Module Connected to X3 a+ X4 b+ X5 d+ Y12 B+ Y13 C+ a+ 1R 3R 2R 2R d+ b+ B+ C+ 1R Original Ladder diagram I/O allocation M1 M3 M2 M2 M1 X3 X5 X4 Y12 Y13 Re-drawn Ladder diagram For PLC
  • 37. 37 NUS IA- Programmable Logic Controllers An Example M1 M3 M2 M2 M1 X3 X5 X4 Y12 Y13 Cannot be programmed M1 M3 M2 M2 M1 X3 X5 X4 Y12 Y13 M2 Redrawn M2=(X3.M1+M2).M3’ M1 M3 M2 X3
  • 38. 38 NUS IA- Programmable Logic Controllers An Example M1 M3 M2 M2 M1 X3 X5 X4 Y12 Y13 M2 Program LD X3 AND M1 OR M2 ANI M3 OUT M2 AND X5 OUT Y12 LD M2 AND X4 OR M1 OUT Y13 END
  • 39. 39 NUS IA- Programmable Logic Controllers End of PLC