Replacing S7-300 with S7-1200: Engineering Migration Guide

David Krause17 min read
Application NoteS7-1200Siemens
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

Replacing S7-300 with S7-1200: Engineering Migration Guide for Position-Controlled Applications

Direct one-to-one substitution of a SIMATIC S7-300 CPU with a SIMATIC S7-1200 is rarely a sound engineering decision when the original machine performed closed-loop position control, high-speed counting, or precision motion. The S7-1200 occupies the lower-cost, lower-complexity tier of the Siemens controller family and is dimensioned for "good enough" machine control rather than for replicating every capability of a generation-change migration to S7-1500. Before selecting a replacement CPU, the controls engineer must quantify the original application's timing, accuracy, I/O throughput, and functional scope. This article walks through the engineering decision path that determines whether S7-1200, S7-1500, or a distributed I/O topology (e.g., ET 200SP) is the correct successor for an S7-300 machine.

1. Overview: Why a Functional Specification Must Precede the Hardware Pick

A common source of migration risk is treating the controller swap as a hardware-bill-of-materials exercise. The S7-300 is a legacy modular PLC that was frequently deployed with integrated analog inputs, integrated high-speed counters, and PTO/PWM outputs on compact CPUs such as the CPU 313C. The S7-1200 is a compact, scalar PLC with on-board high-speed I/O and a streamlined instruction set. Pin-compatible behavior is not guaranteed; functional equivalence must be derived from the original program, I/O list, and timing budget.

Siemens' official guidance, the "Guide for Migrating SIMATIC S7-300/S7-400 to SIMATIC S7-1500", recommends the S7-1500 family as the primary successor for S7-300 systems. It documents functional deltas in PROFINET, motion control, security, diagnostics, and instruction set that the S7-1200 cannot fully cover. The S7-1200 appears in this document only as a complement, not as a replacement target for the S7-300.

Engineering rule: Capture the cycle time, scan jitter, I/O update rate, position-loop bandwidth, and fail-safe requirements from the existing S7-300 project before evaluating a replacement. Migration is a functional, not catalog, exercise.

2. The Direct-Replacement Trap

Three mechanical realities make blind CPU substitution dangerous in motion-driven machines:

  1. Mechanical settling time. Moving masses do not stop on command. Triggering a stop at a target position results in a final position that overshoots or undershoots the target by an amount dictated by the actuator's deceleration profile and the system's mechanical friction. A controller that introduces additional latency will systematically bias that final position.
  2. Position measurement rate. Position feedback must arrive at the controller faster than the mechanical response of the moving axis. If the analog-input scan or the controller scan period exceeds one millisecond, the controller effectively "sees" the axis in the past.
  3. Actuator dead time. The time between issuing a stop command and the actuator beginning to decelerate is non-zero. This dead time adds directly to the total loop latency and must be subtracted from any timing budget the controller can hope to meet.

For a CAM-operated press machine, all three effects couple directly to the stroke-length accuracy delivered to the workpiece. The operator sets a stroke at the HMI; the linear scale measures the actual stroke; the controller must close the loop on this measurement during the press cycle. Any incremental processing delay introduced by a slower CPU translates into a measurable dimensional error on the formed part.

3. Application Profile: CAM-Operated Press Machine

The reference application is a CAM-operated press with the following control architecture:

  • Operator input: stroke length set at the HMI, transferred to the PLC over PROFINET or MPI/Profibus.
  • Position feedback: linear scale (typically 4–20 mA, 0–10 V, or SSI) wired to the analog inputs of the PLC.
  • Actuation: hydraulic or servo actuator driven by an analog output or fieldbus-controlled drive.
  • Control loop: closed-loop position control, with the linear scale serving as the feedback transducer.

The critical performance metric is the deviation between the requested stroke (setpoint from HMI) and the achieved stroke (measured by the linear scale at bottom dead center). Deviations in the order of a few tenths of a millimeter are typically acceptable in metal forming; deviations in the order of a few millimeters indicate that the loop latency is consuming the entire mechanical tolerance window.

For a hydraulic press with a typical cycle time in the 1–10 second range, the dynamic portion of the stroke is short. The controller must capture the linear-scale voltage at the moment the press reaches the commanded position, with millisecond-class determinism, and latch it before the analog input has refreshed to the next sample.

4. Control Platform Comparison: S7-300 vs S7-1200 vs S7-1500

