Explainer
Why S7-200 cannot talk Modbus TCP to a Schneider PLC
Short answer
An S7-200 has no Siemens Modbus TCP blocks, so the supported route to a Schneider Modbus TCP server is the STEP 7 Micro/WIN Modbus RTU library acting as serial master into a converter that speaks Modbus TCP client-side toward the Schneider server. An S7-1200 needs no converter: the MB_CLIENT instruction with a TCON_IP_v4 connection does it natively. Registers that read back shifted are addressing arithmetic, zero-based versus one-based, plus 32-bit word order, not a broken link.
On this page
- Can an S7-200 talk Modbus TCP at all?
- Which path fits: keep the S7-200 or move to an S7-1200?
- How does the S7-200 reach the Schneider server through a converter?
- Which settings must match between the library and the converter?
- How does an S7-1200 connect without a converter?
- Why do the registers read back at the wrong addresses?
- Why do 32-bit values cross the link scrambled?
- How do you prove the exchange end to end?
- Questions asked
No Siemens Modbus TCP block exists for the S7-200, so an S7-200 cannot open a Modbus TCP session to a Schneider PLC on its own. The supported route is the Modbus RTU library in STEP 7 Micro/WIN, with the S7-200 running as a serial master into a converter that acts as a Modbus TCP client toward the Schneider server on TCP port 502. If the CPU is yours to choose, an S7-1200 reaches the same server natively with the MB_CLIENT instruction and a TCON_IP_v4 connection, no converter in between. Most register mismatches on either path are addressing arithmetic — zero-based versus one-based references, and 32-bit word order — not a broken link. The sections below take both paths in the order you meet them, and end with the tests that prove the exchange.
Can an S7-200 talk Modbus TCP at all? #
No: Siemens ships no Modbus TCP blocks for the S7-200, so the CPU cannot open or serve a Modbus TCP session, and the only supported protocol route is the Modbus RTU library that you install into STEP 7 Micro/WIN.
The library comes from Siemens as an instruction library you add to Micro/WIN; once installed it appears in the Libraries folder of the operations tree, next to the USS library. It gives you two calls: an initialization call that claims the CPU's serial port once at startup and sets the baud rate, parity and stop bits, and a message call that carries one Modbus read or write per execution. Between those two calls the S7-200 is a complete Modbus RTU master on its serial port.
The same two calls, pointed at a sensor instead of a converter, are walked through end to end in the guide that connects an S7-200 to a Modbus RTU sensor and reads its register. Read that for the call parameters and the error handling, because nothing changes here except the slave on the other end of the wire.
Which path fits: keep the S7-200 or move to an S7-1200? #
Keep the S7-200 and put a converter in the middle when the installed CPU is fixed; move to an S7-1200 with MB_CLIENT when the CPU is yours to choose, because the S7-1200 runs Modbus TCP natively on its Ethernet port.
Fix this decision before any wiring or code, because the paths fail in different places. The converter path has three hops — serial line, converter translation, TCP session — and a fault can sit in any of them. The S7-1200 path has one hop, and TIA Portal's connection diagnostics watch all of it.
| Your situation | Path | What sits in the middle |
|---|---|---|
| Installed S7-200 that stays | Modbus RTU library as serial master | An RTU-to-Modbus-TCP converter |
| New CPU, your choice | S7-1200 with MB_CLIENT over its PROFINET port | Nothing — Ethernet straight to the Schneider server |
| S7-200 due for replacement anyway | S7-1200 replacement, Schneider map unchanged | Nothing |
Both paths land on the same endpoint: the Schneider CPU as a Modbus TCP server. Get that side right first, before either Siemens device is touched — the checklist of what you must configure on the PLC side for Modbus TCP lists those server settings.
How does the S7-200 reach the Schneider server through a converter? #
The direction is fixed by who is master: the S7-200 library is the RTU master, so the converter must accept a serial master on its RTU side and act as a Modbus TCP client toward the Schneider PLC, which is the Modbus TCP server listening on TCP port 502.
A converter sold for the opposite job will not fit. Boxes built to put a Modbus TCP master — a SCADA head, usually — in front of serial slaves run the client on Ethernet and the slave on serial, which is backwards for this link. Check the converter's datasheet for the mode where the serial side is the master and the Ethernet side is the client; makers name that mode differently, so match the described direction rather than the label.
Set the converter once: the target IP address of the Schneider Ethernet module, the Modbus TCP service port, and a mapping entry that turns the slave address the S7-200's message call sends into the unit ID the Schneider server answers to. Wire the S7-200's RS-485 port to the converter's serial port with each line matched to the converter manual's own A and B labels, and land the shield the way that manual says.
If the converter is software rather than a dedicated box, its host PC belongs in the cabinet next to the PLC — an industrial mini PC is the hardware class built to sit there and run a protocol converter as a permanent service.
Which settings must match between the library and the converter? #
Baud rate, parity and stop bits on the library's initialization call must equal the converter's serial settings, and the slave address your message call sends must map to the unit ID the Schneider server expects; a parity mismatch alone produces framing and CRC errors with no valid replies.
Start commissioning from the Modbus serial specification's own default line settings — 9600 baud, 8 data bits, even parity, 1 stop bit — set identically in the initialization call and the converter's serial port, and raise the line speed on both ends together only if the poll list needs it. Parity is the one to double-check, because a mismatch still delivers bytes; they just fail the RTU frame check, so the symptom is CRC and framing errors rather than clean timeouts.
| Setting | S7-200 side | Converter side | Schneider side |
|---|---|---|---|
| Baud, parity, stop bits | Initialization call | Serial port configuration | Not involved |
| Slave address on the wire | Message call | Mapping entry input | Not involved |
| Unit ID answered | Not involved | Mapping entry output | Server's unit ID |
| Target IP and TCP service port | Not involved | Client connection settings | Server address and port |
Every request now pays twice — serial transit, then conversion — so size the poll period from the serial budget, not the Ethernet one. The note on why Modbus RTU polling on one serial port is slow works out that per-port budget for a drive line, and the arithmetic carries over unchanged.
How does an S7-1200 connect without a converter? #
The S7-1200 runs Modbus TCP on its PROFINET interface with the MB_CLIENT instruction, given a connection description of type TCON_IP_v4 that carries the Schneider server's IP address, TCP port 502 and the active-connection flag, so the Siemens CPU opens the session and no converter is needed.
Fill the connection description once: the Schneider server's IP address, the Modbus TCP service port, active connect, and a connection identifier unique per connection instance. The unit ID field takes the value the Schneider server accepts — read it from the server's Ethernet configuration instead of assuming it.
Size the data buffer from the transfer: reading 20 holding registers needs 20 words at 2 bytes each = 40 bytes, and a request longer than the buffer overwrites neighboring DB data. Drive the instruction with a pulsed request, gate the next request on the busy output, and read the done and error outputs every cycle; a connection-level status points at IP, port or routing, while a Modbus exception status points at function code or address range.
An S7-1200 exposes one embedded PROFINET port, and if that port must also carry engineering or HMI traffic, the piece asking whether one S7 CPU PN port can run Modbus TCP and S7 comms together settles how the services share it.
Why do the registers read back at the wrong addresses? #
A link that completes and returns shifted or wrong data has already proven the TCP path; the usual cause is Modbus's addressing arithmetic, where the protocol's register addresses run from 0 while Schneider documentation and many HMI tags count the same words from 40001.
Worked example — one-based versus zero-based. The Schneider program exposes %MW0 through %MW99, and Modbus convention maps %MW0 to protocol address 0, the word that one-based documentation calls holding register 40001. You want %MW10 onward, so:
- One-based reference 40011 minus the one-based base 40001 = 10: that is protocol address 10, which is %MW10.
- Enter start address 10 and length 2 in the client call: the reply fills %MW10 and %MW11 into a buffer of 2 words at 2 bytes each = 4 bytes.
- Enter 40011 by mistake and the request asks for protocol address 40011, far outside the mapped block; a conforming server answers with exception code 2, illegal data address, rather than inventing a word.
Wrong values with no exception at all mean the off-by-one lives in the server's documentation layer instead: check the client call's start address against the Schneider table that maps memory words to Modbus offsets, and absorb the shift in exactly one place, with a comment at the call saying which convention it uses.
| Symptom | Cause | Decision |
|---|---|---|
| Values one register off, no exception | Zero-based versus one-based mismatch | Apply the subtraction above, documented at the call |
| Exception on writes only | Schneider area exposed read-only, or not as holding registers | Expose the area as writable holding registers on the server side |
| 16-bit words correct, 32-bit values scrambled | Word order, covered next | Run the word-order test below |
| Coils or discrete inputs dead | Function code does not match the area | Match function code to the Schneider map |
Before any write test, remember that a Modbus write reaching an output word can move real machinery; the practice in the guide to safe Modbus writes to PLC output registers from SCADA — interlocks kept in the receiving PLC — applies to a PLC-to-PLC write exactly as it does to SCADA.
Why do 32-bit values cross the link scrambled? #
When single words cross correctly but REAL and DINT values look scrambled, the two CPUs store 32-bit values in opposite word order: Siemens memory puts the high word at the lower address, most Schneider %MW CPUs put the low word there, so each value crosses with its halves swapped.
Worked example — the word-order test. From the Siemens side, write the DINT 16#12345678 into a mapped double-word and read the two words on the Schneider side. Siemens order sends the high word first: 0x1234, which is 4660, then 0x5678, which is 22136. If the Schneider program receives 0x5678 in the first word, the CPUs disagree on word order, and every REAL and DINT on the link is wrong the same way.
Fix it once, at the mapping boundary. Where the Schneider model offers a word-order setting in its memory configuration, set it to match the Siemens order; otherwise swap the two words in the program on whichever side you own. After the change, the same write must land as 0x1234 first and 0x5678 second, and one REAL of operating magnitude — a live analog value, not a round number — must round-trip bit-identical before you trust the link with floats.
How do you prove the exchange end to end? #
Prove the chain in the order data crosses it: IP reachability, then a TCP session to port 502, then a known value written to the first and last word of the block and read back, then a cable-unplug fault test the error output must survive and clear.
- Ping the Schneider Ethernet module — from a laptop on the converter's subnet on the S7-200 path, or across the network on the S7-1200 path. A reply clears IP and cabling; silence keeps you in the switches before any Modbus question exists.
- On the S7-200 path, watch the converter's counters while the S7-200 sends one request. Serial receive rising but TCP counters dead means the converter took the request and cannot reach the Schneider server — check the target IP and service port. Serial receive dead means the serial hop: line settings, A and B swapped, or the message call never firing.
- Write a known value from the Siemens side into the first word of the agreed block — 1234 is fine — and read it back in the Schneider program online; repeat at the last word so the length is proven at both ends.
- Reverse the direction once: change a mapped word in the Schneider program and confirm it lands in the Siemens buffer within one poll period.
- Unplug the Ethernet cable and watch the error output go true, then recover on its own when the cable returns — no CPU restart, no re-download.
The decision, then. An installed S7-200 stays, and the converter path is the supported one: RTU library as serial master, converter as client toward the Schneider server, with the addressing arithmetic of the last two sections proven before the first value is trusted. A CPU you can change becomes an S7-1200 with MB_CLIENT and a TCON_IP_v4 connection, and no converter ever enters the panel. The five tests above, passed in order, are the sign-off for either path.
Questions asked
Does the S7-200 SMART have the same limitation?
No. The SMART line is a different controller family: Siemens documents Modbus TCP server instructions for the S7-200 SMART's Ethernet port, and its built-in DB-9 serial port runs Modbus RTU by default. None of that carries back to the classic S7-200 CPUs, which remain serial-only where Modbus is concerned.
Why does the first request after an idle pause fail or lag?
Many converters close a TCP session that has carried no traffic for a set idle time, so the first request after a pause pays for a new connection before any Modbus answer can arrive. Raise the converter's idle timeout above your poll period, or send a light periodic read so the session never goes idle.
Which Modbus function codes should the requests use?
Match the code to the area in the Schneider map: 01 reads coils, 02 reads discrete inputs, 03 reads holding registers, 04 reads input registers; 05 writes a single coil, 06 a single holding register, 15 and 16 write multiple coils and registers. Reading inputs with 03 or writing input registers fails with an exception, because the server does not offer those combinations.
What do the common Modbus exception codes mean?
An exception answer means the server refused the request, not that the link failed: 01 illegal function, the server does not implement that code; 02 illegal data address, the address is outside the mapped range; 03 illegal data value, a value in the request is out of range; 04 server device failure, the Schneider program itself reported an error while serving the request.
Can two S7-200 masters share one converter?
One serial port serves one RTU master, because two masters driving the same RS-485 line collide before any request leaves the wire. Give each additional S7-200 its own serial port on the converter or its own converter, and size the mapping table so each master's slave address lands on the unit ID its block of registers expects.