IAE Academy

IN THE IN SYLLABUS

Actuators, time delay and industrial control

Real plants add dead time to their loops, and every controller output reaches the process through a valve or motor whose characteristic and transfer function shape the loop. A pure delay removes phase margin without touching the magnitude plot, and a valve's characteristic changes the loop gain as the flow changes. These notes cover delay-margin and Pade–Routh stability calculations, the Smith predictor, valve characteristics, sizing and fail-safe choice, servo-valve, DC and AC servo-motor and stepper-motor formulas, cascade, feedforward and ratio control, and how supervisory control, PLC scans, ladder logic, timers, DCS and SCADA work.

2 previous-year questions · 2 solved · 7 practice questions

Dead time (transport lag) and FOPDT models

A pure time delay of seconds passes a signal through unchanged but late. For a signal that is zero for , the output is , so . It appears whenever material or information has to travel before it is measured or takes effect. Examples are fluid moving along a pipe to a sensor, a conveyor carrying solids, an analyser's sample line, and a digital controller's computation and communication time. The delay is not a ratio of polynomials and has no finite poles or zeros. Once it sits inside a feedback loop, the characteristic equation is transcendental and has infinitely many roots.

FREQUENCY RESPONSE OF A PURE DELAY

Holds at every ( in rad/s, in s). The magnitude plot is untouched. The phase lag grows linearly with , so on a logarithmic frequency axis it falls away more and more steeply.

Three consequences follow directly. (1) The gain-crossover frequency does not move, because the magnitude does not change. (2) The phase margin falls by radians. (3) The phase crossover moves to a lower frequency, and a loop whose phase never reached now gets a phase crossover. When decreases with frequency, the magnitude at the new, lower phase crossover is larger, so the gain margin falls too. A loop that was stable for every gain without delay (for example a first- or second-order type-0 plant, or a pure integrator, under proportional control) now has a finite ultimate gain. On the Nyquist plot, every point is rotated clockwise by radians. A strictly proper plot therefore spirals into the origin and crosses the negative real axis infinitely often.

PHASE MARGIN WITH AN ADDED DELAY

is the margin of the delay-free loop and is its gain-crossover frequency (where ). This is valid because the delay leaves where it was. Read stability from only when the magnitude crosses 0 dB once and the open loop has no right-half-plane poles.

DELAY MARGIN (LARGEST TOLERABLE DEAD TIME)

is the phase margin of the delay-free loop, so is the TOTAL loop delay at which the phase margin reaches zero and the closed loop becomes marginally stable. Convert the margin to radians first. If the loop already contains a delay , the extra delay it can tolerate is , which equals (present phase margin in rad). Assumes the delay-free closed loop is stable () and the magnitude crosses 0 dB only once.

INTEGRATOR PLUS DEAD TIME

Negative feedback, , . The gain crossover is at , where the phase margin is rad. The phase crossover is where , i.e. , and there . Equivalently, the delay margin is .

ULTIMATE GAIN AND FREQUENCY WITH DEAD TIME

For the loop under negative feedback, . Solve the phase condition (usually by trial) for its lowest root in rad/s, then read off : the gain at which the closed loop is marginally stable and oscillates at . Valid when has no right-half-plane poles and decreases with frequency. The Pade example in the next section works one out exactly.

Most overdamped industrial processes, such as a tank, a heat exchanger or a chain of lags, are modelled from a step test as first order plus dead time (FOPDT). The apparent dead time also absorbs the small extra lags of a higher-order process.

FIRST-ORDER-PLUS-DEAD-TIME (FOPDT) MODEL

= steady-state gain, = time constant, = dead time. The ratio measures how hard the process is to control: the larger it is, the smaller the loop gain at which a proportional loop becomes unstable.

FOPDT STEP RESPONSE (INPUT STEP OF SIZE A)

Nothing happens for seconds. After that the response is an ordinary first-order rise, reaching 63.2% of at .

TWO-POINT FOPDT FIT FROM A STEP TEST

and are the times at which the response has completed 28.3% and 63.2% of its final change. The fit works because and , so those points fall at and .

WORKED EXAMPLE

A unity-feedback loop has open-loop transfer function . Find (a) the phase margin and (b) the total dead time at which the closed loop becomes marginally stable.

Solution
  1. Magnitude (the delay contributes a factor of 1): . At this is . The magnitude falls monotonically, so rad/s is the only crossover.

  2. Delay-free phase at : , so .

  3. Phase added by the delay at : rad .

  4. (a) . It is positive and there is one crossover, so the loop is stable.

  5. (b) rad, so the total delay limit is s. Check: the present margin rad gives an extra s, and s.

