Beruflich Dokumente
Kultur Dokumente
Controllers (PLCs)
Eng. R. L. Nkumbwa
Copperbelt University
School of Technology
2010
Eng. R. L. Nkumbwa @ C
you have ever had a personal computer lockup or reset in the middle of something important
you will appreciate that a similar failure in a large
industrial application would have severe
consequences.
A PLC is simply an industrial computer designed
to be durable enough to withstand the rigors of
industrial applications.
5
Eng. R. L. Nkumbwa @ C
Eng. R. L. Nkumbwa @ C
Eng. R. L. Nkumbwa @ C
Eng. R. L. Nkumbwa @ C
Eng. R. L. Nkumbwa @ C
Ladder Logic
The
10
Eng. R. L. Nkumbwa @ C
11
Eng. R. L. Nkumbwa @ C
12
Eng. R. L. Nkumbwa @ C
13
Eng. R. L. Nkumbwa @ C
Boolean Logic
The
14
15
Eng. R. L. Nkumbwa @ C
PLC Switching
The
16
17
Eng. R. L. Nkumbwa @ C
18
Eng. R. L. Nkumbwa @ C
19
Eng. R. L. Nkumbwa @ C
20
Eng. R. L. Nkumbwa @ C
Start-Stop Rung
21
22
Eng. R. L. Nkumbwa @ C
23
In this case the push buttons are normally open i.e. they
return a low signal in their normal position and a high
signal when pressed.
Initially assume the Coil output is off, and the Push
Buttons (PB) not activated so they are also off.
When the Start PB is pressed the top path through the
rung is satisfied with start = 1and stop = 0 so the coil is
turned ON.
Note this also satisfies the bottom path through the rung
on the next scan since coil = 1 and stop = 0.
When the start button is released the top path through the
rung becomes false but the rung is still satisfied by the
bottom path, ie the coil remains on after the start PB is
Eng. R. L. Nkumbwa @ C
released.
24
Eng. R. L. Nkumbwa @ C
25
Eng. R. L. Nkumbwa @ C
Other Languages
26
Blocks are built from small ladder logic subroutines and used
through the code as user defined ladder logic instructions, the
advantages of this approach is the reduction of repetitive ladder logic
code.
Sequential Function Chart (SFC) programming is similar to
programming by computer flow chart. In SFC the program advances
step by step through various blocks (where action happens such as
a motor is started).
Transition conditions determine when the program advances from
one block to another.
Both the action blocks and the transition conditions are created using
ladder diagrams.
Structured text, uses simple instructions common to medium level
programming languages: If , While, Then Eng.
etc. R. L. Nkumbwa @ C
Other Languages
Note:
27
Eng. R. L. Nkumbwa @ C
PLC Modules
28
29
30
31
The
reason for the 4.0mA starting point is a failsafe feature, if the instrument fails or the signal
cable is damaged the current falls to zero and
the PLC can alarm the operating system of the
failure immediately.
This fail-safe feature is not possible for voltage
signals which pass through zero volts.
32
Eng. R. L. Nkumbwa @ C
33
Memory
(Addressing , Internal Registers)
The
Eng. R. L. Nkumbwa @ C
35
Eng. R. L. Nkumbwa @ C
36
37
38
Eng. R. L. Nkumbwa @ C
39
Addressing Format
The
40
Eng. R. L. Nkumbwa @ C
41
Eng. R. L. Nkumbwa @ C
42
43
Eng. R. L. Nkumbwa @ C
Eng. R. L. Nkumbwa @ C
45
46
Eng. R. L. Nkumbwa @ C
Allen-Bradley PLCs
Below
are AB Plcs
Note that AB is part of the Rockwell
Automation, a global leading Automation
giant.
47
Eng. R. L. Nkumbwa @ C
48
Eng. R. L. Nkumbwa @ C
49
Eng. R. L. Nkumbwa @ C
50
Eng. R. L. Nkumbwa @ C
51
Eng. R. L. Nkumbwa @ C
52
Eng. R. L. Nkumbwa @ C
53
54
Programming Procedure
PLCs
Eng. R. L. Nkumbwa @ C
Programming Procedure
56
Insert edit rungs into the On-line PLC code (as many changes as
required). These edits are effectively invisible to the processor during
this stage.
Once all edit rungs are entered switch the processor to TEST, during
TEST mode any new inserted code is allowed to be scanned along
with existing code, if any code is marked for deletion this code is
prevented from being scanned at this stage.
Once you are confident that the edit rungs are correct Assemble the
code which permanently activates new code and permanently
removes any code marked for deletion.
Eng. R. L. Nkumbwa @ C
Programming Example:
Simple start/stop ladder logic.
57
Eng. R. L. Nkumbwa @ C
Programming Example:
Simple start/stop ladder logic.
This
Eng. R. L. Nkumbwa @ C
59
Eng. R. L. Nkumbwa @ C
References
Garry
60
Eng. R. L. Nkumbwa @ C
61
Eng. R. L. Nkumbwa @ C