IMDHMIControls LibraryShop main store

Troubleshooting

Troubleshooting an EMI-5 Modbus to PROFIBUS gateway fault on S7-300

Industrial networks Published 9 min read

Short answer

SF and BF with "Peripheral faulty" and implausible DP responses are PROFIBUS-side symptoms: the S7-300 is failing its DP link to the EMI-5 gateway, not the Modbus exchange with the instrument behind it. Fix station address, GSD match and segment termination first; then check the serial leg's slave number, parity and baud. Dropping the bus to 9600 bps cannot repair a broken conductor or a rejected configuration.

On this page
  1. One fault, two links
  2. Read the DP diagnostics before replacing anything
  3. Inspect the DP segment physically
  4. Match the station address and the GSD configuration
  5. Check the Modbus RTU link to the instrument
  6. Worked example: timing a two-register reply at 9600 bps with even parity
  7. The decision for each case
  8. Questions asked

Treat this as two faults joined by one cable, not one fault. The S7-300 exchanges PROFIBUS DP data with the EMI-5 gateway, and the gateway exchanges Modbus RTU requests and replies with the multifunction instrument behind it. SF and BF on the CPU, together with the diagnostic texts "Peripheral faulty" and "the DP slave has supplied implausible responses", describe the DP link, so the DP link is where the work starts. The Modbus side only becomes testable once the DP station exchanges cyclic data. And the 9600 bps rate drop already tried decides nothing by itself: a lower rate can steady a marginal signal, but it cannot repair a broken conductor, a duplicate station address or a rejected configuration. Work down the branches below and the diagnostics will name the failing one for you.

A measurement value travels exactly two legs, and each leg has its own wiring, settings and failure modes:

  • PROFIBUS DP leg. The CPU's DP interface cyclically exchanges input and output bytes with the EMI-5, configured as a DP slave with a station address and a module layout taken from its GSD file.
  • Modbus RTU leg. The gateway works as a Modbus master on its instrument port, polling the multifunction instrument with a slave number, a serial format and a register map, and writes accepted replies into the process data the PLC reads.

SF is the system fault LED and BF the bus fault LED. Neither names the defective element, and neither says anything about the instrument port. The decision rule: if the DP diagnostics show the station unreachable or rejecting its configuration, every setting on that serial port is irrelevant until it clears. If the station is healthy and cyclic data flows but the values freeze or stay zero, the fault is the other leg — the walkthrough on fixing an S7-300 PROFIBUS gateway that is detected but reads no I/O data works that exact branch.

Read the DP diagnostics before replacing anything #

Open the CPU diagnostic buffer in STEP 7 and the online view of the DP master system in the hardware configuration. Record, for the configured EMI-5 station, its address, the exact diagnostic text and whether the fault is continuous or intermittent. The reported texts are DP-side statements, and each selects a branch:

Diagnostic finding What it tells you Branch it selects
Station not reachable The master gets no answer at that address Physical segment, then station address
"Peripheral faulty" The converter flags a problem on its own peripheral path; many gateways mirror their serial-side trouble into these diagnostics Detailed slave records, then the serial leg
"The DP slave has supplied implausible responses" Something answers, but corrupted or out of spec Termination and noise, or a wrong device at that address
Parameterization or configuration rejected The slave hears the master and refuses the setup GSD file and module layout
Station fine, values frozen DP exchange works; instrument data is not arriving Modbus RTU leg

The same station records can be read from the program with SFC51 (RDSYSST), which reading DP slave diagnostic addresses with SFC51 on an S7-300 sets up step by step. Timestamps matter: a fault repeating every few seconds points at wiring, termination or supply, while one that follows a machine state points at a device resetting mid-cycle.

Inspect the DP segment physically #

Put the machine in a defined stop state first — pulling a powered DP connector splits the segment and removes termination supply for everything downstream of it. Then work the list:

  • Draw the real cable route from the DP master to every station, including both physical ends; do not infer it from station-address order.
  • At each connector, confirm it is seated and locked and that the two data lines land on pins 3 and 8 of the 9-pin D-sub. An A and B swap stops replies completely, exactly as why CM1241 RS485 A/B polarity stops Modbus RTU slave replies shows on the serial side.
  • Confirm termination at the two physical segment ends only, with the terminating resistors actually powered; a terminating plug without supply terminates nothing.
  • Read the EMI-5 supply voltage at its terminals and watch for dips or resets during the fault.
  • If other DP stations share the segment, compare their diagnostics: several stations failing together points at shared cable, termination, supply or the master, not at this converter.

