ExamRobotic

Instrumentation and PID control

Level: Intermediate 6 min read 40 questions

An assembly machine works with yes-or-no signals: the part is there or it is not. But as soon as a temperature, pressure, level or flow has to be held steady, instrumentation (measuring well) and process control (correcting automatically) come into play. This is the world of transmitters, 4–20 mA signals and PID controllers, and it is where most time is lost during commissioning if it is not understood.

Sensor, transmitter and instrument

The sensor is what feels the quantity: a diaphragm that flexes with pressure, a resistor that changes with temperature. The transmitter converts that measurement into a standard signal the PLC understands, usually 4–20 mA. Many transmitters also have a display and are configured with buttons or over HART.

What is measured

Tags on P&IDs

On process diagrams every instrument has a tag following ISA-5.1. The first letter is the measured variable and the following ones, the function:

TagWhat it is
PT-101Pressure transmitter (P = pressure, T = transmitter)
TT-205Temperature transmitter
LSH-301Level switch high (L = level, S = switch, H = high)
FIC-102Flow indicating controller: a control loop
FV-102The valve of flow loop 102

Calibrating and checking a transmitter

A transmitter is defined by its zero (the value at 4 mA) and its span (the difference between the value at 20 mA and at 4 mA). To check it, a known value is applied (with a pressure calibrator, a temperature bath or an RTD simulator) at several points, for example 0, 25, 50, 75 and 100 %, and the current is compared with what it should be. The error is expressed as a percentage of span.

On siteBefore blaming the PLC for "reading wrong", check that the range configured in the transmitter matches the one scaled in the program. A 0–10 bar transmitter scaled as 0–16 bar gives readings that look reasonable and are wrong.

The control loop

A closed loop has four parts: the process (the oven, the tank), the transmitter that measures the process variable (PV), the controller that compares it with the setpoint (SP) and the final element (a valve, a heater, a drive) that receives the controller output (CV). The difference between setpoint and measurement is the error.

The three PID actions

You can see each action separately in the PID controller simulator, with an oven and a tank.

How to tune it

  1. Check the controller action. On a heating loop, if the temperature drops, the output must rise (reverse action). On a cooling loop it is the other way round (direct action). With the action wrong, the controller pushes the variable in the wrong direction.
  2. Run an open-loop test. With the controller in manual, step the output and record how the process responds: how much it changes (gain), how long before it starts (dead time) and how long it takes to get there (time constant).
  3. Work out starting values with a known rule (Ziegler-Nichols, SIMC or others) or with the controller’s auto-tune, such as PID_Compact in TIA Portal and many panel controllers.
  4. Fine-tune in automatic, with small setpoint changes, until the response is fast with little overshoot.
Integral windupIf the output reaches 100 % and the error persists, the integral keeps accumulating. When the variable finally reaches the setpoint, the controller takes a long time to back off and overshoots. Industrial controllers limit the integral while the output is saturated (anti-windup).

In a PLC, the PID is always called at fixed intervals: in Siemens, from a cyclic interrupt (OB 30 onwards), never from the free-running OB 1 cycle, whose duration varies.

The control valve

In fluid processes, the final element is usually a control valve with a positioner that drives it to the opening requested by the 4–20 mA signal. You need to know what it does if it loses air or signal: fail closed (for example, the steam to a heat exchanger) or fail open (for example, cooling water). It is a safety decision in the process design.

Typical mistakes

Summary

Test what you have learned

40 practical questions with explained answers. Free, no sign-up.

Start the test