PLC PPT MAIN
PLC PPT MAIN
• If the current flows from the output module to an output load then the output
module is referred to as sourcing (Figure (b)). With sinking, an input device supplies
current to the input
• module (Figure 14.3(c)).
• If the current flows to the output module from an output load then the output
module is referred to as sinking (Figure (d)).
• Circuits are connected as horizontal lines, i.e. the rungs of the ladder,
between these two verticals.
• Figure shows the basic standard symbols that are used and an example
of rungs in a ladder diagram.
• In drawing the circuit line for a rung, inputs must always precede
outputs and there must be at least one output on each line.
• Each rung must start with an input or a series of inputs and end with an
output.
Figure : Ladder program
Figure: Switch controlling a solenoid
• To illustrate the drawing of a ladder diagram, consider a situation where the
output from the PLC is to energies a solenoid when a normally open start
switch connected to the input is activated by being closed (Figure(a)).
• The program required is shown in Figure(b)).
• Starting with the input, we have the normally open symbol ||. This might
have an input address X400. The line terminates with the output, the
solenoid, with the symbol ( ). This might have the output address Y430. To
indicate the end of the program, the end rung is marked.
• When the switch is closed the solenoid is activated.
• This might, for example, be a solenoid valve which opens to allow water to
enter a vessel.
Figure: Temperature control system
Logic functions
• The logic functions can be obtained combinations of switches (see Section 5.2)
and the following shows how we can write ladder programs for such
combinations (Figure).
Figure : (a) AND, (b) OR, (c) NOR, (d) NAND, (e) XOR
1 AND Figure (a) shows a situation where a coil is not energized
unless two, normally open, switches are both closed. Switch
A and switch B have both to be closed, which thus gives an
AND logic situation. The equivalent ladder diagram starts
with ||, labelled Input 1, to represent switch A and in series
with it ||, labelled Input 2, to represent switch B. The line
then terminates with ( ) to represent the output.
For the ladder diagram, we start with ||, labelled Input 1, to represent
switch A. This is in series with two || in parallel, labelled Input 1 and
Input 2, for switches B and C. The line then terminates with ( ) to
represent the output, the coil. Figure (b) shows the line.
• As a simple example of a program using logic gates,
consider the requirement for there to be an output
to the solenoid controlling the valve that will open a
shop door when the shopkeeper has closed a switch
to open the shop and a customer approaches the
door and is detected by a sensor which then gives a
high signal. The truth table for this system is thus
• This truth table is that of an AND gate and thus
the program for a PLC controlling the door is as
shown in Figure
• and each relay might store an on-off signal such that the state of the register
at some instant is:
• i.e. relay 1 is on, relay 2 is off, relay 3 is on, relay 4 is on, relay 5 is off, etc.
Such an arrangement is termed an 8-bit register. Registers can be used for
storing data that originate from input sources other than just simple, single
on-off devices such as switches.
• With the shift register it is possible to shift stored bits. Shift registers require
three inputs, one to load data into the first location of the register, one as the
command to...
Internal Relays
• This chapter continues on from the previous
chapters on programming and introduces internal
relays. A variety of other terms are often used to
describe these elements, e.g. auxiliary relays,
markers, flags, coils, bit storage. These are one of
the elements giving special built-in functions with
PLCs and are very widely used in programming. A
small PLC might have a hundred or more internal
relays, some of them being battery backed so that
they can be used in situations where it is necessary
to ensure safe shutdown of plant in the event of
power failure. Later chapters consider other
common built-in elements.
Internal Relays
• In PLCs there are elements that are used to hold data, i.e. bits,
and behave like relays, being able to be switched on or off and
switch other devices on or off. Hence the term internal
relay. Such internal relays do not exist as real-world switching
devices but are merely bits in the storage memory that behave
in the same way as relays. For programming, they can be
treated in the same way as an external relay output and input.
Thus inputs to external switches can be used to give an output
from an internal relay. This then results in the internal relay
contacts being used, in conjunction with other external input
switches to give an output, e.g. activate a motor. Thus we
might have (Figure ):
• On one rung of the program:
– Inputs to external inputs activate the internal relay output.