Salta al contenuto
Note per Studenti Block Diagram Algebra Report

Block Diagram Algebra

In questa pagina 7

Block diagrams

A block diagram is a graphical representation of an interconnection of elementary systems, where each system is drawn as a directed block (a block with an assigned input-output direction).

The closed-loop control system is the standard example. Its signals and blocks are:

                          Disturbances d
                                |
                                v
             +------------------------------------+
 r    +-----+ u   |  +----------+     +---------+  |   y
----->|  C  |-----|->| Actuator |---->| Process |--|--+------->
      +-----+     |  +----------+     +---------+  |  |
   Controller     +------------ Plant (P) ---------+  |
       ^                                              |
       |  y_m     +--------+                          |
       +----------| Sensor |<-------------------------+
 Measured output  |  (H)   |
                  +--------+
                      ^
                      | n   Measurement noise (errors)
  • rr = reference, uu = command (controller output), dd = disturbances acting on the process, yy = output, ymy_m = measured output, nn = measurement noise (errors).
  • Controller CC; plant PP (actuator + process, the dash-dotted box); sensor HH.

Basic elements

There are three basic elements.

Element Meaning Relation
Elementary block input uu, output yy, inside the block the transfer function G(s)G(s) Y(s)=G(s) U(s)Y(s) = G(s)\,U(s)
Branching point one input uu copied to two outputs y1y_1, y2y_2 y1=y2=uy_1 = y_2 = u
Summing node two inputs u1u_1, u2u_2 (a small circle, signs written near the arrows), one output y=u1+u2y = u_1 + u_2

Note from the slides: in what follows each elementary block is represented by its transfer function, either continuous-time (G(s)G(s), see The Laplace Transform and Transfer FunctionsThe unilateral Laplace transform turns a linear constant-coefficient ODE into an algebraic equation Y(s) = C(s)/A(s) + B(s)/A(s) U(s), whose second term defines the rational transfer function H(s) = B(s)/A(s).The Laplace Transform and Transfer Functions →) or discrete-time (Bilateral Z-TransformThe bilateral Z-transform X_B(z) = sum x(k) z^{-k} is the discrete-time counterpart of the Laplace transform; it converges only on a region of convergence (an annulus-type region), extends the DTFT when the unit circle is in the ROC, has an inversion formula and properties such as linearity, shift, time reversal and convolution.Bilateral Z-Transform →).

When reduction rules exist

If the elementary systems

  • have a single input and a single output (SISO), and
  • are linear,

then reduction (simplification) rules can be derived. The slides list nine rules, grouped as:

  1. series and parallel reduction (rules 1 and 2);
  2. moving a branching point upstream or downstream of a block (rules 3 and 4);
  3. interchanging summing nodes (rule 5);
  4. moving a summing node upstream or downstream of a block (rules 6 and 7);
  5. feedback: eliminating a block from the feedback path and reducing feedback-connected blocks (rules 8 and 9).

The nine rules

Each rule is proved by writing the Laplace-domain relations of the blocks and rearranging.

Rule 1 - blocks in series

u1→G1(s)→y1=u2→G2(s)→y2u_1 \to G_1(s) \to y_1 = u_2 \to G_2(s) \to y_2 is equivalent to one block G1(s)G2(s)G_1(s)G_2(s).

Y2(s)=G2(s) U2(s)=G2(s) Y1(s)=G2(s) [G1(s) U1(s)]=[G2(s) G1(s)] U1(s).\begin{aligned} Y_2(s) &= G_2(s)\,U_2(s) = G_2(s)\,Y_1(s) \\ &= G_2(s)\,\big[G_1(s)\,U_1(s)\big] = \big[G_2(s)\,G_1(s)\big]\,U_1(s). \end{aligned}

Rule 2 - blocks in parallel

The input uu is branched into u1=u2=uu_1 = u_2 = u, passed through G1(s)G_1(s) and G2(s)G_2(s), and the outputs are added: y=y1+y2y = y_1 + y_2. It is equivalent to one block G1(s)+G2(s)G_1(s) + G_2(s).

Y(s)=Y1(s)+Y2(s)=G1(s) U1(s)+G2(s) U2(s)=G1(s) U(s)+G2(s) U(s)=[G1(s)+G2(s)] U(s).\begin{aligned} Y(s) &= Y_1(s) + Y_2(s) = G_1(s)\,U_1(s) + G_2(s)\,U_2(s) \\ &= G_1(s)\,U(s) + G_2(s)\,U(s) = \big[G_1(s) + G_2(s)\big]\,U(s). \end{aligned}