The S7-300 family (e.g., CPU 313C, CPU 314, CPU 315-2 PN/DP) is a mid-range modular PLC that was the workhorse of European machine building from the late 1990s through the 2010s. The S7-1200 is a compact, scalar controller aimed at smaller machines; the S7-1500 is the current Siemens mid-to-high range. Below is a planning-level comparison that an engineer should validate against the latest Siemens datasheets before committing to a bill of materials.

Characteristic SIMATIC S7-300 (e.g., CPU 313C) SIMATIC S7-1200 SIMATIC S7-1500 / S7-1500C
Typical positioning in Siemens portfolio Legacy mid-range, discontinued generation Compact, basic machines Current mid-to-high range, recommended S7-300 successor
On-board high-speed counters / PTO Available on compact CPUs (e.g., 313C integrates counters and PTO) Available on most CPUs (max count frequency per datasheet) Available; S7-1500C integrates the functionality of the S7-313C
Analog input integration Onboard AI on 313C; SM 331 modules for larger systems Onboard AI on CPU (e.g., CPU 1214C, 1215C, 1217C) Onboard AI on S7-1500C; otherwise SM 531 modules
Bit-instruction performance class 0.1–0.2 µs range (CPU 313C, legacy spec) Slower bit-instruction execution than S7-1500 Faster bit-instruction execution than S7-1200; significant scan-time headroom
Motion control capability Via FM 351/352/453 or drive-controlled loops Axis control object for stepper/servo via PTO or analog; entry-level scope Full motion control library, camming, gearing, kinematics option packages
Programming environment STEP 7 V5.x or compatible TIA Portal (Basic or higher) TIA Portal (Professional for advanced features)
Distributed I/O option ET 200M, ET 200S ET 200SP, ET 200MP, ET 200AL via PROFINET ET 200SP, ET 200MP, ET 200AL, ET 200M via PROFINET
Migration toolchain n/a No official S7-300 migration target Officially documented migration path with conversion tooling (TIA Portal)
Disclaimer: Numerical performance values for the S7-300 CPU 313C, S7-1200, and S7-1500 must be confirmed against current Siemens datasheets (e.g., CPU 313C datasheet 6ES7313-..., S7-1200 System Manual, S7-1500 System Manual). The qualitative ordering — S7-1500 faster than S7-1200, both slower than S7-1500C in integrated-feature density — is documented in Siemens' own S7-300 to S7-1500 migration guide.

5. Cycle Time and Processing Delay Analysis

The fundamental question for a press-machine migration is: How much scan jitter can the loop tolerate before the linear-scale reading at the commanded position is wrong?

For a moving axis, the controller's processing delay Δt appears as a positional error:

Δx = v × Δt

where v is the ram velocity at the moment the loop commands a stop, and Δt is the sum of:

  • analog input conversion + scan time of the AI module,
  • user program execution (OB1 cycle),
  • communication update to the actuator (PROFINET IRT cycle or analog output update),
  • actuator dead time (valve spool movement, hydraulic response, etc.).

Worked example (hypothetical numbers for illustration, not vendor specs):

  1. Assume a press with a peak ram velocity of v = 200 mm/s near the bottom of the stroke.
  2. Allowable positional error at the workpiece: Δx = 0.1 mm.
  3. Maximum tolerated loop latency: Δt = Δx / v = 0.1 mm / 200 mm/s = 0.5 ms.
  4. Subtract the actuator dead time (assume 1.5 ms for a proportional hydraulic valve) and the AI module conversion time (assume 1 ms for a 16-bit module at 50 Hz rejection): remaining budget for controller scan and output update = 0.5 ms − 1.5 ms − 1.0 ms = negative.

The negative result indicates that the loop cannot be closed on a generic PLC scan alone; the position loop must be moved into the drive (e.g., SINAMICS V90, S210, or S120 with closed-loop position control), and the PLC's role reduced to supervisory setpoint delivery. This is the same architectural conclusion that Siemens' motion-control documentation reaches for any precision press.

Engineering conclusion: A press machine whose position-loop accuracy depends on PLC scan time alone is mis-architected. The PLC delivers the setpoint, the drive closes the loop. The PLC must be fast enough to deliver that setpoint deterministically and read back the actual value without dropping samples, but the closed-loop bandwidth is the drive's job.

