Escolar Documentos
Profissional Documentos
Cultura Documentos
CONTROLADORES
l
DEFINIO
Bom desempenho de uma malha de controle est ligado:
Seleo correta do controlador
Determinao conveniente dos parmetros do
controlador
Lei de controle -
Page 1
CONTROLADORES
l
DEFINIO (Cont.)
Formas da Lei de controle:
PROPORCIONAL
INTEGRAL
DERIVATIVA
CONTROLADORES
l
TIPOS DE CONTROLADORES
l
Page 2
CONTROLADORES
l
Onde:
Kc - Ganho proporcional
us - Bias do controlador ( sada quando e = 0 )
CONTROLADORES
l
FUNO DE TRANSFERNCIA
u ( t ) = u( t ) us
u ( t ) = K c e( t )
No domnio s:
u( s) = Kc e( s ) G c ( s) =
Page 3
u ( s)
Gc ( s) = K c
e( s)
CONTROLADORES
l
BANDA PROPORCIONAL
Onde: K c =
y max
u max
PB =
100
umax
y max
PB =
100
Kc
u u max
=
y ymax
CONTROLADORES
l
BANDA PROPORCIONAL(Cont.)
Page 4
CONTROLADORES
l
BANDA PROPORCIONAL(Cont.)
CONTROLADORES
l
BANDA PROPORCIONAL(Cont.)
Desvantagem da ao proporcional
a incapacidade de eliminar o erro no estado estacionrio
(Offset) aps uma alterao de Setpoint e Perturbao.
Page 5
CONTROLADORES
l
u( t ) = Ki e( t ) dt
0
Onde:
Ki - Constante Integral ou Reset
Ki =
1
i
CONTROLADORES
l
Page 6
CONTROLADORES
l
CONTROLADORES
l
FUNO DE TRANSFERNCIA
G c ( s) =
u( s) Ki
=
e( s)
s
Page 7
CONTROLADORES
l
CONTROLADORES
l
Kc t
e( t ) dt + us
i 0
Onde:
Kc - Constante Proporcional
Kc
- Constante Integral
i
Page 8
CONTROLADORES
l
FUNO DE TRANSFERNCIA
u( t ) = Kc e( t ) +
Kc t
e( t) dt
i 0
No domnio s:
u( s) = Kc e( s) +
Kc
1
e( s) u ( s ) = Kc 1 +
e( s)
i
i s
K c ( i s + 1)
1
G ( s) = Kc 1 +
G ( s) =
is
is
CONTROLADORES
l
de( t )
dt
Onde:
Kc - Constante Derivativa
Page 9
CONTROLADORES
CONTROLADOR DERIVATIVO (D) (Cont.)
Logo que o erro aparece a sada do controlador pode se
tornar grande.
O controlador derivativo insens vel a erro constante ou de
variao lenta.
A ao derivativa no utilizada sozinha, mas combinada
com outras formas de controle.
l
CONTROLADORES
l
FUNO DE TRANSFERNCIA
u( s) = Kd s e( s)
G( s) = Kd s
Page 10
CONTROLADORES
l
de( t )
+ us
dt
Kc - Constante Proporcional
d - Tempo Derivativo
Tempo Derivativo - o nmero de corre ~oes da ao ( como
frao da ao proporcional ) por unidade de tempo.
CONTROLADORES
l
CONTROLADOR PROPORCIONAL-DERIVATIVO(Cont.)
FUNO DE TRANSFERNCIA
u( s) = Kc e( s ) + Kc d s e( s) u ( s ) = K c ( 1 + d s ) e( s )
G ( s) = Kc ( 1 + d s
Page 11
CONTROLADORES
l
u( t ) = K c e( t ) +
1 t
de( t )
e( t ) dt + d
+u
i 0
dt s
Onde:
Kc - Ganho Proporcional
CONTROLADORES
l
CONTROLADOR PROPORCIONAL-INTEGRALDERIVATIVO(Cont.)
FUNO DE TRANSFERNCIA
1
u' ( s ) = Kc 1 +
+ d s e( s)
is
1
Gc ( s) = Kc 1 +
+ d s
is
Page 12
CONTROLADORES
l
CONTROLADORES
l
CONTROLADORES COMERCIAIS
1 t
dy( t )
u( t ) = Kc e( t ) + e( t ) dt + d
+u
i 0
dt s
FUNO DE TRANSFERNCIA
1
u' ( s ) = Kc1 + e( s) + d sy ( s)
i
Page 13
CONTROLADORES
l
1
G c ( s) = K c 1 +
+ d s
is
d s + 1
onde << 1
CONTROLADORES
l
1 d s + 1
Gc( s ) = Kc 1 +
i s d s + 1
onde < 1
Page 14
CONTROLADORES
O EFEITO WINDUP
FIG.
3.18
CONTROLADORES
METODOS PARA PREVENCAO DO WINDUP
1. LIMITACAO DE SETPOINT
2. ALGORITMO INCREMENTAL
Fig.3.16
Page 15
CONTROLADORES
METODOS PARA PREVENCAO DO WINDUP
3. BACK-CALCULATION AND TRACKING
Quando a saida satura, a integral e recalculada em
funcao da saturacao. O reset e realizado
dinamicamente
Fig. 3.19
CONTROLADORES
METODOS PARA PREVENCAO DO WINDUP
Page 16
CONTROLADORES
METODOS PARA PREVENCAO DO WINDUP
A entrada do integrador e dado por :
1
K
es + e
Tt
Ti
assim ,
es =
KTt
e= u v
Ti
KTt
e onde, ulim e o valor de saturacao da
Ti
variavel de controle.
v = ulim +
CONTROLADORES
METODOS PARA PREVENCAO DO WINDUP
Fig. 3.20
Page 17
CONTROLADORES
METODOS PARA PREVENCAO DO WINDUP
Fig. 3.21
Regra Pratica :
Tt = Ti.Td
CONTROLADORES
METODOS PARA PREVENCAO DO WINDUP
Fig. 3.22
Fig. 3.23
Page 18
CONTROLADORES
METODOS PARA PREVENCAO DO WINDUP
CONTROLADORES
DISCRETIZAO DO ALGORITMO PID
sequncia de operao:
1 - Aguardar a interrupo do clock do sistema;
2 - Ler as entradas analgicas;
3 - Computar o sinal de controle u
4 - Atualizar a sa da analgica;
5 - Atualizar as variveis;
6 - Voltar para passo 1.
Cuidados com o perodo de amostragem, ciclo de controle e filtragem
dos sinais sempre so necessrios.
Page 19
CONTROLADORES
ALIASING EFFECT
CONTROLADORES
DISCRETIZAO DO ALGORITMO PID
DISCRETIZAO DA AO PROPORCIONAL
Page 20
CONTROLADORES
DISCRETIZAO DO ALGORITMO PID
DISCRETIZAO DA AO INTEGRAL
A componente integral de um controlador analgico contnuo dado por:
I=
Kc t
. e(t )dt
Ti 0
CONTROLADORES
DISCRETIZAO DO ALGORITMO PID
Cont.
onde:
I (t k +1 ) = I (t k ) +
K c .h
.e(t k )
Ti
I (t k ) = I (t k 1 ) +
K c .h
Ti
.e(t k )
(Forward)
(Backward)
I (t k +1 ) = I (t k ) +
K c .h e( t k +1 ) + e (t k )
.
(Aproximao de Tustin)
Ti
2
I (t k +1 ) = I (t k ) +
K c .h e( t k +1 ) + e (t k )
.
(Equivalente em Rampa)
Ti
2
h = t k t k 1
De forma genrica:
I (t
) = I (t ) + b .e(t ) + b .e(t )
k +1
k
i1 k +1 i2 k
Page 21
CONTROLADORES
DISCRETIZAO DO ALGORITMO PID
DISCRETIZAO DA AO DERIVATIVA
K c .T .s
d .y
T
d
1 + .s
N
CONTROLADORES
DISCRETIZAO DO ALGORITMO PID
Td d
d
. D + D = K c .Td . y
N dt
dt
Cont
D(t k ) =
N .h
).D( t k ) + K c .N ( y (t k +1) y( t k ))
Td
Td
K .T .N
. D(t k 1) + c d ( y (t k ) y (t k 1))
Td + N .h
Td + N .h
2.T N.h
ad = d
2.Td + N.h
bd =
2K cTd N
2.Td + N.h
Page 22
(Forward)
(Backward)
(Tustin)
CONTROLADORES
DISCRETIZAO DO ALGORITMO PID
Cont
D( tk ) = a d . D (t k 1 ) + bd .( y (t k ) y ( tk 1 )) (Equivalente
onde:
ad = e
N .h
Td
N. h
K T (1 e
bd = c d
h
Td
Genericamente:
CONTROLADORES
DISCRETIZAO DO ALGORITMO PID
Forward
Backward
Tustins
Eq. Rampa
K c .h
Ti
K c .h
2.Ti
K c .h
2 .Ti
K c .h
Ti
K c .h
2.Ti
K c .h
2.Ti
Td
Td + N.h
2 .Td N .h
2 .Td + N .h
K c .Td . N
Td + N.h
2K c Td N
2 .Td + N .h
K cTd (1 e
h
bi 1
bi 2
ad
bd
N.h
Td
Kc .N
Page 23
N .h
Td
N. h
Td
em Rampa)
CONTROLADORES
u (t k ) = P (t k ) + I (t k ) + D (t k ) + u (t k 1 )
P (t k ) = P (t k ) P (t k 1 ) = K c (uc (t k ) y (t k ) uc (t k 1 ) + y ( tk 1 )
I (t k ) = I ( t k ) I (t k 1 ) = bi1.e( t k ) + bi 2 .e( t k 1)
D(t k ) = D (tk ) D(t k 1 ) = a d .D(t k 1 ) bd .( y (t k ) 2 y (t k 1 ) + y (t k 2 ))
CONTROLADORES
QUANTIZACAO
I (t k ) = I ( t k ) I (t k 1 ) = bi1.e( t k ) + bi 2 .e( t k 1)
I (t k ) << I (t k )
O arrendondamento pode ocorrer
e gerar um erro de off - set na integracao
K.h
.e da equacao acima tem
Ti
K.h
seu valor maximo de
. Se h = 0.02 s
Ti
e Ti = 20 min = 1200 s e K = 0.1. Entao
K.h
= 1.7 10-6 = 2 19.2
Ti
Para nao termos o off - set e necessario
usa uma " word" de 20 bits
Exemplo : A correcao
Page 24
E se usar um h diferente
para o termo integral ?
CONTROLADORES
2-POINT PWM OUTPUT
When using a switching output, such
as the 2-point PWM output, the
continuous
variable CO, which is calculatedby
the PID algorithm, must be converted
into a
switching signal.
This conversion takes place via a
PWM element (PWM: Pulse-Width
Modulation).
The relay will be clocked with a
changeover period which is
proportional to CO. In
this way, a quasi-continuous
behaviour is achieved. The period T+
of the PWM
signal must be adaptedto the
regulated system.
CONTROLADORES
3-POINT PWM OUTPUT
The 3-point PWM output is a
combination of two 2-point PWM
outputs. One PWM
output controls the output relay 1
(Output relay, heat) dependent on
COh, while the
other PWM output controls the
output relay 2 (Output, cool)
dependent on COk.
Each of the two outputs is
subordinated to a PID algorithm
within the controller. The
following diagram shows the
principle of the controller
characteristic for the 3-point
output:
Page 25
CONTROLADORES
3-POINT PWM OUTPUT
CONTROLADORES
BUMPLESS
Page 26
CONTROLADORES
BUMPLESS
CONTROLADORES
BUMPLESS
Page 27
CONTROLADORES
BUMPLESS
CONTROLADORES
MODULO DE CONTROLE MANUAL
Page 28
CONTROLADORES
UM PID COMPLETO
CONTROLADORES
Page 29
CONTROLADORES
PID COMPLETO-ALGORITMO ref.: Astron
CONTATOS
Page 30