Automation & Control
Automation & Control
The Process
Any process consist of :-
(1) Application
(2) Control System
feedback
Application Control System
(Operative Part) (Action Coordinator)
control command
Automation Objectives
Reducing cost
Directly Improving quality
Improving working
Indirectly condition
Automatic Control
Binary control
Switched output
system
valve closed
Disturbance
Disturbance
PID Controller Structure
Comparator
Set error Proportional
point term
Summing
junction
Integral PID
Measured
term output
value
Derivative
MV term
MV=SP MV=SP
SP
Combinational Logic
Storage Device
Programmable Computing Control
Systems
Data memory
Program
Programmable logic
control
PLC a Process Control Computer
System
•rugged-noise
•rugged-noiseimmune
immuneequipment
equipment
•modular-easy
•modular-easyinstallation/replacement
installation/replacement
•standard
•standardI/O
I/Oconnections
connections&&signal
signallevels
levels
•simple
•simpleprogramming.
programming.
•compact
•compactsizes.
sizes.
•cost
•costcompetitive
competitive
Comparison with Other Control Systems
C\Cs Relay systems Computers PLC systems
Price Per Function Fairly Low High Low
Power supply
Central Processing Unit
“CPU”(1)
KThe CPU controls and supervises all operation within PLC,
carrying out programmed instructions stored in the memory.
KAn internal communications highway or bus system carries
information to and from CPU, memory and I/O units, under
CPU control.
KThe CPU is supplied with a clock frequency by a quartz crystal
or RC oscillator with speed depending on the microprocessor
type.
KThe clock determines the operating speed of the PLC and
provides timing/synchronization of all system elements.
Central Processing Unit
“CPU”(2)
Analysis
B
a C
Optional tt l
User Program µp System Data I/O
Program e o
RAM CPU ROM RAM Unit
Storage r c
y k
Program Scan
INPUT OUTPUT
T T
E E
R R
M Input User Input M
I status table program status table I
N N
A A
L L
S S
Opto-isolator
converter
Terminal 1
Input
(switch,
sensor,…) CPU
common
Load
Terminal 1 Input logic Opto-isolator Converter
Trigger control
CPU
Analog Input
0 4mA 0% -50V
Analog Output
I/O Modules
Links: Links:
•PLC w/ programming terminal. •PLC w/ other PLC.
•PLC w/ Man Machine Interface. •PLC w/ any intelligent device.
Communication - Networking
Peer to Peer
Remote I/O
Master/slave
Programming Equipment
• Instruction list IL
Two textual languages
• structured Text ST
• Ladder Diagram LD
Two graphic languages
• Function Block FB
J:=1
WHILE J<=100 & X1<>X2DO
J:=J+2
END_WHILE
Ladder Diagram (LD)
Graphic elements organized in networks connected by
power supply rails.
Elements used :contacts, coil, functions, function blocks
control elements (jump, return, etc.)
Start 3
Function Block Diagram (FBD)
Representation of functions by blocks linked to each other.
Network evaluation :from the O/P of a function block to the
I/P of the connected function block.
auto >=1
& run
start
manu &
cmd
Sequential Function Chart (SFC)
To describe sequential control function.
steps & transitions represented graphically by a block or
literally.
Transition conditions in LD, FBD, IL or ST languages.
Actions associated with the steps :Boolean variables or a section
of the program written in one of the five languages.
Association between action and steps in graphical or literal
form.
VA1
NOT_FILL
FILL SILO_VALVE
READY
LD Language - Graphic Elements
N/O contact
N/C contact
Rising edge detection p
N
falling edge detection
Direct coil
Inverse coil
Set coil s
Reset coil R
LD Language - Rung Structure
X columns
Test zone Action zone
Y lines
How a Ladder Rung is Executed
Connected network = independent equation
%M2 %T1
Connected
network 2
%M0 %M5
Connected
%M12 %M3 network 3
%I1.2 %MW2:X0
%M11
%M12
L1 L2 start
3 L1 L2 L3
4
M 3 aux
L1
4 T1 T2 T3
M-aux. stop
common common
%I0.1 %I0.2 %Q0.1
I/P#1 P O/P#1 M
I/P#2 L O/P#2
I/P#3 C O/P#3
%Q0.1
I/P#4 O/P#4
Registers
Register is a storage of individual bits.
Data other than simple two state binary can be handled in and out
by registers.
1/0
1 0 1 1 0 1 0 1
1 1
0 0
Data in 1 1 Data out
0 0
1 1
Timers
On
OF DELA
FD Y.
lim E
ited LAY
“on ON .
Mu e shot TIM
l ” E
Ind tiple o oper .
NPLC TIMER u
Dig strial n dela tion.
a
ital ti y.
Nprogrammable variable Ele ,
ctro Solid ers.
m
time as well as fixed etc… nic stat
…… time e.
time with large time . rs.
span
Time Charts
%TMi
IN Q IN
TYPE TON Q
TB I min
ADJ Y PV
%TMi.P 9999 CV
%TMi
IN Q IN
TYPE TOF Q
TB I min
PV
ADJ Y
%TMi.P 9999 CV
%TMi
IN Q IN
TYPE TTP Q
TB I min
ADJ Y
PV
%TMi.P 9999 CV
Counters
Count x
Reset
Pv
Cv
O/P
Up Counter
Up/Down Counters
%C8 Up
R E Down
S Reset
C.P:9999 D
CU
Modify:Y PV
CD F CV
O/P
Arithmetic Functions
Add & Subtract
Operands
%I1.1
%MW0:=%MW9+100
%I1.1
%MW0:=%MW9-100
%I1.1
%MW0:=%MW9/100
Square Root
%I1.1
%MW0:=SQRT(%MW9)
Comparison Instructions
%Q0.1
%MW30>= %MW40
Jump Instructions
%L20 %L10
%M20 %Q0.1 %M20 %Q0.1
Data Move
%MW1 %MW11
%MW2 %MW22
%MWx %MWy
%MW1 1st
%MW2
%MW3 2nd %MW9
%MW4
%MW5 3rd
%MW1
1st %MW2
%MW9 2nd %MW3
3rd %MW4
%MW5
Bit Operations
Permanently change to ‘1’
when %M20 is on
%I0.1 %MW20
0 1 1 1 1 0 0 0 0 1 0 1 0 0 0 1
Bit set
Permanently change to ‘0’
when %M30 is on
%I0.4 %MW30
0 1 1 1 1 0 0 0 0 1 0 1 0 0 0 1
Bit clear
Bit Operations - Bit Follow
%I0.1 %MW4 0
“ 0 ” when %MW40 is on
“ 1 ” when %MW40 is off
0 1 1 1 1 0 0 0 0 1 0 1 0 0 0 1
Shift Register
Out Out
In In
Reenter Reenter
Reenter Reenter
Electromechanical Up
Left Handle End Right
drum controller is a 3
position / 6 terminal Forward Off Reverse
device it is an
economical control
device for handling
applications with a
fixed sequence and a
limited number of
required contacts
PLC Sequencer
PLC sequencer operates on a similar
a principle to an electromechanical drum
controller, which changes step according
to external events. On each step, the high
point of a cam gives a command which is
executed by the control system. In the
case of a drum controller (PLC
sequencer), these high points are
symbolized by state 1 for each step and
are assigned to output bits or internal bits,
known as control bits.
Operating Diagram
I/P U:
I/P R:
STEP 0 1 2 3 N-1 0 1 0
#
O/P
Matrix Function
%I2.1 %MW40
%I2.1 %MW40
%I3.4
%I2.2 %MW41
%I2.2 %MW41
%I2.3 %MW42
%I3.5
%I9.1 %MW55
%I6.8 %MW60
%I8.4
Advanced
Programming
Analog Operation
120 120
105
90
75
Volts 60
45
30
15
0 0
100% 100%
True Analog 8 steps
Examples:- Analog I/P / Analog or BCD
O/P 1024
O/P 20ma
M
o Analog
CPU d O/p
u device
10 v I/P l
M scale
0 e 4mA
o
Conversion BCD
I/P (if needed)
d value
u 9999
O/P
l Binary / BCD M
0v e o
BCD
value d
display
u
l
0 e
Examples:- 2 Analog In /2 Analog Out
+10 v I/P 1024 O/P 20ma
A M M
%MW28 o o Analog
Conversion
I/P (if needed)
d CPU d O/p
u u device
l %MW28 l
-10 v e 0 e 4mA
%MW17
I/P O/P 20ma
B M ADD M
%MW17 o o Analog
Conversion
I/P (if needed)
d Subtract d O/p
u u device
l l
e e 0mA
pt100
PID Principles
Proportional
Process
block
Variable
Set point
Derivative
block
Ideal PID Control Curve
Desired final
position
Initial position
Time
Typical Process Control Curves
Position
120
(degree) Desired final
100 position
80
60 Initial position
Time
40
20 Desired final
position
0
1 2 3 4 5 6 7 8
Elapsed time in seconds Initial position
Time
Position
120
(degree) Desired final
100 position
80
60 Initial position
Time
40
Desired final
20 position
0
1 2 3 4 5 6 7 8
Elapsed time in seconds Initial position
Time
PID Example
Flow control tachometer
servo-motor
Hydraulic
Oil flow Oil out
Motor
Signal detector
Setting & Amplifier
Signal
difference O/P position
(If any) indicator
Dial Error detector