6. Analog Input Path for Linear Scale Feedback

The linear scale on the press is typically one of:

  • 4–20 mA or 0–10 V analog output scale: connected to the PLC's AI or to a distributed AI module on PROFINET. The signal is sampled at a rate determined by the AI module's conversion time and integration setting (e.g., 50 Hz / 60 Hz / 400 Hz line-frequency rejection).
  • SSI absolute encoder: connected to an SSI input module or to the PLC's onboard SSI input (S7-1200 does not natively decode SSI on most CPUs; the S7-1500C and certain S7-1500 CPUs do, or an SM counter module is required).
  • Incremental encoder (HTL/RS422): connected to high-speed counter inputs.

For an analog-output linear scale, the analog input path is the bottleneck. The S7-1200's onboard AI conversion time is published in the S7-1200 System Manual for each CPU variant. A typical S7-1214C integrates 2 AI with a fixed conversion time per channel; a S7-1217C provides higher-performance AI. If the press requires more than 2–4 analog inputs, an external SM 1231 or an ET 200SP AI module on PROFINET is required.

For an SSI scale, the S7-1200 must use either:

  • A signal board or signal module that exposes SSI, or
  • A high-speed counter module configured for SSI (the standard HSC inputs on most S7-1200 CPUs do not natively decode SSI), or
  • Distributed ET 200SP counter / SSI module over PROFINET.

The Siemens migration guide explicitly documents that the S7-1500 family (including the S7-1500C) provides the same integrated functionality as the legacy S7-313C, including SSI decoding, with the additional benefit of higher update rates and a faster bit-instruction set. This is the technical reason an S7-1500C is frequently selected as a drop-in functional replacement for a CPU 313C in precision machines.

7. High-Speed Counter, PTO, and Encoder Integration

The S7-313C integrates high-speed counters (24 V incremental, 3 channels on the original variant) and PTO outputs (2 channels). The S7-1200 supports HSC (configurable up to 200 kHz on CPU 1217C high-speed inputs) and PTO (PTO on most S7-1200 CPUs, with PWM on outputs 0 and 1). The S7-1500C supports HSC and PTO/PWM at higher performance classes, plus full motion-control technology objects for camming, gearing, and absolute synchronous operation.

For the press machine, the relevant questions are:

  1. Does the original program use HSC for ram position, or does it use the linear-scale analog signal alone?
  2. Does the machine rely on a PTO-driven stepper/servo (rare on hydraulic presses) or on a fieldbus-driven drive?
  3. Does the HMI-based stroke setpoint arrive over PROFINET, MPI, or Profibus?

If the answer to (3) involves Profibus, the S7-1200 cannot be used without an additional Profibus master module (CM 1243-5) or a gateway. The S7-1500C natively supports Profibus only on specific variants; most S7-1500 systems migrate the fieldbus to PROFINET. The CM 1243-5 acts as a DP master, allowing the S7-1200 to talk to legacy Profibus drives, but the resulting network must be re-commissioned.

8. Engineering Specification Requirements (What to Capture Before Migration)

Before any S7-1200 / S7-1500 / S7-1500C selection can be defended, the following specifications must be lifted out of the existing S7-300 program and machine documentation:

Parameter Where to Capture It Decision Implication
OB1 scan time (typical and worst case) PLC → Module Information / online diagnostics Determines whether the PLC can deliver setpoints within the mechanical tolerance window
Analog input module conversion time and channel count Hardware config in STEP 7 V5.x; AI module datasheet Drives SM 1231 / SM 531 / ET 200SP AI module selection
High-speed counter channel count and max count rate CPU 313C hardware config; HSC program in S7 program Drives HSC technology object selection on S7-1200 or S7-1500C
Fieldbus used (MPI / Profibus / PROFINET) Hardware config; physical wiring Drives CM module selection or migration to PROFINET
Drive interface (analog, Profidrive on Profibus, Profidrive on PROFINET, PTO) Drive parameter file; hardware config Drives drive-side migration plan; the drive is often the bigger migration item than the PLC
HMI panels and tags used WinCC flexible / TIA Portal HMI project Drives HMI migration path (panel swap vs. firmware update)
Safety functions (if any) Safety program / F-CPU configuration S7-1200F vs. S7-1500F selection; the S7-1200F exists but with limited safety functionality vs. S7-1500F
Process diagnostics, alarms, and logging requirements Program documentation; alarm SFCs in S7 program Drives choice of diagnostic concept (web server, OPC UA, TIA Portal HMI)

