IMDHMIControls LibraryShop main store

Troubleshooting

Why PID auto-tune may do nothing in the Productivity simulator

PLC programming Published 7 min read By IMDHMI controls team

Short answer

PID auto-tune runs in the Productivity simulator from suite version 4.7.1 onward, so the reported 4.7.1(5) build has the feature. A PID Tuning click that does nothing means the tune never reaches a loop the simulated CPU is executing: check the enable rung and loop mode, the connection to the running simulator, and that the loop is one the tuning window follows.

On this page
  1. Read the build number first
  2. Confirm the loop executes in the simulated scan
  3. Follow the request from the click to the loop
  4. Count the loops the tuning window follows
  5. Worked example: a dead Start click on one FOPD-driven loop
  6. The decision for each case
  7. Questions asked

Auto-tune runs in the Productivity simulator: the PID instruction and its tuning function execute there in the build you are running, so a dead PID Tuning click is not a missing feature. It is a signal problem. The Start command is not reaching a loop the simulated CPU is executing, or the tuning window is not talking to the running simulator instance. Work down the four checks in order, each ending in a decision, and stop at the first one that fails; the worked example at the end runs this exact program through all four.

Read the build number first #

The PID instruction and its auto-tune run in the Productivity simulator from suite version 4.7.1 onward, so 4.7.1(5), the build in the reported problem, already carries the feature. Read the version from the suite itself, the digits the installed software reports for itself, not from a shortcut or an installer file name, and keep the number in parentheses part of the comparison. Decision: a build at or above 4.7.1 needs no update, and chasing one first only spends an afternoon; a build below the threshold gets the current suite from the manufacturer before any other check, because none of the later checks can pass on software that lacks the feature.

Confirm the loop executes in the simulated scan #

The tuner acts on a loop the controller is executing; nothing in the tuning window can move an instruction that never runs. The reported program proves its loop live: the process variable follows when the process gain, time constant and delay time change by hand, and the tuning constants take effect, so the instruction executes each scan and its output reaches the process model. If your loop sits quieter than that, the enable side is the suspect. Look at what the PID instruction's enable actually depends on: a rung fed by a physical input, a start pushbutton, a permissive or an interlock, is never true in the simulator unless you drive it from the simulator's data watch. Check the loop's mode as well: the instruction must be the one driving the output, in automatic, for a tune to have a loop to test.

A working Start shows why this matters. The manufacturer's programming tutorial walks through the Auto Tune Start button in the PID Tuning window, and in the tutorial's example the current process variable is copied into the set point as the tune opens, a write into a loop that has to be running to receive it.

Safety note: auto-tune moves the loop output on purpose, so run the test against the simulated process, and on real hardware only on a loop whose process tolerates the deliberate disturbance.

Decision: hand changes that move the process variable mean the loop executes and this check passes; a quiet loop means you force the enable-rung inputs true in the simulator's data watch and put the loop in automatic before touching the tuning window.

Follow the request from the click to the loop #

When the build and the loop both pass, the request path is the remaining suspect. The PID Tuning window acts on the target the software is connected to; if the session points anywhere but the running simulator, a second open project or a leftover hardware target, the click lands nowhere and the window's loop data sits still. Close the competing sessions, connect to the simulator, and keep the loop's tuning data on screen while you click: data that never changes while the simulated process moves is a dead connection, and data that moves while no tune begins points at a request that never reaches the instruction. Trace the write hop by hop, the way you would trace an HMI command that never reaches the PLC output. The shape matches a PLC-5 MSG instruction stuck because its start condition never comes true: the instruction is fine and the start never arrives.

Decision: window data static while the process moves means reconnect and re-click before editing logic; window data live but no tune means move to the instruction's permissives, then to the tracking check below.

Count the loops the tuning window follows #

The suite's what's-new notes document a PID Tuning dialog that monitors and tunes up to 5 separate loops at once, keeping each tab's data as you move between them. A program with more PID instructions than that has loops the window is not following, and a Start aimed at an unfollowed loop has nothing selected to act on, so put the loop you want to tune among the ones the window tracks before blaming the simulator. Decision: a single-loop program sits far inside that capacity, so this check rules itself out by count alone and only earns its place in a multi-loop project.

Worked example: a dead Start click on one FOPD-driven loop #

The inputs #

  • Suite build: 4.7.1(5), the version the installed suite reports in the reported problem, a version number with no unit.
  • PID instructions in the program: 1, driving a self-coded first-order-plus-dead-time process model, a count.
  • Loops the PID Tuning window tracks at once: 5, documented in the suite's what's-new notes, a count.
  • Loop activity: the process variable follows hand changes to process gain, time constant, delay time and tuning constants, reported working.
  • Reported result: the Auto Tune Start click produces no tune.

The rule #

A Start click produces a tune only when four conditions hold at the same time: the build runs the tuner in simulation, the loop is one the window follows, the loop executes in the simulated scan, and the request reaches the loop through the open connection. Score each condition 1 for true and 0 for false and multiply the four; a single 0 makes the product 0.