Rule 3 - moving a branching point upstream of a block

Before: u→G(s)→u \to G(s) \to branching point →y1\to y_1 and y2y_2. After: the branching point is placed before the block, and each branch gets its own copy of G(s)G(s).

Y2(s)=Y1(s)=G(s) U(s)  ⇒  Y1(s)=G(s)U(s),Y2(s)=G(s)U(s).Y_2(s) = Y_1(s) = G(s)\,U(s) \;\Rightarrow\; Y_1(s) = G(s)U(s),\quad Y_2(s) = G(s)U(s).

Rule 4 - moving a branching point downstream of a block

Before: uu is branched into G(s)G(s) (output y1y_1) and a direct branch y2=uy_2 = u. After: the branching point is placed after G(s)G(s), and the branch that carried uu now carries a block 1/G(s)1/G(s).

Y1(s)=G(s)U(s),Y2(s)=U(s)  ⇒  Y2(s)=1G(s) Y1(s).Y_1(s) = G(s)U(s),\quad Y_2(s) = U(s) \;\Rightarrow\; Y_2(s) = \frac{1}{G(s)}\,Y_1(s).

Rule 5 - interchanging summing nodes

Two summing nodes in a row, adding u1u_1 then u2u_2 to uu, can be swapped (addition is commutative and associative):

Y(s)=U2(s)+[U1(s)+U(s)]=U2(s)+U1(s)+U(s)=U1(s)+U2(s)+U(s)=U1(s)+[U2(s)+U(s)].\begin{aligned} Y(s) &= U_2(s) + \big[U_1(s) + U(s)\big] = U_2(s) + U_1(s) + U(s) \\ &= U_1(s) + U_2(s) + U(s) = U_1(s) + \big[U_2(s) + U(s)\big]. \end{aligned}

Rule 6 - moving a summing node upstream of a block

Before: u→G(s)→y1u \to G(s) \to y_1, then a summing node adds y2y_2: y=y1+y2y = y_1 + y_2. After: the node is placed before G(s)G(s), and the added signal y2y_2 passes through a block 1/G(s)1/G(s) first.

Y(s)=Y2(s)+Y1(s)=Y2(s)+G(s)U(s)=G(s)[1G(s) Y2(s)+U(s)].Y(s) = Y_2(s) + Y_1(s) = Y_2(s) + G(s)U(s) = G(s)\left[\frac{1}{G(s)}\,Y_2(s) + U(s)\right].

Rule 7 - moving a summing node downstream of a block

Before: a node adds u2u_2 to u1u_1 giving uu, then u→G(s)→yu \to G(s) \to y. After: the node is placed after G(s)G(s), and u2u_2 passes through its own copy of G(s)G(s).

Y(s)=G(s) U(s)=G(s)[U1(s)+U2(s)]=G(s) U1(s)+G(s) U2(s).\begin{aligned} Y(s) &= G(s)\,U(s) = G(s)\big[U_1(s) + U_2(s)\big] \\ &= G(s)\,U_1(s) + G(s)\,U_2(s). \end{aligned}

Rule 8 - eliminating a block from the feedback path

Before: negative feedback loop with forward block G1(s)G_1(s) and feedback block G2(s)G_2(s) (u1=u−y2u_1 = u - y_2, y2=G2yy_2 = G_2 y). After: the loop has unit feedback, the forward block becomes G1(s)G2(s)G_1(s)G_2(s), and a block 1/G2(s)1/G_2(s) is put on the input.

Y(s)=G1(s) U1(s)=G1(s)[U(s)−Y2(s)]=G1(s)[U(s)−G2(s) Y(s)]=[G1(s) G2(s)][1G2(s) U(s)−Y(s)].\begin{aligned} Y(s) &= G_1(s)\,U_1(s) = G_1(s)\big[U(s) - Y_2(s)\big] = G_1(s)\big[U(s) - G_2(s)\,Y(s)\big] \\ &= \big[G_1(s)\,G_2(s)\big]\left[\frac{1}{G_2(s)}\,U(s) - Y(s)\right]. \end{aligned}

Rule 9 - reduction of feedback-connected blocks

Negative feedback with forward block G1(s)G_1(s) and feedback block G2(s)G_2(s):

