Phase lag compensator matlab tutorial pdf

Frequency response example michigan state university. Lead compensator example draw bode plot of l1s using approximated bode plot pm is found to be 17o. Using the initial design of the lead compensator from example 6 in series with the lag compensator gc. Chang 2004 used phaselag and phaselead compensators to control servo control systems 3. Margins 7 effect of changing compensator gain on the phase margin. To select an automated tuning method, in control system designer, click tuning methods. Lead compensation tutorial resources in control education. The main difference is that the lag compensator adds negative phase to the. A firstorder lag compensator cs can be designed using the root locus.

Analysis and design of feedback systems with time delays when working with time delay systems it is advantageous to work with analysis and design tools that directly support time delays so that performance and stability can be evaluated. In order to improve the efficiency and reduce the cost of the compensation for control system, the design of lead, lag, and laglead compensators for speed control of dc motor by using bode plot techniques via matlab software is proposed. A number of matlab functions are developed that automate the compensator design procedure. How to obtain phase shift in simulink matlab answers. Relieving the drudgery of many routine repetitive manual operation, and more. In order to use practically the compensator, the impulse response function of the compensator is obtained in the form of a series expansion of a gamma function and it can be performed by the convolution method between the. Computer aided design of lead compensator using root locus method. The bode plots of lead compensator are shown below. The instantaneous gain of the compensator is 1, and the dc gain is equal to 1z1p, where z is the zero and p is the pole of the compensator the block implements a lead compensator when 0 lag compensator when 0 phase lead compensator through a design example.

Design compensator for systems represented by frequency. The frequency response of this controller is plotted using the matlab command and is shown below for k1. Design via root locus elec304alper erdogan 1 1 lecture. An increase is a good idea due to approximations in design equations and due to component variations in real systems. The transfer fcn lead or lag block implements a discretetime lead or lag compensator of the input. You can switch between continuous and discrete implementations of the block using the sample time parameter. Discretize a compensator open live script this example shows how to convert a compensator from continuous to discrete time using several discretization methods, to identify a method that yields a good match in the frequency domain. The instantaneous gain of the compensator is 1, and the dc gain is equal to 1z1p, where z is the zero and p is the pole of the compensator.

The lag compensator circuit in the s domain is shown in the following figure. Then all of design parameters of compensator and design steps are implemented using matlab without manual calculation except the gain corresponding to. Poles and zeros of phaselaga and phaseleadb controllers 8. Loh, cai and tan 2004 studied the autotuning of phase lead lag compensators using the frequency response of the plant using relays with hysteresis 2. Gain and phase margins and leadlag compensation resources in. For a lag compensator, however, the zero is less than the pole zo pdf available april 2015 with 3,859 reads how we measure reads. Margins 9 the affect of lag compensators on margins. Design compensator for plant model with time delays matlab. A control system design method using real order phase lead. The lag compensator is an electrical network which produces a sinusoidal output having the phase lag when a sinusoidal input is applied. Pdf design of a leadlag compensator for position loop. Its transfer function is given by it has features of both phaselagand phaseleadcontrollers, i. Design via root locus elec304alper erdogan 1 33 laglead compensation.

On the other hand if as shown in figure 1 b, the compensator angle z0 p0 0. Its transfer function is given by it has features of both phase lagand phase leadcontrollers, i. Chang 2004 used phase lag and phase lead compensators to control servo control systems 3. Design via root locus elec304alper erdogan 1 1 lecture 1. Control system design by frequency response using matlab. In the bode editor, rightclick the plot area, and select edit compensator. Lag mechanics if pole at a lower frequency than zero. Margins 10 mechanistic lag compensation design with matlab and tutorial sheet. Control systems in python phase lag compensator design. Here, the capacitor is in series with the resistor r2 and the output is measured across this combination. For an unstable uncompensated system, lead compensation provides fast response but does not provide enough phase margin whereas lag compensation stabilize the system but does not provide enough bandwidth. An introduction to compensator design with matlab geek peek. The main types of compensators are the lag, lead and lag lead. Compensation in control system lag lead compensation.

Pdf abastract this paper describes the opportunity of implementing design procedures of lead lag compensators in continuous then use. Design of a leadlag compensator for position loop control of a gimballed payload conference paper pdf available april 2015 with 3,859 reads how we measure reads. Margins 10 mechanistic lag compensation design with matlab. It improves the steady state performance of the system, but reduces the bandwidth and results in a slower transient response too. The phase of the compensator network varies with frequency see figure 3 and. Nov 11, 2016 here it is how to perform the lag compensation using matlab tool.

Poles and zeros of phase lag a and phase leadb controllers 8. Determine the desired pole location based on speci. Compensator editor to open the compensator editor dialog box, in control system designer, in an editor plot area, rightclick and select edit compensator. This approach is described in more detail in my paper lagleadcompensator design using bode plots, as well as in the references. Design compensator using automated tuning methods matlab. Because of this in the above step 3 we add few degrees to obtain the desired phase margin. Design of phase lead and phase lag compensator for pitch. Evaluate the steady state performance of the lead compensated system to. Adding the magnitude and phase of the integral controller to the magnitude and phase of the original controller can be done either graphically or analytically.

