Process Model Identification and Relay Autotuning

Research Depth 136 in the knowledge graph I know this Set as goal
system-identification relay-feedback autotuning critical-frequency model-estimation

Core Idea

Relay feedback autotuning applies a relay controller to excite the process at its critical frequency (phase = −180°) without requiring an explicit plant model. Amplitude and frequency of resulting oscillation directly give the critical frequency and magnitude for PID tuning.

Explainer

Traditional PID tuning methods like Ziegler-Nichols require knowing the process's ultimate gain (K_u) and ultimate period (T_u) — the gain at which the system marginally oscillates and the period of those oscillations. The classical way to find these was to close the loop with a proportional controller, increase gain manually until the system just begins to oscillate, and record the results. This was dangerous (the plant oscillates at full amplitude), operator-dependent, and impractical for automated commissioning. Relay autotuning, developed by Åström and Hägglund in 1984, automates this experiment safely.

The key insight comes from your prerequisite on sinusoidal frequency response. A linear system oscillates sustainably at the frequency where two conditions are simultaneously met: the loop gain equals 1 and the loop phase equals −180°. The −180° condition is the phase crossover frequency — it's where the process inverts the signal. A relay (also called a bang-bang controller) exploits this by design: it switches its output to +d when the process output is below setpoint and to −d when above. This forced switching naturally drives the system to oscillate at the phase crossover frequency, because that is the only frequency at which the relay's square-wave output can sustain a sinusoidal oscillation in the plant.

Once the relay is connected, the closed-loop system enters a limit cycle: a sustained, bounded oscillation. You measure two things from this oscillation — the period T_u (giving ω_u = 2π/T_u, the ultimate frequency) and the amplitude a of the process output oscillation. The relay output has magnitude d (a square wave switching between ±d). Using the describing function approximation — which represents the relay's nonlinear switching as if it were a linear gain at the fundamental frequency — the effective gain of the relay at amplitude a is 4d/(πa). At the limit cycle, this gain times the process gain equals 1, giving the ultimate gain: K_u = 4d/(πa). These two numbers, K_u and T_u, are exactly what Ziegler-Nichols requires to compute PID gains.

The safety advantage is decisive for industrial use. The relay limits the excitation: the process output oscillates by approximately ±a, and the process input never exceeds ±d. You choose d as a small fraction of the control range, so the plant barely moves. Compare this to open-loop step tests (large setpoint changes, operator attention required) or manual gain increase (risk of instability). The relay test runs in about one to three oscillation cycles, typically takes minutes, and can run unattended. This is why the "autotune" button on commercial PID controllers — from Honeywell, Siemens, and ABB to simple temperature controllers — implements relay autotuning. When you press it, the controller disconnects the PID, connects a relay, waits for two stable oscillation cycles, computes K_u and T_u, applies a tuning formula, and hands control back to the PID.

The main limitation is the describing function approximation: it assumes the process responds primarily to the fundamental harmonic of the relay's square wave and ignores higher harmonics. For processes with strong nonlinearities, the identified parameters can be inaccurate. Practical enhancements include adding hysteresis to the relay (reducing sensitivity to measurement noise), using asymmetric relays to handle integrating processes, or running multiple relay experiments at different amplitudes to detect nonlinearity. But for the typical industrial process — moderately nonlinear, with a dominant first- or second-order response plus dead time — the basic relay test delivers tuning parameters close enough to serve as an excellent starting point for manual refinement.

Practice Questions 5 questions

Prerequisite Chain

Counting to 10Counting to 20Understanding ZeroThe Number ZeroCounting to FiveOne-to-One CorrespondenceCombining Small Groups Within 5Addition Within 10Addition Within 20Two-Digit Addition Without RegroupingTwo-Digit Addition with RegroupingAddition Within 100Repeated Addition as MultiplicationMultiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Two-Digit by One-Digit DivisionDivision with RemaindersRemainders and Quotients in DivisionDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueReading and Writing DecimalsComparing and Ordering DecimalsAdding and Subtracting DecimalsMultiplying DecimalsDividing DecimalsDividing FractionsMixed Number ArithmeticOrder of OperationsInteger Order of OperationsVariable ExpressionsCombining Like TermsOne-Step EquationsTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesAngle Pairs: Complementary, Supplementary, and VerticalParallel Lines and TransversalsCorresponding AnglesAlternate Interior AnglesTriangle Angle Sum TheoremExterior Angle TheoremTriangle Inequality TheoremSimilar Triangles: AA SimilaritySimilar Triangles: SSS and SAS SimilarityProportions in Similar TrianglesRight Triangle Trigonometry IntroductionTrigonometric Ratios ReviewRadian MeasureConverting Between Degrees and RadiansThe Unit CircleGraphing Sine and CosineGraphing Tangent and Reciprocal Trigonometric FunctionsDerivatives of Trigonometric FunctionsAntiderivativesIterated Integrals and Fubini's TheoremDouble Integrals in Cartesian CoordinatesDouble Integrals over Rectangular RegionsDouble Integrals in Polar CoordinatesDouble Integrals: Definition and SetupIterated Integrals and Fubini's TheoremDouble Integrals over Rectangular RegionsDouble Integrals over General RegionsApplications of Double Integrals: Area, Mass, and MomentsTriple Integrals in Cartesian CoordinatesTriple Integrals in Cylindrical and Spherical CoordinatesChange of Variables and the Jacobian DeterminantApplications of Triple Integrals: Volume and MassVector Fields and Their RepresentationsLine Integrals of Vector FieldsGreen's TheoremSurface Integrals and Flux of Vector FieldsSurface Integrals and Flux of Vector FieldsDivergence Theorem: Flux and OutflowDivergence TheoremElectric FluxGauss's LawConductors in Electrostatic EquilibriumCapacitance and CapacitorsDielectricsDielectric Constant and Relative PermittivityElectric Field Inside Dielectric MaterialsDielectric Materials and PolarizationDielectric Susceptibility and PermittivityEnergy Density in Electric FieldsElectric Current and Current DensityElectrical Resistance and ResistivityOhm's Law and Circuit ElementsElectromotive Force (EMF) and BatteriesKirchhoff's Circuit Laws: Voltage and CurrentDC Circuit Network Analysis MethodsTransient Response in RC CircuitsRC CircuitsLC and RLC CircuitsAC Circuits: FundamentalsImpedance and ReactanceAC Power and ResonanceElectromagnetic WavesFrequency-Dependent Permittivity and DispersionElectromagnetic Waves in Anisotropic MediaBirefringence and DichroismWave Plates: Quarter-Wave and Half-Wave PlatesCircular and Elliptical Polarization ProductionPolarization States: Linear, Circular, and EllipticalLinear Superposition of WavesSuperposition Principle in ElectrostaticsElectric Field Lines and VisualizationElectric Potential and Potential EnergyElectric Potential and VoltageIdeal Voltage and Current SourcesSeries, Parallel, and Combined Resistor NetworksVoltage Divider Principle and ApplicationsKirchhoff's Voltage and Current LawsNodal Analysis MethodLinearity, Superposition, and ScalingAC Steady-State Circuit AnalysisAC Circuit Analysis Using PhasorsAC Power AnalysisResonance in RLC CircuitsFrequency Response and Bode PlotsBode Plot Stability AnalysisNyquist Stability CriterionGain and Phase MarginsPID ControllersPID Tuning MethodsProcess Model Identification and Relay Autotuning

Longest path: 137 steps · 810 total prerequisite topics

Prerequisites (2)

Leads To (0)

No topics depend on this one yet.