A PROFIBUS DP Slave That Will Not Exchange Data: the Address, the GSD and the Configuration It Was Sent

A PROFIBUS DP Slave That Will Not Exchange Data: the Address, the GSD and the Configuration It Was Sent

An ET 200SP with an IM 155-6 DP HF, article number 6ES7155-6BA01-0CN0, sits on the bus with its RN LED flashing and never goes solid. Every other station on the segment is exchanging data, the address on the DIP switch reads 12 and the project says 12, and the master reports the station missing.

Data exchange is the last of four things that happen, not the first. The slave has to have an address, be parameterised, have the configuration it was sent agree with the modules it actually has, and only then does cyclic I/O start. A station that never reaches exchange is stuck at one of those four, and the interface module tells you which one with two LEDs before you connect anything to anything.

Flashing RN means it has not been configured, or it is still being parameterised. Flashing ER means the configuration it was sent does not match what is in the rack.

The four stages of PROFIBUS DP startup with the LED state for each

Drawn from the manual’s own LED tables. Three of the four stages are silent from the master’s point of view, which is why the LEDs at the station are worth the walk.

The thing everybody changes first

The address. It gets checked, changed, checked again and changed back, and on a station that has never worked it is genuinely worth one look — but on a station that worked yesterday it is almost never the fault, because nobody moved the switch.

There is a trap inside the address check that catches good people, and it is printed in the manual as a single sentence. A change to the PROFIBUS DP address only becomes valid for the ET 200SP after a POWER ON of the interface module. Set the switch on a live station, watch nothing change, set it back, and you have proved nothing either way.

Valid addresses are 1 to 125, and each one may be used only once on the bus.

A wrong address gives you one clean symptom and no ambiguity at all.

Station status 1, bit 0: the DP slave is not responding to the DP master. The manual’s own remedy list for that bit is short and in the right order — is the correct address set, is the bus connector plugged in, does the slave have its supply, is the RS485 repeater configured properly.

Which of the four stages you are stuck in

Start at the station, not the laptop. The interface module carries RN, ER and MT LEDs plus a PWR LED, and a DP LED on the RS485 interface itself.

All three dark is no supply or too little of it, and there is a useful refinement on that: if PWR is on while RN, ER and MT are all dark, the manual sends you to look for a short circuit on the backplane bus rather than at the network at all. RN flashing is the ambiguous one, because four different states share that single indication — the module is deactivated, the module is not configured, the ET 200SP is starting up, or it is being assigned parameters — and that ambiguity is exactly why the DP LED on the RS485 interface earns its place, since it says only whether there is a connection to a communication partner at all, so an RN that flashes with the DP LED dark is a bus problem while an RN that flashes with the DP LED lit is a station that is busy doing something. ER flashing is the preset configuration not matching the actual configuration of the ET 200SP, which means something in the module list is wrong, missing or extra. RN solid is data exchange with the DP master, which is where you were trying to get to.

Advertisement

The DP LED is the cheapest test on the station and almost nobody looks at it.

Station status 1 with the three bits that decide this fault

Byte 0 of the slave diagnostics, bit meanings as printed in the interface module manual. Bit 0 means silence; bits 2 and 6 mean an argument.

The configuration mismatch, which is four different faults

ER flashing takes you into the interesting half of this. The slave answered, took its parameters, compared the module list it was sent against the hardware it can see, and refused. Station status 1 gives you two different bits for it and they mean different things: bit 2 is the configuration data transferred from the master not matching the slave’s configuration, and bit 6 is the DP slave type not matching the software configuration at all. Bit 6 after somebody fitted a spare is the module in the rack not being the module in the project, which is the same fault shape as an S7-1200 signal module swapped for the wrong article number, and it has the same two cures: fit what the project asks for, or change the project to what is fitted.

Bit 2 is the more common one and the manual lists the configuration states that produce it.

More than 32 I/O modules in the station. A faulty backplane bus, which raises no interrupt when it is interrupted. No server module. A configuration that exceeds the maximum length of 1 m. An incorrectly configured BaseUnit.

The server module is the one that catches people building an ET 200SP for the first time.

It is easy to miss because it looks like an accessory rather than a component, and it has to be configured in the software, at the last slot: with 32 I/O modules the server module goes in at slot 33. Miss it and the identifier-related diagnostics comes back with slot 33 set and the module status reading no module with invalid user data, and every I/O module and the interface module fail together.

One behaviour of that station stop is worth knowing before it confuses you.

All the I/O modules fail and go to their substitute values, and the interface module carries on exchanging data.

The GSD, and the two ways this station can be in the project

An ET 200SP on PROFIBUS can be configured from a GSD file or, from STEP 7 V5.5 SP3, from HSP 242.

Those two routes are not equivalent, and the difference shows up as a configuration fault rather than as an error message. The PROFIBUS standard caps parameter data at 244 bytes per station, and a GSD configuration lives inside that cap. So not every parameter of every I/O module is available through the GSD route, and the manual points at data record 128 for the ones that are not. With HSP 242 and a module from 6ES7155-6BA00-0CN0 upwards, DPV1 mode can carry more than 244 bytes of parameter data; with the GSD file it cannot. There is also a flat rule in the manual that costs an hour if you meet it blind: with PROFIBUS GSD configuration from STEP 7 V5.5 SP3, the universal module must not be configured.

If the station has just been added to an old project and refuses at stage three, ask which of the two routes it came in by before you change anything in it. Getting a device into the hardware catalogue at all is a related job, and the support-package version is the part that decides what you can then configure.

What the station shows against what is wrong with it

Six rows. The DP LED settles the top three, and station status 1 settles the rest.

When it is the bus rather than the station

Two checks are worth doing before you accept that the station is at fault, both of them fast.

Count the attachments on the segment, and count the repeaters as attachments while you are at it, because the RS485 transmission technique allows a maximum of 32 devices per bus segment with end devices and repeaters both counting toward that figure, and a segment that has quietly grown past it over three extensions behaves exactly like a station problem at the far end rather than like the design problem it is. Then check the length against the rate, because a segment that is legal at 500 kbit/s is not legal at 1.5 Mbit/s and the table moves faster than people expect.

If several stations misbehave and only one gets blamed, the bus is the suspect, not the station.

A diagnostic repeater, 6ES7 972-0AB01-0XA0, is what turns that suspicion into an address. It is a DP slave in its own right and it reports the location and cause of cable problems relative to the nodes, in the shape of a short circuit of signal line A to shield between node 12 and node 13. On a bus with an intermittent fault it pays for itself the first time.

Advertisement

Next

Walk to the station and read three things: PWR, the RN/ER/MT group, and the DP LED. Those three settle which of the four stages you are in, and they cost no software at all.

Then, if it is stage three, open the DP slave diagnostics in the master and look at byte 0 before anything else — bit 2 and bit 6 send you to different jobs. The rest of the frame is worth knowing how to read once rather than learning under pressure, and the five faults that account for most PROFIBUS trouble are the sanity list to run down while you are there. If none of it converges, the general fault-finding order is the way back to first principles.