Answer: (a) . (b) The loop becomes marginally stable when the total dead time reaches about 0.309 s, i.e. about 0.21 s more than it has now.

EXAM TIP

Degrees and radians: the delay's phase comes out in radians. Multiply it by before subtracting it from a margin in degrees. For the delay margin, convert the margin to radians before dividing by .

EXAM TIP

A delay never changes the magnitude plot, the gain-crossover frequency or the steady-state gain (), so the static error constants , , are unchanged too, provided the closed loop stays stable. Reject any option that says a delay changes them.

Sampled-data loops: if the delay is an exact multiple of the sampling period, , it becomes in the z-domain. That is a rational function, so the z-domain characteristic equation is an ordinary polynomial (of higher order) and the usual discrete stability tests apply directly.

Stability with dead time: Pade approximation and the Smith predictor

Routh–Hurwitz needs a polynomial, so it cannot be applied to directly. There are two routes. The frequency-response route (Bode or Nyquist, using the exact phase ) is exact. The algebraic route replaces with a rational Pade approximation and then applies Routh; it is quick but approximate.

FIRST-ORDER PADE APPROXIMATION

An all-pass: magnitude exactly 1, phase . It puts a right-half-plane zero at (non-minimum phase) and a pole at . Accurate while is well below 1.

SECOND-ORDER PADE APPROXIMATION

Also all-pass, with two right-half-plane zeros (a complex pair). It follows the true phase to higher frequencies than the first-order form.

SERIES (LAG) APPROXIMATIONS

First-order Taylor forms, valid only for small . The lag form is how a small delay gets lumped into an extra time constant. Neither form has unit magnitude, so use Pade for stability work.

EXAM TIP

Pade under-estimates phase lag. Since for , the first-order Pade lag is always smaller than the true . For a plant whose magnitude falls with frequency, a stability limit computed with Pade is therefore optimistic (too large), as the example below shows.

WORKED EXAMPLE

A unity-feedback loop has with . Estimate the largest stable using the first-order Pade approximation, and compare it with the exact value.

Solution
  1. Pade with : .

  2. Characteristic equation: .

  3. A second-order polynomial is stable if and only if all its coefficients have the same sign. So and , giving . Estimate: . At the equation is , an oscillation at rad/s.

  4. Exact: the phase crossover satisfies . By trial, gives rad and gives rad, so rad/s.

  5. Setting : exact .

Answer: The Pade estimate is (oscillation at 2.83 rad/s). The exact value is (at 2.03 rad/s), so the first-order Pade estimate is about 33% too high.

Dead-time compensation (Smith predictor). Let the plant be . If the controller holds a model of it, it can predict what the output will be once the delay has passed. The controller output is passed through the model , and the result is added to the measured output before it is compared with the setpoint. This local path wraps in negative feedback and gives the equivalent controller .

SMITH PREDICTOR WITH A PERFECT MODEL

The delay leaves the characteristic equation, so can be tuned as if the plant had no dead time. The output is the delay-free response shifted by . If the model of or is wrong, the delay comes back into the characteristic equation.

EXAM TIP

No controller can remove the dead time from the setpoint response: the output still starts moving seconds after the setpoint changes. A Smith predictor takes the delay out of the characteristic equation, so it no longer limits the controller gain. It depends on an accurate model of both and .

Control valves: characteristics, sizing and fail-safe action

A pneumatic control valve has a body (plug and seat, or a ball or butterfly), a spring-and-diaphragm actuator, and often a positioner that closes a local loop on stem position. An I/P transducer converts the electronic controller's 4–20 mA output to the standard 3–15 psi air signal (metric 20–100 kPa, about 0.2–1.0 bar), which moves the stem against the spring. Below, is the fractional stem travel (0 closed, 1 fully open) and is the fractional flow.

SPRING-AND-DIAPHRAGM ACTUATOR

Force balance on the stem. = diaphragm area, = signal pressure measured from the pressure at which the stem starts to move (the spring preload, 3 psi for a full-range 3–15 psi valve), = spring stiffness, = moving mass, = viscous friction coefficient. Static friction and fluid forces on the plug are neglected. The mass is usually small, so the actuator is often reduced to a first-order lag or a pure gain.

INHERENT CHARACTERISTICS (CONSTANT PRESSURE DROP ACROSS THE VALVE)

