UNIHIVE

Study Hub UNIPORT MEG 502

MEG 502 · Control Engineering

Non-linear systems, computer control and simulation

Common non-linearities, on-off control and describing functions, digital control with sampling, PLCs, and simulating control systems.

Our notes

3 min read

Non-linear behaviour

Real systems have non-linearities:

  • Saturation: amplifiers and actuators have limits (a valve cannot open beyond 100%).
  • Dead zone: no output for small inputs (gear backlash, valve stiction).
  • Backlash (hysteresis) in gears.
  • Coulomb friction.
  • Relays and on-off elements.

Superposition no longer holds; responses depend on input size, and new effects appear, such as limit cycles (self-sustained oscillations of fixed amplitude).

On-off (bang-bang) control

The simplest controller: the actuator is fully on or fully off (a thermostat in an iron, a pressing iron, a fridge, a water pump with float switches). A differential gap (hysteresis) prevents rapid switching; the controlled variable cycles within a band.

Worked example: on-off temperature band

A water heater switches on at 58 °C and off at 62 °C. Heating raises the temperature at 0.5 °C per minute; losses lower it at 0.2 °C per minute when off.

  • Heating time per cycle = 4 ÷ 0.5 = 8 min; cooling time = 4 ÷ 0.2 = 20 min.
  • Cycle = 28 min; duty cycle = 8 ÷ 28 = 29%.

A narrower gap gives tighter control but more frequent switching (contact wear).

Analysis methods (outline)

  • Phase plane: plot velocity against position to see trajectories, equilibrium points and limit cycles.
  • Describing function: approximate a non-linearity by its gain for the fundamental of a sine input; a limit cycle is predicted where G(jω) = −1/N(A). For an ideal relay of output ±M, N(A) = 4M ÷ (πA).
  • Lyapunov's method: stability from an energy-like function.
  • Simulation.

Computer (digital) control

A microcontroller, PLC or computer samples the measured output every T seconds (A/D converter), computes the control action, and sends it to the actuator (D/A converter or PWM), holding it until the next sample (zero-order hold).

  • The sampling rate must be well above the system bandwidth: a common rule is 10 to 30 samples per rise time, and at least twice the highest frequency of interest (Nyquist-Shannon).
  • Digital systems are analysed with the z-transform; the stable region is inside the unit circle |z| < 1.
  • A digital PID update: uₖ = K_p eₖ + K_i T Σe + K_d (eₖ − eₖ₋₁) ÷ T.

Worked example: sampling

A closed-loop speed control has a rise time of 0.2 s. With 20 samples per rise time, T = 0.2 ÷ 20 = 0.01 s (100 Hz sampling).

PLCs and SCADA

Programmable logic controllers run ladder logic and PID blocks in factories, water works, oil and gas plants and power stations, often supervised by SCADA (supervisory control and data acquisition) systems. Nigeria's oil and gas, cement and beverage industries rely heavily on them.

Simulation

Before building a controller, engineers simulate it with block diagrams (Simulink, Xcos in Scilab, OpenModelica) or code (MATLAB/Octave, Python with the control library). Simulation shows the effect of saturation, delays and noise that hand analysis ignores.

Exams usually ask

  • Describe common non-linearities and on-off control with a differential gap.
  • Explain the structure of a digital control system, the choice of sampling rate, and the role of simulation.

Common mistake

Sampling too slowly: the computed control lags behind the plant and the loop can become unstable even if the continuous design was stable.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All MEG 502 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.