How-to
Migrating a Standard PID Control PID_CP block to an S7-1500
Short answer
PID_CP from Standard PID Control does not convert into an S7-1500 project, and know-how protection blocks the conversion outright. Rebuild the loop on PID_Compact, reproduce the missing LMN_OP function with a small pre-call block, and prove identical response on trends before you commission.
On this page
- Why won't the PID_CP block migrate into TIA Portal?
- Which controller do you build the S7-1500 loop on?
- What do you record from the S7-300 loop before you replace it?
- How do you rebuild the loop in TIA Portal?
- What do you do about the missing LMN_OP input?
- How do you prove the new loop matches before you commission it?
- Questions asked
A Standard PID Control block does not survive the trip from S7-300 to S7-1500: the package belongs to classic STEP 7, and a know-how-protected block leaves the TIA Portal converter nothing to read. Treat the loop as a functional replacement. The route with the best chance of success: record the old loop while it still runs, rebuild it on PID_Compact — the continuous controller included in TIA Portal as standard for S7-1200 and S7-1500 CPUs — reproduce any function the new object lacks, and prove identical response on trends before the new CPU takes the process. In one reported conversion the only PID_CP function the replacement lacked was LMN_OP, covered by a small block called immediately before the controller, and that loop has run for years. The sections below take that route stage by stage.
Why won't the PID_CP block migrate into TIA Portal? #
The conversion fails twice over: Standard PID Control is a classic STEP 7 optional library with no S7-1500 release, and a know-how-protected block gives the converter no code to read, so nothing carries across.
Two separate things stop it. Standard PID Control is a 1994-era classic STEP 7 library, and in version 1.0 the block was even called PID_C, so confirm from your own project which name and version you actually have. Know-how protection is the second stop: in one reported case the password came with the source project rather than from an upload, and a converter with no access to the implementation cannot place the block on the S7-1500 side. What the converter does carry, and how the classic project conversion behaves, is covered in the article on migrating S7-300 projects from STEP 7 v5.5 to TIA Portal.
For the block itself, Siemens publishes a Guide for Migrating SIMATIC S7-300/S7-400 to S7-1500 on its support portal, and Standard PID Control gets its own migration section there next to the I/O work — the guide treats it as a replacement task, not as code that converts. Whatever documentation you use for the old block, take it from the official support channels and skip scans of unknown origin. Decision: stop looking for a converter for this block and make the rebuild the main work package.
Which controller do you build the S7-1500 loop on? #
Build the replacement on PID_Compact: TIA Portal includes three PID controllers as standard for S7-1200 and S7-1500 CPUs, and PID_Compact is the continuous controller, with manual and automatic mode and integrated optimization, that matches the job PID_CP did.
PID_Temp covers temperature processes and the third object covers staged-actuator applications, so for a continuous manipulated variable PID_Compact is the match. Resolve the exact implementation before you commit, because the naming here misleads: FB41 CONT_C is the Standard PID Control continuous block for S7-300 and S7-400 CPUs, while PID_Compact is a technology object with its own configuration screens and execution rules — a phrase like "CONT_C technology object" names neither construct. Check the technology object's supported CPUs and execution requirement in the installed help of your TIA Portal version, then commit. Decision: build the replacement as a PID_Compact technology object on the S7-1500, called from a cyclic interrupt OB.
What do you record from the S7-300 loop before you replace it? #
Record the loop while the S7-300 still runs: the block's identity and full call interface, synchronized trends of setpoint, measured value, output and operating mode across a permitted setpoint change, and the steady-state output the process actually holds.
Open the archive in the tool release that owns it — if the team is unsure which environment that is, the explainer on what STEP 7 is in a PLC project, and which one you need settles it — and write down the block designation, version, instance data and every call site. Trace every connected input and every consumed output, including writes into the block's data from outside the controller call; side writes like those are where an LMN_OP-style function hides. On the wiring side, a classic CONT_C loop reads the transmitter as a peripheral word (PIW) into PV_PER and writes the actuator through LMN_PER, and the note on CONT_C wiring from PIW to PV_PER and LMN_PER walks that exact path.
Then let the plant teach you: record a stable operating interval, a permitted setpoint change and a manual-mode interval, with setpoint, measured value, output and mode synchronized on one trend. Note the operator interface too: what writes the mode, what writes a manual output value, and how transfer between them behaves. Decision: keep recording until you could specify the new controller from the trends and the traced interface alone.
How do you rebuild the loop in TIA Portal? #
Rebuild it as a PID_Compact technology object called from a cyclic interrupt OB, with the engineering ranges and output limits entered before the first tuning run; a published walkthrough configures the cyclic OB at 1 ms, which is an example value for a fast loop, not a default.
- Add a cyclic interrupt OB for the controller and choose the interval your process needs; enter the same interval in the technology object's cycle setting so the integral and derivative maths see the time base they will be tuned on.
- Insert PID_Compact, wire the setpoint and the scaled process variable as engineering values, and map the manipulated variable onto the output path the old LMN side drove.
- Enter the output limits the old loop enforced: the FB41 CONT_C manipulated variable clamps at 100 %, as the note on CONT_C LMN output limiting at 100 describes, so set 100 % as the new upper limit to keep saturation and recovery identical.
- Wire the mode control to the operator's existing selector; PID_Compact supports manual and automatic mode, so the operating concept survives the migration unchanged.
- Enter the recorded tuning values as the initial setting, then run the integrated tuning — the parameters are shown in the PID Parameters configuration window and are adapted to the controlled system during tuning.
Decision: do not go live on defaults — recorded values first, tuning second, comparison trends before the S7-300 leaves service.
What do you do about the missing LMN_OP input? #
Trace what LMN_OP does in your project before you write any replacement code — in the reported conversion it was the only PID_CP function the chosen replacement lacked, and a small FC called immediately before the controller reproduced it on a loop that has run trouble-free for years.
The name alone is not a definition. Establish from the connections and from controlled tests when the application changes LMN_OP, whether the effect persists after the condition ends, and whether it moves the output, the mode or an internal state. Then reproduce exactly that behavior: the reported fix was a small FC called immediately before CONT_C — on your rebuild, immediately before PID_Compact — that manipulates the values the controller reads, so the adjustment lands inside the same execution.
Call order is the whole trick. A block in front of the controller shapes what it reads in that cycle; a write after the call would overwrite the freshly calculated output and leave the internal state inconsistent with the value you applied. Keep the adaptation in its own block, documented for what it changes, under which modes and for how long. Decision: implement the adaptation only after the traced behavior is written down, and never by writing blindly into the controller's instance data after the call.
How do you prove the new loop matches before you commission it? #
Prove the replacement on the process boundaries, not in the code: force both controllers to the same manual output and require the same actuator signal, then run the same small setpoint step and require the same direction and response shape.
Worked example, with example values: say the analog output card spans 4–20 mA for 0–100 %, and the recorded trend holds a steady-state output of 58 %. The actuator current at that output must be 4 mA + (0.58 × 16 mA) = 13.28 mA. Put the new controller in manual mode, enter 58 %, and measure at the actuator: 13.28 mA says the output path matches, while 16 mA says the scaling or the limits are wrong — a wiring-and-limits fix, not a tuning problem. Check the input side the same way, with known values applied at the measurement conversion so both implementations represent the same physical quantity. If the converted loop's output sits stuck or pegged, check the LMN_PER conversion first — the note on troubleshooting a CONT_C LMN_PER output covers that failure mode.
Then run a small permitted setpoint step in each direction and require the output to move so it reduces the error, not increases it. Verify the transfer: write the current output into the controller's manual value before the first mode change, then test entry into and exit from manual in a controlled window. One safety note: make the first mode changes at a process state where a wrong output is tolerable, with someone able to drive the actuator by hand.
Decision — commission only when the function inventory maps one-for-one, the manual-output check lands on the calculated value, a setpoint step reproduces the recorded response within the tolerance the process allows, and manual-to-automatic transfer shows no step in the output. Until every one of those is true, the S7-300 stays in control.
Questions asked
Why does no manual PDF exist for the old block version?
Siemens support reported that no PDF exists for the 1994 version 1.0 release, which is why searches for a scan dead-end. Source any legacy documentation only through the manufacturer or its official distribution channels, and rely on the current S7-1500 PID documentation for the replacement you build. The missing manual is not a blocker, because a functional replacement is specified from recorded trends and a traced interface, not from the old code.
Can I copy the old tuning numbers straight into PID_Compact?
Enter the legacy values as the initial setting, then run the integrated tuning and compare the step response against the recorded trend. The PID parameters are shown in the PID Parameters configuration window and are adapted to the controlled system during tuning, so treat the old gain and time values as an initial estimate rather than a finished setting. If the response check reproduces the old trend, the values stand.
What does the LMN_OP input do on the old block?
The name points at an operator-level manipulated-value function, but the name alone does not define the behavior. What it actually moves — output, mode or an internal state — and whether the effect persists, must come from your project's connections and from controlled tests on the running S7-300. Trace it first, then reproduce the traced behavior with the pre-call block, never by writing into the new controller's data after the call.
Do the analog I/O cards migrate along with the controller?
The Siemens migration guide scopes the move as complete migration: central controller plus the complete I/O onto the new control components. The replacement loop does not care which cards measure and command, but every scaling boundary has to be re-verified against whatever hardware the new CPU reads, so redo the conversion and offset checks when the new I/O is wired.