PIDE Against PID: When the Enhanced Loop Earns Its Complexity

PIDE Against PID: When the Enhanced Loop Earns Its Complexity

Convert a ControlLogix 5580 project to a 5590 and every PIDE in it fails verification with the same message: Invalid instruction reference, PIDE is not available for this controller type. Using PPID is recommended. 1756-RM100M prints that string verbatim, and 1756-RM006P carries the same warning in the first note of the PIDE chapter. The enhanced loop is not a superset of the plain one. It is a different instruction with a different availability, a different algorithm and roughly twice the execution cost, and on the newest ControlLogix family it is not there at all. So reach for PIDE when the loop is cascaded, when an operator needs to take the setpoint off the program, or when gains have to move while the process runs, and reach for the plain PID when the routine has to be ladder or when the loop is one of two on a machine that is otherwise discrete.

Everything else that gets argued about — which one is more accurate, which one is more modern — does not decide anything.

A side by side comparison of PID and PIDE across nine rows: languages, algorithm form, where the delta t comes from, gain changes, ownership, cascade handshake, autotune, 5590 support and execution time

Four rows carry the decision. The other five are true and will not change your mind.

The velocity form, and the one thing it actually buys you

1756-RM006P opens the algorithm section by saying that PIDE uses the velocity form, similar to that used in most DCS systems, and that the gain terms are applied to the change in the value of error or PV rather than to the value itself. It then lists two advantages, and the first one is the reason to care. Gains can be changed on the fly without initialising the algorithm, because in a velocity form the computed output is the previous output plus three delta terms — CalculatedCV = CVn-1 + ΔPTerm + ΔITerm + ΔDTerm, as the manual writes it. Change PGain and only the next increment changes; the accumulated position is already sitting in CVn-1 and nothing has to be back-calculated. The positional PID does not work that way: its output is rebuilt from an integral accumulation held in .DATA[0], and the instruction keeps three previous gain values in .DATA[8] through .DATA[10] precisely so it can notice a gain change and adjust. It handles it, but it handles it; PIDE simply does not have the problem.

That matters on exactly one common job: adaptive or scheduled gains.

A dryer whose gains differ between start-up and steady running, a level loop that has to be detuned when a vessel is nearly empty, a line whose gains are indexed off speed — all of those write new gains into the block while it is controlling. On a PIDE you write them and walk away. The second advantage the manual lists, manipulating CVn-1 directly to cross-limit between loops, is a genuinely useful hook and a much rarer one; if you have never had to cross-limit a fuel-air pair, it will not be why you choose the block.

The four wires that are the real reason to use it

A single loop in a PIDE looks like a single loop in a PID with more parameters. A cascaded pair does not.

Two PIDE blocks wired as a cascade, with the primary CVEU going to the secondary SPCascade and four return signals going back from the secondary to the primary

The blue wire is the cascade everyone draws. The red path is the one that stops the primary winding up while the secondary is pinned at a limit, and it is four wires, not logic.

Take a jacketed vessel: primary loop on the vessel temperature, secondary on the jacket, primary CV becoming the jacket setpoint. The secondary hits its output limit on a cold start and stays there for four minutes. What should the primary do during those four minutes? It should stop integrating, because more output is not going to produce more jacket heat, and when the operator or the sequence puts the secondary back into Cascade/Ratio the primary’s CV should already match what was actually being delivered. PIDE ships the handshake as parameters: WindupHOut

Advertisement
and WindupLOut on the secondary into WindupHIn and WindupLIn on the primary, and InitPrimary and SP from the secondary into CVInitReq and CVInitValue on the primary. 1756-RM006P describes that last pair as the way to initialise the primary when the secondary is initialised or when it leaves Cascade/Ratio.

Four wires. No latches, no one-shots, no tag that somebody deletes in two years.

The ladder PID has a master-loop operand and will convert a master’s output percent into the slave’s engineering units using the slave’s .MAXS and .MINS, which covers the forward half of the job. The anti-windup handshake going back the other way you write yourself, out of a comparison against .MAXO, a latch, and something to freeze the master’s integral term, and that is the half that is quietly missing in most of the ladder cascades worth opening. It is missing because it only shows itself on a cold start or after a long hold, which is to say on the two occasions nobody is watching a trend.

Where each block is allowed to live

