How to Convert a Basic Wiring Diagram to a PLC ProgramIn this video and article, you will learn how to convert a basic “stop-start” circuit to a ladder logic PLC Program.
Today you will learn how to convert a basic wiring diagram to a ladder logic PLC program. This can be a very handy skill to learn, especially if you are converting a machine to PLC control.
Upgrading a machine to PLC control may seem like a daunting task. However, if you take your time and learn the basics, it can be an easily achievable task.
Today I will walk you through programming a very basic “stop-start” circuit for an electric motor. This should help you get a handle on some of the basics.
First, let’s look at our basic start and stop diagram.
Tracing the Electrical Wiring Diagram
I like to start on the left side of the “start-stop” wiring diagram of the electric motor and follow the line. Each line represents a wire that is connected. I’ll go over each section based on the numbers that you see in the wiring diagram above. So for each section explained below, just look at the numbers and the arrows in the wiring diagram above. Ok?
1. L1 is our 120 Volts hot wire. It will run straight to the normally closed Stop button labeled PB1. It is the “Stop Push Button”.
2. From the other terminal on PB1, it runs to a normally open PB2 which is our “Start Push Button”.
3. From the other terminal on PB2, a wire connects to the A1 terminal on the “Motor Starter Coil”.
4. The A2 terminal of motor starter coil runs to the normally closed “overload auxiliary contact”.
5. The next wire runs from the other overload terminal to neutral.
6. The next line down shows how a motor starter stays energized. One wire needs to be connected to the input terminal of the start push button. It will run to one terminal of the auxiliary contact set on the motor starter. This ensures power is on the auxiliary contact.
7. The second terminal of the auxiliary contact is connected to the output side of the start push button.
When the start button is pushed, the circuit is complete and the motor starter will energize.
This closes the auxiliary contact and allows the operator to release the start button. The motor starter will now stay energized until the stop button is pressed and the circuit opens.
Now that you are familiar with the wiring diagram, let’s program it in ladder logic now. When you are finished, your program will look very similar to our wiring diagram.
Converting the Wiring Diagram to a PLC Program
Programming software is all different but similar. Most have a toolbox somewhere that you will drag your contacts and coils from.
Let’s start converting our simple wiring diagram to the PLC program in a step by step format. I’m using the Siemens TIA Portal as the PLC Programming software.
1. Just like on the diagram, we start with the stop push-button. It will be represented with an examine OFF bit. These look like a normally closed (NC) contact.
Drag it to the first ladder rung and the program will place it to the far left. This will be a “Stop push button”.
2. Next, drag an examine ON bit and drop it to the right of the first bit. This looks like normally open contact (NO) and will be the “Start push button”.
3. From there you need to drag an output coil to the right of the other bits. It looks like a set of parenthesis. This is the “Motor Starter Coil”.
4. Most PLC programs will not allow
5. The last thing to add is the auxiliary holding contact. To do this, we need to add a branch around the start push button examine ON bit. Then, drag another examine ON bit to that branch. This will be the “Auxiliary Holding Contact”.
Your program should now look like the wiring diagram.
Let’s keep in mind that we will still need to address each bit that we have added to the program to make the program work physically.
This simply means that we have to match the program to the physical location on the input and output locations of the PLC where the push buttons and motor starter were wired. This will be covered in another article very soon.
Let’s look back at what we have learned.
To program a simple motor start-stop circuit, we need to read the electrical diagram from left to right and use our toolbox on the programming software.
You will be using the most common bits in the examine ON, which will represent a normally open contact, examine OFF, which will represent a normally closed contact, and output coil or output energize.
Again, the language is sometimes different between manufacturers, but the symbols pretty well look the same. You will also need to use a branch around one bit. This is basically a parallel circuit called OR logic.
The start push button will energize the circuit and the auxiliary contact will keep it energized.
I hope this article has been helpful in the transition from wiring diagrams to PLC programming. This was a very basic program that can run a motor.
Thanks again for reading. Check back soon for more RealPars articles, leave your questions and comments and we’ll chat with you soon!
In this blog post, you’ll learn about the mindset that helped me getting a PLC programming job with NO experience. This is my personal experience as someone who searched for a job in this field and as an employer who reviews resumes and interviews candidates for a variety of projects. So let’s get started!
Siemens has made their TIA-Portal version 16 available at a reduced price for a period of time. In this article, we will show you how to: - Purchase the TIA Portal version 16 software, - Download and install the software, and - Install the software license so that it...
A control valve is a power-operated device used to regulate or manipulate the flow of fluids, such as gas, oil, water, and steam. It is a critical part of a control loop and is an example of a final control element. The Control Valve is by far the most common final...
Learn how to program PLCs, install and wire industrial devices, and at the same time purchase them online.
+31 10 316 6400
Mon - Fri 8:30 am to 5:30 pm (CET)
Rotterdam Science Tower, Marconistraat 16,
3029AK Rotterdam, Netherlands
© 2020 RealPars B.V. All rights reserved.
Created with coffee and tea in Rotterdam.