How-to
Read a CP1W-CIF41 IP address from PLC memory over USB
Short answer
Connect to the CPU over USB with CX-Programmer, read the CP1W-CIF41 address words in hexadecimal, CP1E Port 2 at D1303, CP1H/CP1L at D32003 or D32303, and convert the four bytes to dotted decimal. The default 192.168.250.1 is a shipping reference only, so trust the words and confirm with ping.
On this page
- Why is the board not answering at 192.168.250.1?
- How do you get online with the CPU over USB?
- Which DM words hold the address on your CPU?
- How do you decode the hex words into an address?
- What does a complete read look like with real numbers?
- How do you prove the recovered address is live?
- How do you make future changes from CX-Programmer?
- Questions asked
Read the four data-memory words that hold the CP1W-CIF41 Ethernet settings over the CPU USB port, and decode them. When a board has been swapped or reconfigured, 192.168.250.1 is only the shipping reference and its web page is unreachable; the settings still sit in CPU memory at documented addresses, CP1E Port 2 at D1303 to D1306 and CP1H/CP1L Port 1 at D32003 or D32303 depending on CPU size. The procedure below covers the USB connection, the word map, the hex-to-decimal decode with a worked example, and the ping test that proves the result.
Why is the board not answering at 192.168.250.1? #
Because 192.168.250.1 is the shipping reference, not a promise: an installed CP1W-CIF41 can carry any address, and once it does, both its web page and its FINS traffic are unreachable until you learn the address from CPU memory.
The recovery job is always the same: a board was replaced or a panel was reconfigured, nobody recorded the new address, and the default answers nothing. Swap option boards only with the CPU powered down.
What saves the day is where the settings live. The address and mask sit in the CPU data-memory area at documented word addresses, so a USB connection to the CPU reads them with no working Ethernet link. The map in this article is stated for the CP1E, CP1H and CP1L families carrying the CP1W-CIF41.
How do you get online with the CPU over USB? #
Connect a USB cable between the CP1E, CP1H or CP1L CPU and your laptop, go online in CX-Programmer, and open the PLC memory view in monitor mode with the display set to hexadecimal; no Ethernet setting is needed for this read.
- Power the CPU and connect the USB cable from its port to the laptop.
- Go online in CX-Programmer over the USB connection. The option board and its Ethernet port take no part in this read.
- Open the CPU memory area view and switch the display format to hexadecimal. In decimal, the two octets inside each word collapse into one meaningless number.
- Enter the word addresses from the map below and record the four values exactly as displayed.
Which DM words hold the address on your CPU? #
Four words do it: the IP address occupies two words and the subnet mask the next two, with CP1E Port 2 at D1303 to D1306, CP1H/CP1L Port 1 on CPU30, CPU40 and CPU60 at D32003 to D32006, and CPU14 or CPU20 Port 1 plus any Port 2 at D32303 to D32306.
| CPU and port | IP address words | Subnet mask words |
|---|---|---|
| CP1E, Port 2 (the only port the board fits) | D1303, D1304 | D1305, D1306 |
| CP1H/CP1L, Port 1, CPU30/CPU40/CPU60 | D32003, D32004 | D32005, D32006 |
| CP1H/CP1L, Port 1, CPU14/CPU20 | D32303, D32304 | D32305, D32306 |
| CP1H/CP1L, Port 2, any CPU size | D32303, D32304 | D32305, D32306 |
The trap is the Port 1 split by CPU size: the two CPU classes live in different memory blocks, and reading the wrong one produces a confident, wrong address. Read the CPU type off the nameplate before you trust a row. The CP1E row has no split because the board fits Port 2 only.
How do you decode the hex words into an address? #
Read each word as two bytes and convert each byte from hexadecimal to decimal on its own: the four decimal results, in word order, are the four octets of the address, and the same decode on the two mask words gives the subnet.
- Treat each four-digit hexadecimal word as two bytes, left to right as the monitor shows it.
- Convert each byte separately: decimal value equals the left digit times 16 plus the right digit.
- Join the four results with dots in word order. That is the address.
- Repeat on the two mask words for the subnet mask.
- Let the mask referee the byte order. A 255.255.255.0 mask must come out of the words as FFFF then FF00. If the second mask word reads 00FF, the two bytes inside every word are swapped, so swap them back in all four words and decode again.
A mask that decodes to anything other than ones followed by zeros, such as 255.255.0.255, is the same signal: byte order, not bad data.
What does a complete read look like with real numbers? #
On a CP1E with the board on Port 2, the monitor returned D1303 equal to C0A8, D1304 equal to FA29, D1305 equal to FFFF and D1306 equal to FF00, which decodes to 192.168.250.41 with mask 255.255.255.0, a legal mask on the first pass. These are illustrative values, not a measurement from one machine.
- C0 = 12 × 16 + 0 = 192
- A8 = 10 × 16 + 8 = 168
- FA = 15 × 16 + 10 = 250
- 29 = 2 × 16 + 9 = 41
The address is 192.168.250.41, the mask is 255.255.255.0, and the decoded mask was legal, so no swap was needed. The decision that follows: the laptop joins 192.168.250.0 as a /24.
How do you prove the recovered address is live? #
Set your laptop to a free address on the recovered subnet, 192.168.250.200 with mask 255.255.255.0 in the example, and ping the recovered address; a reply confirms the decode before you change any setting.
With the adapter set, run ping 192.168.250.41 from a command prompt. A reply proves both the decode and the board. Then browse to the recovered address to open the module web page, the same page a fresh setup reaches at the default, and cross-check the settings it reports against your decoded words. Ethernet is now ordinary again, including connecting Citect SCADA to a CP1W-CIF41 over FINS on the SCADA side.
How do you make future changes from CX-Programmer? #
Browse to the module web page at the recovered address and set its IP address field to 0.0.0.0 once; after that handover the module takes its address from the CPU data-memory words, which you then write from CX-Programmer.
The handover is one-time: once the field reads 0.0.0.0, the words in the map above are what the module uses, written with CX-Programmer like any other data-memory value. Record the final address on the panel door so the next repair starts with a note instead of this procedure.
Questions asked
What is the default IP address of a CP1W-CIF41?
192.168.250.1. A fresh setup uses it exactly that way: you set the PC to something like 192.168.250.20 with mask 255.255.255.0, ping 192.168.250.1, and open the module web page there to configure it. An installed board can carry any address, which is why the data-memory words are the source that matters.
Why can only one or two PCs connect once the board is reachable again?
The CP1W-CIF41 has a connection lookup table of two entries, so it supports two simultaneous TCP connections. If a SCADA client and your laptop already hold sessions, a third connection will not be accepted until one side closes. Decide who owns the two slots before adding clients.
Do you need CX-Programmer specifically for the read?
No, but it is the documented tool. Any utility that goes online with the CPU over USB and can display the data-memory area in hexadecimal will show the same four words, and you apply the same byte-by-byte conversion. What matters is reading the words in hex, not decimal, so the octet structure survives.
Does the word map cover other CP-series CPUs?
The documented map covers the CP1E on Port 2 and the CP1H and CP1L families with their CPU-size split on Port 1. For any other CP-series CPU the addresses are not in this map, so confirm them in the operation manual for that specific CPU before trusting a read.