This is the part that settles more arguments than the algorithm does.

The plain PID is available in ladder diagram and in structured text, and 1756-RM018A prints no function block form for it. PIDE is available in function block and structured text, and the manual states flatly that it is not available in ladder diagram. So a plant standard that says “all logic is ladder” has already chosen, and a plant standard that says “process loops are function block” has chosen the other way. If your routines are ladder and the loop genuinely needs PIDE features, the practical route is a function block routine called from the ladder by a JSR, which also gives you somewhere sensible to put the execution-order thinking that Allen-Bradley function block goes into.

The autotuner narrows it again, and this one catches people.

1756-RM006P says the PIDE autotuner is only supported in function block programming and is not available in ladder diagram or structured text. A PIDE called from Structured Text is a perfectly legal PIDE and it cannot be autotuned. It also needs an activation key, installed separately from the application, which is why the Autotune tab is greyed out on most engineering laptops and why that greyed-out tab is a purchasing conversation rather than a fault to chase. What you do get without the key is the whole PIDE_AUTOTUNE structure and its request bits, so an operator interface can drive an autotune sequence on a controller where the key does exist, from a screen, with nobody’s laptop in the panel.

Then there is the 5590, which removes the choice entirely.

PIDE is not supported on ControlLogix 5590 controllers and is not supported in safety applications. The replacement is PPID, and 1756-RM100M spends thirty-odd pages on the conversion: some PIDE parameters map one to one, some have an alternative parameter with different behaviour, some have no equivalent at all, alarming works differently, the zero-crossing deadband means something different, and CV manual limiting is described as functionally opposite. PPID is also available in ladder, which PIDE never was. If a 5590 is anywhere in the ten-year plan for the project, that appendix is worth reading before you standardise on PIDE.

What it costs, counted properly

The scan-time argument comes up in every one of these conversations and it is almost always the weakest one on the table.

A table adding up one PIDE loop: the block at 6.887 microseconds plus three input references, one output reference and four wires, against the plain PID at 3.198 microseconds

Forty enhanced loops in a 250 ms task come to 0.281 ms, which is about a tenth of one percent of the period. Count the references and the wires anyway — people forget that a function block routine charges for them.

LOGIX-RM002B puts the PIDE at 6.887 µs on a 5580 and the ladder PID between 2.929 and 3.615 µs depending on data type and mode. Call that a factor of two. The same table charges 0.018 µs for a REAL input reference, 0.026 µs for an output reference and 0.016 µs for a REAL-to-REAL wire, and the publication says in as many words to include IREF, OREF and wire time when you estimate a function block routine. A realistic single loop with three inputs wired in and one output wired out comes to 7.03 µs against 3.20 µs.

Forty loops, a 250 ms task, 0.281 ms. That is the whole argument.

It decides something at the other end of the range.

A 10 ms task with a hundred blocks in it, or a CompactLogix carrying motion and loops on the same controller, is where the factor of two turns into a number you can feel. Measure it there rather than estimating it — PLC scan time and cycle time covers reading it off a live controller instead of adding up a table, and the table is an estimate that the publication itself says is not a design document.

When the plain PID is still the right answer

Three situations, and none of them is about being old-fashioned.

A machine with two loops and forty rungs of interlocks does not want a function block routine added to it; the PID in the ladder is easier for the person who will be standing at it with a laptop at two in the morning. A loop whose output goes straight to a hand/auto station wants the PID’s tieback operand and its .MO mode, which is a piece of hardware support the enhanced block handles differently. And a loop that already works and is already tuned does not want converting for tidiness — the two instructions do not take the same gains, and the units differ in ways that are worth reading before you retype anything.

The units are the expensive part, and setting up a PID in Studio 5000 works them through.

Advertisement

What to check next

Open the loop you were thinking of converting and answer two questions before you touch it. Is anything writing its gains while it runs? Does it have a secondary loop underneath it?

Two noes and the plain PID is fine where it is.

If it is a yes, put a trend on the existing loop first so you have something to compare the converted one against — the setup is in PLC trend chart settings and monitoring, and the wider walkthrough from empty project to working faceplate is PLC PID control in Studio 5000. If the routine will end up being structured text rather than function block, note that you have given up the autotuner, and that structured text for people who write ladder covers the constructs you will need to call the block properly.