Snubbers and Flyback Diodes: What to Fit Across a Coil, and Why

Snubbers and Flyback Diodes: What to Fit Across a Coil, and Why

A 1N4007 across a 24 V relay coil is the cheapest part in the panel, and it costs about 3.2 ms of release time. Without it, the same coil turning off tries to produce tens of kilovolts, which it does not manage because the output transistor avalanches first and takes the damage.

Both of those are consequences of the same equation. An inductor opposes a change in current, so interrupting it produces a voltage of L times di/dt, and the only thing that limits the answer is whatever conducts first. A flyback diode gives that current a path so the voltage never exceeds a diode drop. The cost is that the current now takes as long to decay as the coil’s own time constant allows, and for a relay coil that is milliseconds. Everything else in coil suppression is a way of buying some of that time back without going back to kilovolts.

The number the datasheet does not give you

You need the coil’s inductance, and almost no relay datasheet prints it.

The G2R sheet gives you 1,100 Ω, 21.8 mA and a DC release time of 5 ms maximum, and that is all. For everything below I have taken the inductance as 2 H, which is the right order for an 1,100 Ω relay coil, and every decay time in this article follows from that assumption rather than from a published figure. Treat the absolute milliseconds as indicative and the ratios between the three options as solid, because the ratios depend on the clamp voltage rather than on L. If you need the real number for a real coil, an LCR bridge across the terminals with the armature released will give it to you in a minute, and it is worth doing once for the relay you standardise on.

Two henries is an assumption. The ratios below are not.

Three ways to turn a coil off

The same coil, the same 21.8 mA, three different things across the terminals.

With nothing fitted, the current has nowhere to go and the voltage rises until something breaks down. Put numbers on it and the absurdity is the point: 2 H times 21.8 mA divided by a 1 µs turn-off is 43.6 kV, which obviously never happens, because the output transistor’s collector junction avalanches somewhere in the low hundreds of volts and dissipates the energy itself. It survives this for a while. Solid-state outputs are usually built to, and many are specified with an inductive load rating for exactly that reason. What kills them is the repetition, and the failure when it comes is the output stuck permanently on.

It survives it until it does not, and then the output is welded on.

With a plain diode, the loop closes through the diode and the current decays with the coil’s own time constant of L over R, which here is 1.82 ms. The relay does not release when the current starts falling; it releases when the current drops below the value corresponding to the must-release voltage, which at 15 % of 24 V is 3.6 V and therefore 3.27 mA. Working the exponential from 21.8 mA down to 3.27 mA with a 0.6 V diode in the loop gives 3.21 ms of added delay before the armature even begins to move.

Advertisement

With a diode and a 36 V zener in series, the coil is forced to dump its energy against 36.6 V instead of 0.6 V, the current falls far faster, and the same 21.8 mA to 3.27 mA takes 0.75 ms. That is 4.3 times quicker for one extra component, and the price is that the output transistor now has to stand 24 + 36.6 = 60.6 V instead of 24.6 V.

Coil current against time for three suppression options on the same 24 V coil: no clamp, a plain diode, and a diode with a 36 V zener, with the 3.27 mA drop-out current marked and the time to reach it labelled on each

The horizontal line is the current at which the armature lets go. Where each curve crosses it is the delay the suppression added, and the vertical axis is the same coil current in all three cases.

Three point two milliseconds, or nought point seven five. One extra component.

Where three milliseconds matters

Most of the time it does not, and then once in a while it is the whole design.

On a conveyor that stops in half a second, 3.2 ms of extra relay release is invisible and nobody should spend five minutes on it. On a guard interlock it is not invisible at all, because the safety distance calculation in ISO 13855 multiplies the total stopping time by an approach speed, and for a hand reaching towards a hazard that speed is 1600 mm/s. Three point two milliseconds at 1600 mm/s is 5.1 mm that has to be added to the distance between the guard and the moving part, and it is added on top of whatever the contactor, the drive and the mechanism contribute. That is why safety-rated contactors and relays are so often specified with a varistor or an RC element rather than a plain diode, and why the instruction sheets for them frequently say not to fit one. It is not superstition; it is 5 mm.

Five millimetres of guard distance, bought with one diode nobody recorded.

The other place it shows up is sequencing. Two relays that were meant to change over together, one with a diode and one without, now swap at times 3 ms apart, and on a fast machine that is enough to make and break an overlap that was supposed to be clean.

The energy in the coil accounted for three ways: the 475 microjoule stored figure, how much lands in the coil's own resistance and how much in the clamp for the plain diode and for the diode with a zener, with the average clamp power at one operation per second

The stored energy is tiny, which is why diode selection is easy and diode failure is rare. It is the voltage rather than the energy that damages anything.

Choosing the diode, which is the easy part

The energy involved is trivial and the arithmetic proves it.

Half L I squared with 2 H and 21.8 mA is 475 µJ. Almost all of that lands in the coil’s own 1,100 Ω rather than in the diode, because the diode only ever sees 0.6 V across it while the coil sees the rest — the diode’s share works out at about 19 µJ, or four per cent. Operate the relay once a second and the diode dissipates 19 µW. So the forward current rating is set by the coil current rather than by heating: 21.8 mA needs nothing special, and even a 24 V contactor coil at 300 mA is inside a 1N4148’s 200 mA only if you check, which is exactly why the 1 A 1N400x family is the default. The reverse rating needs to clear the bus with margin, so a 1N4001 at 50 V is already twice what a 24 V rail requires and the 1N4007 at 1000 V that everybody actually fits costs the same and removes the question.

