main content

designing cascade control system with pi controllers -凯发k8网页登录

this example shows how to design a cascade control loop with two pi controllers using the pidtune command.

introduction to cascade control

cascade control is mainly used to achieve fast rejection of disturbance before it propagates to the other parts of the plant. the simplest cascade control system involves two control loops (inner and outer) as shown in the block diagram below.

controller c1 in the outer loop is the primary controller that regulates the primary controlled variable y1 by setting the set-point of the inner loop. controller c2 in the inner loop is the secondary controller that rejects disturbance d2 locally before it propagates to p1. for a cascade control system to function properly, the inner loop must respond much faster than the outer loop.

in this example, you will design a single loop control system with a pi controller and a cascade control system with two pi controllers. the responses of the two control systems are compared for both reference tracking and disturbance rejection.

plant

in this example, the inner loop plant p2 is

p2(s)=3s 2

the outer loop plant p1 is

p1(s)=10(s 1)3

p2 = zpk([],-2,3);
p1 = zpk([],[-1 -1 -1],10);

designing a single loop control system with a pi controller

use pidtune command to design a pi controller in standard form for the whole plant model p = p1 * p2.

the desired open loop bandwidth is 0.2 rad/s, which roughly corresponds to the response time of 10 seconds.

% the plant model is p = p1*p2
p = p1*p2; 
% use a pid or pidstd object to define the desired controller structure
c = pidstd(1,1);
% tune pi controller for target bandwidth is 0.2 rad/s
c = pidtune(p,c,0.2);
c
c =
 
             1      1 
  kp * (1   ---- * ---)
             ti     s 
  with kp = 0.0119, ti = 0.849
 
continuous-time pi controller in standard form

designing a cascade control system with two pi controllers

the best practice is to design the inner loop controller c2 first and then design the outer loop controller c1 with the inner loop closed. in this example, the inner loop bandwidth is selected as 2 rad/s, which is ten times higher than the desired outer loop bandwidth. in order to have an effective cascade control system, it is essential that the inner loop responds much faster than the outer loop.

tune inner-loop controller c2 with open-loop bandwidth at 2 rad/s.

c2 = pidtune(p2,pidstd(1,1),2);
c2
c2 =
 
             1      1 
  kp * (1   ---- * ---)
             ti     s 
  with kp = 0.244, ti = 0.134
 
continuous-time pi controller in standard form

tune outer-loop controller c1 with the same bandwidth as the single loop system.

% inner loop system when the control loop is closed first
clsys = feedback(p2*c2,1); 
% plant seen by the outer loop controller c1 is clsys*p1
c1 = pidtune(clsys*p1,pidstd(1,1),0.2);
c1
c1 =
 
             1      1 
  kp * (1   ---- * ---)
             ti     s 
  with kp = 0.015, ti = 0.716
 
continuous-time pi controller in standard form

performance comparison

first, plot the step reference tracking responses for both control systems.

% single loop system for reference tracking 
sys1 = feedback(p*c,1);
sys1.name = 'single loop';
% cascade system for reference tracking
sys2 = feedback(clsys*p1*c1,1); 
sys2.name = 'cascade';
% plot step response
figure;
step(sys1,'r',sys2,'b')
legend('show','location','southeast')
title('reference tracking')

figure contains an axes object. the axes object contains 2 objects of type line. these objects represent single loop, cascade.

secondly, plot the step disturbance rejection responses of d2 for both control systems.

% single loop system for rejecting d2
sysd1 = feedback(p1,p2*c); 
sysd1.name = 'single loop';
% cascade system for rejecting d2
sysd2 = p1/(1 p2*c2 p2*p1*c1*c2); 
sysd2.name = 'cascade';
% plot step response
figure;
step(sysd1,'r',sysd2,'b')
legend('show')
title('disturbance rejection')

figure contains an axes object. the axes object contains 2 objects of type line. these objects represent single loop, cascade.

from the two response plots you can conclude that the cascade control system performs much better in rejecting disturbance d2 while the set-point tracking performances are almost identical.

see also

|

related topics

    网站地图