Uploading S7-300 CPU 315F Program via Ethernet: Complete Guide

David Krause14 min read
S7-300SiemensTutorial / How-to
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

Overview

The Siemens SIMATIC S7-300 CPU 315F-2 PN/DP (order number 6ES7315-2FJ14-0AB0 and related variants) is a fail-safe (F-) controller that combines standard PLC operation with safety-integrated functions certified for use up to SIL 3 per IEC 61508 and PL e / Cat. 4 per EN ISO 13849-1. When a 315F must be replaced in the field and the original STEP 7 project archive is unavailable, the only practical recovery path is to upload the active project from the running controller and write it to a fresh Micro Memory Card (MMC).

Because the 315F-2 PN/DP variant ships with an integrated PROFINET interface (X1 P1/P2 RJ45) in addition to the MPI/DP port (X2), and an MPI/DP cable is often not on hand, an Ethernet LAN cable (CAT 5e or CAT 6) is the most reliable link to the engineering station. The PG (programming device) must be on the same IP subnet as the CPU, and the PG/PC interface must be assigned to the correct TCP/IP driver. This guide walks through the complete upload/download workflow, the four real-world faults that surface during the procedure (upload error 2000, F-password prompt, missing Sinamics hardware, missing MP270 panel configuration), and the corrective steps for each.

Prerequisites

Item Specification
CPU SIMATIC S7-300 CPU 315F-2 PN/DP (6ES7315-2FJ14-0AB0), firmware V3.3 or later recommended for STEP 7 V5.5 SP4 / TIA V15.1+
Memory card SIMATIC MMC, 512 KB minimum (6ES7953-8LM20-0AA0) or 2 MB (6ES7953-8LP20-0AA0); F-CPUs require the F-distributed Safety option to be licensed on the MMC
Ethernet cable CAT 5e or CAT 6, RJ45, 1:1 wired (a standard patch cable works for direct PC-to-CPU; a crossover is not required on modern NICs)
Engineering software SIMATIC Manager STEP 7 V5.5 + SP4 (or later), or TIA Portal V15.1 (or later). For Sinamics: STARTER V5.4 (or SINAMICS Startdrive in TIA). For MP270: ProSave V12 (or WinCC flexible 2008 SP5)
Optional packages STEP 7 Safety Advanced V15.1 (or Distributed Safety V5.4 SP5) to handle the F-program offline. Sinamics support packages (SSP) for the drive type installed in the project
PG/PC OS Windows 7 SP1 / Windows 10 (TIA V15.1 and later). Disable Windows firewall during the upload to avoid ICMP/TCP filtering that breaks "Accessible Nodes"
Safety warning: Uploading a running F-program is non-disruptive (the program continues to execute on the CPU), but downloading to the new MMC will momentarily stop the CPU and may trip the safety logic. Schedule the download in a planned stop, observe all machine lockout/tagout procedures, and validate the safety function after download before returning the line to production.

Identifying the Hardware

Confirm the exact MLFB of the CPU before you start. Open the front door of the 315F and read the order number on the rating label. Common variants and their integrated interfaces:

MLFB PROFINET (X1) MPI/DP (X2) Work memory Firmware
6ES7315-2FJ14-0AB0 2-port switch Yes 384 KB code / 384 KB data V3.3
6ES7315-2FK14-0AB0 2-port switch Yes 512 KB code / 512 KB data V3.3
6ES7315-2FH14-0AB0 2-port switch Yes 256 KB code / 256 KB data V3.3

Check the LED pattern on the X1 PROFINET port. The Link LED (green, left) must be solid ON, and the RX/TX LED (yellow, right) must flicker when traffic is present. If the X1 Link LED is OFF, the port is administratively down, the cable is bad, or the CPU is in DEFECT mode (SF/DIAG red, BF red).

Direct Ethernet Connection: PC to CPU 315F

The cleanest path is a point-to-point connection between the PG and the CPU. No switch or hub is required.

  1. Insert a 1:1 wired CAT 6 patch cable between the PG's Ethernet NIC and port X1 P1 on the CPU 315F. Port X1 P2 remains free.
  2. Power up the CPU; the Link LED on X1 P1 should turn solid green within 5 seconds.
  3. On the PG, open Control Panel > Network and Sharing Center > Ethernet > Properties > Internet Protocol Version 4 (TCP/IPv4).
  4. Assign a static IP in the same /24 subnet as the CPU. If the CPU is at 192.168.0.1 (the Siemens PROFINET default for unconfigured devices) use:
IP address:        192.168.0.10
Subnet mask:        255.255.255.0
Default gateway:    (leave blank)

If the CPU already has a project IP (look at a connected HMI or read it from a label on the front door sticker), match the PG's IP to that subnet instead. For example, if the CPU is 10.20.30.40/24, set the PG to 10.20.30.41/24.

Disable the firewall on the PG temporarily, and verify the route with ping 192.168.0.1 in an elevated command prompt. A successful reply confirms layer 3 reachability before STEP 7 even opens.

Configuring the PG/PC Interface

The PG/PC interface must point to the NIC and the S7ONLINE access point.

  1. Open Start > SIMATIC > STEP 7 > Set PG/PC Interface (or in TIA Portal: Options > Set PG/PC Interface).
  2. In the Interface Parameter Assignment Used list, select TCP/IP -> <Your NIC>. Do not select the Auto-detect variant if multiple NICs are active, because Windows will pick the wrong one.
  3. Click Properties and confirm that the NIC's TCP/IP address is the static IP you just assigned. The MAC address must match the PG's physical NIC.
  4. Click OK and restart SIMATIC Manager to commit the assignment.

Verify the S7ONLINE access point is mapped to TCP/IP: open Control Panel > Set PG/PC Interface > Access Points tab. The default S7ONLINE (STEP 7) -> TCP/IP mapping is correct for 315F-2 PN/DP uploads.

Discovering the CPU with Accessible Nodes

  1. Open SIMATIC Manager and choose PLC > Accessible Nodes (or Online > Accessible Nodes in TIA Portal).
  2. The right pane will populate within 3-10 seconds. A direct DCP (Discovery and Configuration Protocol) multicast from STEP 7 will list every PROFINET device on the link, even if it sits on a different subnet.
  3. Expand the entry. You should see the CPU's MAC address, IP, device name, and module type, e.g. CPU 315F-2 PN/DP, 6ES7 315-2FJ14-0AB0, V3.3.
  4. Double-click the entry. SIMATIC Manager will open the Accessible Nodes project view with the CPU listed under Online.

If the CPU is missing from the list, common causes are: firewall on the PG, the CPU is in STOP/DEFECT, the cable is bad, the X1 port LED is OFF, or another PROFINET controller on the link is suppressing DCP frames. Isolate the PG and CPU on a dedicated switch port and re-run.

Uploading the Program from the CPU

  1. In the Accessible Nodes view, select the CPU and choose PLC > Upload Station to PG (German: Station in PG laden).
  2. STEP 7 will read the project from the CPU's flash and reconstruct the S7 program, hardware configuration, and symbol table. For an F-CPU it will also recover the standard and safety program blocks.
  3. Click OK when prompted to save the project. Choose a folder that does not contain an existing project of the same name.
  4. After upload, expand SIMATIC 300 Station > CPU 315F-2 PN/DP > S7 Program > Blocks to verify that OB1, OB35, the FB/FCs, DBs, and the safety blocks (FB 215 F_FB, FB 219 F_ESTOP1, or user-defined F-blocks) are all present.

Resolving Error (2000) During Upload

Message: (2000) Error while uploading the configuration to the programming device (PG). Do you want to continue?

This is a STEP 7 internal warning, not a fatal fault. It indicates that one or more hardware components referenced in the online configuration could not be reconstructed offline because the matching GSD/GSDML file or HSP (Hardware Support Package) is missing on the PG. The S7 program and standard blocks are still uploaded, and continuing is safe.

Cause Fix
Missing GSD/GSDML for a third-party PROFINET device Install the device's GSDML file via Options > Install GSD File in TIA, or Options > Install GSD in STEP 7 V5.5
Missing HSP for a Siemens module not in the catalog Download the matching HSP from Siemens Support (entry ID 23183356) and install it before retrying the upload
Sinamics drive configuration (S120/G120/G130) Install STARTER V5.4 or SINAMICS Startdrive; the SSP for the drive firmware must be loaded into STARTER before re-opening the project
MP / TP / Comfort Panel configuration Install ProTool/ProSave or WinCC flexible matching the panel image version