9. Migration Workflow with the TIA Selection Tool

The TIA Selection Tool (TST) is the official Siemens configuration utility for sizing SIMATIC hardware. It accepts an existing S7-300 configuration (or a description of the I/O list) and proposes a successor bill of materials, primarily targeting the S7-1500 family.

  1. Open the TIA Selection Tool and select Migration mode.
  2. Import the existing S7-300 hardware configuration (STEP 7 V5.x export) or enter the I/O list manually.
  3. The tool maps each S7-300 module to the closest S7-1500 or ET 200SP equivalent. Where no equivalent exists, the tool flags a manual decision.
  4. Apply the application profile (e.g., "press machine, position control, 8 AI, 16 DI, 16 DO, PROFINET") to constrain the suggested CPU class.
  5. Export the resulting bill of materials as a parts list for procurement.

The tool's primary target is the S7-1500 family. It will not suggest an S7-1200 as a 1:1 replacement for an S7-300 because Siemens does not position the S7-1200 as an S7-300 successor. Selecting an S7-1200 in TST is typically a manual override that the engineer must justify against the timing and I/O budget of the application.

Practical note: If the TST surfaces an S7-1500C as the suggested replacement, that is a strong indication that the original S7-300 compact CPU (e.g., 313C) was carrying integrated functionality that the S7-1200 cannot fully replicate in a single drop-in. The S7-1500C exists precisely to absorb the integrated-feature legacy of the 313C.

10. Decision Matrix: When to Choose S7-1200, S7-1500, or ET 200SP

Application Characteristic Suggested Successor Rationale
Standalone machine, no high-speed motion, simple I/O, < 50 ms loop tolerance S7-1200 (e.g., CPU 1215C or 1217C) S7-1200 is positioned for compact, simpler machines; cost-optimized
CPU 313C direct functional replacement (HSC, PTO, integrated AI) S7-1500C (e.g., CPU 1512C-1 PN) S7-1500C inherits the S7-313C's integrated I/O and adds higher performance
Press machine with closed-loop position control, < 1 ms setpoint determinism S7-1500 (e.g., CPU 1515-2 PN) with drive-based position loop Drive handles the position loop; PLC delivers setpoints with PROFINET IRT
Distributed I/O expansion without changing the CPU ET 200SP on PROFINET Modular I/O that integrates with both S7-1200 and S7-1500
Safety-rated application (SIL 3 / PLe) S7-1500F or S7-1200F (limited safety scope) S7-1500F is the recommended platform; S7-1200F is restricted to lower safety classes
Existing Profibus-only network with no PROFINET drives S7-1500 with CM 1542-5 (DP master) or migrate drives to PROFINET Profibus can be retained with CM, but PROFINET is the strategic path

11. Functional Replacement: An Acceptable Pattern for Some Press Machines

If the existing S7-300 application is a standalone press whose position loop is closed in the drive (typical for modern hydraulic presses with proportional valves and integrated drive controllers), the PLC's role reduces to:

  1. Read the stroke setpoint from the HMI.
  2. Forward the setpoint to the drive over PROFINET / Profidrive telegram.
  3. Read back the actual position from the drive (telegram 1, 2, 3, or 5).
  4. Implement the safety and sequencing logic (two-hand control, light curtain, top-stop, bottom-stop).

In this reduced role, the S7-1200 may be fast enough. The cycle-time budget is dominated by PROFINET update time (typically 1–4 ms) and drive-side processing, not by the PLC scan. The engineer's job is to confirm that the application really is in this reduced role, not in a tight PLC-side position loop that the S7-1200 cannot honor.

Verification step: Open the original S7-300 program and search for the linear-scale analog input (e.g., PIW 752 on a CPU 313C with SM 331) and the actuator command output (e.g., PQW 752). Trace the program path. If the program closes the loop in the OB1 (compute error = setpoint − feedback → scale to valve command → write to PQW), the loop is PLC-side and the migration must target the S7-1500 family, not the S7-1200.

12. Verification and Commissioning Checklist

