IMDHMIControls LibraryShop main store

Troubleshooting

Why a RevPi PROFIBUS gateway offline LED flashes red

Industrial networks Published 8 min read

Short answer

The gateway's offline LED flashes red because the station address matching at 3 is necessary but not sufficient. The ET 200SP CM DP must run as PROFIBUS DP master with the gateway assigned to its master system, and the slave's module list in TIA Portal must match the GSD and PiCtory modules in type, order, direction and byte length. Verify the DIP decoding, address uniqueness, cable and end-only termination, then recompile and download.

On this page
  1. Why does the gateway flash red offline when the station address matches?
  2. Is the CM DP in TIA Portal actually the DP master?
  3. Does the TIA Portal module list match PiCtory byte for byte?
  4. How do I check the DIP switch station address on the gateway?
  5. What should I check on the PROFIBUS cable and termination?
  6. Which commissioning sequence brings the gateway online?
  7. How do I prove data exchange in both directions?
  8. What decides each outcome in this fault?
  9. Questions asked

A station address that matches is one condition, not the whole test. On this install the gateway shows power green and the offline LED flashing red, piTest -d reports no errors, and the gateway's reported Module state is 0x00: the local RevPi process image is healthy, but the DP master has never started cyclic data exchange with the slave. The gateway comes online when the ET 200SP CM DP operates as the PROFIBUS DP master with the gateway assigned to its master system, and the slave's module list in TIA Portal matches the GSD and PiCtory in type, order, direction and byte length. Verify the DIP decoding, address uniqueness, cable and end-only termination, recompile and download, then prove both directions with test values. Work the checks below in order; the first one that fails is your fault.

Why does the gateway flash red offline when the station address matches? #

A matching address is a necessary condition, not the one that starts data exchange: the flashing red offline LED says the DP master has not accepted the slave, and here that acceptance is blocked by the master role and the module configuration, not by the station address.

PROFIBUS DP is a master/slave bus. Before cyclic data flows, the master sends the slave a parameterization string and a configuration string, and the slave compares that byte map against what it actually presents, as declared in its GSD and laid out in PiCtory. Any disagreement and the slave never enters data exchange, which is exactly what a flashing offline LED on a powered, healthy gateway reports. The clean piTest -d result belongs to the other layer: it proves the Core sees its own devices, not that a fieldbus session exists. Read the reported Module state value against the gateway's documented status table, but let the LED carry the verdict here.

Is the CM DP in TIA Portal actually the DP master? #

In this setup the CM DP (6ES7 545-5DA00-0AB0) on the ET 200SP CPU (6ES7 510-1DJ01-0AB0) must be the PROFIBUS DP master, so open its properties, confirm the operating role, and place the gateway on that CPU's DP master system rather than leaving the slave unassigned.

Installing the GSD file only registers the gateway in the hardware catalog; it does not instantiate a slave or assign one to a master. In TIA Portal V15, set the CM DP's operating role to DP master, then drag the gateway's catalog entry onto that master system so the slave is assigned to the master it is physically cabled to. A gateway that exists only as a catalog entry, or hangs on a different subnet, is never parameterized, so it stays offline no matter how well the address matches. RevPi7 is PROFINET-based with further conditions on top, so it is not the route for this PROFIBUS gateway; the same fieldbus split is described in why a RevPi Connect S needs a PROFINET gateway for an S7-1500. The assignment step is the same one used when connecting an S7-1200 to a PROFIBUS slave through a CM 1243-5.

Does the TIA Portal module list match PiCtory byte for byte? #

Match the module list in type, order, direction and byte length: a PiCtory layout totalling 16 input bytes and 16 output bytes is accepted only by a TIA Portal slave entry with the same 16-and-16 totals, and 8 against 16 fails the comparison.