is the rangeability. The ideal equal-percentage law gives at , so it never reaches zero; the real valve shuts by seating. The square-root law is one common model of quick opening.

EQUAL-PERCENTAGE GAIN

Equal steps of travel change the current flow by equal percentages. The gain is proportional to flow: small near closed, large near fully open.

RANGEABILITY

Ratio of the largest to the smallest flow the valve can control. For the ideal equal-percentage valve, .

VALVE FLOW COEFFICIENT (LIQUIDS)

in US gal/min, across the valve in psi, = specific gravity relative to water. is the water flow in gal/min through the fully open valve () at a 1 psi drop. The metric coefficient uses m³/h and bar, with .

INSTALLED CHARACTERISTIC

Applies when a fixed total pressure drop is shared between the valve and a line resistance whose drop is . Here is the flow with the valve fully open in this installation. The valve authority gives the inherent curve. As falls, a linear valve behaves more like quick opening and an equal-percentage valve moves toward linear.

SIGNAL TO TRAVEL (FULL-RANGE CALIBRATION)

In terms of air pressure: for in psi on an air-to-open valve.

For loop analysis, the valve, actuator and positioner together are modelled as a gain , often with a first-order lag . is the slope of the installed characteristic at the operating point times . For a linear valve at constant pressure drop, is constant. For an equal-percentage valve it is proportional to the flow, as the example below shows.

Inherent characteristic

Law

Gain

Typical use

Linear

Constant (1)

The valve takes most of the system pressure drop, so the installed curve stays close to the inherent one. Level and flow loops with roughly constant process gain

Equal percentage

, rises with flow

The valve takes a small share of the drop (the installed curve moves toward linear), or the process gain falls as load rises. Temperature and pressure loops

Quick opening

Large near closed, small near open

On/off service, and safety and relief duties that need full flow after little travel

Actuator action

Rising signal

On loss of air or signal

Choose it when the safe state is

Air-to-open (ATO)

Opens the valve

Spring closes it: fail-closed (FC)

No flow, e.g. fuel gas to a furnace, steam to a heater, feed to a reactor

Air-to-close (ATC)

Closes the valve

Spring opens it: fail-open (FO)

Full flow, e.g. cooling water to an exothermic reactor, a vent or relief line

The valve action fixes the sign of the valve gain: positive for ATO, negative for ATC. The controller's direct or reverse action is then chosen so that the product of all the gains around the loop gives negative feedback. If nothing else in the loop changes, switching a valve from ATO to ATC means reversing the controller action.

WORKED EXAMPLE

An equal-percentage valve with rangeability passes m³/h at constant pressure drop. It is air-to-open and driven by a 4–20 mA signal through a linear I/P and actuator. Find (a) the flow at 10.4 mA, (b) the valve gain there in (m³/h)/mA, and (c) the percentage change in flow for a further 10% of travel.

Solution
  1. .

  2. (a) , so m³/h.

  3. (b) m³/h per unit travel. With per mA, the gain is (m³/h)/mA.

  4. (c) multiplies the flow by . That is a 47.9% increase, whatever the starting point.

  5. For comparison, a linear valve at 10.4 mA would pass 40 m³/h with a constant gain of (m³/h)/mA.

Answer: (a) 9.56 m³/h; (b) about 2.34 (m³/h)/mA; (c) +47.9%.

EXAM TIP

at a fixed opening: four times the pressure drop gives twice the flow, not four times. is defined at full opening; at partial opening, multiply by .

EXAM TIP

Fail-safe action is chosen for process safety, never for control performance. Choose it first, then set the controller action to match.

EXAM TIP

The inherent characteristic assumes a constant across the valve (a test-bench curve). The installed characteristic is the valve in its piping, where falls as flow rises. A question that gives a line pressure drop is asking about the installed curve.

Servo valves, servo motors and stepper motors

An electro-hydraulic servo valve turns a small input current into a proportional flow of high-pressure oil. A torque motor deflects a flapper between two nozzles (or swings a jet pipe). The resulting pressure difference shifts the main spool, and a feedback spring re-centres the flapper so that spool displacement is proportional to the current. Oil flow to the actuator is then proportional to spool displacement at a given load pressure. The valve's own dynamics are usually modelled as first order, , or as second order. Hydraulics give very high force for their size and a fast response, so they drive aircraft control surfaces, machine-tool slides, turbine governors and large valves.

SERVO-VALVE FLOW, LINEARISED

