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)- = reference, = command (controller output), = disturbances acting on the process, = output, = measured output, = measurement noise (errors).
- Controller ; plant (actuator + process, the dash-dotted box); sensor .
Basic elements
There are three basic elements.
| Element | Meaning | Relation |
|---|---|---|
| Elementary block | input , output , inside the block the transfer function | |
| Branching point | one input copied to two outputs , | |
| Summing node | two inputs , (a small circle, signs written near the arrows), one output |
Note from the slides: in what follows each elementary block is represented by its transfer function, either continuous-time (, 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:
- series and parallel reduction (rules 1 and 2);
- moving a branching point upstream or downstream of a block (rules 3 and 4);
- interchanging summing nodes (rule 5);
- moving a summing node upstream or downstream of a block (rules 6 and 7);
- 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
is equivalent to one block .
Rule 2 - blocks in parallel
The input is branched into , passed through and , and the outputs are added: . It is equivalent to one block .
Rule 3 - moving a branching point upstream of a block
Before: branching point and . After: the branching point is placed before the block, and each branch gets its own copy of .
Rule 4 - moving a branching point downstream of a block
Before: is branched into (output ) and a direct branch . After: the branching point is placed after , and the branch that carried now carries a block .
Rule 5 - interchanging summing nodes
Two summing nodes in a row, adding then to , can be swapped (addition is commutative and associative):
Rule 6 - moving a summing node upstream of a block
Before: , then a summing node adds : . After: the node is placed before , and the added signal passes through a block first.
Rule 7 - moving a summing node downstream of a block
Before: a node adds to giving , then . After: the node is placed after , and passes through its own copy of .
Rule 8 - eliminating a block from the feedback path
Before: negative feedback loop with forward block and feedback block (, ). After: the loop has unit feedback, the forward block becomes , and a block is put on the input.
Rule 9 - reduction of feedback-connected blocks
Negative feedback with forward block and feedback block :
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
- Isolate the inner loops by moving branching points and summing nodes.
- Eliminate the inner loops (reduce each to an equivalent block).
- Repeat until a single block remains (the slides apply it to the worked example below).
Worked example (slides)
Reduce the diagram with blocks , and feedback blocks , :
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 , a third summing node, a branching point, block , and the output branching point. goes from the branching point after S3 back to S2; goes from the output to S3 with a minus sign; the outer loop goes from the output to S1 with a minus sign. The node carries no minus sign on the slide, and the result below confirms it is a positive feedback.
Step 1 - Rule 6 (moving a summing node upstream of a block): the node that adds the signal is moved before ; the branch now has the block .
Step 2 - Rule 5 (interchanging summing nodes): the node of the branch is exchanged with the node of the loop, so the loop encloses only .
Step 3 - Rule 9 (feedback-connected blocks) on the inner loop:
Step 4 - Rule 1 (series with ):
Step 5 - Rule 9 with feedback block :
Step 6 - Rule 9 on the outer unit-feedback loop:
Closed-loop transfer function from forward path and loops
The slides summarise the result of the example as
- 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 and the denominator is with : the 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 ; branching point ; summing node . Rules hold for linear SISO blocks.
Nine rules (all proved with and rearranging):
- Series: .
- Parallel: .
- Branching point upstream of : one copy of per branch.
- Branching point downstream of : the other branch gets .
- Two summing nodes can be interchanged.
- Summing node upstream of : the added signal passes through .
- Summing node downstream of : the added signal passes through .
- Block out of the feedback path: forward block , input block .
- Feedback (negative): .
Procedure: isolate inner loops (move branching points and nodes), reduce them, repeat.
Formule dei nodi spostati e del feedback:
- Branching point a monte di : e (una copia per ramo).
- Branching point a valle di : .
- Nodo di somma a monte di : .
- Nodo di somma a valle di : .
- Blocco fuori dal feedback (rule 8): .
Esempio, passo per passo (risultato parziale):
- Rule 6: il nodo che somma il segnale va prima di ; il ramo diventa .
- Rule 5: si scambiano i nodi, il loop racchiude solo .
- Rule 9 sul loop : .
- Rule 1 con : .
- Rule 9 con feedback : .
- Rule 9 sul loop esterno: .
Scorciatoia: closed-loop TF , dove la loop TF è il prodotto delle TF intorno al loop, con il suo segno.
Segni nell'esempio: il nodo di non ha segno meno sul disegno, quindi quel loop è positivo; i loop di e quello esterno hanno il segno meno. La forma finale ha denominatore .
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 invece di .
- Dimenticare la copia di quando il branching point passa a monte.
- Usare al posto di sul ramo che passa dal nodo di somma o dal branching point a valle.