IMDHMIControls LibraryShop main store

How-to

S7-200 Port 0 Modbus RTU wiring: pins 3, 8, termination

Industrial networks Published 6 min read

Short answer

Connect each counter's two-wire RS-485 pair to S7-200 Port 0 DB9 pins 3 and 8. Matching terminal letters is unreliable, so confirm polarity with a poll-and-reverse test. Fit one 120 ohm termination resistor at each of the two physical ends of the trunk and none at intermediate devices.

On this page
  1. What the standard asks of the wire
  2. Record the working baseline first
  3. Build the harness in this order
  4. Terminate the two ends, and only the ends
  5. The decision for each case
  6. Questions asked

Wire each energy counter's A and B pair to S7-200 Port 0's DB9 pins 3 and 8, confirm the polarity by polling one counter and reversing the pair if it stays silent, and fit one termination resistor at each of the two physical ends of the trunk — and nowhere else. Terminal letters alone are an unreliable guide because A/B labeling is not consistent across manufacturers, and termination at every device overloads the driver. This article covers the harness, polarity, routing and termination for an S7-200 CPU 222 acting as a Modbus RTU master over RS-485.

What the standard asks of the wire #

Modbus RTU over RS-485 runs on one differential pair: a driver places a voltage across two conductors, and every receiver reads the difference between them. Reversing the pair reverses the sign of that difference, so a receiver that expects one polarity sees an inverted signal and typically returns nothing usable — continuity checks pass while communication fails.

For termination, the RS-485 electrical layer (TIA/EIA-485) specifies a driver that must deliver at least 1.5 V across the bus with 32 unit loads and two 120 ohm terminations connected. That is where the 120 ohm value comes from: it matches the cable's characteristic impedance, so a reflected wave arriving at the end sees no discontinuity. The Modbus convention, and the practice that works, is exactly two resistors — one at each physical end of the trunk, none on intermediate devices.

Record the working baseline first #

If your existing cable and connectors already poll all seven counters successfully, that installation is your reference. Keep the PLC program and the meter serial settings unchanged while you rebuild the harness, and note the slave addresses, baud rate, parity and stop bits from the running project. Changing wiring and settings together makes a failed test impossible to diagnose. Poll all seven counters once before touching anything and record which respond.

Build the harness in this order #

  1. Confirm the pinout from the manual, not from sight. Port 0 on an S7-200 CPU is RS-485 compatible on a 9-pin D-sub connector, with the data pair on pins 3 and 8. Check the S7-200 System Manual's pin table for your CPU and identify whether your drawing shows the mating face or the solder side — a mirrored view puts your conductors on the wrong contacts.

  2. Wire both data conductors to pins 3 and 8. Connect one meter conductor to pin 3 and the other to pin 8 on each connector along the trunk. Do not assume the meter's A goes to the pin you call A; resolve it by the test in step 5.

  3. Leave every other contact isolated. Unless the meter documentation requires a signal-common or shield connection on a specific contact, keep unused pins unconnected and taped so nothing shorts to the shell or to the data pair. A cable shield controls interference; it is not automatically a signal reference.

  4. Test the harness de-energized. With the CPU and meters off, check that each conductor reaches its intended contact at every meter and that the two conductors, the shield and the shell are isolated from each other. Keep the untwisted section at each connector under about 25 mm and clamp the cable, not the conductors, for strain relief.

  5. Set polarity with one counter. Connect a single meter, restore power, and poll its recorded address. If it answers, the mapping is correct — write it down before touching the rest. If pin numbering and settings check out but it does not, swap that meter's two conductors and poll again; the pair that answers is the correct polarity for that meter, and it applies to every identical meter on the bus. This matters because A and B are swapped between vendors.

  6. Add the remaining counters along one trunk. Daisy-chain the meters on a continuous run from the CPU to the far end; do not wire them in a star, because branch stubs reflect signals back at different times. Poll after each addition and confirm the meters already connected still answer.

The program side of this network — how the S7-200 issues requests as master and reads a sensor's registers — is covered step by step in the article on connecting an S7-200 to a Modbus RTU sensor and reading its register, so this harness only has to deliver the bytes. If a counter never answers even with correct wiring and settings, the fault-finding in the article on a CJ2M Modbus RTU master getting no answer from an S7-1200 applies to the same failure pattern on any Modbus RTU master.

Terminate the two ends, and only the ends #

With the trunk built, fit one termination resistor across pins 3 and 8 at each physical end: at the CPU's connector if it sits at an end, and at the last meter's connector. Count the CPU as an end only when no cable continues past it.

