Pro
12 min

Wiring 4 — Digital Output to Relay / Contactor

wiringdigital-outputrelayflyback-diode

Ready to build this?

Sign up free — no credit card required. This scenario requires the Pro plan.

Sign up to play this scenario →

Already have an account? Log in

Wiring 4 — Digital Output to Relay / Contactor scenario preview

Briefing

A PLC output module can switch a 24 VDC relay coil ON and OFF. When the coil is de-energised, the collapsing magnetic field creates a **flyback voltage spike**. A **freewheeling diode** (flyback diode) across the coil clamps the spike and protects the PLC output transistor. Wire the relay coil and its flyback protection to the PLC output %Q0.0.

Objectives

  • Wire relay coil A1 (+) terminal to PLC output %Q0.0
  • Wire relay coil A2 (−) terminal to 0 V common
  • Wire the flyback diode anode to 0 V, cathode across coil to %Q0.0

Hints

  • Relay coil A1 connects to the PLC output; A2 to 0 V. Never reverse them.
  • The flyback diode must face AGAINST the supply voltage: cathode (+) toward +24 V / %Q0.0.

I/O Table

Outputs

RELAY_A1

Relay coil A1 (+) — connect to PLC output

BOOL · %Q0.0

RELAY_A2

Relay coil A2 (−) — connect to 0 V bus

BOOL · %Q0.1

DIODE_K

Flyback diode cathode — connect to PLC output side

BOOL · %Q0.2

Ready to build this?

Sign up free — no credit card required. This scenario requires the Pro plan.

Sign up to play this scenario →

Already have an account? Log in

Competency and practice field guide

Digital-output wiring PLC scenario: practice plan

Direct answer

The learner can separate logic command from output-channel voltage, load current and physical response, then locate a missing supply, return or interface fault.

Written for pLC wiring learners connecting a representative relay, transistor or isolated output to a field load.

an isolated low-energy electrical controls bench with PLC I/O, protective devices and measurement points used for supervised fault diagnosis while studying PLC digital-output load wiring, external supply, protection and feedback proof
System map / 02

NODE 01observable

Scope

Output type and rating, channel and common terminal, external supply, load voltage and current, protection, suppression, interface device, return and independent feedback.

NODE 02observable

Signal path

Program command through output image, module electronics or contact, external source, field load, return path, device action and feedback input.

NODE 03observable

Baseline practice

A valid command switches the compatible load within limits and independent feedback confirms the intended physical state.

NODE 04observable

Edge cases

Missing external supply, wrong common, overload, short, open load, leakage, failed suppression, welded relay, forced output and lost feedback.

NODE 05observable

Fault practice

A logic, channel, module, supply, common, protective-device, load, return, interface or feedback mismatch.

NODE 06observable

Transfer to the job

The exact circuit designed and tested against current module, load and protection documentation.

Answer surface / 07

Why can a PLC output LED be on while the load is off?

The LED may show logic or channel command while external supply, output device, wiring, load or return path is still open.

When is an interposing relay needed?

Use one when required for voltage, current, isolation, contact form or maintainability after checking output and coil ratings, inrush, suppression and failure consequences.