This document provides an introduction to PID controllers and PLC systems. It discusses the basic components and functions of PID controllers, including proportional, integral and derivative controls. It also summarizes the basic architecture of PLC systems, including the CPU, memory, input/output units and programming methods like ladder logic, statement lists and function block diagrams. Common instructions for timers, counters and logic operations are also covered.
12. P controller outputs
Input r(t)= step input value 2
s+
=
1
1
functionTransfer
Kp=1
Kp=5
Steady state error decreases with kp for this particular application
Plant
13. Reducing S.S.E
_
+
Set value Output
P
+
+
plant
U(t)
We may place an external input,
but different set points have different SSE ?
14. PI Controller
))()(()( tytrte −=
P
_
+
Set value Output
I
+
+
process
U(t)
e(t)
∫+= dttekitekptu )(*)(*)(
Integral part
15. PI controller output
Step input value =2 Kp=5
KI=1
KI=5
S.S.E exists
S.S.E is zero
KI=20 There is an overshoot
19. Tuning of PID
controllers
PID values are different from one system to another
It is required to tune a P, PD, PI or PID controller
Basic industrial approaches
Design a stable tuned PID controller after modeling
Develop a simulator after modeling and tune
observing the simulator result
On site tuning
Combination of all three approaches
20. PLC is similar to using a computer but has certain features
that are specific to their use as controllers.
These are:
1. They are rugged and designed to withstand vibrations,
temperature, humidity and noise.
2. The interfacing for inputs and outputs is inside the controller.
3. They are easily programmed and have an easily understood
programming language. Programming is primary concerned
with logic and switching operations.
Programmable Logic Controllers
21. Data bus
Address bus
Control bus
CPU
clock
Memory
Input/
Output
unit
Program
panel
Input
channels
Output
channels
Architecture of a Programmable Logic Controller
24. Setting and Resetting an output
I0.0 Q0.0
I0.1 Q0.0
S
R
Setting and Resetting a Memory
I0.0 M0.0
S
I0.1 M0.0
R
25. Memory
Input Register I
Type Symbol Example
Bit I0.1
Byte IB4
Output Register O
Type Symbol Example
Bit Q1.1
Byte QB5
26. Variable Memory V
Store intermediate results performed by the
control logic in a program
Type Symbol Example
Bit V10.1
Byte VW100
Bit Memory M
Store intermediate status of an operation or
other control information
Type Symbol Example
Bit M26.7
Byte MD20
27. Two types of timers available
1. On Delay Timer
2. Off Delay Timer
28. On Delay Timer (T33- steps of 10ms)
I0.0 T33
2000+
IN
PT
TON
Q
ET
T33 Q0.0
Time
onSwitch
ON
Bulb
OFF
20s
offSwitch
29. Off Delay Timer (T33- steps of 10ms)
I0.0 T33
1500+
IN
PT
TOF
Q
ET
T33 Q0.0
Time
onSwitch
ON
Bulb
OFF
15s
offSwitch
33. Statement List (SLT)
This programming method introduces a list of statements.
Let’s look at the basic programming using SLT.
Statement List (SLT)
This programming method introduces a list of statements.
Let’s look at the basic programming using SLT.
AND Operation
LD I I0.0 // Read I0.0
A I I0.1 //and with I0.1
= Q0.0 //write the value to Q0.0
Statement List (SLT)
This programming method introduces a list of statements.
Let’s look at the basic programming using SLT.
AND Operation
LD I I0.0 // Read I0.0
A I I0.1 //and with I0.1
= Q0.0 //write the value to Q0.0
OR Operation
LD I I0.0 // Read I0.0
O I I0.1 //or with I0.1
= Q0.0 //write the value to Q0.0