= spool displacement ( input current), = load pressure difference, = flow gain, = flow–pressure coefficient (how much the flow drops as load pressure rises).

VALVE-CONTROLLED HYDRAULIC PISTON

Piston area . Neglects the load-pressure term (no load), oil compressibility and leakage. The actuator is then an integrator, so a unity-feedback position loop with a proportional controller is type 1 and has zero steady-state error to a step command.

DC servo motors. In armature control, the field current is held constant and the armature voltage is the input. The back emf feeds back inside the motor and acts as electrical damping. In field control, the armature current is held constant and the field voltage is the input, so there is no back-emf feedback.

ARMATURE-CONTROLLED DC MOTOR

= torque constant (N·m/A), = back-emf constant (V·s/rad); the two are numerically equal in SI units. and are the total inertia and viscous friction referred to the motor shaft. Speed is .

ARMATURE CONTROL, ARMATURE INDUCTANCE NEGLECTED

in (rad/s)/V is the steady-state speed per volt. Back emf shortens the time constant from to .

FIELD-CONTROLLED DC MOTOR

Armature current is constant and the torque is . With no back-emf feedback there is no electrical damping, and the field time constant is significant. Used for small motors.

TWO-PHASE AC SERVO MOTOR

The reference winding has a fixed voltage, and the control-winding voltage is 90° out of phase with it. = stall torque per volt of . = magnitude of the slope of the torque–speed line (stall torque ÷ no-load speed), which acts like extra viscous friction. The rotor has a high resistance-to-reactance ratio so that this line slopes downward over the whole speed range.

Stepper motors turn through a fixed angle for each input pulse. The number of pulses sets the position and the pulse rate sets the speed, so they can position in open loop with no feedback sensor. As long as no step is missed, the position error does not build up from step to step, and an energised motor holds its position (holding torque). Steps are lost if the load torque or the stepping rate exceeds what the motor can follow, and an open-loop drive cannot detect this. Two torque–rate curves describe the limit. The pull-in curve gives the largest load torque at which the motor can start, stop or reverse in step with the pulses at a given rate. The pull-out curve gives the largest load torque it can drive once it is already running at that rate. The pull-out curve lies above the pull-in curve, and the region between them is the slew range, which is reached only by ramping the pulse rate up and down. Microstepping divides each full step electronically by driving proportioned currents in two phases, giving finer resolution and smoother motion.

STEP ANGLE, VARIABLE RELUCTANCE (FULL STEP, ONE PHASE ON)

= number of stator phases, = rotor teeth, = stator teeth (poles). The two forms agree for the usual designs, where .

STEP ANGLE, HYBRID

Two phases and 50 rotor teeth give , i.e. 200 steps per revolution.

RESOLUTION AND SPEED

= stepping rate in steps (pulses) per second, in degrees. Half-step drive halves and doubles .

Type

Rotor

Detent torque when unenergised

Step angle

Variable reluctance

Toothed soft iron, no magnet

None

; moderate

Permanent magnet

Magnetised, no teeth

Yes

with rotor poles; large

Hybrid

Toothed and axially magnetised

Yes

; small

WORKED EXAMPLE

An armature-controlled DC servo motor has , negligible , (SI units), kg·m² and N·m·s/rad. Find its transfer function and its steady-state speed for a constant 12 V input.

Solution
  1. .

  2. (rad/s)/V and s.

  3. So .

  4. Steady-state speed rad/s rpm.

  5. Without back emf the time constant would be s. The electrical damping N·m·s/rad is 12.5 times the viscous friction, which is why is so much shorter.

Answer: ; about 22.2 rad/s (212 rpm) at 12 V.

EXAM TIP

only when both are in SI units (N·m/A and V·s/rad). If is given in V per 1000 rpm, convert it before using it as .

EXAM TIP

An ordinary induction motor has a low rotor resistance, which gives its torque–speed curve a region of positive slope, and that region would make a servo loop unstable. AC servo motors use high-resistance rotors to avoid it.

EXAM TIP

For stepper speed questions, first find the step angle for the stated drive mode (full or half step), then use rpm. Equivalently, .

Cascade, feedforward and ratio control

