Ladder Logics Basic
Ladder Logics Basic
Operation:
If the condition is TRUE then the contact is CLOSED and output logic flow is
enabled. If the condition is FALSE then the contact is OPEN and output logic
flow is blocked.
Ladder
Logic Normally Open Contact (NO) Symbol – State Diagram
Common Uses:
Start Push buttons.
Selector switches.
Digital instrumentation.
Internal programming.
Normally Closed Contact (NC) Symbol
Operation:
If the condition is TRUE then the contact is OPEN and output logic flow is
blocked. If the condition is FALSE then the contact is CLOSED and output logic
flow is enabled. The NC contact symbol operation is opposite to the NO
contact symbol.
Ladder
Logic Normally Closed Contact (NC) Symbol -State Diagram
Common uses:
Stop Push buttons.
Fail safe instrumentation.
Motor Thermal Overloads.
Internal programming.
Operation:
If the input condition is TRUE then the output is ON. If the input condition is
FALSE then the output is OFF.
Ladder
Logic Output Coil Symbol – State Diagram
Common uses:
Motor control.
Actuator control.
Indication lamps.
Warning sirens.
Internal programming.
Sequence logic.
Operation:
If the input condition transitions from FALSE to TRUE then the output is ON,
for the time taken to do one PLC scan.
Ladder
Logic One Shot Symbol (Positive Edge Detection) – State Diagram
Common uses:
Counting applications.
Math commands.
Data Transfer commands.
Latch output during a specific set of conditions.
Operation:
If the input condition transitions from FALSE to TRUE then the output is set
ON. Once the output is set ON, it stays ON, even if the input condition goes
FALSE.
Ladder
Logic Set Coil Symbol – State Diagram
Reset Coil Symbol
Operation:
If the input condition is TRUE then the output is reset to OFF. If the input
condition is FALSE it has no effect on the output. The SET and RESET coils can
share the same variable address and therefore work hand in hand.
Ladder
Logic Reset Coil Symbol – State Diagram
Common uses for Set and Reset Coil Symbols:
Motor and actuator outputs.
Indication lamp and warning sirens.
Internal programming.
Toggle logic (flip flops).
Complex latching logic which is set and reset in multiple locations.
Operation:
If the input condition is TRUE then the timer begins. When the preset time set
point has been reached the output turns ON. If the input condition goes
FALSE, at any stage, the timer stops and the output turns OFF as well.
Ladder
Logic Timer Delay On Symbol– State Diagram
Common uses:
Time delay for Warning Sirens.
Star/Delta Motor Starters.
Sequence start delays.
De-bounce time delay to fix digital instrumentation flicker.
Operation:
If the input condition is TRUE then the output turns ON. Then if the input
condition goes FALSE the timer begins. When the preset time set point has
been reached the output turns OFF. If the input condition goes TRUE, at any
stage, the timer stops and the output turns ON as well.
Ladder
Logic Timer Delay Off Symbol – State Diagram
Common Uses:
Cooling Fan run on time delay.
Comparison Symbols
Operation:
If the comparison between two inputs is TRUE then the output turns ON.
Common uses:
Product Stacking and Un-Stacking complete.
Batching system weight set point achieved.
Alarm & Fault activation (Temperature, Flow, Motor Current etc).
Math Symbols
Operation:
Executes the mathematical operation using the inputs with the result written
to the output.
Common uses:
Scaling of Analogue Inputs and Outputs (Temperature, Flow,
Motor Current, Weight, Pressure etc).
Calculating Motor Speed and Position profiles.
Up Counter
Operation:
If the input condition transitions from FALSE to TRUE then the counter is
incremented by a value of 1. The accumulated count value is written to an
output. When the count value reaches the preset value the done output is set
TRUE. The counter is set back to 0 by triggering the reset input.
Down Counter
Operation:
If the input condition transitions from FALSE to TRUE then the counter is
decremented by a value of 1. The accumulated count value is written to an
output. When the count value reaches zero the done output is set TRUE. The
counter is set back to the preset value by triggering the reset input.
Common uses for Up & Down Counters:
Counting items for a stacking sequence.
Counting items for a batching sequence.
Counting items for a diverting conveying.
Counting items to be queued in a conveyor line.
Counting events for alarm and fault triggering.
PID Closed Loop Controller
Operation:
The process variable is measured via the input and the output is adjusted to
maintain the process variable at the set point input value.
The Proportional, Integral and Derivative input values are adjusted to tune the
performance of the PID controller.
Common uses:
Oven Temperature control.
Irrigation Pressure control.
Process Flow control.
Ladder Diagram (LD) is the official name given in the international PLC
programming standard IEC-61131. But, these days the terms ladder diagram,
ladder logic diagram, ladder drawing, ladder control, ladder circuit, control
logic diagram and logic diagram (to name a few) are all used to describe relay
logic circuits and ladder logic programming.
True or False
1 or 0
On or Off
High or Low
Yes or No
I don’t know about you, but my head hurts just looking at that! Luckily ladder
logic uses symbolic expressions and a graphical editor for writing and reading
ladder diagrams making it easier for us mere humans to comprehend.
In a PLC, binary events are expressed symbolically using ladder logic in the
form of a normally open contact (NO) and normally closed contact (NC).
The normally open contact (NO) is TRUE when the event is active and
FALSE when the event is NOT active. While the normally closed contact
(NC) is FALSE when the event is active and TRUE when the event is NOT
active.
Let me explain NO and NC contacts a little further …..
PLC input event ‘A’ follows the binary concept and has one of two states, TRUE
or FALSE. The ladder logic truth table for a normally open contact (NO) which
denotes PLC input event ‘A’ is shown below….
Ladder Logic
Basics Truth Table – NOT Function
Ladder logic works in a similar way to relay logic, but without all the laborious
wiring. It has supply rails, relay coils, relay contacts, counters, timers, PID loop
controllers and much more. In simple terms, all the field input and output
devices are wired to the PLC and the ladder logic program decides what
outputs to trigger depending on the status of the input signals.
In basic terms, PLCs execute ladder logic by first reading all the input
states and storing them into memory. Secondly, scanning through and
evaluating each rung of ladder logic, from left to right and top to
bottom. Lastly, at the end of the scan, the resultant logic is executed and
the outputs are written to.
Ladder Logic Basic Functions
In a ladder diagram the normally open (NO) and normal closed (NC) contacts
merely tell us what state an event is in, TRUE or FALSE. On their own they
cannot decide what action to take to automate something.
Now, let’s call the result of the logic function ‘Y’. In ladder logic the result of a
rung logic function is defined as a PLC output.
When we take these two fundamental elements and insert them into a rung in
a ladder diagram we get your first line of code!
They are all connected in line, just like a series connection in an electric circuit.
This time we have also highlighted the hidden AND function to illustrate the
relationship between the ladder logic functions and the ladder diagram rung
structure….
Because PLC input A and B follows the binary concept and are part of the AND
function there are four possible logic iterations. Check out the truth table
below….
The inputs are placed in the rung in what is known as a branch. This is the
equivalent of a parallel connection in an electric circuit. The output is then
connected in line with the rung. This time we have also highlighted the hidden
OR function when we create a branch (parallel connection) with PLC input B
across PLC input A….
Ladder Logic Basics – OR Function
We can write out the logic expression above as IF A OR B THEN Y.
The OR function examines if any of the PLC inputs are TRUE, then the
corresponding result is also TRUE. However, all the PLC inputs must be FALSE
in order for the corresponding result is also be FALSE.
Because PLC input A and B follows the binary concept and are part of the OR
function there are four possible logic iterations. Check out the truth table
below….
Operation:
If the condition is TRUE then the contact is CLOSED and output logic flow is
enabled. If the condition is FALSE then the contact is OPEN and output logic
flow is blocked.
Ladder
Logic Normally Open Contact (NO) Symbol – State Diagram
Common Uses:
Start Push buttons.
Selector switches.
Digital instrumentation.
Internal programming.
Normally Closed Contact (NC) Symbol
Operation:
If the condition is TRUE then the contact is OPEN and output logic flow is
blocked. If the condition is FALSE then the contact is CLOSED and output logic
flow is enabled. The NC contact symbol operation is opposite to the NO
contact symbol.
Ladder
Logic Normally Closed Contact (NC) Symbol -State Diagram
Common uses:
Stop Push buttons.
Fail safe instrumentation.
Motor Thermal Overloads.
Internal programming.
Operation:
If the input condition is TRUE then the output is ON. If the input condition is
FALSE then the output is OFF.
Ladder
Logic Output Coil Symbol – State Diagram
Common uses:
Motor control.
Actuator control.
Indication lamps.
Warning sirens.
Internal programming.
Sequence logic.
Operation:
If the input condition transitions from FALSE to TRUE then the output is ON,
for the time taken to do one PLC scan.
Ladder
Logic One Shot Symbol (Positive Edge Detection) – State Diagram
Common uses:
Counting applications.
Math commands.
Data Transfer commands.
Latch output during a specific set of conditions.
Operation:
If the input condition transitions from FALSE to TRUE then the output is set
ON. Once the output is set ON, it stays ON, even if the input condition goes
FALSE.
Ladder
Logic Set Coil Symbol – State Diagram
Reset Coil Symbol
Operation:
If the input condition is TRUE then the output is reset to OFF. If the input
condition is FALSE it has no effect on the output. The SET and RESET coils can
share the same variable address and therefore work hand in hand.
Ladder
Logic Reset Coil Symbol – State Diagram
Common uses for Set and Reset Coil Symbols:
Motor and actuator outputs.
Indication lamp and warning sirens.
Internal programming.
Toggle logic (flip flops).
Complex latching logic which is set and reset in multiple locations.
Operation:
If the input condition is TRUE then the timer begins. When the preset time set
point has been reached the output turns ON. If the input condition goes
FALSE, at any stage, the timer stops and the output turns OFF as well.
Ladder
Logic Timer Delay On Symbol– State Diagram
Common uses:
Time delay for Warning Sirens.
Star/Delta Motor Starters.
Sequence start delays.
De-bounce time delay to fix digital instrumentation flicker.
Operation:
If the input condition is TRUE then the output turns ON. Then if the input
condition goes FALSE the timer begins. When the preset time set point has
been reached the output turns OFF. If the input condition goes TRUE, at any
stage, the timer stops and the output turns ON as well.
Ladder
Logic Timer Delay Off Symbol – State Diagram
Common Uses:
Cooling Fan run on time delay.
Comparison Symbols
Operation:
If the comparison between two inputs is TRUE then the output turns ON.
Common uses:
Product Stacking and Un-Stacking complete.
Batching system weight set point achieved.
Alarm & Fault activation (Temperature, Flow, Motor Current etc).
Math Symbols
Operation:
Executes the mathematical operation using the inputs with the result written
to the output.
Common uses:
Scaling of Analogue Inputs and Outputs (Temperature, Flow,
Motor Current, Weight, Pressure etc).
Calculating Motor Speed and Position profiles.
Up Counter
Operation:
If the input condition transitions from FALSE to TRUE then the counter is
incremented by a value of 1. The accumulated count value is written to an
output. When the count value reaches the preset value the done output is set
TRUE. The counter is set back to 0 by triggering the reset input.
Down Counter
Operation:
If the input condition transitions from FALSE to TRUE then the counter is
decremented by a value of 1. The accumulated count value is written to an
output. When the count value reaches zero the done output is set TRUE. The
counter is set back to the preset value by triggering the reset input.
Common uses for Up & Down Counters:
Counting items for a stacking sequence.
Counting items for a batching sequence.
Counting items for a diverting conveying.
Counting items to be queued in a conveyor line.
Counting events for alarm and fault triggering.
PID Closed Loop Controller
Operation:
The process variable is measured via the input and the output is adjusted to
maintain the process variable at the set point input value.
The Proportional, Integral and Derivative input values are adjusted to tune the
performance of the PID controller.
Common uses:
Oven Temperature control.
Irrigation Pressure control.
Process Flow control.
Relay Logic Vs Ladder Logic
Relay logic is a hard wired control system using instrumentation,
switches, timers, relays, contactors, motors and actuators. Traditional
machine and process automation was accomplished using relay logic.
Automating a machine using relay logic requires a mass of wiring and
magnitude of devices to perform even the simplest of tasks.
Some of the other problems with implementing relay logic are:
The advent of the microprocessor meant that relay logic control functionality
could be programmed and stored in a computer. In the late 1960’s some really
brainy people realized this and pressed ahead to create a device called
a Programmable Logic Controller (PLC).
Relay logic in a PLC is the method of formulating logical expressions in
order to automate machinery and processes in industrial applications.
The programming language that is used to create relay logic in a PLC is
called Ladder Logic.
This was a massive breakthrough in the industrial automation industry which
would eventually render relay logic control systems near redundant.
To understand the difference between relay logic and ladder logic it’s really
important that you understand relay logic and how a relay
works. Understanding relay logic is a good stepping stone to understanding
ladder logic. After all, ladder logic was originally derived from relay logic.
Makes sense, right?
How Do Relay Logic Systems Work?
Relay logic systems are a network of hard wired electrical components.
The relay is the fundamental component and it works by switching
electric circuits on and off to form logic operations that in turn provide
process control to the system. You can think of relay logic systems as a
mechanical computer that does computation with 1’s and 0’s by
switching relays instead of using a silicon chip.
The fundamental component of a relay logic is the relay. So let’s look at how
relays work in a little more detail…
What Is A Relay?
A relay is an electromechanical device that consists of two basic components,
a relay coil and relay contact. The relay contact is used to switch a circuit on or
off and the relay coil is used to change the state of the relay contact. The three
main types of relays are spring return relays, latching relays and multipole
relays.
Relay coil.
Relay Contact.
A relay coil is essentially copper wire wound around a chunk of iron that is
used to produce an electromagnetic field that can attract metal. Think of a
junk yard crane that is used to pick up scrap metal. It uses the same principle
to generate a magnetic field that attracts metal.
A relay contact is basically a switch that is used to turn an electric circuit on or
off.
Hang on a minute! If the contacts of a relay turn an electric circuit on or off
why do we need the coil?
Well, the relay coil’s purpose is to change the state of the relay contacts. Just
like your finger is used to change the state of a light switch from off to on. So,
we are changing the state of the contacts using an electrical signal instead of
your using your finger.
Electromechanical Relay
Some common DC voltage relays are 5V relay, 12V relay and 24V relay. Some
common AC voltage relays are 120VAC relay and 240VAC relay.
The voltage rating is usually written on the casing of the relay. The coil voltage
rating needs to be adhered to otherwise the relay coil may fail to change the
state of the contacts or overheat and burn out.
When we energize the relay coil with it’s rated voltage it allows current to flow
within the relay coil and produces and electromagnetic field. This
electromagnetic field is used to attract the relay contact towards the relay coil,
thus changing the state of the relay contacts.
The relay contacts are either configured normally open (NO) or normally
closed (NC). Quite often a relay will have changeover contacts.
The contact voltage and current rating is usually written on the casing of the
relay. The contact voltage and current rating needs to be adhered to otherwise
the relay contact may overheat and burn out.
If the relay coil voltage rating and contact voltage and current rating are not
written on the relay casing then check the relay base. Sometimes it’s a
combination of both the case and base. If all else fails then consult the data
sheet.
Relay Coil
With Contact Voltage & Current Rating
Relay Operation
If a relay is wired to a normally open (NO) contact and the relay is energized
then the contact will change state from OPEN to CLOSED…..
Basic
Relay Operation with Normally Open (NO) Contact
If a relay is wired to a normally closed (NC) contact and the relay is energized
then the contact will change state from CLOSED to OPEN…..
Basic
Relay Operation with Normally Closed (NC) Contact
Relay
Operation with Changeover Contacts wired Normally Closed (NC)
Types of Relays
There are several types of relays each with their specific characteristics and
uses. The 3 types that are used frequently in industrial applications are spring
return relays, latching relays and multipole relays.
The relay coil must be energized at all times in order for the state of the relay
contact to remain in it’s changed state. As soon as the coil is de-energized
then the relay contact returns back to it’s normal state.
Can you see the spring in the “Electromechanical Relay” picture above? The
spring is at the very top of the relay.
Latching Relay
A latching relay is a type of relay that can change and maintain the state of the
contact without the need for the coil to be constantly energized. It utilizes two
separate coils, each of which are responsible for a certain state of the contact
either open or closed. A short voltage pulse to energize either coil in the
latching relay is all that is required to change the state of the contact.
When using multi pole relays multiple coils are not required to change the
state of the contacts. The state of all the relay contacts is changed at the same
time by a single relay coil.
Two Pole Relay
In short, the operation of a single pole relay is the same as a multi pole relay,
we just have more contacts to play with!
This is handy when we are activating more than one device. Especially when
the devices need different voltage levels or the combined current draw of
multiple devices exceeds the current rating of a single contact. It’s also handy
having multi pole relays when the process control logic gets complex.
The common on a relay is the terminal associated with the part of the contact
that does not switch when the relay coil is energized. In a relay with a
changeover contact it is the terminal “common” to both the NO and NC
contacts. When the common is wired correctly it is connected to the load
supply voltage.
Common On A Relay
Power supply.
Relay components.
Connection wires.
The power supply voltage needs to match the rated relay coil voltage. Also,
the power supply needs to be big enough to accommodate the current draw
of all the relays when they are energized.
The relays are selected according to the power supply’s output voltage,
functionality and current rating of the contacts required.
Because relay logic is a hard wired system some sort of wiring diagram or relay
schematic diagram is required to make sense of it all.
Now please take note, there are many ways to draw an electric circuit.
Depending on which country you are from will determine which standard relay
wiring diagram you will need to use. The way circuits are laid out and the
component symbols will vary from one drawing standard to the next. Also,
some drawing standards arrange their control circuits from left to right and
some use top to bottom. Check out the sample drawings below….
Power and Relay
Schematic Diagram Examples
For the purposes of this explanation a left to right arrangement will be used
because it ties in with ladder logic diagrams later on.
A relay schematic diagram consists of a supply voltage rail on the left hand
side and a zero voltage rail on the right hand side drawn as vertical lines.
The relay components and other devices are packed in between connected by
wires, drawn as horizontal lines, to form a circuit.
The first line has a rotary switch connected to the coil of Relay No.1 with the
relay coil labelled as R1.
The second line has a normally open contact from Relay No.1 also labelled R1
which is connected to Lamp No.1.
We read from left to right because the potential difference between the left
and right hand side power rails creates current flow in that direction. In the
example relay schematics a green line is used to highlight current flow in the
circuit.
So, in the first line we start at the left hand side power rail and follow the
horizontal line until we get to the normally open Rotary Switch.
If the rotary switch is in the OPEN state there is an open circuit and current
cannot flow to the right hand side of the circuit. So the relay coil (R1) stays de-
energized.
If we go to the second line we notice that the normally open relay contact (R1)
stays OPEN because Relay No.1 coil (R1) is de-energized. Therefore there is
also an open circuit on the second line so no current can flow to the lamp and
it stays OFF….
Basic Relay Logic Circuit Example – With Rotary Switch Off
When the Rotary Switch is turned ON it’s state changes from OPEN to
CLOSED.
If we look at the first line and start at the left hand side power rail then follow
the horizontal line until we get to the Rotary Switch we can observe that it is in
the CLOSED state and current can flow to the right hand side of the circuit.
So in this case the relay coil (R1) is energized and then we reach the end of the
right hand side rail.
Now let’s go to the left hand side of the second line where we notice that the
normally open relay contact (R1) has also changed state to CLOSED because
the relay coil is energized.
Therefore there is a closed circuit on the second line so current can flow to the
right hand side of the circuit and Lamp No1 turns ON….
Basic Relay Logic Circuit Example – With Rotary Switch On
Let’s spice it up and add another line to the relay logic circuit.
This time we’ll use a second relay contact from Relay No1 and wire it as a
normally closed contact. Then we’ll add a second lamp (Lamp No2) to the
new circuit.
In this case the operation of that lamp will be reversed. So when the Rotary
Switch is OFF, Lamp No.2 is ON and when the Rotary Switch is ON, Lamp No.2
is OFF.
Wait, what????
Don’t believe me then check out the relay logic circuit below….
Relay Reverse Logic – With Rotary Switch Off
The new relay contact in the third line is now a normally closed instead of
normally open.
When Relay No.1 coil is de-energized it’s normally closed contact is in it’s
normal state, that is CLOSED.
When Relay No.1 coil is energized it’s normally closed contact changes state
to OPEN.
So, what is the difference between relay logic and ladder logic?
The big difference between relay logic and ladder logic is that relay logic
needs to hard wire each and every control circuit for every single control
function. Whereas ladder logic uses the assistance of a microprocessor
based device called a Programmable Logic Controller (PLC).
And, how does a PLC differ from relay logic?
The format of a ladder logic diagram is similar to that of a relay logic circuit.
There is power rail on the left hand side and a power rail on the right hand
side drawn as vertical lines.
The logic programming is inserted in between the power rails and connected
with horizontal lines to form a logic expression.
However the symbols used are a bit different to the relay logic circuit
drawings. Check out the table below to compare the differences of the basic
components…
Relay
Logic Vs Ladder Logic Symbols
If we were to use a latching relay which uses two coils, one to latch (or set) the
relay and the other to un-latch (or reset) the relay. The relay symbols are
represented as below….
To outline the difference let’s use the example above where a switch is turning
two lamps ON and OFF alternatively.
If we use a PLC with a ladder logic program we firstly need to hard wire the
switch to the input terminals of the PLC. Then we need to hard wire the lamps
to the output terminals. Lastly, we need to write our ladder logic program and
load it into the PLC memory.
The diagram below shows a ladder logic diagram when the Rotary Switch is
OFF….
The diagram below shows a ladder logic diagram when the Rotary Switch is
on.
In the next section we’ll build on ladder logic basics and uncover the seven
essential rules that you must know to in order to program a Programmable
Logic Controller (PLC) with ladder logic diagrams along with the basics of
implementing PLC ladder logic programming.
Ladder Logic Programming
In the very early days of PLC programming ladder diagrams were configured
and loaded into a PLC using dedicated hand held programmers. These hand
held programmers were extremely slow and tedious to use.
Programming was made a lot easier with the introduction of PC’s and interface
software using text based operating systems such as the Microsoft
platform MS-DOS. The eventual move away from text based operating
systems and into graphical operating systems such as Microsoft Windows has
in turn led to the development of graphical PLC programming software.
In fact, the latest software uses many of the operating features that common
word processing software utilizes….
There is always a left hand side rail and right hand side rail with inputs, logic
expressions, internal variables and outputs packed in between. Each element is
interconnected to form a line of code, called a rung.
Multiple rungs of code end up looking like a ladder….. Hence the name
“Ladder Logic”.
The ladder logic diagram below shows the basic components and how they
are arranged when writing a ladder logic program…..
Ladder Logic Diagram
Because ladder logic is a graphical programming language these days the
programming software is drag and drop, so it makes it very user friendly. The
programming software to write ladder logic code is obtained from the
manufacturer and is installed onto your PC. Some manufacturers have free
programming software and some require a software license. Be careful
because software license=$$$$.
1. A PLC scans each rung in the ladder diagram from the left hand side to the
right hand side and from the top to the bottom.
2. The PLC scan runs in a repeated cyclic manner where the inputs are
monitored, the rung logic evaluated and then the state of the outputs are
executed. The scan time is expressed in milliseconds (ms).
3. The logic state of the outputs is evaluated as the program scans through the
rungs. But they are only updated at the very end of each PLC scan,
simultaneously.
4. There must be at least one input or logic expression at the start of each
rung.
6. Each rung in the ladder diagram represents one logic operation in the
overall control operation.
7. An input, output or logic expression can be used more than once in the
ladder diagram. The same tag name and address is used to label it if used
more than once.
Regardless of what PLC programming software you use every PLC will have an
area in their programming software where the ladder logic programming is
done, usually called the “Main Program”. Now-a-days PLC development
software for ladder logic is drag and drop….it makes it so easy. Grab the
symbol in the toolbar and drag it onto the rung. Next add a variable to the
symbol. Most PLC development software allows you to declare variable as you
add symbols.
It’s a good idea to keep each rung as simple as possible. Cramming too much
into a rung can save on memory but it can create a really complex network of
logic that can come back and bite you if you need to return at a later date to
upgrade or modify your program.
Trust me….you’ll spend ages trying to figure out the monster you’ve
created….ouch!
A well written PLC program will ensure your machine or plant will be highly
productive, efficient and with low downtime.
Main Program
Sequence Steps
Motor control
Fault logic
Interlock logic
Analogue scaling
Upload And Download Your Ladder Logic
Program
Once your ladder logic program is complete you will need to compile the
program. The compile, button is usually located in the toolbar. Compiling the
program is just checking for syntax, memory and program structural errors. If
there are any issues then error messages will be generated that directly points
you to the source of the problem.
Once all the errors are fixed it’s time to download to the PLC. The download
button is also usually located in the toolbar of the PLC programming software.
To assist in testing and commissioning you can also force the state of binary
variables to TRUE or FALSE and also force analogue variables to a specific
value. This can be very useful, but remember to release all the forced variables
after you’ve finished testing your program.
Most PLC programming software have the facility to create variable tables
which display the variable information and status or value. This gives you a
handy display area for analyzing the status and value of the variables instead
of scrolling up and down through your rungs of code.
With the latest programming software multiple windows, with the program
and variables table, can be displayed simultaneously which comes in super
handy when debugging.
Don’t panic….you don’t have to start learning the IEC 61131-3 standards. All
the IEC61131-3 standard means is that if you learn ladder logic then you’ll be
able to apply it to any manufacturers PLC’s. Good news, right!!
You see, ladder logic and PLC’s have become an extremely popular alternative
for automation control system compared to traditional methods. As it’s
popularity grew, so did the amount of companies manufacturing PLCs. Soon
there were a multitude of manufacturers each with their own version of a PLC
programming language. So the International Electrotechnical Commission
published a PLC programming standard to bring commonality to the various
versions of each programming language found in all the different
manufactures PLC’s.
The ladder logic programming language is denoted by (LD) in the IEC 61131-3
standard. There are other programming languages that are contained in the
IEC 61131-3 standard, but you will find that the most common PLC
language is ladder logic. It is by far the best “foot in the door” when it comes
to PLC programming and it can accomplish the majority of application control
tasks.
Nowadays most PLC manufacturers fully or partially support the IEC6111
standard. There is no obligation for manufactures to comply with the IEC
61131 standard and in fact some PLC manufacturers have designed their
programming software to be more user friendly than the IEC 61131-3
standard. So it’s good to be aware that the IEC 61131 standard for PLC
programming exists, but there’s no need to get too caught up in it all!