Worked example. A trunk of seven meters ends at the CPU at one end and the seventh meter at the other. Fit 120 ohms at the CPU connector and the same at the last meter: the two resistors appear in parallel to the driver as (120 × 120) ÷ (120 + 120) = 60 ohms, which matches the TIA/EIA-485 case the driver is rated for. If instead each of the seven meters also had built-in termination switched on, those seven loads plus the two end resistors present roughly nine resistive loads in parallel, about 13 ohms, and the differential voltage collapses toward the floor where receivers cannot distinguish a valid bit. So: switch off or remove termination on all intermediate devices, keep exactly two resistors, and check the meters' manuals for a DIP switch or jumper that enables internal termination.

Also inspect the connectors you remove. A PROFIBUS connector often carries a termination resistor or biasing network behind a switch; replacing it with a plain D-sub plug changes the network's electrical load even when the pair lands on the right pins. Biasing — pull-up and pull-down resistors that define the bus state between frames — is usually supplied by a device or an end connector, not added separately; if the bus idles unreliably, check which component provides it before adding more, because extra networks add load the same way extra terminations do.

One safety note: de-energize the CPU and meters before fitting or moving connectors and resistors, and confirm the meters' supply is off before working at their terminals.

The decision for each case #

  • Making your own connectors: pins 3 and 8 carry the pair on Port 0; set A-to-3 or A-to-8 by the single-meter poll-and-reverse test, not by lettering.
  • Termination: one resistor at the two physical trunk ends only; none at intermediate devices; account for any termination hidden in existing connectors or meter DIP switches.
  • Routing: one continuous daisy-chained trunk, short stubs, twisted pair kept through every connector.
  • Still failing after that: the wiring is no longer the suspect — move to the polling and settings checks in the article on polling many Modbus RTU slaves from one serial master, which covers timing and addressing on a shared serial port.

If the network later grows to the point where the counters feed a visualization or logging station beside the controller, that station is a computer-in-the-cabinet choice, not a wiring one: an industrial mini PC in the cabinet can serve the collected data while the S7-200 keeps polling the bus.

Questions asked

Can I reuse PROFIBUS cable and connectors on a Modbus RTU network?

Yes for the physical layer. PROFIBUS cable is a twisted, shielded pair with a characteristic impedance near 120 ohms, which suits RS-485, and the protocol is set by the message content, not the cable label. Keep the twisted-pair construction through every connector, keep stubs short, and check whether the PROFIBUS connectors you reuse contain termination or biasing components that would add loads to the bus.

What happens if I terminate every device on the bus?

Each extra 120 ohm resistor loads the driver. Ten devices each with built-in termination present roughly ten such loads in parallel, about 12 ohms, which can pull the differential voltage below the level receivers need to read a valid logic state. The result is intermittent corruption that worsens as the network grows, even though every individual link looks correct.

Does the S7-200 CPU 222 have built-in termination on Port 0?

Treat Port 0 as a plain RS-485 port on DB9 pins 3 and 8 and confirm any internal termination or biasing in the S7-200 System Manual for your CPU before counting it toward the network's endpoint termination. If the CPU sits at a trunk end, you can place the termination in the connector you fit there; if it is an intermediate drop, it carries none.

Why do my meters only answer some of the time?

Intermittent replies with correct wiring usually mean a missing or duplicated termination, a biasing problem that leaves the bus undefined between frames, or a ground potential difference between the PLC and the meters. Measure the DC voltage between each data conductor and a known reference with the bus idle: a floating pair drifts, while a biased pair sits at a stable small differential voltage.

Keep reading

  • Troubleshooting

    Why a CJ2M Modbus RTU master gets no answer from an S7-1200

    Yes, a CJ2M can poll an S7-1200 over Modbus RTU. The simulators proved each PLC's serial settings, not the cable or the port mode between them: set the Omron port to the mode the MRTU_CPU_Master package requires, bring the send pair onto RDA and RDB for 2-wire operation, load the S7-1200 port at even parity, and confirm the frame on the wire with a known value.

    Industrial networks

  • Troubleshooting

    Why a Modbus RTU read and write on one port drops VFD control

    A working Modbus RTU write proves only that the write request and its register are right. When adding a read to the same RS-485 port drops VFD control, the fault is almost always in the read path: an invalid read register, a timeout that overlaps the next transaction, or two requests colliding on one serial master. Keep the port mode that works, add one read at a time, and record the PLC timeout and error code for each.

    Industrial networks

  • How-to

    Driving a WAGO 750-653 Modbus RTU module from CODESYS

    On a CODESYS Control Win V3 soft PLC, WagoAppPlcModbus cannot reach a 750-653 behind a 750-354 EtherCAT coupler, because those blocks need WAGO controller firmware. Drive the module's raw process image yourself: set the serial parameters, move each fragment with the control/status byte toggle handshake, and frame the Modbus RTU request and response in your task. Each fragment costs at least two task cycles, so a full transaction takes ten cycles or more.

    Industrial networks