Best practice: answer Yes to "Do you want to continue?" to get the S7 program on the PG, then install the missing components and re-upload only the hardware configuration via PLC > Upload Hardware Configuration.

Handling the F-Password for the Safety Program

When you try to open, modify, or download the safety-related portion of the F-CPU, STEP 7 raises:

Set Up Access Rights - A password is required to change or delete the safety-related program on the module CPU 315F-2 PN/DP.

For the 315F, the safety program is written to a separately password-protected container (F-Container) inside the MMC. The default password at first startup is S7300F (case-sensitive). The OEM or system integrator is expected to change it during commissioning. If the password has been changed and lost, the safety program is unrecoverable without the original project.

Situation Path
Default password still in place Enter S7300F in the password dialog and continue
Password changed, but the original STEP 7 project is available Open the original project on the PG; the F-password is stored in the offline project's F-Container metadata
Password changed and no original project The safety program cannot be opened, edited, or downloaded. The CPU can still run the existing program on the existing MMC, but the F-program cannot be re-flashed. The only recovery is to obtain the original project from the OEM or system integrator
MMC corruption Order a new MMC (6ES7953-8LM20 / 8LP20) and have the F-Container re-issued by the OEM; do not attempt to bypass the F-password
Safety integrity: Bypassing the F-password is not technically possible on a 315F - the F-CPU's firmware enforces the password check. This is by design and required for SIL 3 / PL e certification. Any attempt to crack or reset the password will permanently brick the F-CPU's safety logic.

Missing Sinamics Hardware Configuration

After upload, the S7 project shows the CPU and the ET200S PN stations correctly, but the Sinamics drive appears as an empty slot or with a yellow question mark. The fix is to install the matching STARTER support package:

  1. Identify the Sinamics type (e.g. S120 CU320-2 DP, G120 with CU240E-2 PN, G130). Read the part number from the drive's rating plate.
  2. Install STARTER V5.4 SP1 (or the matching version for your drive firmware) from the Siemens Support download portal.
  3. In STARTER, run Options > Install Support Packages and load the SSP for the exact firmware version reported by the drive (e.g. V4.7 for a CU320-2 with firmware 4.7.6). The SSP file is named *.zip and contains the device descriptions.
  4. Re-open the uploaded STEP 7 project. The Sinamics slot should now resolve. If it does not, run PLC > Upload Station to PG again with STARTER installed; the second upload will pick up the new device catalog.

For a S120 with multiple Line/CU/Motor modules, the missing component is often a CX32 controller extension or a TM31 terminal module - both are added to the project via the STARTER device library, not via STEP 7.

MP270 Touch Panel Configuration

MP270 panels (6AV6 542-0CA10-0AX0 and related) use ProTool/ProSave for backup and restore. The uploaded STEP 7 project contains the WinCC flexible or ProTool integration, but the runtime image and recipe data live on the panel itself.

  1. Install ProSave V12 (bundled with WinCC flexible 2008 SP5) on the PG.
  2. Connect the PG to the MP270's Ethernet port (or use the MPI/DP port if the original wiring supports it).
  3. Open ProSave, select Device: MP270, Connection: Ethernet, and enter the panel's IP (often 192.168.0.50 on a default MP270). Set the PG's IP to the same subnet.
  4. Click Restore > Backup to download the panel image, recipe DBs, and alarm logs from the MP270 to the PG. The backup file is a *.psb archive that can be restored onto a replacement panel later.

To push the integrated configuration into STEP 7, open WinCC flexible 2008 SP5, choose Project > Transfer > Transfer to PG, and select Ethernet. The integration tags, screens, and area pointers will be merged into the HMI station inside the STEP 7 project.