Correct what you find and re-read the station status before touching a single setting. A rate reduction gives each signal transition more time, which is why one slow-rate trial is worth doing; that trial is spent, the fault is unchanged, and the physical branch stays open. For a fault that comes and goes, the same segment discipline applies — troubleshooting intermittent PROFIBUS dropouts on an S7-400 network is the same method on a different master.

Match the station address and the GSD configuration #

DP start-up runs in stages: the master parameterizes the slave, checks its configuration, and only then begins cyclic exchange. A slave that answers physically can still refuse the setup, and that refusal produces exactly the SF and BF pattern in front of you. Check in this order:

  • Station address. Read the number actually set on the EMI-5 — switches or a stored parameter, per its manual — and compare it against the configured slave address. PROFIBUS addresses run from 0 to 126, and converters commonly leave the factory at the top of that range, so an unconfigured unit answers on a number your project has never called. Sweep the segment for duplicates: two devices answering as one station generate precisely the implausible-response pattern. Expect to power-cycle the converter after changing its address.
  • Device identity and GSD file. Use the GSD that matches the converter's identification and revision shown on the label, obtained from the manufacturer or its distributor. Do not substitute a similar gateway because its data size looks close.
  • Module layout. Compare every configured module, its order and its input and output lengths against the converter's documented layout; one wrong length fails the configuration check as a block.
  • Slave parameters. Enter operating-mode and data-mapping parameters only with the meanings from the manual, never by guessing from the raw values.

Compile, download during a maintenance window, and read the diagnostics again. If the rejection clears, cyclic exchange starts and the serial leg becomes testable. If it survives a verified-correct configuration, stop: keep the diagnostic records and the exact configured module list and take them to the manufacturer's support, because an SF/BF description alone tells them nothing.

With the DP station exchanging cyclic data, the converter turns Modbus master and the instrument slave. A healthy DP link proves nothing about this leg; the values in the process image are only as good as the last accepted reply. Verify four things against both manuals:

  • Slave number. The address in the gateway's request must equal the instrument's. A request aimed elsewhere simply times out — the off-by-one and leftover-default cases in why Modbus RTU sends to slave address 0 instead of your device are exactly this failure.
  • Serial format. Data bits, parity and stop bits must match at both ends, because a single parity mismatch garbles every frame. The case in why a DL05 Modbus RTU slave answers only with ODD parity shows how harmless one parity bit looks while it blocks every reply.
  • A and B wiring. RS-485 polarity, shield and reference behave on this port exactly as on the DP cable, so re-verify rather than assume.
  • Baud rate. Use a rate both devices document as supported. Slowing down cures only marginal signals, and some Modbus RTU devices refuse rates below 19200 bps outright — note on fixing a Modbus RTU baud rate below 19200 bps documents one such device — so confirm the instrument's supported list before slowing the port.

Only once this leg answers does the register map matter: map the returned registers to measurements and sanity-check them against the instrument's own display. If the DP side is up and the values never change, this leg is the whole fault.

Worked example: timing a two-register reply at 9600 bps with even parity #

Timing decides whether a slow serial leg can work at all. Take the case this commissioning ended in: the port runs at the rate already forced on site, 9600 bps, and the instrument replies in the RTU format the gateway uses — 8 data bits, even parity, 1 stop bit.

Inputs, and where each comes from:

  • 9600 bps — the rate the on-site trial set (the reported symptom).
  • 11 bits per character — 1 start plus 8 data plus 1 parity plus 1 stop, the RTU character format.
  • A 9-character reply — 1 address byte, 1 function byte (04, read input registers), 1 byte-count byte, 4 data bytes for two registers, 2 CRC bytes. Two registers are an example length; the instrument's register map is not documented here.

The rules, in words: a character time is bits per character divided by the signalling rate; a reply's transmission time is its character count times the character time; RTU frames must sit at least 3.5 character times apart.

The arithmetic:

  • Character time: 11 bits ÷ 9600 bps = 0.00115 s, about 1.15 ms.
  • Reply time: 9 characters × 11 bits = 99 bits; 99 ÷ 9600 bps = 0.0103 s, about 10.3 ms.
  • Minimum silence: 3.5 × 1.15 ms ≈ 4.0 ms.

Result: the reply occupies the wire for about 10.3 ms, and one complete poll with framing silence fits in about 14 ms — at a 1 s poll period the port idles more than 98 percent of the time, so speed is not the constraint.