Y(s)=G1(s)U1(s)=G1(s)[U(s)−Y2(s)]=G1(s)[U(s)−G2(s)Y(s)]Y(s) = G_1(s)U_1(s) = G_1(s)\big[U(s) - Y_2(s)\big] = G_1(s)\big[U(s) - G_2(s)Y(s)\big]

⇓[1+G1(s)G2(s)] Y(s)=G1(s) U(s)\Downarrow \quad \big[1 + G_1(s)G_2(s)\big]\,Y(s) = G_1(s)\,U(s)

⇓Y(s)=G1(s)1+G1(s) G2(s)  U(s).\Downarrow \quad Y(s) = \frac{G_1(s)}{1 + G_1(s)\,G_2(s)}\;U(s).

For the use of this formula on the controller-plant loop, see The Feedback Control Scheme and RequirementsThe basic control scheme feeds the plant G(s) with the output of a controller C(s) acting on the tracking error e = r - y, giving the closed-loop transfer function W(s) = C(s)G(s) / (1 + C(s)G(s)); the requirement y close to r splits into steady-state conditions (small error for some references, disturbances, model uncertainty) and transient conditions on rise time, settling time and overshoot, which become a region of the complex plane where the poles of W(s) must lie.The Feedback Control Scheme and Requirements →.

General reduction procedure

  1. Isolate the inner loops by moving branching points and summing nodes.
  2. Eliminate the inner loops (reduce each to an equivalent block).
  3. Repeat until a single block remains (the slides apply it to the worked example below).

Worked example (slides)

Reduce the diagram with blocks G1(s)G_1(s), G2(s)G_2(s) and feedback blocks H1(s)H_1(s), H2(s)H_2(s):

 u -->(S1)-->(S2)-->[G1]-->(S3)--P--[G2]--Q--> y
       ^ -     ^            ^ -   |         |
       |       |            |     |         |
       |       +----[H1]----|-----+         |   H1: from P back to S2
       |                    +-------[H2]----+   H2: from Q to S3 (minus)
       +-------------------------------------+   outer loop: from Q to S1 (minus)

Here S1, S2, S3 are summing nodes, P and Q are branching points. The layout follows the slide: two summing nodes in series, block G1G_1, a third summing node, a branching point, block G2G_2, and the output branching point. H1H_1 goes from the branching point after S3 back to S2; H2H_2 goes from the output to S3 with a minus sign; the outer loop goes from the output to S1 with a minus sign. The H1H_1 node carries no minus sign on the slide, and the result 1−G1H11 - G_1H_1 below confirms it is a positive feedback.

Step 1 - Rule 6 (moving a summing node upstream of a block): the node that adds the H2H_2 signal is moved before G1(s)G_1(s); the H2H_2 branch now has the block H2(s)/G1(s)H_2(s)/G_1(s).

Step 2 - Rule 5 (interchanging summing nodes): the node of the H2/G1H_2/G_1 branch is exchanged with the node of the H1H_1 loop, so the H1H_1 loop encloses only G1(s)G_1(s).

Step 3 - Rule 9 (feedback-connected blocks) on the inner H1H_1 loop:

G1(s)1−G1(s)H1(s)\frac{G_1(s)}{1 - G_1(s)H_1(s)}

Step 4 - Rule 1 (series with G2G_2):

G1(s) G2(s)1−G1(s)H1(s)\frac{G_1(s)\,G_2(s)}{1 - G_1(s)H_1(s)}

Step 5 - Rule 9 with feedback block H2(s)/G1(s)H_2(s)/G_1(s):

G1(s)G2(s)1−G1(s)H1(s)+G2(s)H2(s)\frac{G_1(s)G_2(s)}{1 - G_1(s)H_1(s) + G_2(s)H_2(s)}

Step 6 - Rule 9 on the outer unit-feedback loop:

  G1(s) G2(s)1−G1(s)H1(s)+G2(s)H2(s)+G1(s)G2(s)  \boxed{\;\frac{G_1(s)\,G_2(s)}{1 - G_1(s)H_1(s) + G_2(s)H_2(s) + G_1(s)G_2(s)}\;}

Closed-loop transfer function from forward path and loops

The slides summarise the result of the example as

Closed-loop TF=Forward path TF1−∑Loop TF.\text{Closed-loop TF} = \frac{\text{Forward path TF}}{1 - \sum \text{Loop TF}}.

  • Forward-path TF (transfer function) = product of the TFs along the forward path.
  • Loop TF (loop gain) = product of the TFs around a loop.

