UAT 202 Fundamentals of Automation Technology

Worksheet 4 Tuning a temperature controller

Lab 6 hAssesses CLO2, CLO3

Objective

Compare ON/OFF, P and PI control, test windup and choose a controller for the charging cabinet

Equipment and materials

  • Python and the module 4 example code
  • Temperature-sensor and fan rig via PLC or microcontroller (if available)

Safety

  • Mainly simulation
  • With a real rig, keep clear of fan blades and heat sources and stay below the lecturer's temperature limit

Steps

  1. Run Example 1 with hysteresis of ±0.2 and ±1.0 °C; record switching count and band
  2. Set P gain Kp to 0.6 and 1.2; record steady-state error and explain why it does not vanish
  3. Remove the line that stops I accumulation; start from a 45 °C cabinet and compare with anti-windup
  4. With a rig, implement ON/OFF with hysteresis on a real fan and record the graph
  5. Conclude which controller the charging cabinet should use, with reasons

Record of results

Table 1 ON/OFF control with different hysteresis bands
Hysteresis band (°C)Oscillation range in the last 20 min (°C)Fan switches in 1 hourNotes
Table 2 P and PI controllers
Controller and KpSteady temperature (°C)Steady-state error (°C)Steady fan command u (0–1)
Table 3 PI from a 45 °C cabinet, with and without anti-windup
VersionFirst time at 30 °C (min)Lowest temperature (°C)Range in the last 20 min (°C)

Questions

  1. From Table 1, how do narrow and wide hysteresis bands trade temperature accuracy against fan wear? Which band suits the charging cabinet?

  2. From Table 2, the steady-state error shrinks as Kp rises but never vanishes. Why, judging by the fan command u that is needed? Why can PI bring it to zero?

  3. From Table 3, explain integral windup using your own numbers: why does the unprotected version overcool and keep oscillating?

  4. Recommend a controller for the charging cabinet with reasons from your results, and name the safety limit needed in addition to the controller.

  5. How does a drone flight controller use the same principle, and why does PX4 limit the I term in its rate loop?

Check before you hand in

What to hand in

  • Tables and graphs comparing ON/OFF, P and PI
  • Graphs with and without anti-windup
  • Controller recommendation for the cabinet

CLO2 Design basic control logic with PLCs or microcontrollers. CLO3 Relate industrial automation to UAS. (CLOs are a web-team draft; the course owner sets the final ones.)

Instructors: answers and teaching notes for this worksheet are in the teaching pack