Industry News
Flyback Diode for Relay Coils: Orientation, Release Time and Alternatives
Why DC relay coils need suppression, how to orient a flyback diode, its effect on release time, the Zener, varistor and RC alternatives, and the ZJWZJH (JINHONG) relays and sockets that offer them built in.
A flyback diode is a diode connected across a DC relay coil, cathode to the positive terminal and anode to the negative, so that it does nothing while the coil is energised. When the coil is switched off, it gives the coil current a path to decay through, which stops the coil’s inductance from producing a high voltage spike.
The cost is a slower release of the relay. This applies to DC coils only; AC coils need an RC network or a varistor instead.
Why a DC relay coil needs suppression.
A relay coil is an inductor. While it is energised, it stores energy in its magnetic field, and an inductor resists any sudden change in its current. When a transistor, PLC output or switch contact interrupts the coil current, the coil drives its voltage up, in the reverse direction, as far as needed to keep the current flowing. Without a path, that voltage can reach many times the supply voltage for a short time.
The spike lands on whatever opened the circuit. A transistor output can be damaged by repeated overvoltage, a push-button or another relay contact arcs and wears faster, and the fast edge couples interference into nearby wiring. Some PLC transistor outputs include their own suppression, but the amount varies, so check the output data before relying on it.
How a flyback diode works.
In normal operation the diode is reverse-biased by the coil supply and carries no current. When the coil is switched off, the coil voltage reverses, the diode becomes forward-biased, and the coil current circulates through the diode until the stored energy is dissipated in the coil’s resistance and the diode. The coil voltage is clamped to about one diode forward voltage (roughly 0.7 V for a silicon diode) beyond zero, instead of a large spike. The device that switched the coil off then sees little more than the supply voltage.
The diode is also called a freewheeling, snubber or suppression diode; the terms describe the same connection.
Simplified demonstration
Flyback diode orientation for a relay coil.
| Diode terminal | Connect to | Why |
|---|---|---|
| Cathode (end with the band) | Coil positive terminal (the side connected to + supply) | Diode is reverse-biased while the coil is on |
| Anode | Coil negative terminal (the side connected to 0 V) | Diode conducts only when the coil voltage reverses at switch-off |
Reversed, the diode is forward-biased the moment the coil is energised. It short-circuits the coil supply: the relay does not operate, and the diode, the fuse or the driving output can fail. This is why a relay with a built-in diode is polarity-sensitive and why its drawing marks the positive terminal.
When fitting an external diode, connect it directly at the coil or socket terminals so the clamp loop is short. Choose a diode whose reverse voltage rating is comfortably above the coil supply and whose current rating covers the coil current. A general-purpose silicon rectifier from the 1N400x family is widely used for this at typical control voltages; check the rating against your own circuit.
Effect on release time.
The diode keeps the coil current flowing after switch-off, so the magnetic field collapses more slowly and the armature lets go later. The contacts also open more slowly, which can lengthen the arc on a DC load and increase contact wear. How much slower depends on the coil and the diode; published release times are for the relay itself, so confirm whether the datasheet value applies with suppression fitted if timing matters. For reference, the ZJ157F lists a release time of ≤10 ms, the ZJ10F ≤20 ms and the ZJ41F ≤4 ms.
When a faster release is needed, the coil voltage must be allowed to rise higher before it is clamped. That is what the alternatives below do.
Alternatives to a plain flyback diode.
| Method | Coil type | Clamp level | Release time | Polarity-sensitive |
|---|---|---|---|---|
| Diode | DC | About 0.7 V beyond zero | Longest delay | Yes |
| Diode + Zener diode in series | DC | Zener voltage plus about 0.7 V | Short; close to unsuppressed | Yes |
| Diode + resistor in series | DC | Coil current × resistance, plus about 0.7 V | Between the two above | Yes |
| Varistor (MOV) | AC or DC | Varistor clamping voltage | Short | No |
| RC network | AC or DC | Depends on R and C values | Short to moderate | No |
Whichever clamp you choose, the switching device must withstand the supply voltage plus the clamp level. A Zener or varistor clamp of tens of volts suits a transistor output rated well above that; a plain diode is the safest choice when the output’s voltage margin is small and the extra release time is acceptable.
Suppression on AC relay coils.
A diode cannot be used across an AC coil: it would conduct on every half-cycle of one polarity and short the supply. AC coils are suppressed with a varistor or an RC network across the coil. Fit the RC network across the coil, not across the contact that switches it: across an open contact, the capacitor passes enough AC to hold in, or fail to release, a sensitive relay.
ZJWZJH (JINHONG) relays and sockets with diode, LED or varistor options.
The options below are listed on the product pages. Their exact circuit and polarity are given on the drawing for each part number.
| Product | Option listed | What to check |
|---|---|---|
| ZJ157F-L | Built-in LED; optional line-protection diode D (1−, 5+ / 1−, 8+) or D1 (1+, 5− / 1+, 8−) | Choose D or D1 to match the polarity of your control wiring |
| ZJ10F | L = LED indicator, D = rectifier diode | On the LED version of the 8-pin relay, pin 7 is positive; see the octal pinout |
| ZJ18F | L = LED (AC red / DC green), D = rectifier diode, C = varistor, R = reversed coil polarity | C (varistor) is the non-polarised option; R changes which coil terminal is positive |
| A4-4Z-C2 and A6-6Z-C2 sockets | Built-in LED with protection diode (non-LED version available); coil voltage 6–24 V DC | For A4 / A6 force-guided relays such as the ZJA4; observe coil polarity |
| 41F-1Z-C2 and other 41F sockets | Protection and indication circuit built into the socket; ordered with an input-voltage code (-1 to -5) | Order the code that matches your control voltage |
Two things in the range are easy to confuse with coil suppression. The 14F/18F plug-in LED module is described as an LED status module (6–240 V AC/DC versions); its data does not mention a diode, so check its drawing before relying on it for suppression. The ZJ41S solid-state relay has a built-in RC snubber on its output; its input is not a relay coil and needs no flyback diode.
How to add and check a flyback diode.
- Confirm the coil is DC and note its rated voltage from the part number.
- Check whether the relay or socket already has a diode, LED or protection circuit. If it does, do not add a second component without checking the drawing.
- Identify the coil terminal that is connected to the positive supply in your circuit (for a sinking PLC output, that is the terminal wired to +24 V).
- With the circuit isolated, connect the cathode to that terminal and the anode to the other coil terminal, at the socket.
- Energise the coil from a current-limited supply first. If the supply goes into current limit and the relay does not operate, the diode is reversed.
- Check that the relay releases fast enough for the application.
Common mistakes.
| Mistake | Result | Fix |
|---|---|---|
| Diode reversed | Supply shorted; relay does not operate; diode or output fails | Cathode to the positive coil terminal |
| Diode across an AC coil | Supply shorted every half-cycle | Use a varistor or RC network |
| Wrong polarity on a relay with a built-in diode | Same as a reversed diode | Follow the marked + terminal, or order the reversed-polarity version |
| Diode on a relay whose release time is critical | Release is slower than expected | Diode + Zener, or a varistor |
| Diode fitted far from the coil | Long loop still radiates interference | Fit it at the coil or socket terminals |
Next step.
If you need a relay with suppression already fitted, send us the coil voltage, the control source (sourcing or sinking output, or a contact), whether release time is critical, and the load on each contact. Browse the relay range and relay sockets.
Continue reading
- How Electromechanical Relays Work: Coil and Contacts
- Relay Wiring Diagram: 8-Pin and 11-Pin Octal Relay Pinout
- PLC Relay Module: How to Choose and Wire a 4, 16 or 32-Channel Relay Panel
- Interface Relay vs General Purpose Relay: When to Use a Slim Relay
FAQ
Does every DC relay need a flyback diode?
Every DC coil produces a spike at switch-off, so it needs some form of suppression unless the driving device is rated to absorb it. A diode is the simplest. If the relay, socket or PLC output already provides suppression, check that before adding more.
Can I use a flyback diode with a PLC relay module?
Check the module’s drawing first. Modules may already include coil suppression, and adding a second diode in the wrong direction would short the output. If the drawing shows no suppression, fit the diode at the coil or socket terminals with the cathode on the positive side.
Does the flyback diode protect the relay contacts?
No. It protects whatever switches the coil. Contacts switching an inductive load such as a solenoid or contactor coil need their own suppression across that load; see why relay contacts weld for load-side problems.
Which way round does a flyback diode go on a relay coil?
The cathode, the end marked with a band, goes to the coil terminal connected to the positive supply, and the anode to the other terminal. Fitted the wrong way, the diode conducts as soon as the coil is energised, shorts the supply, and the relay does not operate.
ZJ157F-L
ZJ18F
ZJ10F
A4-4Z-C2 socket