IMDHMIControls LibraryShop main store

Troubleshooting

S7-300 Modbus module replacement is not plug and play

PLC programming Published 6 min read

Short answer

An S7-300 Modbus module swap is a restoration job, not a plug-in fix: identify the module and its role, obtain the matching loadable driver and, on configurations that use one, the authorization dongle, download driver and parameters to each controller, and test duty and standby separately before automatic changeover returns. A comms lamp error indicts the channel, not the module by itself.

On this page
  1. What the comms lamp error proves, and what it does not
  2. Identify the channel before you order anything
  3. The driver and the dongle are part of the replacement
  4. Restoring a Modbus RTU slave channel on a duty-standby 317F pair
  5. The replacement sequence, in order
  6. The decision for each case
  7. Questions asked

No. An S7-300 Modbus module is not a plug-and-play swap in the documented configurations: Siemens supplies Modbus for the point-to-point CPs as a loadable driver that you download into the module, and in a documented 317F Modbus RTU slave installation the driver downloads only with a hardware authorization dongle seated in it. Treat the replacement as a restoration job. Record the exact module and its role, prove the link is actually dead before you order, obtain the driver and any dongle with the module through the manufacturer or its distributor, download driver and parameters to each controller, and test duty and standby separately before automatic changeover goes back in. The comms lamp error is the first clue, not the verdict: broken wiring, a parameter mismatch or a missing driver lights it exactly like a dead module.

What the comms lamp error proves, and what it does not #

The error state says the CP has stopped exchanging valid Modbus frames. That is a statement about the channel, not about the silicon. Clear these causes first, because each one lights the same lamp on a healthy module:

  • Reversed or broken RS-485 wiring. An A/B swap stops slave replies dead — the same reversed-pair mechanism that halts a CM1241 RS485 port, covered in why CM1241 RS485 A/B polarity stops Modbus RTU slave replies.
  • A parameter mismatch. Baud rate, parity, slave address or the register map changed on one side only.
  • A timing fault on the master. A frame gap ahead of the CRC silences an otherwise healthy slave, as why a Modbus RTU frame gap before the CRC silences the slave explains.
  • A peer that is powered down, misaddressed or faulted itself.
  • A channel that lost its driver, for example after a memory reset or an earlier module swap.

Only when all of these check clean does the lamp begin to indict the hardware.

Identify the channel before you order anything #

Write these five rows down for the failing channel. If you cannot fill the table from the faceplate, the drawings and the project, you are not ready to order the module.

What to record Where it lives What it changes
Module order number and suffix Faceplate, cross-checked against the hardware configuration in the STEP 7 project The interface suffix on the order number decides the driver route
RTU or TCP, and CP or gateway Project and single-line drawings A CP replacement and a gateway-based channel are different jobs with different parts
Master or slave role Project The loadable driver ships as a master variant and a slave variant
CPU type Hardware configuration Authorization and download behavior hang off the CPU and the channel, not the module alone
CP parameterization CP settings in the project, edited with PtP Param The channel stays silent unless baud rate, slave address and timing return with the hardware

The driver and the dongle are part of the replacement #

Modbus on these CPs is not baked into the hardware. It is a loadable driver for the CP 341 and CP 441-2, published as "Modbus Master (RTU)" and "Modbus Slave (RTU)"; the master driver sits under Siemens support entry ID 27774018 and the PtP parameterization software under entry ID 27013524. The Modbus RTU documentation for these channels covers setups from STEP 7 V5.5 SP3 onward and puts the driver onto the CP through the Download to device action.

Two details decide how the download runs on your hardware. On the older -1CH01 interface of the CP 341, the driver comes on the CP340, CP341, CP440, CP441 loadable driver CD and installs to the engineering station with the Setup_PTP installer before anything goes to the CP. And in the 317F Modbus RTU slave installation above, the driver loads only once the authorization dongle is seated in the module. That dongle is a licensed part: order it with the module through the manufacturer or its distributor, and never work around it.

Modbus TCP is licensed differently: its registration key ties to the CPU serial number, which why the S7-300 Modbus TCP registration key ties to the CPU serial number covers. Do not carry RTU assumptions across to TCP, or the reverse.

Restoring a Modbus RTU slave channel on a duty-standby 317F pair #

This is the case in front of you, worked end to end. The inputs:

  • 2 controllers, duty and standby — the pair in your panel.
  • 4 channel items per controller, each sourced: the module itself (the failed hardware), the authorization dongle (documented in this 317F RTU slave configuration), the loadable "Modbus Slave (RTU)" driver (the published loadable-driver model), and the CP parameterization — baud rate, slave address, response timing — held by PtP Param.
  • 1 item restored by a bare module swap: the hardware.

The rule in words: a channel works again only when every item its role depends on is present on both controllers, so a swap is complete when restored items equal items times controllers.

