Inst ToolsInst ToolsInst Tools
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Search
  • Books
  • Software
  • Projects
  • Process
  • Tools
  • Basics
  • Formula
  • Power Plant
  • Root Cause Analysis
  • Electrical Basics
  • Animation
  • Standards
  • 4-20 mA Course
  • Siemens PLC Course
Reading: How to Convert an Electrical Diagram into PLC Program?
Share
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • Design
  • PLC
  • Interview
  • Control System
Search
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > How to Convert an Electrical Diagram into PLC Program?

How to Convert an Electrical Diagram into PLC Program?

In this article, you will learn how to convert an electrical diagram into PLC program with an example circuit.

Last updated: March 4, 2024 2:05 pm
Editorial Staff
PLC Tutorials
No Comments
Share
5 Min Read
SHARE

PLC programming took a history and reference from electrical drawings. As time passed and it became difficult to troubleshoot electrical systems involving automation, a need was required for some controller to execute a logic and do the needful. This gave birth to PLC systems.

Contents
Understand Electrical DiagramConverting the wiring diagram to the PLC program

As you know, PLC programming has many types of languages and the original one is the ladder language. It should be known that electrical diagrams also help to convert it into ladder logic. In this post, we will see how to convert an electrical diagram into a PLC program.

Understand Electrical Diagram

First of all, you need to understand the electrical diagram. Refer to the below image. Every circuit has two ends – positive and negative. Current starts from the positive end and flows through the negative end.

In between, electrical components and devices come. If you refer to the image below, there are four components – the start push button, the stop push button, the auxiliary contact of the lamp, and the lamp.

Understand Electrical Diagram

The power supply starts from the positive end and goes to the input of the start push button (NO contact). The output of the start push button goes to the input of the stop push button (NC contact). The output of the stop push button goes to the input of the lamp.

The output of the lamp is connected to the negative end supply. In parallel to the start push button, another wire goes down from the input of the button to an auxiliary contact of the lamp. The output of this contact is connected back to the output of the push button.

When the power supply is given and if the start button is pressed, the lamp will turn on as it gets the path for current. Now, if the button is released, then the lamp will turn off as it does not get the path.

So, to latch it, we therefore place the lamp contact in parallel which will hold the power supply path. When the stop button is pressed, the electrical supply path is cut off and the lamp goes off.

Converting the wiring diagram to the PLC program

Now, once you have understood the wiring diagram, start interpreting it in the same way for PLC programming. Refer to the below image.

The ladder logic will have two power ends – left and right. Left is the equivalent to a positive power end and right is the equivalent to a negative power end.

You will need four PLC programming components – start push button -> NO contact, stop push button -> NC contact, lamp -> output coil, and lamp NO contact.

Convert an Electrical Diagram into PLC Program

First, place the start push button NO contact. In parallel to it, place the lamp in NO contact. After this, place the stop push button NC contact. In the end, place the lamp in NO contact.

The working will be the same as discussed for the wiring diagram. You saw that the same electrical drawing was interpreted and converted into ladder logic.

The general tips to follow are:

  1. Understand the wiring diagram from input power to the output power. In between, see which components are placed where and how they are wired.
  2. In the wiring, identify the input parts and the output parts and mark them with separate colors.
  3. Start programming by following the diagram and placing the components in the same way as wiring is done.
  4. Run the program and see how it is working.

If you liked this article, then please subscribe to our YouTube Channel for Instrumentation, Electrical, PLC, and SCADA video tutorials.

You can also follow us on Facebook and Twitter to receive daily updates.

Read Next:

  • Free Schneider PLC Training
  • Simulation of Studio 5000
  • Transferring Data Across PLC Systems
  • Import GSD files into the TIA Portal
  • How to Automatically Close Pop-up?
Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
You've successfully subscribed !

Continue Reading

PLC Programming using Level Switches
PLC Program Examples
Concept of Interlocking in PLC
Omron PLC Online Training Course
Siemens HMI Training – Using UDTs with Faceplates
Data Handling Instructions in PLC Programming
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
Leave a Comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

128.3kFollowersLike
69.1kFollowersFollow
210kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

ESG in Industrial PLC Automation Systems
Pause the Timer PLC Ladder Logic
Positive and Negative Edges using Statement List Language
Memory Structure of Siemens PLC
Difference between Power Cables and Signal Cables
Elevator Control: PLC Program with 5-Second Floor Stops
Create a User-Defined Function Block in Codesys
Wood Sawing and Blower System: PLC Control Design

Keep Learning

Cybersecurity in PLC

Cybersecurity in PLC

Yokogawa DCS CPU

System Cabinet Health Checks – PLC and DCS Industrial Automation

Intrinsic Safety Barriers

Intrinsically Safe Barriers Questions and Answers

DCS Vs PLC

Difference between DCS & PLC Systems

SFC Language in PLC Programming

SFC Language in PLC Programming

PLC program to control a water pump

PLC Program to Control a Water Pump

Motion Detection based Street Light PLC Logic Solution

Motion Detection based Street Light: PLC Logic Solution

Why Are Charcoal and Salt Added to an Earthing Pit

Why Are Charcoal and Salt Added to an Earthing Pit?

Learn More

Difference between Absolute, Gauge and Differential Pressure Transmitters

Difference between Absolute, Gauge and Differential Pressure Transmitters

Self Actuated Pressure Control Valve Functional Testing

Self Actuated Pressure Control Valve Functional Testing

PLC Circuit with Switches

PLC Example with Switches

Field Transmitter Installation

Cables and Cable Glands Questions and Answers

PLC Program for Sequential Motor Control

PLC Program for Sequential Motor Control

Pipeline Pig Detector

What are Non-Intrusive Pig Signallers or Pig Detectors?

P&ID Guidelines for Pumps Heat Exchangers

P&ID Guidelines for Pumps Heat Exchangers

What is Open Telemetry?

What is Open Telemetry? – Principles and Benefits

Menu

  • About
  • Privacy Policy
  • Copyright

Quick Links

  • Learn PLC
  • Helping Hand
  • Part Time Job

YouTube Subscribe

Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?