The lead lag discrete or continuous block implements a lead lag compensator in conformance with ieee 421. This example shows how to tune a compensator using automated tuning methods in control system designer. This example shows how to design a compensator for a plant with time delays using control system designer. In order to have c as the new gain crossover frequency, the lag compensator must give an attenuation. The iq compensator coefficient to imbalance block converts a compensator coefficient into its equivalent amplitude and phase imbalance. A simple realization of a phase lead compensator is shown below. Margin 11 the affect of lead compensators on margins. The leadlag discrete or continuous block implements a leadlag compensator in conformance with ieee 421.

The lag compensator is expressed in the same form as a lead compensator. Computer aided design of lead compensator using root locus. Oct 23, 2019 if we want to add a dominating pole for compensation in control system then, we have to select a lag compensation network. However, i cannot achieve what is asked in the example namely a crossing frequency of less than 20 khz and a phase margin of at least 52 degrees. Figure 1 shows the bode plots of magnitude and phase for a typical lag compensator. Designing digital lead and lag compensators using the. The purpose of phase lag compensator design in the frequency domain generally is to. Lead compensators design using frequency response techniques. Closedloop frequency response magnitudes for the example. To satisfy the tracking requirement of zero steadystate error, add an integrator to the compensator. A firstorder phase lag compensator also can be designed using a frequency response approach. Lag or phaselag compensator using frequency response. In these editors, interactively modify the gain, poles, and zeros of the compensator.

For a lag compensator, however, the zero is less than the pole zo compensator parameters using the compensator editor or using the graphical bode editor, root locus editor, or nichols editor plots. With this design tool, control engineers would be able to rapidly design lead andor lag compensators. A lag compensator in frequency response form is given by the following. Browse other questions tagged matlab functionaldependencies phase or ask your own question. If our compensator g c s k c 20, we get the following new responses by simply shifting the open loop bode up by about 26db.

Write a matlab code to design a phaselead compensator for the system. Pdf implementation and simulation of digital control. Mar 31, 20 if our compensator g c s k c 20, we get the following new responses by simply shifting the open loop bode up by about 26db. A firstorder phaselag compensator also can be designed using a frequency response approach. Jan 19, 2018 lead compensator watch more videos at lecture by. Gain decreases at high frequency typically scale lag up so that hf gain is 1, and thus the low frequency gain is higher. To meet the gain and phase margin requirements, add a zero to the compensator.

Consider of lead compensator having the following transfer function. You can add dynamics and modify compensator parameters using the compensator editor or using the graphical bode. From the example we can see the method is effective and it can greatly reduce. Phase lag compensator design using bode plots the gmu ece. Introduction the purpose of phase lag compensator design in the frequency domain generally is to satisfy speci. A tutorial sheet with key facts and problems is given in the pdf file. Design of compensators for speed control of dc motor by. Mutambara design and analysis of control system crc press llc. Margins 8 example designs changing compensator gain to achived desired phase margin. Rightclick the bode editor plot area, and select add polezero integrator.

In the compensator editor dialog box, on the parameter tab, tune the pid. With single lag or lead compensation may not satisfied design specifications. A compensator that introduces a phase lag to an input signal is called a lag compensator. Implementation and simulation of digital control compensators.

With this design tool, control engineers would be able to rapidly design nonlinear lead andor lag compensators. Here it is how to perform the lag compensation using matlab tool. Loh, cai and tan 2004 studied the autotuning of phase leadlag compensators using the frequency response of the plant using relays with hysteresis 2. Design compensator using automated pid tuning and graphical. The purpose of phase lag compensator design in the frequency domain generally is to satisfy speci. Design of compensators for speed control of dc motor by using. The basic requirement of the phase lag network is that all poles and zeros of the transfer function of the network must lie in ve real axis interlacing each other with a pole located or on the nearest to the origin. Here, the capacitor is in series with the resistor r2. The root locus plotted by using matlab on the figure window, click edit copy. To tune the parameters of your compensator directly, use the compensator editor. Discretetime or continuoustime leadlag compensator. In order to improve the efficiency and reduce the cost of the compensation for control system, the design of lead, lag, and lag lead compensators for speed control of dc motor by using bode plot techniques via matlab software is proposed.

A lead compensator can increase the stability or speed of reponse of a system. The result is the bode diagram of the openloop transfer function. There are amplitude and phase imbalance output ports both of which are real. I have a buckboost converter which i modeled on matlab and i am trying to control it with a pd compensator. Use matlab to compare the responses with a simple gain design, a lag design and a lead design and comment on what you find. A lag compensator in root locus form is given by the following. This block has a single input port, which accepts a complex coefficient or a vector of coefficients. The order of phase leadlag elements is, in general, an integer but in this design it will be treated as a real number.

398 1423 48 543 1382 1346 824 1597 444 781 223 543 245 77 951 384 1205 50 1200 1303 903 856 1437 919 341 317 623 2 1401 181 931 1265 1276 51 854 318 1388 1276