Overview of the PLCnext IP Address Loss Fault
Phoenix Contact PLCnext Control devices (AXC F 1152, AXC F 2152, AXC F 3152, and the EPC 1502 / EPC 1522 edge controllers) may appear to "lose" their configured IPv4 address after a power cycle, restart, or download cycle. In most field cases the controller has not actually lost the address at the firmware level — the address has been overwritten or reset by an action performed inside PLCnext Engineer (the IEC 61131-3 programming environment) or by a button-press / web-based factory reset on the device itself.
Because the symptom (controller unreachable on the previously known IP) is identical regardless of the underlying cause, the troubleshooting sequence is:
- Verify whether the controller is reachable on any IP at all (scan, ARP cache, Wireshark).
- Determine whether the configuration was actively reset, passively overwritten, or corrupted by an interrupted download.
- Apply the corrective action that matches the root cause.
- Verify persistence across a controlled power cycle.
Affected Products and Firmware
| Article number | Designation | Minimum PLCnext Engineer | Behavior |
|---|---|---|---|
| 1159812 | AXC F 1152 | 2020.0 LTS | Retains IP on power cycle, lost on factory reset |
| 2404267 | AXC F 2152 | 2020.0 LTS | Retains IP on power cycle, lost on factory reset |
| 1069208 | AXC F 3152 | 2024.0 LTS | Retains IP on power cycle, lost on factory reset |
| 1185415 | EPC 1502 | 2022.0 LTS | Retains IP on power cycle, lost on factory reset |
| 1185423 | EPC 1522 | 2022.0 LTS | Retains IP on power cycle, lost on factory reset |
Always confirm the firmware version installed on the controller before troubleshooting. The firmware is reported on the WBM (Web-based Management) home page at https://<current-ip>/wbm or at https://<current-ip> on controllers shipped from 2022 onward. Cross-reference the firmware against the release notes in the PLCnext Control product area to identify known IP-stack bugs that have been fixed in later service packs.
Root Cause Analysis: Why the IP Disappears
Cause 1 — Factory Reset Performed on the Controller
PLCnext Control devices expose a Restore Factory Defaults function. On the AXC F 2152 and AXC F 3152, this is reachable in two ways:
- WBM path: WBM → Administration → Restore Factory Defaults. Confirming the dialog commits the reset immediately and reboots the controller.
- Physical button: Some PLCnext Control variants include a recessed reset button on the front face. Holding it for the specified time (typically 8–10 s) triggers a factory reset and reboot.
A factory reset clears the IP address, subnet mask, default gateway, PROFINET device name, and any project-specific routing. The controller reverts to the DHCP client behavior defined at shipment (no static address).
Cause 2 — Project Settings Written to the Controller
PLCnext Engineer ships each project with a PLC settings dataset that includes the controller name, IPv4 address, subnet mask, default gateway, and (optionally) DNS and PROFINET parameters. The Write project settings to the PLC command pushes this dataset to the controller and overwrites whatever is currently stored. Running this command — or running a full Build & Download — from a project that contains an empty or default-filled PLC settings block will erase the IP previously configured on the device.
The PLC settings tab is reached through Project → PLCnext → PLC Settings in PLCnext Engineer. The relevant fields are:
| Field | Default behavior when empty | Risk |
|---|---|---|
| IP Address | Controller falls back to DHCP | Loses static IP |
| Subnet Mask | 0.0.0.0 | No subnet reachability |
| Default Gateway | 0.0.0.0 | No upstream routing |
| DNS Server | None | OPC UA name resolution breaks |
Cause 3 — Interrupted Write to NVRAM
The PLCnext Control firmware writes the active IP configuration to NVRAM only after a graceful shutdown of the pnconfig service. If power is removed during the write window (typically the last 2–3 s before the controller reboot completes), the previous configuration can be invalidated. The controller then boots with no static address and falls back to DHCP.
Cause 4 — DHCP Override
When the controller is configured to obtain its address via DHCP, any DHCP server on the network can hand out a new address at the next lease renewal. This is not technically a "loss" of the IP, but it presents the same symptom to the engineer who last knew the controller at a fixed address.
Diagnostic Procedure
Work through the following checks in order. Each step produces a definitive result that points to one of the four causes above.
- Scan the subnet. Use the PLCnext Scanner utility or the Online → Accessible Devices dialog in PLCnext Engineer. The controller will appear with its MAC address even if its IP is unknown.
- Read the WBM. If the controller responds on any IP (including a DHCP-leased one), open the WBM and inspect Administration → Network. The current IPv4 configuration is displayed directly.
- Check the controller LEDs. The LINK and ACT LEDs on the Ethernet port indicate physical-layer connectivity only. A correctly configured controller with a valid link will show steady LINK plus blinking ACT.
- Inspect the PLCnext Engineer project. Open the project last deployed to the controller. Compare the PLC Settings block against the desired runtime configuration. An empty block is the most common finding.
-
Review the controller's syslog. In WBM → Diagnostics → System Log, search for entries containing
pnconfig,networking, orfactory-reset. A factory reset produces a clearly identifiable log line.
Step-by-Step Resolution
Resolution A — Recover From a Factory Reset
- Connect a PC directly to the controller's ETH1 (or X1) port using a Cat 5e or better patch cable.
- Set the PC's Ethernet adapter to a static address in the 192.168.0.0/16 range (Phoenix Contact uses 192.168.1.x on first boot when no DHCP is available).
- Open the WBM at
https://192.168.1.2(default address when the controller boots without stored configuration) and accept the self-signed certificate warning. - Navigate to Administration → Network → IPv4 and enter the desired static configuration: address, subnet mask, default gateway.
- Click Apply. The WBM prompts to commit the change; confirm and wait for the controller to apply the new settings without rebooting.
- Power-cycle the controller and verify the address persists.
Resolution B — Recover From an Accidental Project Overwrite
- Open the PLCnext Engineer project that should run on the controller.
- Open Project → PLCnext → PLC Settings.
- Enter the desired IP address, subnet mask, and gateway. Use the controller's actual operational address; do not leave the field empty.
- Right-click the controller node in the project tree and choose Apply PLC settings to the project. This reads the current configuration from the controller into the project — useful when the project was created without the device's runtime IP.
- Build the project and download only the changed PLC settings dataset, not the full program, using Online → Download PLC Settings.
- Verify in the WBM that the address persists after the download completes.
Resolution C — Prevent Loss Across Power Cycles
- Always perform a controlled shutdown through the WBM (Administration → Reboot) before removing power.
- Disable the Write project settings to the PLC action for projects where the engineering workstation IP differs from the deployed IP.
- If the controller is on a DHCP-enabled network, reserve the desired IP in the DHCP server (static lease keyed to the controller's MAC address, which is printed on the front face label and listed in WBM → Diagnostics → System Information).
Using the Ad-hoc IP Address for First Contact
PLCnext Engineer and the PLCnext firmware support an Ad-hoc IP mechanism that does not require the controller to have a valid IP at all. The feature is intended for first-contact commissioning in a lab or classroom where the engineering PC and the controller are on the same physical segment.
- Connect the PC directly to the controller.
- In PLCnext Engineer, open Online → Accessible Devices and click Ad-hoc IP.
- PLCnext Engineer assigns a temporary 169.254.x.x / 16 link-local address to the controller and establishes a session.
- From the active session, navigate to PLC Settings and write the operational IP back into the device.
The ad-hoc address is volatile. It is discarded as soon as the controller reboots, so this path is for configuration only — not for runtime operation.
Project Engineering Best Practices for the Classroom and the Plant
When the same project template is handed to multiple engineers or students, package the PLC settings dataset so that the project always carries a known-good IP configuration:
- Lock the PLC settings block with a project-wide default; students/engineers override only if their network segment differs.
- Document the IP and subnet in the project header (a comment block at the top of the PLC_PRG program file is the conventional location).
- Disable the Factory Reset privilege for non-admin WBM users through Administration → User Management.
- Always use Apply PLC settings to the project as the read direction. This pulls from the controller into the project and is the safe direction when the controller's runtime IP is the source of truth.
- Reverse the read direction with caution. Write project settings to the PLC pushes the project's IP into the controller and will overwrite an in-service configuration.
Verification Procedure
- After applying the fix, ping the configured IP from the engineering workstation:
ping <controller-ip>. Expect replies with sub-millisecond times on a directly connected segment. - Open the WBM in a browser and confirm the displayed IP matches the configured value.
- Open PLCnext Engineer → Online → Accessible Devices and confirm the controller appears at the configured IP with the configured name.
- Perform a controlled reboot through the WBM. Re-verify the IP.
- Perform an uncontrolled power cycle (pull the power connector, wait 10 s, restore). Re-verify the IP.
- Document the final configuration (IP, subnet, gateway, MAC, firmware version) in the project README and the asset registry.
Cross-Platform Notes: Similar IP-Loss Symptoms on Other Controllers
The "IP address disappears after power cycle" symptom is not unique to PLCnext. Two documented cases on other platforms illustrate the same pattern:
- Rockwell Automation CompactLogix 5380 and 1756-EN4TR modules: EtherNet/IP addresses are reported as lost or changed after power is cycled. The official Rockwell Automation knowledge base documents the failure mode and the corrective firmware revision that resolves it. See the KB article EtherNet/IP Address is Lost or Changes After Power is Cycled for the affected catalog numbers and firmware threshold.
- B&R Automation X20CP3687X: A B&R Community thread reports the controller losing its configured IP at every restart on certain AR version I4.11 firmware builds. The remedy in that case was a firmware upgrade to a build that contains the corrected network stack.
Takeaway: when the IP loss repeats across multiple controllers of the same model and firmware, treat it as a firmware bug and consult the manufacturer's knowledge base for a corrected firmware revision before debugging the configuration.
Troubleshooting Matrix
| Symptom | Likely cause | First check | Fix |
|---|---|---|---|
| Controller reachable at a new DHCP-leased IP | DHCP override | DHCP server lease table | Reserve a static lease keyed to the controller MAC |
| Controller reachable only at 169.254.x.x | Factory reset or empty project settings | WBM → Administration → Network | Apply static IP via WBM and re-download project with PLC settings filled in |
| Controller unreachable on any IP, WBM not responding | Switching or VLAN issue, or controller stuck in boot loop | Direct PC-to-controller cable, link LED state | Use ad-hoc IP from PLCnext Engineer to recover the device |
| IP correct after a software reboot, wrong after a power cycle | Interrupted NVRAM write | WBM syslog for pnconfig errors | Always perform a controlled shutdown before removing power; upgrade firmware if the issue is reproducible |
| IP reverts to project default every download | Project settings block empty or wrong | PLCnext Engineer → PLC Settings | Populate the PLC settings block with the desired IP, then download |
FAQ
Why does my PLCnext controller lose its IP address after every restart?
The most common cause is that the PLC settings dataset inside the PLCnext Engineer project is empty or contains a different address than the one you expect. When you download the project, the empty or mismatched dataset overwrites the IP stored in the controller. Open Project → PLCnext → PLC Settings, enter the correct IP, subnet mask, and gateway, and re-download the PLC settings only.
How do I recover a PLCnext controller that has no IP address?
Use the ad-hoc IP function in PLCnext Engineer (Online → Accessible Devices → Ad-hoc IP) to assign a temporary link-local address and establish a session. From the session, open PLC settings and write the operational IP back to the device. Alternatively, connect directly to the controller and access the WBM at https://192.168.1.2 if it has reverted to its factory-default address.
What is the difference between "Apply PLC settings to the project" and "Write project settings to the PLC"?
"Apply PLC settings to the project" reads the current configuration from the controller and copies it into the project — the safe direction that does not modify the controller. "Write project settings to the PLC" pushes the project's configuration into the controller and overwrites whatever is stored there. Use the read direction whenever the controller's runtime configuration is the source of truth.
Does a factory reset on a PLCnext controller remove the IP address?
Yes. A factory reset, whether triggered through the WBM (Administration → Restore Factory Defaults) or the physical reset button, clears the IPv4 address, subnet mask, default gateway, controller name, and PROFINET device name. The controller reverts to DHCP client behavior with no static address.
How do I prevent the IP address from being lost on a power cycle?
Always perform a controlled shutdown through the WBM (Administration → Reboot) before removing power so the network configuration is committed to NVRAM. Reserve a static DHCP lease keyed to the controller's MAC address if DHCP is in use, and keep the PLCnext Engineer project's PLC settings dataset populated with the correct IP to prevent accidental overwrites during a download.