S7-1200 IP Address Permanent Change in TIA Portal V15.1
A common commissioning scenario on a new machine involves a CPU 1215 (or 1214 / 1212) configured with SINAMICS G120C frequency converters, where a service PC on site only has the TIA Portal V15.1 trial package installed. The technician can browse the PLC, see it under "Accessible devices", and even assign a new IP through Online & Diagnostics > Assign IP address, but the value reverts to the original after the next power cycle. The "Go online" and "Compile" toolbar options are grayed out in project view, and no project file exists on the site PC. This article explains the root cause, the three officially supported ways to make an IP change survive a power cycle, and the exact download / compile sequence required by TIA Portal V15.1 for a SIMATIC S7-1200 system.
1. Problem Description
Reproduction conditions:
- Hardware: SIMATIC S7-1200 CPU 1215 DC/DC/DC (6ES7215-1AG40-0XB0 or equivalent firmware V4.x), two SINAMICS G120C drives on PROFINET.
- Software: TIA Portal V15.1 trial, two DVD set installed, license still active.
- Topology: Direct Ethernet cable between the service PC and the CPU; PG/PC interface correctly bound to the Intel / Realtek NIC.
- Symptom 1: PLC is reachable under "Accessible nodes" with the original IP.
- Symptom 2: In the project tree, the device icon shows "Compile" or "Go offline" grayed out, indicating the project on disk is empty or the device configuration is not editable.
- Symptom 3: Online & Diagnostics > Functions > Assign IP address accepts a new value, but after power off / on the original IP is restored.
- Symptom 4: "Upload device as new station" returns "Upload not possible" because Startdrive / Startdrive HSP are missing on the service PC.
2. Root Cause Analysis
The S7-1200 stores the active IP address in two distinct locations:
| Location | What is stored | Survives power cycle? | Editable from |
|---|---|---|---|
| Volatile IP context (Online & Diagnostics > Assign IP address) | Single temporary IPv4 address from the DCP / ARP discovery layer | No — cleared on STOP→RUN transition and on every power-up | Online & Diagnostics view, any PG, even without project |
| Non-volatile project configuration in the CPU load memory | IP address, subnet mask, router address, PROFINET device name, IO configuration, all FB / DB / OB blocks | Yes — reloaded on every power-up | Project hardware configuration (Device View > Properties > Ethernet addresses) |
When the PLC powers up, the startup routine (OB100) reads the project configuration from load memory and overwrites any temporary address that may have been set. The Online & Diagnostics > Assign IP address function is therefore a maintenance / commissioning tool, not a permanent configuration method. To make a new IP survive a power cycle, the value must be written into the project's hardware configuration and the project must be downloaded to the CPU.
3. Three Officially Supported IP Change Methods
Per the SIMATIC S7-1200 Programmable Controller system manual, IP addresses can be assigned to a CPU using the STEP 7 / TIA Portal programming package (Configuring an IP address for a CPU in your project). The three methods differ in persistence:
| Method | Persistence | Requires project on PC? | Use case |
|---|---|---|---|
| Online & Diagnostics > Functions > Assign IP address | Volatile only | No | First contact with an unknown CPU, recovery from forgotten IP |
| Project hardware configuration > Ethernet addresses > Compile > Download to device | Permanent (stored in load memory) | Yes (or you must upload first) | Normal commissioning, IP migration on a running machine |
| SIMATIC Automation Tool / PRONETA / DCP tool | Volatile for S7-1200 if name and IP are part of downloaded PROFINET config | No | Bulk commissioning, network discovery, not a substitute for a download |
4. Prerequisites
Before attempting a permanent IP change, verify the following on the service PC:
- TIA Portal V15.1 with a valid trial or full license. The trial DVD set includes the basic STEP 7 Professional option.
- Startdrive V15.1 — required for the SINAMICS G120C. Without it, the device catalog will not show the G120C and the upload from CPU will fail.
-
Startdrive HSP (Hardware Support Package) V15.1 matching the G120C firmware. For a G120C with FW V4.7 (typical for units shipped 2018–2020) install
HSP0183 Startdrive_G120C_V15.1or newer. HSPs are downloaded from the Siemens Support entry 109770303. - S7-1200 HSP for V15.1 if the CPU is a newer 6ES7215-1AG40-0XB0 with FW V4.4 or higher. The HSP is installed via Options > Support Packages > Install.
- PG/PC interface set to the physical Ethernet adapter used for the direct connection (S7ONLINE access point → Intel / Realtek NIC → TCP/IP).
- Direct Ethernet cable (not crossed, modern NICs auto-MDIX) or via the plant switch with no other DHCP server on the segment.
5. Permanent IP Change — Step-by-Step (Project Available on PC)
Use this procedure when the original TIA Portal project is available on the service PC.
- Open the project. In the project tree, expand the CPU (for example
PLC_1 [CPU 1215 DC/DC/DC]). - Double-click Device configuration to open the device view.
- Click the CPU's PROFINET interface (the green port label
X1 P1orX1 P2). - In the inspector window, switch to Properties > General > Ethernet addresses.
- Clear "Set IP address using a different method" if it is selected, and enter the new values:
IP address: 192.168.0.10
Subnet mask: 255.255.255.0
Router address: 192.168.0.1(only if used) - For each G120C in the same project, repeat step 3–5. G120C addresses must be on the same subnet.
- Right-click the CPU → Compile > Hardware and software (rebuild all). Wait for the green check.
- Right-click the CPU → Download to device > All. In the download dialog, select "Search for compatible devices" rather than exact match, so TIA Portal will find the CPU by its current reachable IP and the new IP will be flashed.
- In the Load preview dialog, check the box "Load IP address from device configuration". This is the option that writes the new IP to the CPU.
- Confirm the stop-mode prompt, click Load, then Finish.
- Power cycle the CPU. After restart it will come up with the new IP. Verify with Online & Diagnostics > Accessible devices.
6. Permanent IP Change — Step-by-Step (No Project Available on PC)
Use this procedure when the original project is not on the service PC, only the trial package is installed, and the on-site machine must be re-IPed without disturbing the running program. The principle is to recover the project from the CPU, change the IP, then download the modified project back.
- Create a new empty project in TIA Portal V15.1.
- From the project tree, double-click "Add new device" and add the same CPU type as detected (for example, CPU 1215 DC/DC/DC > 6ES7215-1AG40-0XB0 > V4.4). This sets up a valid hardware shell to receive the upload.
- Select the CPU in the project tree. The Online toolbar icon is no longer grayed out because a real device is in the project.
- From the menu, choose Online > Upload device as new station (HW and SW).
- In the next dialog, choose "Search for compatible devices in the subnet". TIA Portal will list the CPU with its current IP and PROFINET name.
- Select the CPU and confirm. The full project (ladder, FBs, DBs, device configuration) is reconstructed on the PC.
- Open Device configuration > PROFINET interface > Ethernet addresses on the uploaded CPU. Enter the new IP, subnet, and router.
- Repeat for the G120C devices if their IPs must change.
- Compile > Hardware and software (rebuild all).
- Right-click the CPU → Download to device > All. Use compatible devices as the search mode and tick "Load IP address from device configuration".
- Power cycle the CPU to confirm the new IP is persistent.
If Upload device as new station returns an error that Startdrive or Startdrive HSP is missing, install both (see section 4) and repeat. The G120C topology cannot be reconstructed without Startdrive.
7. Handling the SINAMICS G120C on the Same Subnet
When the IP change also involves the G120C, follow the additional steps:
- After the CPU IP change, open the device view of the G120C and assign it a unique IP in the same subnet. G120C default is
192.168.0.20; you can shift to192.168.0.21and192.168.0.22. - Set the G120C PROFINET device name to match the project (for example
g120c-1). The PROFINET name is what the CPU uses to identify the device on the network. - Compile the G120C device configuration separately if the project is partitioned, or compile the whole project.
- Download the G120C configuration. TIA Portal will warn that the G120C will reset to factory defaults if the device name does not match. Confirm; the G120C will reboot and pick up the new IP and name.
- For the second G120C, repeat with offset addresses.
8. Verification Procedure
After the download and power cycle, perform the following checks to confirm the IP change is permanent and the network is healthy:
- Accessible devices — Open Online & Diagnostics > Accessible devices, search the subnet. The CPU must appear with the new IP. The old IP must not appear.
-
Ping test — From the Windows command line, run
ping 192.168.0.10 -t. The CPU must respond to ICMP. The default S7-1200 firmware allows ICMP on the PROFINET interface. - Power-cycle test — Disconnect power, wait 10 seconds, re-apply power. Within 30 seconds, ping the new IP again. The reply must come back with the new IP, proving the configuration is in load memory, not RAM.
- PROFINET name resolution — In Online & Diagnostics > Functions > Assign PROFINET device name, browse the network. The CPU and both G120Cs must appear with the correct names and reachable (green) state.
- Online diagnosis — Right-click the CPU → Go online. The online view must show the CPU in RUN with no diagnostic buffer entries related to PROFINET station failure or IP conflict.
- HMI / SCADA reachability — If a WinCC Runtime or HMI panel uses the CPU as a partner, trigger a connection test from the HMI. The connection must come up without a "partner not found" alarm.
9. Common Pitfalls and Workarounds
| Symptom | Likely cause | Workaround |
|---|---|---|
| IP change reverts after power cycle | Assigned through Online & Diagnostics only, not written to project configuration | Edit Device configuration > Ethernet addresses, compile, download with "Load IP address" ticked |
| "Upload device as new station" fails with Startdrive error | Startdrive or Startdrive HSP not installed on the service PC | Install Startdrive V15.1 and matching HSP, then retry upload |
| "Go online" grayed out in the project tree | No real device selected, or the selected object is not online-capable (texts, common data) | Click the CPU in the project tree (not a folder or text), then try Online |
| Download refuses with "target device IP does not match" | Download search mode set to "exact match" | Change to "Search for compatible devices" in the download dialog |
| CPU not visible after IP change | Service PC is on a different subnet (e.g. 169.254.x.x link-local vs 192.168.0.x) | Set the PC NIC to a static address in the new subnet, e.g. 192.168.0.100 / 24 |
| G120C does not come online after name change | PROFINET name has not been assigned to the G120C, or topology mismatch | Use Assign PROFINET device name with the same name as in the project; check port interconnection in Topology view |
| New IP accepted but PROFINET IO fails to start | G120C IP was changed in the project but the device name on the physical drive still points to the old name | Reset the G120C to factory defaults (p0010 = 30, p0970 = 1) and re-download the device configuration |
10. Field-Proven Notes
Some caveats that are not always obvious from the documentation:
- IP and PROFINET name are paired. The CPU uses the PROFINET name to find devices; the IP is then negotiated. If you change the IP but not the name, G120C IO may still come up. If you change the name but not the IP, IO will fail. Always download the entire hardware configuration, which updates both atomically.
- MRP / MRPD redundancy — if the network uses Media Redundancy Protocol, the IP change is propagated automatically, but the CPU must remain the MRP manager. Verify under Properties > PROFINET interface > Media redundancy.
- Time-of-day synchronization — NTP and S7 time-of-day rely on the IP for the source address. After an IP change, restart NTP synchronization on the HMI to re-establish the time server connection.
- Security — in TIA Portal V15.1 the default access level for the PROFINET interface is Full access (no protection). If the project has been hardened with a password and an access level of Read access or HMI access, the Online & Diagnostics > Assign IP function may be disabled until the CPU is unlocked with the project password.
- Trial license expiry — the trial license lasts 21 days from first activation. If the trial has expired, the project opens in a read-only state and downloads are blocked. Renew with a full license or re-create a fresh trial project.
11. Quick Reference — Parameter Mapping
| TIA Portal property page | CPU load memory location | Volatile / non-volatile |
|---|---|---|
| Ethernet addresses > IP address | System data block — PN interface parameters | Non-volatile |
| Ethernet addresses > Subnet mask | System data block — PN interface parameters | Non-volatile |
| Ethernet addresses > Router address | System data block — PN interface parameters | Non-volatile |
| PROFINET interface > PROFINET device name | Name table in load memory | Non-volatile |
| Online & Diagnostics > Assign IP address | Runtime IP context | Volatile |
12. FAQ
Why does the S7-1200 IP address revert after a power cycle in TIA Portal V15.1?
Because the IP was assigned through Online & Diagnostics > Functions > Assign IP address, which writes only to the volatile runtime context. On restart, the CPU reads the IP from the project configuration stored in load memory and overwrites the temporary value. To persist the change, edit the IP in the project's hardware configuration and download to the CPU with the option "Load IP address from device configuration" enabled.
Is the TIA Portal V15.1 trial license limiting the IP change function?
No. The trial package is fully functional for the 21-day trial period, including all hardware configuration, download, and IP assignment features. If the trial has expired, the project opens read-only and downloads are blocked — but that is a project-wide restriction, not an IP-specific one.
The "Upload device as new station" fails. What is missing?
The most common reason on a system with S7-1200 and SINAMICS G120C is missing Startdrive V15.1 and / or Startdrive HSP. Install both via Options > Support Packages and retry. The TIA Portal log lists the specific module that is missing (for example, Startdrive Basic or G120C HSP0183).
Can I change the IP of the S7-1200 from the front panel like an S7-1500?
No. The S7-1200 does not have a built-in display. The only permanent method is through the TIA Portal project hardware configuration. For temporary changes, use Online & Diagnostics > Assign IP address, the SIMATIC Automation Tool, or the PRONETA utility.
Do I also have to change the PROFINET device name of the G120C when I change its IP?
You do not have to change the name if the existing PROFINET name still matches the one in the project. If you change the name, you must use Assign PROFINET device name to write the new name to the physical drive, otherwise the CPU cannot establish IO. The IP and name are stored independently in the G120C load memory.
What is the difference between "exact match" and "compatible devices" in the TIA Portal download dialog?
Exact match verifies that the device you are downloading to has exactly the same PROFINET name and IP as in the project — it is the safe mode for production download. Compatible devices relaxes the IP check and allows the configured (new) IP to be flashed to a device currently reachable on its old IP. Use compatible devices for an IP migration; use exact match for a routine program-only download.