Troubleshooting
Fix TIA Portal assign IP address failing on an S7-1200
Short answer
When a project downloaded with Set IP address in the project is running, Assign IP address and PRONETA cannot permanently change an S7-1200 address, and the SIMATIC Automation Tool writes only a temporary one that drops at the next power cycle. The fix is editing the Ethernet addresses in the project and downloading again, or switching the interface to direct-at-device mode.

On this page
If Assign IP address refuses or fails on an S7-1200, the cause is almost always the IP protocol mode stored in the downloaded project, not the tool you picked. Once a project with Set IP address in the project is on the CPU, TIA Portal's Online & diagnostics > Functions > Assign IP address and PRONETA cannot permanently change the address, and the SIMATIC Automation Tool can write only a temporary one that the CPU drops at the next power cycle. The durable fix is to edit the Ethernet addresses in the project and download the hardware configuration again, or to switch the interface to IP address is set directly at the device if the address has to be assignable in the field. This article shows how to read the mode, make the change stick, and isolate a CPU whose address reverts on its own.
Read the interface mode first #
Every tool can set an address on an S7-1200 that carries no configuration yet. After a download, each tool's behavior depends on the interface configuration in the running program. In the device configuration, select the CPU's PROFINET interface and open the Ethernet addresses area. The IP protocol setting offers two mutually exclusive modes:
Set IP address in the project— the address is part of the downloaded configuration and the CPU reapplies it at every startup. Assignment tools are blocked, or where a write is permitted, it produces only a temporary address.IP address is set directly at the device— the address is retained in the CPU, and an external tool or a controller writes it. Assignment is the intended mechanism here, and a written address stays.
The power-cycle side of this behavior — an address that reverts on an S7-1200 power cycle — is covered in detail in why a TP700-assigned IP address reverts on an S7-1200 power cycle.
Fix the address in the project #
- Open the project that was last downloaded, select the CPU, open the PROFINET interface's Ethernet addresses and read the IP protocol selection. If the project is gone, use
Online > Upload device as new stationto pull the running station into a new project and read it there. - With
Set IP address in the project: enter the new address, subnet mask and router address in Ethernet addresses, compile, and runDownload to device. The download connection itself needs the address the CPU actually holds, so confirm it first withAccessible devicesor a PRONETA network scan, not with the address you intended to enter. - Check the PC adapter's subnet before you connect. Worked example: target CPU address 192.168.0.50 with subnet mask 255.255.255.0 gives 192.168.0.50 AND 255.255.255.0 = 192.168.0.0. An engineering PC at 192.168.1.20 gives 192.168.1.20 AND 255.255.255.0 = 192.168.1.0 — a different network, so the PC cannot reach the CPU for the download. Set the PC adapter to an address in 192.168.0.0/24, for example 192.168.0.20, or configure a router. A CPU that ends up on an unreachable subnet looks identical to a failed assignment — the same symptom family as when an S7-1200 shows link lights but TIA Portal cannot connect.
- If the address must be assignable in the field, change the mode to
IP address is set directly at the device, download once, then useAssign IP addressor PRONETA for every later change. The CPU holds no address until one is assigned, so plan for that gap in the HMI and SCADA connections. - If the address is unknown and you need one-off access, the SIMATIC Automation Tool assigns a temporary address that stays valid until the next power cycle when the project enables project mode. Download the permanent configuration before you cycle power.
This download-first discipline is the same one that applies when you change an S7-300 IP address without breaking the machine.
Isolate a CPU whose address keeps reverting #
If the address changes back on its own, another node on the segment assigned it. PROFINET identifies devices through DCP by device name, not by IP, so an IO controller re-assigns the address that belongs to the device name it expects — a duplicate PROFINET device name anywhere on the segment is enough to trigger the write. Work through this in order:
- Note the address the CPU reverts to. If it matches a slot in another controller's IO topology, that controller is the writer.
- Disconnect every cable except a point-to-point cable from the engineering PC to the CPU's port.
- Remove and re-apply CPU power to clear what the previous session wrote.
- Scan with
Update accessible devicesor PRONETA. The CPU should now show its stored or project address only. - Assign the target address and confirm it survives a power cycle.
- Reconnect the segment nodes one at a time. If the address changes again, check the device names and the configured IO device addresses on that segment, and confirm no duplicate device name exists.
Safety note: assigning an address to a CPU that is an IO device on an active PROFINET connection drops that connection and can stop the process — put the affected line in a safe state before you write.
Verify the change held #
- Address: a PRONETA network scan or
Accessible devicesshows the target address, mask and router against the CPU's MAC. - Persistence: full power-down, re-apply power, re-scan — the same address after the restart.
- Duplicate address: disconnect the CPU, then
ping 192.168.0.50(the example target) from the PC. A reply means another node owns that address. - Project consistency: go online in TIA Portal — green status, no configuration difference reported.
Decision for each case #
- The address must change permanently and the project is available: edit the Ethernet addresses in the project, compile,
Download to device. - The address must be assignable in the field: switch to
IP address is set directly at the device, download once, then assign withAssign IP addressor PRONETA from then on. - The address is unknown and access is one-off: use the SIMATIC Automation Tool's temporary address, and download the permanent configuration before the power cycle.
- The address reverts on its own: isolate the CPU to a point-to-point cable, cycle power, and hunt the writer by device name on the segment.
- The assignment appears to fail with no other explanation: check the PC adapter subnet first — an unreachable address and a refused write look the same from the chair.
Questions asked
Can I set an IP address on a factory-new S7-1200 without a project?
Yes. Before any download, the CPU has no interface configuration stored, so Update accessible devices in TIA Portal, PRONETA or the SIMATIC Automation Tool can write an address directly and it stays. The mode restriction only begins once a project with an IP protocol setting has been downloaded to the CPU, because from then on the CPU's startup behavior follows that stored setting.
What happens to a temporary SIMATIC Automation Tool address after a power cycle?
The CPU drops the temporary address and reapplies the project value, so you reconnect through the old address, not the temporary one. Treat the temporary address as a one-time key: use it to reach the CPU, download the permanent configuration from TIA Portal in the same session, and never plan a process that depends on the temporary address surviving a restart.
Does switching to device-assigned mode affect anything else in the program?
Yes, two things. The CPU holds no address at all until one is assigned, so every HMI, SCADA and peer connection that targets the CPU fails until you assign one. Also, any program or configuration that assumes a fixed address must tolerate that gap. Download the mode change once, assign the address immediately, and confirm the connections recover before handing the machine back.