Nineteen microjoules, once a second. The diode does not care.

One number on that datasheet is worth remembering for somewhere else entirely: the 1N400x rating for fusing is 3.7 A²s for times under 8.3 ms. Across a coil that is irrelevant, because the diode never sees anything but coil current. Put the same part in series with a 24 V feed as a reverse-polarity blocker and it becomes the binding constraint, because a branch inrush into a few thousand microfarads is a multiple of that figure and the diode will open before the fuse does.

Advertisement

The diode across a coil is easy. The same diode in the supply feed is not.

The other thing people call a snubber

An RC across a contact is a different component doing a different job, and mixing the two up is common.

A flyback diode protects the driver from the coil. An RC snubber protects the contact from the arc, and it belongs across the contact rather than across the load. When a contact opens under load, the voltage across the opening gap tries to recover in nanoseconds and restrikes the arc; a capacitor across the gap slows that recovery to a rate the gap can outrun, and the rate is just current divided by capacitance. Switching 1 A with 0.1 µF gives 1/0.1e-6 = 10 V/µs, which is slow enough to matter. The series resistor is there for the other half of the cycle: when the contact closes, the capacitor is sitting at line voltage and dumps into the contact, and the resistor is what stops that being a weld. At 230 V with 100 Ω the closure peak is 2.3 A, and with no resistor at all it would be limited only by the loop inductance and would be tens of amps every single operation.

Those two constraints size the parts between them. Bigger C slows the recovery more and makes the closure surge worse; bigger R limits the surge and lets the recovery voltage rise faster. There is a trap on AC that has nothing to do with either: an RC fitted across a coil rather than across a contact passes a continuous current of V times 2 pi f C, which for 230 V at 50 Hz through 0.1 µF is 7.2 mA. That is enough to hold in a small relay that was supposed to have dropped out, and it is enough to keep a neon indicator visibly lit on a circuit everybody believes is dead.

An RC snubber across an opening contact with the two sizing constraints worked: the rate of rise of recovery voltage at one amp into 0.1 microfarads, and the closure discharge peak at 230 volts into 100 ohms, with the AC leakage current through the capacitor alongside

The capacitor solves the opening and creates the closing problem. The resistor solves the closing and partly undoes the opening. That tension is the whole of snubber design.

What to fit, by what you are switching

Four cases, and they do not all get a diode.

A selection table of four cases - DC coil driven by a transistor output, DC coil switched by a contact, AC coil, and a contact switching an inductive load - against what to fit, what it costs and what it must be rated for

The only row that gets a plain diode without a caveat is the first one, and even there the caveat is the release time.

Read the table by the load, never by the habit of the last panel.

A DC coil driven from a transistor output takes a diode, or a diode and a zener if the release time is in a safety or sequencing calculation, and the clamp voltage has to sit below whatever the output stage is rated to stand. A DC coil switched by a mechanical contact takes the same thing, and here the diode is protecting the contact rather than a transistor. An AC coil cannot take a diode at all, because there is no consistent polarity to block, so it gets a varistor or an RC; the varistor is simpler and the RC is quieter. And a contact switching an inductive load takes an RC across the contact, sized by the two constraints above, with the load’s own suppression still fitted at the load. The two are not alternatives and fitting both is normal practice rather than belt and braces, because they are solving different problems at different places in the circuit: the element at the load keeps the energy where it was generated, and the element at the contact keeps the recovery voltage off the gap. Where only one is practical, put it at the load, because that is where the energy is and a suppression component works better close to the inductance it is suppressing. Long leads between the coil and its diode undo a surprising amount of the benefit, which is the argument for coil modules that plug onto the relay base rather than diodes soldered into a terminal block two metres away.

The dead end

The diode fitted the wrong way round.

It is the single most common suppression fault and it does not look like one. Wired backwards across a 24 V coil, the diode is forward-biased by the supply itself, so it shorts the coil out through a diode drop as soon as the output turns on. The relay never pulls in, the output card sees a near short and either current-limits or blows its electronic fuse, and the symptom presented to whoever is troubleshooting is an output that will not turn on rather than a diode that is round the wrong way. Three things make this worse than it needs to be: the cathode band is hard to see on a diode buried in a terminal block, the failure appears at commissioning when forty other things are also wrong, and the same relay works perfectly if you power the coil from a test lead in the other direction. Check the band against the positive terminal before anything else on a coil that will not operate.

Cathode to positive. Always, on a DC coil, with no exceptions.

Advertisement

What to do next

Decide first whether the release time is in anybody’s calculation. If the coil is part of a guard, an interlock, a two-hand control or anything with a stopping-time budget, measure the release with and without suppression rather than trusting a figure, and put the measured number into the safety distance sum. If it is not, fit the diode, orient it cathode to positive, and move on. Either way, write the suppression component on the drawing next to the coil, because the next person to troubleshoot that circuit will otherwise spend twenty minutes discovering it exists.

The contact ratings that decide which of these you need are worked through in choosing a relay for a PLC output, and the fusing number mentioned above becomes the binding one in sizing a DC fuse for a control panel. On a safety circuit the release time feeds straight into the feedback requirement that EDM and the mirror contact describes, and the chatter that unsuppressed coils cause on pulse-tested outputs is the subject of test pulses on a safety output.