The arithmetic #

Build: the reported build sits exactly at the support threshold, so condition one scores 1. Tracking: 1 loop in the program minus the 5 loops the window tracks leaves -4, so the single loop sits inside capacity and condition two scores 1. Loop execution: hand changes move the process variable, so the instruction runs and its output reaches the process model, and condition three scores 1. The three knowns multiply to 1 × 1 × 1 = 1, but the reported result is no tune, which scores 0, so the remaining condition, the request reaching the loop, must be the 0: 1 × 1 × 1 × 0 = 0.

Result and decision #

With build, tracking capacity and loop execution all true, the dead click localizes to the fourth condition: the connection between the tuning window and the running simulator, or a tune permissive at the loop, its mode or an enable condition inside the program, that is not met.

The decision for this exact program: an update gains nothing, because the reported build carries the feature already; reconnect the session to the running simulator, put the loop in automatic, and click Auto Tune Start again. If it stays dead, force every enable-rung input true in the simulator's data watch while the loop's data sits on screen in the tuning window. The threshold that names the fault: window data static while the simulated process variable moves is a connection problem, and window data live with no tune is a request or permissive problem.

The decision for each case #

  1. Build below the support threshold: bring the suite current from the manufacturer, reopen the project, rebuild the simulator session, and retest; nothing later is worth checking on software without the feature.
  2. Build at or past the threshold: the version is not the cause; the reported build sits there already, so skip the update.
  3. Process variable dead to hand changes: fix the enable rung and put the loop in automatic; Start stays dead until the instruction executes.
  4. Window data static while the process moves: reconnect the session to the running simulator and re-click.
  5. Window data live but no tune: clear the instruction's permissives and confirm the loop is among the ones the window tracks; a single-loop program rules tracking out by count alone.

For the program asked about, one loop on a self-coded first-order-plus-dead-time model, a build at the support threshold and a loop proven live by hand tuning, the decision lands on the request path: reconnect and re-click, then force the enable side, and either the tune begins or the dead hop shows itself.

Questions asked

If auto-tune still does nothing, can I tune the loop by hand in the simulator?

Yes, and it is the fastest way to keep the project moving. Change the gain, integral and derivative constants while the simulated process runs and judge the response directly, the way a first-order-plus-dead-time model lets you do. Record the constants that behave, enter them in the PID instruction, and come back to the Start click once the request-path checks pass.

What does the Auto Tune Start button do to the loop when it works?

Clicking Auto Tune's Start in the PID Tuning window begins the tune on the loop the window shows. The manufacturer's programming tutorial documents that, in its example, the current process variable is copied into the set point when the tune opens, so the test runs from where the process sits rather than driving toward a distant set point. None of that can happen on a loop that is not executing.

Which suite version added PID tuning in the simulator?

Support begins with suite version 4.7.1, so the reported 4.7.1(5) build carries simulator tuning already; on an older build the tuner is not the thing to debug. Bring the suite current from the manufacturer's own download area, reopen the project, rebuild the simulator session, and only then repeat the checks.

Why does the same loop tune fine in another simulator project?

Another project tuning fine on the same build tells you the feature runs in simulation; it does not certify your project. Tuning depends on the build number, the enable rung, the loop mode and the open connection in each project, so the same feature can sit dead in one session and behave in the next without the software changing at all.

Are tuning constants from the simulator valid for the real plant?

Treat constants from the simulator as a first guess only. The simulated process follows the gain, time constant and delay you coded, not the real loop's valve response, sensor lag or transport dead time, so verify the constants against the running plant before leaving them in the CPU, and only on a loop whose process tolerates the deliberate disturbance a tune creates.

Keep reading

  • Troubleshooting

    Start a PID ramp soak profile from ladder logic

    The profile never starts from ladder because the JMP stage handoff leaves the old stage on for three more scans, which swallows the one-scan PD pulse that must set the ramp/soak start bit. Replace the jump with SET and RST stage logic, then verify bit 11, the +33 octal control word and the +35 error flags before touching the PID instruction or table values.

    PLC programming

  • How-to

    Back up an SLC 500 program by upload before you lose it

    An SLC 500 backup is an upload: read the program out of processor memory into a new RSLogix 500 offline file over a working RSLinx driver, save that file, then run a compare against the processor to prove the copy matches. Work the sequence below on the live processor and never download or clear memory to get there.

    PLC programming

  • How-to

    Build a siren pulse count sequence in S7-1200 ladder logic

    Use a positive-edge request to load a target of 3, 2, or 1 pulses, then run a four-state ladder sequence — idle, start, stop, count — that drives Q6.2 (START) and Q6.1 (STOP) from separate states so the two SIMOCODE Pro V commands never overlap. With a 2.0 s on-time and a 1.0 s gap, the three patterns finish in 11.0 s, 7.0 s, and 3.0 s.

    PLC programming