Tópicos em Controle
Parte I
erig@utfpr.edu.br
1
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
Conteúdo
1 INTRODUÇÃO ................................................................................ 4
UNITÁRIA ...................................................................................... 36
2
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
3
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
1 INTRODUÇÃO
Um pouco de história
4
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
5
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
6
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
7
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
2.1 Introdução
8
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
DEFINIÇÕES
9
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
10
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
11
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
Velocidade angular
Tensão no enrolamento (sinal de saída)
(sinal de entrada)
MOTOR CC
12
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
e(t) di(t)
i(t) L Ri(t) + L v c e(t)
_ dt
C
. a
Figura 2 – Circuito RLC e sua representação por equações
diferenciais.
1
1 0 0
x C x1 1 u
x 1 R x 2
2 L
L L
13
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
canal de
realimentação
H(s)
c
Ganho do sistema =
r [1]
14
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
G
Ganho do sistema =
1 + GH [3]
15
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
De onde:
dC ( s) / C (s)
SC(s) 1
G(s) dG ( S ) / G ( s)
[7]
M G 1
SGM
G M 1 GH . [8]
16
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
17
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
18
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
n n 1 m m 1
a 0 y a 1 y a n 1 y a n y b 0 x b 1 x b m1 x a m1 x , (nm)
Comentários:
19
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
20
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
21
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
x1(t) x1
x (t) x
x(t) 2 2 x [10]
xn(t) xn
Conceitos:
22
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
di(t)
• Indutância (H) - lei de Faraday, v (t) L ; [12]
l dt
1t
• Capacitância (F) - vc(t) i(t)dt [13]
Co
a) Circuito RL - série
R
e(t)
i(t) L
_
R 1
Rx Lx u ou x x + u [15]
1 1 1 L 1 L
23
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
e(t)
i(t) L
_
C
. a
Figura 6 - Circuito RLC série
Pode-se escrever:
di(t)
vr (t) + vl(t) + vc = e(t) ou Ri(t)+ L vc e(t) , [16]
dt
dv(t)
C i(t) (sobre o nó a) [17]
dt
x vc , tesão no capacitor
Variáveis de estado : 1
x2 il , corrente no indutor
1
Cx x ou x x [18]
1 2 1 C 2
24
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
1 R 1
Lx Rx x = u ou x x - x + u [19]
2 2 1 2 L 1 L 2 L
Em notação matricial:
1
x 1 0 x 0
C 1 1 u
x 1 R x
[20]
2 2 L
L L
Onde:
x
y(t) = vc = x1 ou y(t) 1 0 1 . [22]
x2
y = Cx+Du, [23]
onde:
• C é a matriz resposta ou matriz de saída;
• y é o vetor resposta;
• D é a matriz de transmissão direta.
25
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
R1 L1
.a L2
Rx L x + x = u
1 1 1 3
x R x L x = 0
3 2 2 2 2
x x Cx = 0
1 2 3
Conceitos:
26
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
K B
27
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
M y 2 K y2
energia. As equações de energia são para a massa e para a
2 2
mola. Logo, as variáveis de estado são:
x y
1
x y
2
Na forma matricial:
x B K x 1
x 1 M 1
M x M f(t) [25]
2 1 0 2 0
Conceitos:
• - posição angular (rad)
• w – velocidade angular (rad/s)
• - aceleração angular (rad/s2)
28
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
K T(t)
B
K
J
29
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
k
F ( s)
1 2 2
s s 1
wn2 wn [26]
, onde k é uma contante, wn e são respectivamente a frequëncia natural
não amortecida e o coeficiente de amortecimento do sistema. Pode-se
obter a freqüência natural amortecida do sistema, wd:
wd wn 1 2 [27]
30
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
• tempo de subida,
• tempo de pico,
• tempo de acomodação e
• overshoot ou sobre sinal máximo.
•
A figura 11 apresenta a resposta típica de um sistema de 2ª ordem para
uma entrada degrau unitário.
31
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
Mp
1+d
1
0.9
1-d
0.1
ts
tp
ta
1
f(t) 1 e -wn t sen(wd t a cos ζ)
1 ζ 2 [28]
1
e -wn ts sen(wd t a cos ζ) 0
1 ζ 2 [29]
32
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
ζwn
cos a cos ζ
wn
De onde:
[30]
ts
wd
Logo:
sen(wd tp) 0 , para wd.tp = 0, , 2 ...
f(tp) f()
Mp x100 %
f()
33
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
[32]
1
f(t) 1 e -wn t sen(wd t a cos ζ) t tp
1 ζ 2
Como:
-wn
e wd
sen( )
Mp
1 ζ 2 e
sen( ) sen 1 ζ 2
Mp e - / 1 ζ 2
Vp k ke- / 1 ζ 2
[33]
Tempo de Acomodação
Observações:
34
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
35
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
UNITÁRIA
sR ( s )
ess lim sE ( s ) lim [35]
s 0 s 0 1 G (s)
36
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
r (sinal de entrada)
canal direto
c (sinal de saída)
e (erro)
G(s)
+
_
b (sinal de realimentação)
1
ess [39]
1 K
37
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
ess 0 [41]
ess [45]
1
ess [47]
K
Para um sistema tipo 2 ou superior:
sK (Ta s 1)(Tb s 1)...
K v lim , para N 2 [48]
s 0 s N (T s 1)(T s 1)...
1 2
ess 0 [49]
38
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
ess [52]
ess [54]
1
ess [56]
K
ess 0 [58]
39
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
K
Exercício: Considere o sistema G ( s ) descrito em duas topologias
Ts 1
diferentes na figura 13. No primeiro caso, em malha aberta, é introduzido
um ganho para tornar o sistema com ganho unitário. No segundo caso,
em malha fechada é intruduzido um ganho para garantir que o ganho de
malha seja muito mair que um.
40
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
C(s)
R(s)
Kc G(s)
R(s)
Kp G(s)
+ C(s)
_
41
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
1 1 1
ess lim sE ( s) s(1 lim G( s)) 1 lim KcK 1 KcK 1 1.1K 0.1
s0 s0 s s0 Ts 1 K
Em malha fechada:
1 1 1
ess
1 K p 1 lim G ( s) 1 1.1KpK
s0
1 1 1 1
ess 0,009
1 K p 1 lim G ( s ) 1 1.1KpK 1 1.1.100
s 0
42
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
43
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
sn a0 a2 a4 a6
s n 1 a1 a3 a5 a7
s n2 b1 b2 b3 b4
s n3 c1 c2 c3 c4
s n4 d1 d2 d3 d4
s2 e1 e2 b1
s1 f1
s0 g1
Os coeficientes são calculados como segue:
a 1a 2 a 0 a 3
b1 ,
a1
a 1a 4 a 0 a 5
b2 ,
a1
a 1a 6 a 0 a 7
b3 , ...
a1
b 1a 3 a 1 b 2
c1 ,
b1
b 1a 5 a 1 b 3
c2 ,
b1
b 1a 7 a 1 b 4
c3 , ...
b1
44
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
R(s) C (s)
s+5
K G(s) =
2
+ s –2s+10
_
s-1
H(s) =
s+6
( s 5) ( s 1)
1 G (s) H (s) 0 1 K 0
( s 2 s 10) ( s 6)
2
s 3 4 s 2 2 s 60 s 2 K 4 sK 5 K 0 s 3 (4 K ) s 2 ( 4 K 2) s 60 5 K 0
De onde:
1 4K 2
4 K 60 5 K
( 4 K 2)( 4 K ) (60 5 K )
4 K
60 5 K
45
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
4K 0
Condição de estabilidade: 4 K 2 19 K 68
0
4 K
60 5 K 0
-4
-7,13 -4 2,38
12
46
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
7.1 Introdução
47
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
C(s) KG( s )
, [59]
R(s) 1 KG( s ) H ( s )
canal direto
R (s) C(s)
e (erro)
KG(s)
+
_
canal de
realimentação
H(s)
48
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
49
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
180 (2N + 1)
= , com N = 0,1, ..., (n-m -1).
n-m
50
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
então pelo menos um ponto de saída existe entre estes dois pólos.
Considerando a equação característica sob a seguinte forma:
A(s) + KB(s) = 0,
dA ( s) B( s)
B( s) A ( s) 0;
ds ds
R(s) C (s)
s+5
K G(s) =
2
+ s –2s+10
_
s-1
H(s) =
s+6
51
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
-6 -5 0
• Assíntotas:
Como há dois zeros e três pólos existe uma assíntota, neste caso sobre o
eixo real (um dos ramos começa em –6 e termina e tende ao infinito
negativo.
• Pontos de entrada de entrada e saída no eixo real
A( s) s 2 4s 5 A ( s) 2s 4
Seja : B( s) s 3 4s 2 2s 60 B ( s) 3s 2 8s 2
A( s ) B ( s ) B ( s ) A ( s ) 0
s 4 8s 3 3s 2 160 s 230 0
• Ângulos de Partida
52
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
Para K = 2,38
Para K = 12:
53
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
54
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
55
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
O ganho K.
Se um número é o fator em
multiplicado por um decibéis é :
fator de:
0.1 -20 dB
0.5 - 6 dB
1 0 dB
2 6 dB
10 20 dB
100 40 dB
1000 60 dB
10000 80 dB
1000000 100 dB
56
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
1
20 log 20 log w , no caso de fatores integrativos e
jw
57
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
gráfico resultante.
1
20 log 20 log (1 w 2 T 2 )
1 jwT
58
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
59
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
Fatores quadráticos
60
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
2
1 w2 w
20 log 20 log 1 2 2
wn wn
2
jw jw
1 2
wn wn
Para baixas freqüências tais que w << wn, o log do módulo resulta
em:
- 20 log 1 = 0 db.
61
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
w
2
1 wn
2 arctan 2
jw jw w
1
1 2
w n wn wn
62
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
63
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
• Freqüência de ressonância: wr wn 1 2 2
1
• Valor do pico de ressonância é dado por:
Mr
2 1 2
Observe-se que para > 0.707 não há pico de ressonância.
64
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
65
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
66
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
MG 20 log G ( jw w w1 ,
onde w1 é a freqüência de cruzamento de fase, ou seja, a freqüência em
que a curva de fase cruza -180.
10( s 1)
G( s)
S ( S 3)( S 10)
2
67
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
8.4 Conclusões
68
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
69
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
9 CONTROLADORES PID
9.1 Introdução
70
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
AÇÃO PROPORCIONAL
u(t) Kp e(t)
Para uma saída menor que o valor de referência o valor de controle será
positivo (e(t)>0) e para uma saída maior que o valor de referência o valor
de saída será negativo (e(t)<0). Este erro pode diminuir com o aumento
do ganho, entretanto nunca é completamente zerado. Por outro lado,
quanto maior o ganho, mais oscilatório tende a ficar o comportamento
transitório do sistema em malha fechada. Geralmente, o aumento
71
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
72
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
K pequeno K grande
umax
umax
e1 e1 e2
e2
e(t) e(t)
umin umin
AÇÃO INTEGRAL
73
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
U(s) Ki 1
C(s)
E(s) s Tis
AÇÃO DERIVATIVA
d d
u(t) K d e(t) Td e(t)
dt dt
74
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
U(s)
C(s) K ds Tds
E(s)
U(s) s s
C(s) Kd Td
E(s) s p s p
75
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
C(s)=s
C(s)=s/(s+p)
1 d Ki
u(t) Kpe(t)
Ti e(t)dt Td e(t)
dt
U(s) KpE(s)
s
E(s) KdsE(s)
76
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
KI
U(s) (K P )E(S)
s
77
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
U(s) (K P Kds)E(S)
78
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
(K P K Is)
U(s) E(S)
s
(1 )
p
79
CURSO DE ESPECIALIZAÇÃO EM AUTOMAÇÃO INDUSTRIAL
80