Decision: set the converter's response timeout (its manual names the parameter) comfortably above 10.3 ms; an example order of magnitude is 100 ms, so one slow frame never fails a poll. Read the symptom accordingly: a timeout report with the DP side healthy points at the slave number, the parity or the wiring on this leg, never at speed; silence at every rate points at the instrument, and no timing figure rescues that.

The decision for each case #

Commit per symptom, and re-read the diagnostics after every change:

  • Bus fault, station unreachable, continuous: work the DP physical branch — route, connectors, termination with verified supply, converter power, duplicate-address sweep — before any replacement.
  • The slave supplies implausible responses: something answers corruptly. Re-verify termination, confirm the device at that address is the configured converter, then suspect the converter itself.
  • Parameterization or configuration rejected: correct the GSD revision, the module list and the slave parameters, download, re-read. If rejection survives a verified-correct configuration, package the five evidence items listed at the end of this page for the manufacturer.
  • Station fine but values frozen or zero: the serial leg owns the fault. Prove it with a direct poll test before touching the gateway settings.
  • Intermittent dropouts: hunt shared-segment causes — supply, termination, cable runs — and meanwhile gate the program's use of these values on the station's connected-and-error-free status bit so bad data never reaches the logic while you hunt.

For the reported case — SF and BF, the peripheral-fault and implausible-response texts, values not yet flowing, the rate already lowered — the work sits entirely in the DP branch: address, termination and GSD match. Nothing on the Modbus side can be tested, blamed or tuned until this station exchanges cyclic data.

Questions asked

Do all stations on a PROFIBUS segment run at the master's baud rate?

Yes. A DP segment has one signalling rate: the master sets it and every slave detects and follows it automatically, so there is no per-slave speed setting to change on the converter's DP side. Changing the rate means changing the master's bus profile and re-reading the diagnostics. A slave that cannot hold the rate drops out entirely rather than running slower, which shows as the same bus fault you are already chasing.

Why might the converter answer on station address 126 out of the box?

126 is the top of the standard PROFIBUS address range and a common factory default for converters, because it is the address commissioning tools use. If your hardware configuration expects a different number, the master keeps polling an empty station and the bus fault stays. Set the address on the converter, power it down and up again if its manual requires that, and make the configured slave number match exactly.

How do I test the Modbus RTU link without the PLC in the loop?

Take the converter's instrument port out of the fault path: connect the instrument through an RS-485 adapter to a laptop running a Modbus poll tool, and request its registers directly using the slave number, parity and baud you intend the gateway to use. A direct reply proves the instrument, its address and the serial format; silence or exception frames point at the address, the format or the wiring, before you blame the gateway.

What should I send the manufacturer when a configuration rejection persists?

Send the exact evidence, not just LED states: the diagnostic buffer extract for the station, the configured module list with input and output lengths, the GSD file name and revision used in hardware configuration, the converter's set station address, and its firmware version from the label or its own diagnostics. With those five items a vendor can usually tell you within one exchange whether the layout or the device identity is wrong.

Keep reading

  • Selection guide

    Choosing a CP-341 or gateway for an S7-300 Modbus RTU slave

    For an S7-300 that must answer as a Modbus RTU slave, a PROFIBUS DP-to-Modbus RTU gateway is the lower-effort route: no separately licensed loadable driver and no serial code in the CPU. Choose the CP-341 with its Modbus Slave (RTU) driver only when the link must be independent of the fieldbus or when you need a per-write flag such as CP_NDR. Before ordering, confirm the exact gateway variant runs DP slave and Modbus RTU slave simultaneously.

    Industrial networks

  • Troubleshooting

    Fix an S7-300 PROFIBUS gateway: module address above the image

    The PROFIBUS side is fine: the S7-300 accepted the GSD file and the telegram carries your values. The assigned module addresses sit above the CPU's process image, so ordinary I and Q access reads zeros. Move them into bytes 0 to 127, or read and write them with peripheral access.

    Industrial networks

  • Troubleshooting

    Troubleshooting intermittent PROFIBUS dropouts on an S7-400 network

    Save and read the CPU diagnostic buffer before touching anything: the earliest OB86/OB85 entries, mapped against the physical segment drawing, tell you whether the losses share one repeater segment. On a bus that ran seven years and began failing after an encoder tie-in was relocated and re-terminated, one physical-layer fault at that tie-in or its segment's end termination explains all three DP indicators and the self-recovery.

    Industrial networks