Strategy 17 of 24 · Tuning & Dynamics · Intermediate
Lead-Lag Compensation
The Timing Shaper
A lead-lag block shapes how fast a signal moves. It is not a delay, and transport delay needs a dead time block instead.
US and SI units Lead 1, lag 3: 10% step gives 3.3% at once
The setup
A lead-lag block changes how fast a signal moves. It has two time settings. The lead time makes the output jump ahead on a change, and the lag time makes the output ease toward its final value. The lag is the same smoothing that a simple filter gives.
It is common in feedforward control. When a disturbance arrives, the feedforward move has to match the way the disturbance reaches the process. A lead-lag block lets the feedforward move be quicker or slower than the raw measurement.
The reality
A lead-lag is not a time delay, though people often say it is. A delay holds the signal back and then releases it unchanged. A lead-lag starts moving at once, with a first jump and a settling curve.
The first jump is the step size times the lead divided by the lag. After that, the output moves toward the full step with the time constant of the lag. If the lead is bigger than the lag, the first jump overshoots and then falls back.
A true transport delay, such as the time for fluid to travel down a pipe, needs a dead time block. The time is the pipe volume divided by the flow, or the length divided by the velocity. The liquid line pressure drop calculator gives the velocity. The dead time trap pitfall describes what happens when dead time is hidden inside other settings.
The two blocks are often used together in feedforward. The dead time block holds the move until the disturbance would have arrived, and the lead-lag shapes the move after that. Tuning them takes a step test of the disturbance and a step test of the valve move, so the two paths can be matched.
Too much lead makes the output noisy, because lead is a form of derivative action. Keep lead below the lag unless a test shows the process needs more.
Run the numbers
A lead-lag has a lead of 1 minute and a lag of 3 minutes. The input steps by 10%.
US units:
- The first jump = 10% × 1 ÷ 3 = 3.3%
- The step response is 10% × (1 minus (2 ÷ 3) × e to the power of minus time ÷ 3), with time in minutes
- At 3 minutes the output is about 7.5%
- At 9 minutes the output is about 9.7%
- A line 1,000 ft long with 5 ft/s flow gives 1,000 ÷ 5 = 200 seconds of transport delay, which no lead-lag can replace
SI units:
- The same lead, lag and step give the same 3.3%, 7.5% and 9.7%
- The line is 305 m long with flow at 1.52 m/s, so the transport delay is 200 seconds
- The time settings are in minutes in either system
- The dead time block must be set to 200 seconds
Where it goes wrong
Using a lead-lag where a dead time block is needed leaves the feedforward move out of step with the disturbance.
Too much lead adds noise and may overshoot.
Settings guessed without a step test often make the first response worse.
A lag that is longer than the process response makes the feedforward arrive late.
Changing the flow changes the transport delay, and a fixed setting is then wrong.
What to check in the field
- Make a step in the input and plot the output to confirm the first jump and the time to settle
- Confirm the lead is not larger than the lag unless a test calls for it
- Check whether the dead time block follows the flow where the delay changes with rate
- Compare the timing of the disturbance path and the valve path before setting either
Calculators that check it
- Liquid Line Pressure Drop (Darcy-Weisbach): Friction and elevation pressure drop for a liquid line, with optional fittings and a cavitation check. Open in the app
Related pitfalls
Related strategies
Link to this strategy: jpbprocess.com/control-strategies/lead-lag-compensation
Control Strategies are for awareness and training. Check real control designs against the process, the instrument data and a qualified control engineer.