Downloading to the New MMC and CPU

  1. Insert the new MMC into the programming device's Prommer (external prommer such as the Field PG's internal slot, or a USB prommer like the SIMATIC USB Prommer 6ES7792-0AA00-0XA0).
  2. In SIMATIC Manager, open the uploaded project, expand SIMATIC 300 Station > CPU 315F-2 PN/DP, and right-click the station. Choose PLC > Download to Memory Card (German: Zielsystem > Memory Card laden).
  3. Select the target drive (the prommer's path). STEP 7 will write the system data, S7 program, and F-Container. The MMC is locked to the source CPU's serial number for the F-program.
  4. Insert the programmed MMC into the replacement CPU 315F-2 PN/DP, power up, and verify the SF/DIAG LED remains OFF.
  5. Use PLC > Download (online) to push any hardware configuration changes that the MMC alone does not cover (e.g. IP address reassignment if the new CPU is at a different IP).
MMC note: The F-Container is bound to the MMC, not the CPU. Moving the MMC to another 315F-2 PN/DP will not work unless the new CPU has the same serial number or the F-program is re-issued with the correct signature. Always order a fresh MMC and re-download the entire project for a true CPU swap.

Verification

  1. Open PLC > Accessible Nodes and confirm the replacement CPU is reachable.
  2. Open PLC > Diagnostic > Module Information and check the diagnostic buffer for OB start events (OB100, OB101, OB102) and F-initialization events (OB82, OB85 with F-Container OK). No SF events should be present.
  3. Open PLC > Monitor/Modify and verify the inputs read the same as the old CPU. Force a known output to confirm program flow.
  4. Trigger each safety function (E-stop, light curtain, guard door) and confirm the F-program reacts with the expected shut-down signature in the diagnostic buffer.
  5. Compare the cyclic time, OB1 execution, and the F-runtime (under Safety > F-Runtime in the safety administration editor) to the values captured on the original CPU. A delta larger than 10 percent suggests a hardware mismatch (different module revision) that should be investigated before the line is released to production.

Troubleshooting Matrix

Symptom Root cause Action
Accessible Nodes returns empty Firewall, wrong subnet, defective cable Disable firewall; ping the CPU; replace cable; isolate PG and CPU on a dedicated switch port
Error (2000) on upload Missing GSD/GSDML/HSP/SSP for a referenced device Install the matching device description, accept the prompt to continue, re-upload the hardware configuration
F-password prompt blocks download F-Container password is set and unknown Use the original project; otherwise the F-program cannot be re-flashed
Sinamics slot is empty after upload STARTER/SSP not installed Install STARTER + SSP for the exact drive firmware, re-upload
MP270 panel empty after upload ProTool/WinCC flexible not installed Install ProSave + WinCC flexible 2008 SP5, restore the panel image from a ProSave backup
SF red, BF red on PN port IP conflict or duplicate device name Reset the CPU to factory defaults (MRES), re-assign the IP and PROFINET device name
CPU stays in STOP after download F-Container mismatch Verify the F-Container was written with the correct password; re-insert the original MMC if available
BF2 red (PROFINET bus fault) Missing or mis-configured PROFINET device name Use PLC > Ethernet > Assign PROFINET Device Name to give each PN device a unique name

FAQ

What is the default IP of a brand-new CPU 315F-2 PN/DP with no project?

Siemens ships 315F-2 PN/DP without an IP. PROFINET devices default to 0.0.0.0 and respond to DCP/ARP probes. If you set the PG to 192.168.0.10/24 and run Accessible Nodes, the CPU will appear at 0.0.0.0 until you assign it an IP via PLC > Ethernet > Assign Ethernet Address.

Can I upload an S7-300 F-CPU through the MPI/DP port instead of PROFINET?

Yes. Use the same steps but select the PC Adapter (MPI) or a CP5611/CP5621 card in the PG/PC interface assignment. The MPI address of the CPU 315F defaults to 2, and the bus baud rate is 187.5 kbps. Accessible Nodes still works over MPI.

Why does STEP 7 ask for a password even though the F-CPU has no password protection active?

The F-CPU's F-Container always has a password - the default S7300F is enabled out of the box. The dialog appears for any read, write, or verify on the safety program. Enter the default password, then immediately change it under Safety > Administration > Change Password.

What is the difference between error (2000) and a fatal upload failure?

Error (2000) is a warning that a single component of the HWCN (hardware configuration) could not be reconstructed. The S7 program and blocks are still uploaded, and the project compiles. A fatal failure (error 0xFFFF / 0xE0F1) aborts the upload entirely and indicates a corrupted MMC or a hardware fault on the CPU.

Do I need STARTER installed on the PG to download the S7 program to the new CPU?

No. STARTER is only required to view or edit the Sinamics drive configuration. The S7 program and standard PLC blocks download without STARTER. However, if the drive slots are unresolved the online configuration may not match the physical line, so install STARTER + the matching SSP for the drive firmware before commissioning.

Back to blog