Digital Control System Pdf

< Control Systems

For starters, I would recommend you to follow through the lecture notes of this IIT course, Digital control systems: For a.

The latest reviewed version was checked on 14 June 2017. There are template/file changes awaiting review.
  • 2Digital Systems
  • 3Relating Continuous and Discrete Systems
  • 6Time Variant Solutions

Digital Systems[edit]

Digital systems, expressed previously as difference equations or Z-Transform transfer functions can also be used with the state-space representation. Also, all the same techniques for dealing with analog systems can be applied to digital systems, with only minor changes.

Digital Systems[edit]

For digital systems, we can write similar equations, using discrete data sets:

x[k+1]=Ax[k]+Bu[k]{displaystyle x[k+1]=Ax[k]+Bu[k]}
Digital engine control system pdf
y[k]=Cx[k]+Du[k]{displaystyle y[k]=Cx[k]+Du[k]}

Zero-Order Hold Derivation[edit]

If we have a continuous-time state equation:

Digital Control System Pdf Free Download

x(t)=Ax(t)+Bu(t){displaystyle x'(t)=Ax(t)+Bu(t)}

We can derive the digital version of this equation that we discussed above. We take the Laplace transform of our equation:

X(s)=(sIA)1Bu(s)+(sIA)1x(0){displaystyle X(s)=(sI-A)^{-1}Bu(s)+(sI-A)^{-1}x(0)}

Now, taking the inverse Laplace transform gives us our time-domain system, keeping in mind that the inverse Laplace transform of the (sI - A) term is our state-transition matrix, Φ:

x(t)=L1(X(s))=Φ(tt0)x(0)+t0tΦ(tτ)Bu(τ)dτ{displaystyle x(t)={mathcal {L}}^{-1}(X(s))=Phi (t-t_{0})x(0)+int _{t_{0}}^{t}Phi (t-tau )Bu(tau )dtau }

Now, we apply a zero-order hold on our input, to make the system digital. Notice that we set our start time t0 = kT, because we are only interested in the behavior of our system during a single sample period:

u(t)=u(kT),kTt(k+1)T{displaystyle u(t)=u(kT),kTleq tleq (k+1)T}
x(t)=Φ(t,kT)x(kT)+kTtΦ(t,τ)Bdτu(kT){displaystyle x(t)=Phi (t,kT)x(kT)+int _{kT}^{t}Phi (t,tau )Bdtau u(kT)}

We were able to remove u(kT) from the integral because it did not rely on τ. We now define a new function, Γ, as follows:

Γ(t,t0)=t0tΦ(t,τ)Bdτ{displaystyle Gamma (t,t_{0})=int _{t_{0}}^{t}Phi (t,tau )Bdtau }

Inserting this new expression into our equation, and setting t = (k + 1)T gives us:

x((k+1)T)=Φ((k+1)T,kT)x(kT)+Γ((k+1)T,kT)u(kT){displaystyle x((k+1)T)=Phi ((k+1)T,kT)x(kT)+Gamma ((k+1)T,kT)u(kT)}

Now Φ(T) and Γ(T) are constant matrices, and we can give them new names. The d subscript denotes that they are digital versions of the coefficient matrices:

Ad=Φ((k+1)T,kT){displaystyle A_{d}=Phi ((k+1)T,kT)}
Bd=Γ((k+1)T,kT){displaystyle B_{d}=Gamma ((k+1)T,kT)}

We can use these values in our state equation, converting to our bracket notation instead:

x[k+1]=Adx[k]+Bdu[k]{displaystyle x[k+1]=A_{d}x[k]+B_{d}u[k]}

Relating Continuous and Discrete Systems[edit]

Wikipedia has related information at Discretization

Continuous and discrete systems that perform similarly can be related together through a set of relationships. It should come as no surprise that a discrete system and a continuous system will have different characteristics and different coefficient matrices. If we consider that a discrete system is the same as a continuous system, except that it is sampled with a sampling time T, then the relationships below will hold. The process of converting an analog system for use with digital hardware is called discretization. We've given a basic introduction to discretization already, but we will discuss it in more detail here.

Discrete Coefficient Matrices[edit]

Of primary importance in discretization is the computation of the associated coefficient matrices from the continuous-time counterparts. If we have the continuous system (A, B, C, D), we can use the relationship t = kT to transform the state-space solution into a sampled system:

x(kT)=eAkTx(0)+0kTeA(kTτ)Bu(τ)dτ{displaystyle x(kT)=e^{AkT}x(0)+int _{0}^{kT}e^{A(kT-tau )}Bu(tau )dtau }
x[k]=eAkTx[0]+0kTeA(kTτ)Bu(τ)dτ{displaystyle x[k]=e^{AkT}x[0]+int _{0}^{kT}e^{A(kT-tau )}Bu(tau )dtau }

Now, if we want to analyze the k+1 term, we can solve the equation again:

x[k+1]=eA(k+1)Tx[0]+0(k+1)TeA((k+1)Tτ)Bu(τ)dτ{displaystyle x[k+1]=e^{A(k+1)T}x[0]+int _{0}^{(k+1)T}e^{A((k+1)T-tau )}Bu(tau )dtau }

Separating out the variables, and breaking the integral into two parts gives us:

x[k+1]=eATeAkTx[0]+0kTeATeA(kTτ)Bu(τ)dτ+kT(k+1)TeA(kT+Tτ)Bu(τ)dτ{displaystyle x[k+1]=e^{AT}e^{AkT}x[0]+int _{0}^{kT}e^{AT}e^{A(kT-tau )}Bu(tau )dtau +int _{kT}^{(k+1)T}e^{A(kT+T-tau )}Bu(tau )dtau }

If we substitute in a new variable β = (k + 1)T + τ, and if we see the following relationship:

Digital Control Systems Kuo Pdf Download

eAkTx[0]=x[k]{displaystyle e^{AkT}x[0]=x[k]}

We get our final result:

x[k+1]=eATx[k]+(0TeAαdα)Bu[k]{displaystyle x[k+1]=e^{AT}x[k]+left(int _{0}^{T}e^{Aalpha }dalpha right)Bu[k]}

Comparing this equation to our regular solution gives us a set of relationships for converting the continuous-time system into a discrete-time system. Here, we will use 'd' subscripts to denote the system matrices of a discrete system, and we will use a 'c' subscript to denote the system matrices of a continuous system.

Matrix Dimensions:
A: p × p
B: p × q
C: r × p
D: r × q

Ad=eAcT{displaystyle A_{d}=e^{A_{c}T}}
Bd=0TeAτdτBc{displaystyle B_{d}=int _{0}^{T}e^{Atau }dtau B_{c}}
Cd=Cc{displaystyle C_{d}=C_{c}}
Dd=Dc{displaystyle D_{d}=D_{c}}
This operation can be performed using this MATLAB command:
c2d

If the Ac matrix is nonsingular, and we can find it's inverse, we can instead define Bd as:

Bd=Ac1(AdI)Bc{displaystyle B_{d}=A_{c}^{-1}(A_{d}-I)B_{c}}

The differences in the discrete and continuous matrices are due to the fact that the underlying equations that describe our systems are different. Continuous-time systems are represented by linear differential equations, while the digital systems are described by difference equations. High order terms in a difference equation are delayed copies of the signals, while high order terms in the differential equations are derivatives of the analog signal.

If we have a complicated analog system, and we would like to implement that system in a digital computer, we can use the above transformations to make our matrices conform to the new paradigm.

Notation[edit]

Because the coefficent matrices for the discrete systems are computed differently from the continuous-time coefficient matrices, and because the matrices technically represent different things, it is not uncommon in the literature to denote these matrices with different variables. For instance, the following variables are used in place of A and B frequently:

Ω=Ad{displaystyle Omega =A_{d}}
R=Bd{displaystyle R=B_{d}}

These substitutions would give us a system defined by the ordered quadruple (Ω, R, C, D) for representing our equations.

As a matter of notational convenience, we will use the letters A and B to represent these matrices throughout the rest of this book.

Digital Control Engineering Pdf

Converting Difference Equations[edit]

Now, let's say that we have a 3rd order difference equation, that describes a discrete-time system:

y[n+3]+a2y[n+2]+a1y[n+1]+a0y[n]=u[n]{displaystyle y[n+3]+a_{2}y[n+2]+a_{1}y[n+1]+a_{0}y[n]=u[n]}

From here, we can define a set of discrete state variables x in the following manner:

x1[n]=y[n]{displaystyle x_{1}[n]=y[n]}
x2[n]=y[n+1]{displaystyle x_{2}[n]=y[n+1]}
x3[n]=y[n+2]{displaystyle x_{3}[n]=y[n+2]}

Which in turn gives us 3 first-order difference equations:

x1[n+1]=y[n+1]=x2[n]{displaystyle x_{1}[n+1]=y[n+1]=x_{2}[n]}
x2[n+1]=y[n+2]=x3[n]{displaystyle x_{2}[n+1]=y[n+2]=x_{3}[n]}
x3[n+1]=y[n+3]{displaystyle x_{3}[n+1]=y[n+3]}

Again, we say that matrix x is a vertical vector of the 3 state variables we have defined, and we can write our state equation in the same form as if it were a continuous-time system:

x[n+1]=[010001a0a1a2]x[n]+[001]u[n]{displaystyle x[n+1]={begin{bmatrix}0&1&00&0&1-a_{0}&-a_{1}&-a_{2}end{bmatrix}}x[n]+{begin{bmatrix}001end{bmatrix}}u[n]}
y[n]=[100]x[n]{displaystyle y[n]={begin{bmatrix}1&0&0end{bmatrix}}x[n]}

Digital Control System Textbook Pdf

Solving for x[n][edit]

We can find a general time-invariant solution for the discrete time difference equations. Let us start working up a pattern. We know the discrete state equation:

x[n+1]=Ax[n]+Bu[n]{displaystyle x[n+1]=Ax[n]+Bu[n]}

Starting from time n = 0, we can start to create a pattern:

x[1]=Ax[0]+Bu[0]{displaystyle x[1]=Ax[0]+Bu[0]}
x[2]=Ax[1]+Bu[1]=A2x[0]+ABu[0]+Bu[1]{displaystyle x[2]=Ax[1]+Bu[1]=A^{2}x[0]+ABu[0]+Bu[1]}
x[3]=Ax[2]+Bu[2]=A3x[0]+A2Bu[0]+ABu[1]+Bu[2]{displaystyle x[3]=Ax[2]+Bu[2]=A^{3}x[0]+A^{2}Bu[0]+ABu[1]+Bu[2]}
Digital control system kuo pdf

With a little algebraic trickery, we can reduce this pattern to a single equation:


x[n]=Anx[n0]+m=0n1An1mBu[m]{displaystyle x[n]=A^{n}x[n_{0}]+sum _{m=0}^{n-1}A^{n-1-m}Bu[m]}

Substituting this result into the output equation gives us:


[General Output Equation Solution]

y[n]=CAnx[n0]+m=0n1CAn1mBu[m]+Du[n]{displaystyle y[n]=CA^{n}x[n_{0}]+sum _{m=0}^{n-1}CA^{n-1-m}Bu[m]+Du[n]}

Time Variant Solutions[edit]

If the system is time-variant, we have a general solution that is similar to the continuous-time case:

x[n]=ϕ[n,n0]x[n0]+m=n0n1ϕ[n,m+1]B[m]u[m]{displaystyle x[n]=phi [n,n_{0}]x[n_{0}]+sum _{m=n_{0}}^{n-1}phi [n,m+1]B[m]u[m]}
y[n]=C[n]ϕ[n,n0]x[n0]+C[n]m=n0n1ϕ[n,m+1]B[m]u[m]+D[n]u[n]{displaystyle y[n]=C[n]phi [n,n_{0}]x[n_{0}]+C[n]sum _{m=n_{0}}^{n-1}phi [n,m+1]B[m]u[m]+D[n]u[n]}

Where φ, the state transition matrix, is defined in a similar manner to the state-transition matrix in the continuous case. However, some of the properties in the discrete time are different. For instance, the inverse of the state-transition matrix does not need to exist, and in many systems it does not exist.

State Transition Matrix[edit]

The discrete time state transition matrix is the unique solution of the equation:

ϕ[k+1,k0]=A[k]ϕ[k,k0]{displaystyle phi [k+1,k_{0}]=A[k]phi [k,k_{0}]}

Where the following restriction must hold:

ϕ[k0,k0]=I{displaystyle phi [k_{0},k_{0}]=I}

From this definition, an obvious way to calculate this state transition matrix presents itself:

ϕ[k,k0]=A[k1]A[k2]A[k3]A[k0]{displaystyle phi [k,k_{0}]=A[k-1]A[k-2]A[k-3]cdots A[k_{0}]}

Or,

ϕ[k,k0]=m=1kk0A[km]{displaystyle phi [k,k_{0}]=prod _{m=1}^{k-k_{0}}A[k-m]}

MATLAB Calculations[edit]

MATLAB is a computer program, and therefore calculates all systems using digital methods. The MATLAB function lsim is used to simulate a continuous system with a specified input. This function works by calling the c2d, which converts a system (A, B, C, D) into the equivalent discrete system. Once the system model is discretized, the function passes control to the dlsim function, which is used to simulate discrete-time systems with the specified input.

Because of this, simulation programs like MATLAB are subjected to round-off errors associated with the discretization process.

Sampler Systems[edit]

Digital Flight Control System Pdf

Let's say that we introduce a sampler into our system:

Notice that after the sampler, we must introduce a reconstruction circuit (described elsewhere) so that we may continue to keep the input, output, and plant in the laplace domain. Notice that we denote the reconstruction circuit with the symbol: Gr(s).

Now, Let's show the transfer function of this equation:

E(s)=L[X(s)Y(s)]=X(s)Y(s){displaystyle E^{*}(s)={mathcal {L}}^{*}[X(s)-Y(s)]=X^{*}(s)-Y^{*}(s)}
Y(s)=E(s)Gr(s)G(s){displaystyle Y(s)=E^{*}(s)G_{r}(s)G(s),}

Now, this is going to get a little tricky, so follow along:

Y(s)=X(s)Gr(s)G(s)Y(s)Gr(s)G(s){displaystyle Y(s)=X^{*}(s)G_{r}(s)G(s)-Y^{*}(s)G_{r}(s)G(s),}

And we convert into the star domain because each term on the right-hand side of this equation has a star-domain term:

Y(s)=X(s)Gr(s)G(s)Y(s)Gr(s)G(s){displaystyle Y^{*}(s)=X^{*}(s)G_{r}^{*}(s)G^{*}(s)-Y^{*}(s)G_{r}^{*}(s)G^{*}(s)}

And next we can change variables into the Z-domain:

Y(z)=X(z)Gr(z)G(z)Y(z)Gr(z)G(z){displaystyle Y(z)=X(z)G_{r}(z)G(z)-Y(z)G_{r}(z)G(z),}

And we can solve for Y(z):

Y(z)=X(z)Gr(z)G(z)1+Gr(z)G(z){displaystyle Y(z)={frac {X(z)G_{r}(z)G(z)}{1+G_{r}(z)G(z)}}}

The preceding was a particularly simple example. However, the reader is encouraged to solve for the transfer function for a system with a sampler (and it's associated reconstructor) in the following places:

Digital Control System Book Pdf

  1. Before the feedback system
  2. In the forward path, after the plant
  3. In the reverse path
  4. After the feedback loop
Retrieved from 'https://en.wikibooks.org/w/index.php?title=Control_Systems/Digital_Control_Systems&oldid=3231047'