In the example the forward path is G1G2G_1G_2 and the denominator is 1−∑Loop TF1 - \sum \text{Loop TF} with ∑Loop TF=G1H1−G2H2−G1G2\sum \text{Loop TF} = G_1H_1 - G_2H_2 - G_1G_2: the H1H_1 loop is a positive feedback, the other two loops go around a minus sign, so their loop TFs carry a minus (sign bookkeeping deduced here to match the result of the slides, which only state the formula and the result).

Versione ripasso

Elements: block Y=G UY = G\,U; branching point y1=y2=uy_1 = y_2 = u; summing node y=u1+u2y = u_1 + u_2. Rules hold for linear SISO blocks.

Nine rules (all proved with Y=G UY = G\,U and rearranging):

  1. Series: G1G2G_1 G_2.
  2. Parallel: G1+G2G_1 + G_2.
  3. Branching point upstream of GG: one copy of GG per branch.
  4. Branching point downstream of GG: the other branch gets 1/G1/G.
  5. Two summing nodes can be interchanged.
  6. Summing node upstream of GG: the added signal passes through 1/G1/G.
  7. Summing node downstream of GG: the added signal passes through GG.
  8. Block out of the feedback path: forward block G1G2G_1G_2, input block 1/G21/G_2.
  9. Feedback (negative): G11+G1G2\dfrac{G_1}{1 + G_1 G_2}.

Procedure: isolate inner loops (move branching points and nodes), reduce them, repeat.

Formule dei nodi spostati e del feedback:

  • Branching point a monte di GG: Y1=G UY_1 = G\,U e Y2=G UY_2 = G\,U (una copia per ramo).
  • Branching point a valle di GG: Y2=1G Y1Y_2 = \dfrac{1}{G}\,Y_1.
  • Nodo di somma a monte di GG: Y=G[1GY2+U]Y = G\left[\dfrac{1}{G}Y_2 + U\right].
  • Nodo di somma a valle di GG: Y=G U1+G U2Y = G\,U_1 + G\,U_2.
  • Blocco fuori dal feedback (rule 8): Y=G1G2[1G2U−Y]Y = G_1G_2\left[\dfrac{1}{G_2}U - Y\right].

Esempio, passo per passo (risultato parziale):

  1. Rule 6: il nodo che somma il segnale H2H_2 va prima di G1G_1; il ramo H2H_2 diventa H2/G1H_2/G_1.
  2. Rule 5: si scambiano i nodi, il loop H1H_1 racchiude solo G1G_1.
  3. Rule 9 sul loop H1H_1: G11−G1H1\dfrac{G_1}{1 - G_1H_1}.
  4. Rule 1 con G2G_2: G1G21−G1H1\dfrac{G_1G_2}{1 - G_1H_1}.
  5. Rule 9 con feedback H2/G1H_2/G_1: G1G21−G1H1+G2H2\dfrac{G_1G_2}{1 - G_1H_1 + G_2H_2}.
  6. Rule 9 sul loop esterno: G1G21−G1H1+G2H2+G1G2\dfrac{G_1G_2}{1 - G_1H_1 + G_2H_2 + G_1G_2}.

Scorciatoia: closed-loop TF =forward path TF1−∑loop TF= \dfrac{\text{forward path TF}}{1 - \sum \text{loop TF}}, dove la loop TF è il prodotto delle TF intorno al loop, con il suo segno.

Segni nell'esempio: il nodo di H1H_1 non ha segno meno sul disegno, quindi quel loop è positivo; i loop di H2H_2 e quello esterno hanno il segno meno. La forma finale ha denominatore 1−G1H1+G2H2+G1G21 - G_1H_1 + G_2H_2 + G_1G_2.

Forward path e loop: la forward path TF è il prodotto delle TF lungo il percorso diretto; la loop TF è il prodotto delle TF intorno a un loop, con il suo segno. Con questa regola il denominatore si legge direttamente dai loop.

Errori tipici:

  • Feedback positivo scritto come 1+GH1 + GH invece di 1−GH1 - GH.
  • Dimenticare la copia di GG quando il branching point passa a monte.
  • Usare GG al posto di 1/G1/G sul ramo che passa dal nodo di somma o dal branching point a valle.

Teoria collegata