Cascade control uses two controllers and two measurements but only one manipulated variable. The primary (master, outer) controller acts on the variable that matters. Its output becomes the setpoint of the secondary (slave, inner) controller, which drives the valve. In a jacketed reactor, for example, reactor temperature is the primary variable and jacket temperature (or coolant flow) is the secondary. A disturbance in the coolant supply upsets the jacket first, and the fast inner loop corrects it before the reactor temperature moves.

  1. The secondary variable must be measurable, must respond to the manipulated variable, and must be affected by the disturbance you want rejected (that disturbance enters the inner loop).

  2. The inner loop must be clearly faster than the outer loop, by several times. Otherwise cascade gives little benefit and the two loops interact.

  3. Inner controller: P or PI (the outer loop's integral action removes any small inner offset). Outer controller: PI or PID.

  4. Tune the inner loop first, with the outer loop in manual. Then switch the inner controller to cascade (remote setpoint) and tune the outer loop.

  5. The inner loop also encloses the valve, so the effect of valve nonlinearity (a valve gain that changes with opening) is largely compensated inside it.

  6. Cascade adds a measurement and a controller, not an actuator: there is still one valve.

CASCADE LOOP, INNER LOOP REDUCED FIRST

Subscript 1 = outer (primary), 2 = inner (secondary). = valve, = measuring elements. Convention: negative feedback in both loops, and (the inner variable drives the outer process).

CASCADE CHARACTERISTIC EQUATION

Obtained by clearing the fractions above. Apply Routh to this equation for cascade stability limits.

INNER-LOOP DISTURBANCE ATTENUATION

A disturbance entering the inner loop is divided by the inner loop's return difference before it reaches the outer process.

Feedback control cannot act until an error has appeared. Feedforward control measures a disturbance and moves the manipulated variable in time to cancel its effect before the output deviates. The convention used here: the feedforward output is added to the feedback controller's output, the disturbance transmitter is , and . The feedforward path lies outside the loop, so it does not change the closed-loop characteristic equation. It is only as good as its model and it cannot see unmeasured disturbances, so in practice it is combined with feedback, which removes whatever the feedforward misses.

IDEAL FEEDFORWARD CONTROLLER

Obtained by setting the disturbance's total effect to zero. The minus sign makes the correction oppose the disturbance.

FEEDFORWARD FOR FOPDT MODELS

For and with , the result is a lead–lag plus delay. It is exactly realisable only if . If it would need a prediction , so the delay term is dropped. A right-half-plane zero in would make the ideal controller unstable, and an approximation is used instead.

Ratio control keeps one flow in a fixed proportion to another. The wild flow is measured but not controlled; the controlled flow is manipulated so that . The preferred scheme multiplies the measured wild flow by in a ratio station and sends the result as the setpoint of the controlled-flow loop. The alternative divides the two measured flows and controls the quotient, but the division makes the loop gain vary with . Ratio control is a simple form of feedforward, with the wild flow as the measured disturbance. Typical uses are fuel–air ratio in combustion, blending, dilution and reflux ratio.

RATIO STATION SETTING

is the setting of a ratio station working on normalised (0–1) signals from linear transmitters with spans 0 to and 0 to . With unlinearised orifice (square-law) signals, the setting becomes .

Scheme

Measures

Acts

Changes the characteristic equation?

Main use

Feedback

Controlled output

After an error appears

It defines it

Every loop

Cascade

Output plus an intermediate variable

Through the inner loop's setpoint

Yes, it adds an inner loop

Disturbances on the supply or actuator side; valve nonlinearity

Feedforward

Disturbance

Before the output deviates

No, it is outside the loop

Large measurable disturbances; slow processes; always paired with feedback

Ratio

Wild flow

Sets the setpoint of the controlled-flow loop

No, it only supplies the flow loop's setpoint

Blending, combustion air, dilution

WORKED EXAMPLE

A process has and disturbance path , with . Design the ideal feedforward controller and find its output for a step disturbance of 4 units applied at .

Solution
  1. .

  2. Realisable: s is positive, so the term is a pure delay, not a prediction.

  3. The step response of is (initial value , final value 1).

  4. So for s and for s. It jumps to at s and settles at .

  5. Check at steady state: .

Answer: . Its output is zero until s, jumps to , and then settles at with a 10 s time constant.

WORKED EXAMPLE

A burner needs an air/fuel mass ratio of 15. The fuel flow transmitter spans 0–200 kg/h and the air flow transmitter spans 0–4000 kg/h; both are linear with 4–20 mA outputs. Find the ratio-station setting, and the air setpoint signal when fuel flow is 120 kg/h.

Solution
  1. .

  2. Fuel 120 kg/h is of span, i.e. mA.

  3. Air setpoint, normalised: , i.e. mA, which corresponds to kg/h . Correct.

  4. Trap: mA is wrong, because the ratio must be applied to the normalised signal, not the live-zero milliamps.

  5. If both transmitters were unlinearised orifice meters (signal ), the setting would be .

Answer: Ratio setting 0.75; air setpoint 11.2 mA (1800 kg/h).

EXAM TIP

Adding feedforward leaves the closed-loop poles where they were, because the feedforward path lies outside the loop. Adding a cascade inner loop moves them, because the characteristic equation changes.

EXAM TIP

Live zero: a 4–20 mA signal reads zero at 4 mA. Apply ratios and gains to the normalised signal , never to the raw milliamps.

EXAM TIP

Cascade's disturbance-rejection benefit applies to disturbances that enter the inner loop, and only when the inner loop is clearly faster. A disturbance that enters only the outer process is handled by the outer controller alone, just as in single-loop feedback.

Supervisory control, SCADA, DCS and PLC

Plant automation is usually described as a hierarchy of levels. One common five-level version is below; the numbering and names vary between sources.

  1. Level 0, field: sensors, transmitters, control valves, motors.

  2. Level 1, regulatory control: PID loops, interlocks and sequences in PLCs, DCS controllers and single-loop controllers.

  3. Level 2, supervisory: operator stations (HMI), alarm handling, setpoint optimisation, SCADA master stations, data historians.

  4. Level 3, plant management: production scheduling and tracking.

  5. Level 4, enterprise: business planning.

In supervisory (setpoint) control, a computer calculates the best setpoints and sends them to local controllers, which close the loops. If the computer fails, the local controllers keep regulating at the last setpoints. In direct digital control (DDC), the computer itself calculates the valve signals and replaces the local controllers, so control stops if the computer fails without a backup.

SCADA (supervisory control and data acquisition) is used for assets spread over large distances, such as pipelines, electrical grids, water distribution networks and oil fields. It is built from field devices; RTUs or PLCs at the remote sites, which acquire data and run local control; a communication system (radio, leased line, cellular, satellite or fibre); and a master station with HMI, alarms and a historian. Control loops are closed locally at the sites. The centre supervises: it monitors, raises alarms, and sends remote start/stop commands and setpoint changes.

A DCS (distributed control system) serves one large continuous plant with many analog loops. Control is distributed across many controller units, each handling a group of loops near the process, while monitoring is centralised at operator stations. The typical architecture is field I/O, then local control units, then a redundant high-speed plant network (data highway) linking operator stations, an engineering station (where control is configured with function blocks), a historian and a gateway to supervisory computers. Controllers, power supplies and the network are usually duplicated for redundancy. The failure of one controller affects only its own loops, and a redundant backup normally takes over.

Feature

PLC

DCS

SCADA

Typical job

Discrete and sequential logic: machines, interlocks, batch sequences (analog PID also available)

Continuous processes with many analog loops in one plant: refineries, chemical and power plants

Widely spread assets: pipelines, power grids, water distribution

Where loops are closed

In the PLC itself

In local controllers distributed around the plant

Locally, in RTUs or PLCs at each site; the centre supervises

Programming

The IEC 61131-3 languages: ladder diagram, function block diagram, structured text, instruction list, sequential function chart

Function blocks configured from an engineering station, with a plant-wide database

Tags, displays, alarms and polling configured at the master station

Communication

Fieldbus or Ethernet to I/O and other devices

Redundant high-speed plant network

Long-distance links: radio, leased line, cellular, satellite, fibre

Emphasis

Fast, predictable scan; rugged; low cost per point

Integrated operator displays, redundancy, plant-wide alarms and history

Data acquisition, telemetry, remote monitoring, supervisory commands

A PLC is a rugged microprocessor controller that was first built to replace relay logic. It has a CPU, memory, discrete and analog I/O modules, a power supply, communication ports and a programming device. It runs its program repeatedly in a fixed cycle, the scan.

  1. Input scan: read every physical input into the input image table.

  2. Program scan: solve the program rung by rung, top to bottom and each rung left to right, using the image-table values. Results go to the output image table. An output or internal bit written on one rung is already updated for the rungs below it in the same scan, but physical inputs are not re-read until the next input scan.

  3. Output scan: copy the output image table to the physical outputs.

  4. Housekeeping: communication, self-diagnostics and the watchdog-timer check. Then the cycle repeats.

SCAN TIMING

An input that changes just after the input scan is read only on the next scan and written out at the end of that scan, which takes almost two scans. A pulse shorter than one scan can fall between two input scans and be missed entirely. Input-filter and output-module delays add to both figures.

Element

Name

Logic

─┤ ├─

Normally open contact (examine if closed)

True when its bit is 1

─┤/├─

Normally closed contact (examine if open)

True when its bit is 0 (logical NOT)

─( )─

Output coil

Bit set equal to the rung condition on every scan

─(L)─ and ─(U)─

Latch and unlatch coils (set/reset)

Retentive: the bit stays 1 after the rung goes false, until an unlatch rung clears it

Contacts in series

AND

Rung true only if every contact is true

Contacts on parallel branches

OR

Rung true if any branch is true

START–STOP SEAL-IN RUNG

START and STOP are momentary push-buttons whose input bits are 1 while pressed. A contact of in parallel with START holds (seals in) the coil after START is released, and STOP breaks the rung.

  1. TON (on-delay timer): accumulates time while its rung is true. The done bit sets when accumulated time reaches the preset. Accumulated time resets to zero as soon as the rung goes false.

  2. TOF (off-delay timer): the done bit sets as soon as the rung goes true. When the rung goes false, timing starts and the done bit clears after the preset time. If the rung goes true again first, the timing is cancelled.

  3. RTO (retentive on-delay timer): like TON, but it keeps its accumulated time when the rung goes false. Only a reset (RES) instruction clears it.

  4. CTU (up counter): adds one on each false-to-true transition of its rung, not for as long as the rung stays true. The done bit sets when the count reaches the preset; on most PLCs the count continues beyond it until a reset.

  5. CTD (down counter): subtracts one on each false-to-true transition; it is often paired with a CTU on the same address for up/down counting.

WORKED EXAMPLE

Input I1 drives three timers, each with a 5 s preset: a TON, a TOF and an RTO. I1 is ON from to 3 s, OFF from 3 s to 5 s, and ON from s onward. When is each timer's done bit ON?

Solution
  1. TON: it accumulates 3 s, then resets to 0 at s. It restarts at s and reaches 5 s at s, so its done bit is ON from s.

  2. RTO: it accumulates 3 s, holds 3 s through the OFF period, and resumes at s needing 2 s more. Its done bit is ON from s and stays ON until reset.

  3. TOF: the done bit is ON at . Timing starts when I1 goes OFF at s, but I1 returns ON at s after only 2 s (less than 5 s), so the timing is cancelled and the done bit never drops.

Answer: TON done at s; RTO done at s; the TOF done bit is ON continuously from .

EXAM TIP

The last rung wins: if the same output coil appears in two rungs, only the later rung's result reaches the output, because both rungs write the same image-table bit during one scan. Rungs between the two see the first rung's result.

EXAM TIP

A physical stop button is usually wired normally closed, so that a broken wire stops the machine. Its input bit is then 1 while the button is not pressed, so the program examines it with a normally open contact. Check whether a question describes the field wiring or the logical condition.

EXAM TIP

DCS means distributed control with centralised monitoring inside one plant. SCADA means centralised supervision of distant sites whose loops are closed locally. In supervisory control, the loops keep running if the supervisory computer fails; in DDC they do not.

PREVIOUS-YEAR QUESTIONS

2 questions from the IN papers

Try each question first, then open the answer. We placed each question under a topic ourselves; the exam paper does not label topics.

See these papers in full: GATE IN 2024 · GATE IN 2022

GATE 2024 IN Q.12

GATE 2024 · INQ.12 · 1 mark · MCQ

The pressure drop across a control valve is constant. The control valve with inherent characteristic has decreasing sensitivity. If represents the fraction of maximum stem position of the control valve, then the function representing the fraction of maximum flow is

  1. (A)

    , where is constant

  2. (B)

  3. (C)

  4. (D)

Answer and solution
See the question in the paper
GATE 2024 IN Q.12: answer and solution

GATE 2022 IN Q.12

GATE 2022 · INQ.12 · 1 mark · MCQ

A pneumatic nozzle-flapper system is conventionally used to convert ________

  1. (A)

    Small changes in flapper's velocity to large changes in output temperature

  2. (B)

    Small changes in flapper's displacement to large changes in output temperature

  3. (C)

    Small changes in flapper's velocity to large changes in output pressure

  4. (D)

    Small changes in flapper's displacement to large changes in output pressure

Answer and solution
See the question in the paper
GATE 2022 IN Q.12: answer and solution

PRACTICE

7 questions to test yourself

PRACTICE 11 mark · MCQ

An equal-percentage control valve with rangeability 32 operates at constant pressure drop. At 80% of full stem travel, the flow through it, as a percentage of its maximum flow, is

  1. (A)

    80%

  2. (B)

    64%

  3. (C)

    50%

  4. (D)

    25%

Answer and solution

Answer: (C)

  1. Equal-percentage law: with and .

  2. .

  3. So the flow is 50% of maximum. (80% would be a linear valve; 25% is the equal-percentage flow at 60% travel.)

PRACTICE 22 marks · NAT

A unity negative-feedback system has open-loop transfer function , where is a dead time in seconds. The closed loop is stable for . The value of in seconds, rounded to three decimal places, is ______.

Answer and solution

Answer: (accepted range )

  1. , so rad/s, the only crossover (the delay does not change the magnitude).

  2. Delay-free phase at 4 rad/s: , so rad.

  3. A delay changes only the phase, so closed-loop poles can reach the imaginary axis only at a frequency where , i.e. at rad/s. They get there when the extra lag uses up the whole phase margin. The loop is stable at (), so it stays stable while .

  4. s.

PRACTICE 32 marks · NAT

In a unity negative-feedback loop with and , the dead time is replaced by its first-order Pade approximation . The approximated closed loop is stable for . The value of is ______.

Answer and solution

Answer:

  1. First-order Pade with : .

  2. Characteristic equation: .

  3. A second-order polynomial is stable if and only if all its coefficients have the same sign; here both must be positive, so (and ).

  4. . At the equation is , an oscillation at rad/s.

  5. For comparison only: the exact limit comes from the phase crossover , which gives rad/s and . The Pade value is optimistic, but the question asks for the Pade value, 6.

PRACTICE 41 mark · NAT

A variable-reluctance stepper motor has 24 stator teeth wound as 3 phases and 16 rotor teeth. It is driven in full-step mode, with one phase energised at a time, at 400 pulses per second. The shaft speed in rpm is ______.

Answer and solution

Answer:

  1. . Check: .

  2. rpm. Equivalently, 48 steps per revolution, so rev/s rpm.

PRACTICE 52 marks · MSQ

Which of the following statements is/are TRUE?

  1. (A)

    Adding a feedforward controller to an existing feedback loop leaves the closed-loop characteristic equation unchanged.

  2. (B)

    In cascade control, the secondary (inner) loop should have slower dynamics than the primary (outer) loop.

  3. (C)

    For safety on loss of instrument air, the fuel-gas valve to a furnace should be air-to-open (fail-closed).

  4. (D)

    A PLC with a 20 ms scan time, which reads its inputs once per scan, always detects an input pulse lasting 5 ms.

Answer and solution

Answer: (A), (C)

  1. A is true: the feedforward path lies outside the loop, so is unchanged.

  2. B is false: the inner loop must be faster than the outer loop, or it cannot correct supply-side disturbances before they reach the primary variable.

  3. C is true: an air-to-open valve fails closed, which shuts off fuel, the safe state.

  4. D is false: inputs are read only during the input scan, so a 5 ms pulse can fall entirely between two input scans 20 ms apart and be missed.

PRACTICE 61 mark · NAT

A control valve has a flow coefficient (US gal/min of water at a 1 psi drop, fully open). Fully open, it passes a liquid of specific gravity 0.81 with a pressure drop of 16 psi across the valve. The flow in US gal/min, rounded to one decimal place, is ______.

Answer and solution

Answer: (accepted range )

  1. Liquid sizing equation with the valve fully open (): .

  2. US gal/min.

  3. Note that : at 4 psi the same valve would pass half this flow, not a quarter.

PRACTICE 71 mark · NAT

A unity negative-feedback loop has open-loop transfer function , where is a dead time in seconds. The closed loop is stable for . The value of in seconds, rounded to three decimal places, is ______.

Answer and solution

Answer: (accepted range )

  1. at rad/s, the only crossover.

  2. Delay-free phase is at every frequency, so rad.

  3. s. This agrees with the integrator-plus-dead-time condition with .

OFFICIAL GATE 2027 SYLLABUS WORDING

Copied from the GATE 2027 syllabus; see all 2027 syllabi.

GATE IN

time-delay systems. Actuators for control system: control valves, servo valves, servo motors, stepper motors; … cascade, feed forward, and ratio controllers …; basic concept of supervisory control, basics of distributed control system (DCS) and programmable logic controller (PLC)

Preparing in Kolkata? IAE Academy's course for GATE IN.