After a successful migration, run the following checks before resuming production:

  1. Functional test against the S7-300 program. For every I/O point in the original program, confirm that the new configuration reads and writes the same physical signal. Pay particular attention to AI range scaling, since S7-1200 AI scaling logic differs from SM 331 scaling blocks in STEP 7 V5.x.
  2. Cycle time. Use the online diagnostics in TIA Portal to read the OB1 minimum, maximum, and average cycle times. Compare against the original S7-300. The new system should be at least as fast; if it is slower, the migration choice is suspect.
  3. Position accuracy. Run the press through a full stroke cycle at three reference setpoints (e.g., 25%, 50%, 75% of maximum stroke). Measure actual stroke with a calibrated indicator. Compare against the HMI-reported stroke. Acceptable deviation is application-specific; for precision forming, 0.05–0.1 mm is a common target.
  4. Jitter test. Capture the HMI setpoint and the linear-scale feedback on a high-speed chart recorder over 50 cycles. Compute the standard deviation of the achieved stroke. If the standard deviation is dominated by mechanical factors, the PLC is not the bottleneck. If the standard deviation correlates with PLC cycle-time variation, the PLC is too slow.
  5. Fieldbus health. Check PROFINET / Profibus error counters, diagnostic buffer entries, and re-tries over a one-hour burn-in. Non-zero error counters indicate that the network configuration or update-time setting needs review.

13. Field-Proven Recommendations

  1. Do not migrate a CPU 313C to an S7-1200 without first documenting the functional scope (HSC, PTO, AI, DI, DO) and confirming that the S7-1200 covers every function natively or via a documented expansion.
  2. For position-controlled presses, prefer the S7-1500 family and use the TIA Selection Tool to size the CPU and ET 200SP stations.
  3. Move the position loop into the drive whenever the loop budget is sub-millisecond. The PLC delivers the setpoint; the drive closes the loop.
  4. Treat the drive and the fieldbus as the primary migration subjects, with the PLC as the supervisory controller. Migrating the PLC without migrating the drive often produces a system that is dimensionally correct on paper but cannot deliver the required dynamic performance.
  5. Use the S7-1500C (not the S7-1200) as the closest functional replacement for a CPU 313C. The S7-1500C's on-board HSC, PTO, and AI features map directly onto the S7-313C's integrated I/O.

Can I directly replace an S7-300 CPU 313C with an S7-1200?

Not as a pin-for-pin swap. The S7-1200 is a compact, lower-performance controller that is not dimensioned as a 1:1 S7-300 successor. Siemens' official migration guide recommends the S7-1500 family as the S7-300 successor. Use the TIA Selection Tool to validate the migration target, and consider the S7-1500C if you need the integrated HSC, PTO, and AI that the CPU 313C provided.

Is the S7-1200 fast enough for a press machine with a linear scale?

It depends on whether the position loop is closed in the PLC or in the drive. If the drive handles the closed loop and the PLC only delivers setpoints over PROFINET, the S7-1200 is generally fast enough. If the PLC itself computes the position error from the linear-scale analog input and writes to an analog output to a proportional valve, you should target the S7-1500 family because the loop latency budget is sub-millisecond.

Which Siemens CPU is the closest functional replacement for the S7-313C?

The S7-1500C, e.g. CPU 1512C-1 PN, is positioned by Siemens as the functional replacement for the legacy S7-313C. It integrates high-speed counters, PTO/PWM outputs, and analog inputs on the CPU module, matching the S7-313C's integrated-feature footprint while adding the performance and instruction set of the S7-1500 family.

What is the role of the TIA Selection Tool in an S7-300 migration?

The TIA Selection Tool is Siemens' official configuration utility for sizing SIMATIC hardware. In migration mode, it accepts an existing S7-300 configuration and proposes a successor bill of materials, primarily targeting the S7-1500 and ET 200SP families. It does not propose an S7-1200 as an S7-300 successor; choosing an S7-1200 is a manual override that the engineer must justify against the application's I/O and timing budget.

How do I migrate an S7-300 Profibus network to a new PLC?

On the S7-1500 side, add a CM 1542-5 communications module to act as a Profibus DP master, retaining the existing Profibus drives and Profibus HMI panels. The strategic Siemens path is to migrate the drives and HMIs to PROFINET over time, retiring Profibus in phases. On the S7-1200 side, the CM 1243-5 module provides Profibus DP master capability, but the engineer should confirm the Profibus slave count and cyclic data volume against the S7-1200's processing capacity.

Back to blog