The arithmetic:

  • Items to restore: 4 × 2 = 8.
  • Restored by a module-only swap: 1 × 2 = 2.
  • Still missing: 8 - 2 = 6.

The result: a hardware-only swap puts back 2 of the 8 items the pair needs, so both lamps show the same error as before the swap. The decision: drop the dongle from the count if your configuration does not use one — 3 × 2 = 6 — but the rule does not move. Order the module, transfer or reorder the authorization, download driver and parameters to each CP, and hand the pair back to automatic changeover only when both channels pass a poll test.

The replacement sequence, in order #

  1. Capture everything with the plant still running: faceplate photos, indicator states, wiring, and the CP parameterization from the project.
  2. Clear the link causes from the first list; ruling them out keeps a healthy module in the rack.
  3. Order to the recorded order number, plus the matching driver variant and, where the configuration uses one, the dongle — licensed items from the manufacturer or its distributor.
  4. Confirm the standby is carrying the load, then isolate the controller and swap the module per your site's electrical safety procedure, and re-terminate exactly as captured.
  5. In the engineering station, check the hardware configuration against the replacement, run the CD installer where that route applies, and download driver and parameters to each CP.
  6. Test each controller alone: as a slave, answer a poll from the peer; as a master, read one register. When both lamps are clear and both channels pass, re-enable automatic changeover.

The decision for each case #

  • Lamp error, link checks clean, driver and dongle obtainable: replace like-for-like and run the full four-item restoration per controller. This is the normal repair, and it is a job with a download, not a plug-in swap.
  • Lamp error, link fault found: fix the wiring, parameter or peer and keep the module in service; no order goes out.
  • Lamp error, link clean, but the driver or the dongle is unavailable through the manufacturer's channels: a Profibus or PROFINET to Modbus gateway is the documented alternative architecture, but it is a redesign with its own compatibility and test plan, not a swap; choosing a CP 341 or a gateway for an S7-300 Modbus RTU slave works that comparison in detail.
  • One controller of the pair restored, the other not: leave automatic changeover off, because a half-restored pair hands the plant to a standby that cannot talk.

Questions asked

Can I substitute a replacement module from a different hardware variant?

No. Match the order number on the faceplate exactly, including the suffix. A different variant can use a different driver route and may expect different parameters, so a module that fits the rack but not the order number turns one failed channel into two problems. If the exact variant is unavailable through the manufacturer's channels, that is the point to evaluate a gateway as a designed change instead.

How do I prove the module has failed before ordering a replacement?

Clear the cheap causes first: wiring and termination, peer power and address, and parameter match on both sides, because each lights the same lamp error as dead hardware. Then swap in a known-good module or fit the suspect one into a matching station. If the fault follows the module, order the replacement; if it stays in the cabinet, the module was never the problem.

Does any of this change if the channel is Modbus TCP instead of RTU?

The license does. RTU on the point-to-point CPs rides on a loadable driver with, in some configurations, a hardware dongle seated on the module, while the TCP registration key ties to the CPU serial number, so on a TCP channel the CPU is the licensed item. The replacement sequence itself reads the same: identify the channel, restore the authorization, download, and test each controller of the pair on its own.

Why did the comms error come back after an apparently successful swap?

Because the restoration stopped at the hardware. The usual leftover is the second controller: driver and parameters restored on the duty CP but not the standby, so the pair runs until the changeover test and fails there. Check that both CPs hold the driver and the parameters, both lamps are clear, and each channel has passed a poll in its configured role before automatic changeover goes back in.

Keep reading

  • How-to

    Migrating a Standard PID Control PID_CP block to an S7-1500

    PID_CP from Standard PID Control does not convert into an S7-1500 project, and know-how protection blocks the conversion outright. Rebuild the loop on PID_Compact, reproduce the missing LMN_OP function with a small pre-call block, and prove identical response on trends before you commission.

    PLC programming

  • Troubleshooting

    Fix STEP 7 V5.5 warning after TIA Portal wrote an S7-300

    Download the hardware configuration and blocks from a freshly created SIMATIC Manager project and the warning clears; a CPU 313C-2DP recovered exactly this way. Formatting the MMC with the mode switch (MRES held roughly 9 s until the STOP LED stays lit) does not clear the TIA-written state, so use it only when you also want the card empty.

    PLC programming

  • Troubleshooting

    MB_CLIENT version change after TIA Portal V16 migration

    A TIA Portal V13 SP1 to V16 migration does not by itself change the drive; it changes which MB_CLIENT revision, CPU firmware and request data the project carries. Compare the instruction version in both archived projects, read the online CPU identity (the replacement CPU may be V4.4 or V4.5), test the older revision in a project copy, and capture one request to confirm address, quantity and word order before judging homing failures as drive faults.

    PLC programming