IMDHMIControls LibraryShop main store

Troubleshooting

Why two S7-200 CPUs over CP 243-1 need one client and one server

PLC programming Published 6 min read

Short answer

A CP 243-1 pair carries S7-200 peer data only as one client and one server: the client's Ethernet wizard defines a connection that dials the server, the server's wizard only sets its address. Two finished wizards without complementary roles never open the session. Configure the initiating CPU with ETHx_CTRL and ETHx_xFER against the server's address, leave the other end as the server, download both projects, and test.

On this page
  1. One client, one server: the only supported S7-200 pair
  2. Why two finished wizards still leave the link down
  3. Set the roles in STEP 7 Micro/WIN
  4. Check the addresses before you blame the roles
  5. Work the fault down in this order
  6. The decision for each case
  7. Questions asked

Two S7-200 CPUs, each carrying a CP 243-1, exchange data over Ethernet only as one client and one server: the client's program opens the session and moves the data, and the server only answers. Completing the Ethernet wizard in both projects does not create that pair by itself. If both projects define a connection, each module sits waiting for the other to dial; if neither defines one, nothing ever dials. In both cases the link LEDs stay green and no data moves. Configure exactly one CPU as the client with the wizard's ETHx_CTRL and ETHx_xFER instructions, leave the other project as the server, put both modules in one subnet, download both projects, and the transfer runs. The sections below show what each project must contain, check the addresses with real numbers, and end with the decision for each case.

One client, one server: the only supported S7-200 pair #

The S7-200 has no peer-to-peer Ethernet mode. Peer traffic between two of these CPUs runs as S7 connections on ISO-on-TCP, the ISO transport service carried over TCP that RFC 1006 defines, and RFC 1006 assigns TCP port 102 to that service — so one end listens on that port and the other end dials. That asymmetry is built into the protocol, which is why the roles cannot be symmetric either. The vendor's configuration documentation for this link is split the same way, into a section for the S7-200 as client and a section for the S7-200 as server, and a two-CPU link uses exactly those two sections and nothing else.

The client side carries all of the program work. Its Ethernet wizard defines a connection whose partner address is the server CP's IP address, and the wizard generates ETHx_CTRL, which opens and monitors the channel, and ETHx_xFER, which performs each read or write of the agreed data range in the server's V memory. The server side carries no program work: its wizard sets the module's address and subnet mask and defines no outgoing connections, and the CP then accepts the incoming request on that port. Either CPU can take either role — the role belongs to the project you download, not to the hardware.

The pattern is not special to this old pair. Newer CPUs keep it for their PUT/GET peer links, and the walkthrough Simulate GET/PUT between two S7-1200 CPUs in PLCSIM shows both roles offline when no second CPU is on the bench.

Each wizard completes inside its own project and proves nothing about the other one, so three broken combinations all look identical from the front of the panel:

  • Both projects define a connection. Two clients: each dials a partner that is not configured to answer, and the session never completes.
  • Neither project defines a connection. Two servers: both listen on the port, and nothing ever dials.
  • One corrected project is still sitting in the laptop. The CP only takes a new role after the project is downloaded to its CPU.

The link LEDs stay green through all three because they report the physical Ethernet layer only — cable, switch, link speed — while the roles act in the TCP session above it. Green LEDs with no transfer are the signature of a role problem, not a wiring problem.

Set the roles in STEP 7 Micro/WIN #

Both projects are programmed in STEP 7 Micro/WIN, the S7-200 package; What STEP 7 is in a PLC project, and which one you need sorts that package apart from the S7-300 and S7-1500 tools if your laptop carries several.

  1. Decide which CPU's program must begin each exchange. That project becomes the client; the other becomes the server. Either CPU can hold either role.
  2. In the client project, open the Tools menu, run the Ethernet Wizard, set the CP 243-1's module address and subnet mask, then define one connection with the server CP's address as the partner, and let the wizard map which data range moves on each transfer.
  3. Keep the wizard's generated ETHx_CTRL and ETHx_xFER calls in the client program and call them unconditionally every scan, so the channel opens on power-up and each transfer executes when its enable condition is met.
  4. In the other project, run the same wizard, set that CP's module address and mask, and define no connections. That station serves.
  5. Download both projects. A download stops the CPU, so bring the machine to a safe state first; each CP takes its new role and address as the CPU restarts.

Check the addresses before you blame the roles #

