Article Overview

A PLC can safely control high-voltage or high-current loads using an optocoupler relay module, which provides electrical isolation and proper current adaptation.

Understanding the Components

Optocoupler: An optocoupler contains an LED and a photo-transistor inside a sealed package. When the PLC output energizes the LED, the photo-transistor conducts, allowing the relay driver circuit to operate without direct electrical connection to the PLC, providing isolation and protection from voltage spikes or noise . Relay Module: The relay acts as a switch for high-voltage or high-current loads. The coil of the relay is driven by the optocoupler output, often through a transistor to handle higher currents safely .

Wiring Steps

  1. Power the Control Side: Connect the PLC output to the optocoupler LED through a current-limiting resistor. For example, a 220-ohm resistor is commonly used for 5V control circuits . Ensure the PLC output voltage matches the optocoupler input requirements.
  2. Connect the Optocoupler Output:
    • Direct Relay Drive: If the relay coil resistance is above 300 ohms, the optocoupler can drive it directly. Ensure the current does not exceed the optocoupler's rating (typically 50 mA), .
    • Transistor Driver: For lower-resistance coils or higher currents, use an NPN or PNP transistor between the optocoupler and relay coil. The optocoupler switches the transistor, which then energizes the relay safely .
  3. Relay Coil Power: Connect the relay coil to the appropriate DC supply (matching the relay rating). Include a flyback diode across the coil to prevent voltage spikes from damaging the transistor or optocoupler .
  4. Load Connection: Wire the relay contacts to the high-voltage or high-current load. The PLC remains electrically isolated from the load, ensuring safety .
  5. PLC Input Considerations: If using optocouplers for PLC inputs, configure them in sink or source mode depending on the PLC logic. Sink configuration connects the input to ground when active, while source connects to the positive supply .

Practical Tips

  • Always check the relay coil resistance and optocoupler current rating before direct connection.
  • Use transistor drivers for higher current relays to prevent overheating.
  • Include current-limiting resistors and flyback diodes for protection.
  • Ensure proper galvanic isolation to protect the PLC from voltage spikes in industrial environments .
  • Verify the voltage and current ratings of all components to match your PLC and load requirements. By following these steps, you can safely interface a PLC with an optocoupler relay module, achieving both electrical isolation and reliable control of external devices.

Connecting a Relay Module to a Microcontroller

Today we are driving high current high voltage applications using only a microcontroller

Relay Module | How to make a Relay module with Optocoupler

Relay modules play a important role in controlling high-voltage devices using low-voltage microcontrollers or digital circuits. They act

Using an optocoupler to tap into digital PLC signals

I have thought of using either Darlington or linear optocouplers. My design thoughts are to use a single resistor or a voltage divider to

Relay Module Optocoupler: Schematic and Working Explained

This article shares the Relay Module Optocoupler Schematic and Working principle. Cheap DIY relay module project

How to make relay module with Optocoupler | Relay module circuit

How to make relay module with Optocoupler | Relay module circuit This video

Using Opto Couplers

There are many different applications for optocoupler circuits, so there are many different design requirements, but a basic design for

PC817 Optocoupler Module User Guide | Wiring & Setup

Complete PC817 optocoupler isolation module guide. Covers 3.6V–30V wiring, jumper

PLC Digital Input and Digital Output Modules | PLC

As with the schematic diagram for a discrete input module shown previously, the schematic

How to Use 2 Channel 5V 10A Relay Module with Optocoupler:

Learn how to use the 2 Channel 5V 10A Relay Module with Optocoupler with detailed documentation, including pinouts, usage

How to make the connections to the 1 channel optocoupler relay module?

I want to light a bulb connected to the socket by using an 1 Channel Optocoupler Relay Module which accepts an input of 5V. From

Relays and Optocouplers

In today''s automation systems, PLCs are the core of industry. They link sensors and actuators to the process, which are connected

Schematic, Amazon Relay Module: 1 Channel,

Schematic, Amazon Relay Module: 1 Channel, Optocoupler Isolation Hi/Low Trigger A ham

How to Use Relay with optocoupler: Examples, Pinouts,

Learn how to use the Relay with optocoupler with detailed documentation, including pinouts, usage guides,

Help understanding optocoupler wiring

Hi all I have a project with a 4 module optocoupler relay, controlled by an esp32 Arduino. I wired the project following

Can anyone tell me how should I wire this relay module to PLC

I was given a task to connect this relay module, Wago 857-304, to the plc and terminal block but I have no idea that how should I use

Opto-coupler Input Circuits for PLCs

Here I''ll introduce programmable logic controller (PLC) input circuits using opto-couplers. We use these devices to interface high

opto isolator

See Optocouplers and Solid-State Relays: Application Examples, example 2. I have existing H22A2 optocouplers that I am trying to

User''s Guide: 12V 4-Channel Relay Module with Optocoupler

This module allows microcontrollers to control high-voltage devices (AC or DC) using opto-isolated relays. Each

PLC-OSC

PLC-INTERFACE, consisting of DIN rail-mountable basic terminal block with screw

Relay Module and Optocouplers?

How to wire the relay input to be controlled with the optocoupler. but still being powered with 5v. I have literally tried

2CDC110004C0203_06-02.pdf

Secund function of the relay and optocoupler interfaces is electrical isolation between sensors/actuators and the PLC. An

Relay Modules and Optocoupler Modules | WAGO

Designed for easy maintenance, they enable quick relay replacement without disconnecting wiring. The fully wired mounting carriers

Optocoupler modules in interface electronics

Optocoupler modules connect high-voltage and low-voltage circuits: Industrial controllers can sustain damage if they''re fed input

PLC and I/O Module Wiring Diagram Infographic

A complete diagram for wiring nearly any kind of discrete I/O module, including digital, AC, or relay, including both

How Optocouplers work

Optocoupler. In this video we learn how optocouplers work and also look at some simple

Opto-Isolated Relay Switching Module

Circuit : Andy Collinson Email : Description A very simple dual channel optical isolated relay module. The

Arduino Tutorial: 2-Channel Optocoupler Relay Module

High-quality Songle relay featuring a single pole double throw (SPDT) configuration, with one common

A Brief Analysis of Optocoupler Relay Wiring

Optocoupler relays are indispensable components in the electronics field, offering dual functions of photoelectric isolation and signal

Related Resources

Ready to Power Your Telecom Sites?

Request a free quote for hybrid solar systems, lithium battery cabinets, site EMS, off-grid packages, or complete microgrid solutions. EU‑owned German factory – reliable, efficient, and cost‑effective energy for Africa.