Convert a Basic Wiring Diagram to a PLC Program
In this video, 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.
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. I like to start on the left and follow the line. Each line represents a wire that is connected.
L1 is our 120v hot wire. It will run straight to the normally closed Stop button labeled PB1.
From the other terminal on PB1, it runs to a normally open PB2 which is our Start button. From the other terminal on PB2, a wire connects to the A1 terminal on the Motor Starter Coil.
The A2 terminal runs to the normally closed overload auxiliary contact. The next wire runs from the other overload terminal to neutral.
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.
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.
Programming software is all different but similar. Most have a toolbox somewhere that you will drag your contacts and coils from.
Just like on the diagram, we start with the stop pushbutton. It will be represented with an examine OFF bit. These look like a normally closed 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.
Next, drag an examine ON bit and drop it to the right of the first bit. This looks like normally open contact and will be the start push button.
And continue to complete your PLC programming logic according to this simple start-stop wiring diagram.
To wrap it up, to program a simple motor start-stop circuit, we need to read the electrical diagram from left to right and open our toolbox on the programming software.
You will be using the most common bits in the examine ON, examine OFF, and output coil or output energize.
Again, the language is sometimes different between manufacturers, but the symbols pretty well look the same.
The bits will represent normally open and normally closed inputs, and a single output. You will also need to use a branch around one bit. This is basically a parallel circuit and OR logic.
The start push button OR the auxiliary contact will energize the circuit.
I hope this video has been helpful in the transition from wiring diagrams to plc programming. This was a very basic program that can run a motor.