Roles and addressing fail with the same symptom — green LEDs, no data — so settle the addresses with arithmetic rather than guessing. Example values for a direct bench link, not defaults: client CP at 192.168.0.10 with mask 255.255.255.0, server CP at 192.168.0.20 with the same mask. AND each address with the mask: 192.168.0.10 AND 255.255.255.0 gives 192.168.0.0, and 192.168.0.20 AND 255.255.255.0 also gives 192.168.0.0. The network parts match, so a direct cable or a plain switch joins them and no gateway belongs in the wizard's connection.

Now move the server to 192.168.1.20. Its network part becomes 192.168.1.0, which no longer matches the client's 192.168.0.0, so the client's dial has no route without a router between the two subnets. Decision: on a two-CPU link without a router, put both modules in one subnet; with a router in place, the client's connection must point through it at the server's address.

Work the fault down in this order #

  1. Link LEDs on both modules. Dark means cable, switch or module power — fix the physical layer before opening any wizard.
  2. Ping each module's address from the engineering PC. Both must answer; a silent module has a wrong address or mask.
  3. Open each project's wizard. Exactly one project must show a defined connection, and the other must show none.
  4. In the client program, confirm ETHx_CTRL and ETHx_xFER are called every scan, not hidden behind a one-shot condition that has already passed.
  5. Trigger the client's transfer and read the instructions' status output. A channel fault points back at the address or the missing server role; a healthy status with wrong values points at the wizard's data map, not at the link.

The decision for each case #

What you find What it means What to do
Both wizards define a connection Two clients; each dials a partner that never answers Delete the connection from one project, download it, retest
Neither wizard defines a connection Two servers; both listen, nothing dials Add the client connection to one project, download, retest
One client, one server, still no transfer Address, mask or the instruction call Work the list above; read the client's ETHx_CTRL status
Link LEDs dark Physical layer down Cable, switch or module power before any configuration change

One client, one server, one subnet, both downloaded: that combination is the whole fix, and it holds with a CP 243-1 on the client side and a CP 243-1 or CP 243-1 IT on the server side alike.

Questions asked

Which S7-200 CPU should be the client?

Either one. The client is the CPU whose program must begin each exchange, because it dials the server and runs the transfer instruction, while the server only holds its data and answers. The CPU hardware does not decide it: a 224XP DC/DC/DC and a 224XP AC/DC/relay work in either role, since the role is set in the project you download, not in the module or the CPU variant.

The link LEDs are green on both CP 243-1 modules, so why is there no data?

The LEDs only report the physical Ethernet layer: cable, switch and link speed. The client and server roles act above that layer, in the TCP session to the S7 port, which the LEDs cannot show. Green LEDs with no transfer almost always mean both projects took the same role, so no session was ever opened.

Does a CP 243-1 IT module need a different setup?

No. The IT variant adds internet-type functions such as file transfer and e-mail to the module, but peer communication between two S7-200 CPUs follows the same rule of one client and one server. Configure a CP 243-1 IT server the same way as a CP 243-1 server, and put the client on whichever station's program must initiate.

Why can the programming laptop reach each CPU over Ethernet while the two CPUs still exchange nothing?

Micro/WIN opens its own session to each CP for programming and monitoring, so that access proves the address, the mask and the physical link. The CPU-to-CPU exchange is a separate session that needs the wizard's connection in the client project and its ETHx_CTRL and ETHx_xFER calls running every scan. Programming access and peer transfer are independent; passing the first proves nothing about the second.

Keep reading

  • How-to

    How to change an S7-300 IP address without breaking the machine

    The IP address belongs to one Ethernet interface — the CPU's integrated PN port or a CP 343-1 in the rack — and changes in one place: that interface's hardware configuration, downloaded alone from the STEP 7 project the machine was built with. Record the old address, mask and router first, then update every partner that stored the old address. If the only need is access from another network, a one-to-one NAT leaves the controller untouched.

    PLC programming

  • How-to

    Can one S7 CPU PN port run Modbus TCP and S7 comms together

    Yes. A 414-5H's integrated PN interface runs a Modbus TCP server for the DCS and S7 communication for the operator station on the same port, because both are TCP-based services on one IP stack. What decides the project is the CPU's connection-resource total, the station's transport type, the loaded response delay against each timeout — and on an H pair, the fact that Modbus sessions break at switchover unless you use the redundant option on a CP 443-1 pair.

    Industrial networks

  • How-to

    How to get the right Micro/WIN version for an S7-200 CPU 224

    STEP 7 V5.4 cannot program an S7-200 CPU 224. The tool for that CPU is STEP 7-Micro/WIN, whose final service packs are V4.0 SP8 and SP9, downloadable from Siemens Industry Online Support entry 58523240 alongside the S7-200 System Manual.

    PLC programming