The master's configuration string is an ordered byte map, and the slave accepts it only when every slot agrees with what its GSD declares. Translate directions explicitly instead of copying labels: master inputs are bytes the PLC receives from the gateway, which are the bytes the RevPi side transmits; master outputs are bytes the PLC sends, which the RevPi side receives. The server module (6ES7 193-6PA00-0AA0) completes the ET 200SP assembly and takes no part in PROFIBUS communication, so it never enters this comparison.

Worked example with invented module counts, to show the arithmetic: say PiCtory lists two 8-byte input modules and one 8-byte output module on the gateway, so the RevPi side maps 8 + 8 = 16 input bytes and 8 output bytes. The TIA Portal slave was filled with one 8-byte input slot and one 8-byte output slot, 8 in and 8 out. Compare totals per direction: inputs 16 against 8 fail, outputs 8 against 8 pass. The master rejects the configuration over the input direction and the slave stays offline, with the station address matching the whole time. Add the second 8-byte input slot in TIA Portal, or delete the extra module in PiCtory so both sides read 8 in and 8 out; then re-save, reset the driver, recompile and download. Your real counts come from PiCtory and the installed gateway's GSD, not from this example.

Also pick the catalog entry that corresponds to the installed gateway hardware; where the catalog offers several entries, the wrong one carries a different configuration string and fails the same way.

How do I check the DIP switch station address on the gateway? #

Read the address switches against the gateway manual's weighting table and expect the decoded value to be 3: switch weights are summed, so a reading of 3 confirms the setting, while any other decoded value or a duplicate on the segment keeps the slave unidentified.

Decode the switches using the manual's documented weighting rather than reading the positions informally, then confirm the value is unique: exactly one station on the segment may hold the configured address, so check every device cabled to the bus, not only the ones you expect to talk. The documented address reset was already tried on this install and communication stayed down; repeating a reset without any changed observation cannot separate a wiring fault from a rejected module configuration.

What should I check on the PROFIBUS cable and termination? #

Trace one continuous segment from the CM DP's PROFIBUS connector to the gateway with no reversed conductors, loose connectors or branches, and terminate only at the two physical ends of the segment, never at a mid-run station.

This segment has exactly two PROFIBUS stations, so the CM DP connector and the gateway connector are both segment ends and both carry termination switched on; there is no intermediate station here to leave unterminated. Confirm the A and B data conductors are not swapped at either connector, seat every connector fully, and check that no stub or second run branches off the segment. Where a terminating connector needs its supply contact per its documentation, verify that contact as well before calling the bus hardware good.

Which commissioning sequence brings the gateway online? #

Fix the configuration in one pass: correct the master role and module list first, then the address and bus checks, and only then restart the driver and download, because process data interrupts during every download and driver reset.

Put the machine in a safe state before any download or driver reset: cyclic process data stops while each one runs. Then work the list:

  • Record what exists now: the PiCtory layout, the switch positions, the TIA Portal module list and the online diagnostic text, so every later change stays checkable.
  • Validate the local side: confirm PiCtory matches the connected Core and gateway, save it with File -> Save as default configuration, run Tools -> Reset Driver, and expect piTest -d to list the devices without errors.
  • Set the master side: confirm the CM DP operating role, assign the gateway to its DP master system, and add the slave's modules in the same type, order, direction and byte counts as PiCtory.
  • Compile, resolve every configuration error, download the hardware configuration, and compare the online device configuration against the project.
  • Re-read the CM DP diagnostics and the gateway LEDs before touching application data.

How do I prove data exchange in both directions? #

A quiet diagnostic proves less than a value that moves: write an example test value such as 85 (0x55) into a Siemens output byte and expect the same byte to appear in the gateway's RevPi-side image at the documented offset, then drive a known value the other way.

Use an isolated, non-actuating byte so nothing on the machine moves: 85 is 0x55, binary 01010101, so a stuck or shifted bit shows immediately. Read the RevPi-side bytes at the offset the GSD arrangement gives, not at an assumed one, and the byte must read exactly 85. Then set a known value on the RevPi side and read it back in a Siemens input byte. Bytes that arrive shifted or land in the wrong slot are an offset or direction error in the mapping, the same class of fault as fixing an S7-300 PROFIBUS gateway whose module address sits above the process image. A steady LED with wrong offsets is a mapping fault, not a bus fault.

