bode diagram design -凯发k8网页登录

main content

bode diagram design

bode diagram design is an interactive graphical method of modifying a compensator to achieve a specific open-loop response (loop shaping). to interactively shape the open-loop response using control system designer, use the bode editor. in the editor, you can adjust the open-loop bandwidth and design to gain and phase margin specifications.

to adjust the loop shape, you can add poles and zeros to your compensator and adjust their values directly in the bode editor, or you can use the compensator editor. for more information, see .

for information on all of the tuning methods available in control system designer, see .

tune compensator for dc motor using bode diagram graphical tuning

this example shows how to design a compensator for a dc motor using bode diagram graphical tuning techniques.

plant model and requirements

the transfer function of the dc motor plant, as described in , is:

g=1.5s2 14s 40.02

for this example, the design requirements are:

  • rise time of less than 0.5 seconds

  • steady-state error of less than 5%

  • overshoot of less than 10%

  • gain margin greater than 20 db

  • phase margin greater than 40 degrees

open control system designer

at the matlab® command line, create a transfer function model of the plant, and open control system designer in the bode editor configuration.

g = tf(1.5,[1 14 40.02]);
controlsystemdesigner('bode',g);

the app opens and imports g as the plant model for the default control architecture, configuration 1.

in the app, the following response plots open:

  • open-loop bode editor for the looptransfer_c response. this response is the open-loop transfer function gc, where c is the compensator and g is the plant.

  • step response for the iotransfer_r2y response. this response is the input-output transfer function for the overall closed-loop system.

tip

to open the open-loop bode editor when control system designer is already open, on the control system tab, in the tuning methods drop-down list, select bode editor. in the select response to edit dialog box, select an existing response to plot, or create a new open-loop response.

to view the open-loop frequency response and closed-loop step response simultaneously, click and drag the plots to the desired location.

the app displays the bode editor and step response plots side-by-side.

adjust bandwidth

since the design requires a rise time less than 0.5 seconds, set the open-loop dc crossover frequency to about 3 rad/s. to a first-order approximation, this crossover frequency corresponds to a time constant of 0.33 seconds.

to make the crossover easier to see, turn on the plot grid. right-click the bode editor plot area, and select grid. the app adds a grid to the bode response plots.

to adjust the crossover frequency increase the compensator gain. in the bode editor plot, in the magnitude response plot, drag the response upward. doing so increases the gain of the compensator.

as you drag the magnitude plot, the app computes the compensator gain and updates the response plots.

drag the magnitude response upward until the crossover frequency is about 3 rad/s.

view step response characteristics

to add the rise time to the step response plot, right-click the plot area, and select characteristics > rise time.

to view the rise time, move the cursor over the rise time indicator.

the rise time is around 0.23 seconds, which satisfies the design requirements.

similarly, to add the peak response to the step response plot, right-click the plot area, and select characteristics > peak response.

the peak overshoot is around 3.5%.

add integrator to compensator

to meet the 5% steady-state error requirement, eliminate steady-state error from the closed-loop step response by adding an integrator to your compensator. in the bode editor right-click in the plot area, and select add pole or zero > integrator.

adding an integrator produces zero steady-state error. however, changing the compensator dynamics also changes the crossover frequency, increasing the rise time. to reduce the rise time, increase the crossover frequency to around 3 rad/s.

adjust compensator gain

to return the crossover frequency to around 3 rad/s, increase the compensator gain further. right-click the bode editor plot area, and select edit compensator.

in the compensator editor dialog box, in the compensator section, specify a gain of 99, and press enter.

the response plots update automatically.

the rise time is around 0.4 seconds, which satisfies the design requirements. however, the peak overshoot is around 32%. a compensator consisting of a gain and an integrator is not sufficient to meet the design requirements. therefore, the compensator requires additional dynamics.

add lead network to compensator

in the bode editor, review the gain margin and phase margin for the current compensator design. the design requires a gain margin greater than 20 db and phase margin greater than 40 degrees. the current design does not meet either of these requirements.

to increase the stability margins, add a lead network to the compensator.

in the bode editor, right-click and select add pole or zero > lead.

to specify the location of the lead network pole, click on the magnitude response. the app adds a real pole (red x) and real zero (red o) to the compensator and to the bode editor plot.

in the bode editor, drag the pole and zero to change their locations. as you drag them, the app updates the pole/zero values and updates the response plots.

to decrease the magnitude of a pole or zero, drag it towards the left. since the pole and zero are on the negative real axis, dragging them to the left moves them closer to the origin in the complex plane.

tip

as you drag a pole or zero, the app displays the new value in the status bar, on the right side.

as an initial estimate, drag the zero to a location around -7 and the pole to a location around -11.

the phase margin meets the design requirements; however, the gain margin is still too low.

edit lead network pole and zero

to improve the controller performance, tune the lead network parameters.

in the compensator editor dialog box, in the dynamics section, click the lead row.

in the edit selected dynamics section, in the real zero text box, specify a location of -4.3, and press enter. this value is near the slowest (left-most) pole of the dc motor plant.

in the real pole text box, specify a value of -28, and press enter.

when you modify a lead network parameters, the compensator and response plots update automatically.

in the app, in the bode editor, the gain margin of 20.5 just meets the design requirement.

to add robustness to the system, in the compensator editor dialog box, decrease the compensator gain to 84.5, and press enter. the gain margin increases to 21.8, and the response plots update.

in control system designer, in the response plots, compare the system performance to the design requirements. the system performance characteristics are:

  • rise time is 0.445 seconds.

  • steady-state error is zero.

  • overshoot is 3.39%.

  • gain margin is 21.8 db.

  • phase margin is 65.6 degrees.

the system response meets all of the design requirements.

see also

|

related topics

网站地图