What decides each outcome in this fault? #

The LED state is decided by the first failed condition in this chain, so work the list until a check changes its result: master role and slave assignment, module match, address decode and uniqueness, cable and end termination, then a two-direction data test.

  • CM DP not in the master role, or gateway not assigned to its master system: the slave is never parameterized, so fix the role and assignment before any other check.
  • Module totals differing in type, order, direction or byte count: the master rejects the configuration string, so align the TIA Portal slots with PiCtory and recompile and download.
  • Decoded switch value not equal to the configured address, or another station holding it: re-set the switches against the manual's weighting or remove the duplicate from the segment.
  • Address correct and unique, modules matched, bus intact, LED still flashing: re-check that the catalog entry corresponds to the installed gateway hardware, re-save the PiCtory default, reset the driver, recompile and download.
  • Offline LED steady and both test values arriving at the documented offsets: commissioning is done, so map the application data and return the machine to service.

Questions asked

Does a station that is powered down still block a PROFIBUS address?

Yes, if it is still connected to the segment. Address uniqueness applies to every cabled station, so a spare or retired device left wired at the gateway's address keeps identification ambiguous even though nothing on it is running. Disconnect such a device from the bus or give it a different address before you judge the gateway's own switch setting.

Why did the documented address reset not bring the gateway online?

Because the reset restarts the gateway with the same configuration string, and the master rejects that string again for the same reason. A reset helps when the gateway holds a stale address or internal setting; it cannot repair a module list the master considers wrong. Change the configuration or wiring first, and repeat a reset only when an observation has actually changed.

What does each CM DP diagnostic finding point to?

An unreachable or no-response finding points at the physical layer: cable, connectors, termination or a duplicated address. A parameterization rejection points at the settings exchanged at startup, often a catalog entry that does not correspond to the installed gateway hardware. A configuration-mismatch finding points at the module list itself, meaning type, order, direction or byte totals differ from what the device reports. Read the finding before editing anything.

Can the RevPi Core 3 be the PROFIBUS master for this segment?

Not through this gateway arrangement. The RevPi PROFIBUS gateway presents the RevPi side as a DP slave to the PLC's master, so cyclic exchange starts from the CM DP being the master. If the application needs the RevPi to control PROFIBUS slaves itself, that needs a PROFIBUS master interface, not a setting on this slave gateway.

Keep reading

  • Selection guide

    Choosing how an S7 PLC talks to a Mitsubishi Q or AnS PLC

    Yes — the link exists on every generation. Put Modbus TCP (QJ71MT91) or Modbus RTU (QJ71MB91) against a Mitsubishi Q series PLC, PROFIBUS master or slave against an AnS or QnAS because those generations had no Modbus modules, and a protocol-converting gateway where the two sides share no interface.

    Industrial networks

  • Selection guide

    How to choose between Modbus, Profibus and CANopen

    Match the protocol to the PLC master that already exists, not to the datasheet that impressed you. Then fit the cable run to the bit rate, because CAN-based trunks shorten as speed rises, and mix protocols one segment at a time through gateways or the PLC itself. A fourteen-device example shows the arithmetic.

    Industrial networks

  • Explainer

    Why a MicroLogix needs a Modbus gateway to join PROFIBUS

    No MicroLogix has a native PROFIBUS interface, and the 1769-DPM is documented for CompactLogix only. Run each MicroLogix 1100, 1200 or 1500 as a Modbus RTU slave on its serial port, polled by a gateway that is Modbus RTU master and PROFIBUS DP slave. The bus master sees only the gateway's process image, and data age is the serial poll cycle plus one bus cycle.

    Industrial networks