18EC36 - Module5 - Transducer, Programmable Logic Controller
18EC36 - Module5 - Transducer, Programmable Logic Controller
18EC36 - Module5 - Transducer, Programmable Logic Controller
18EC36
CONTROLLER
Module – 5
TRANSDUCERS
5.1 Introduction
Definition: A transducer is defined as a device that receives energy from one system and transmits
it to another, often in a different form. Broadly defined, the transducer is a device capable of being
actuated by an energizing input from one or more transmission media and in turn generating a
related signal to one or more transmission systems. It provides a usable output in response to a
specified input measure and, which may be a physical or mechanical quantity, property, or
conditions. The energy transmitted by these systems may be electrical, mechanical or acoustic.
The nature of electrical output from the transducer depends on the basic principle involved in the
design. The output may be analog, digital or frequency modulated. Basically, there are two types of
1. Linearity: The relationship between a physical parameter and the resulting electrical signal must
be linear.
2. Sensitivity: This is defined as the electrical output per unit change in the physical parameter (for
example V/°C for a temperature sensor). High sensitivity is generally desirable for a transducer.
3. Dynamic Range: The operating range of the transducer should be wide, to permit its use under
4. Repeatability: The input/output relationship for a transducer should be predictable over a long
The main advantages of electrical transducer (conversion of physical quantity into electrical
4. The output can be indicated and recorded remotely at a distance from the sensing medium.
5. The output can be modified to meet the requirements of the indicating or controlling units.
The signal magnitude can be related in terms of the voltage current. (The analog signal information
can be converted in to pulse or frequency information. Since output can be modified, modulated
or amplified at will, the output signal can be easily used for recording on any suitable multichannel
recording device.)
6. The signal can be conditioned or mixed to obtain any combination with outputs of similar
7. The electrical or electronic system can be controlled with a very small power level.
8. The electrical output can be easily used, transmitted and processed for the purpose of
measurement.
An active transducer generates an electrical signal directly in response to the physical parameter
and does not require an external power source for its operation. Active transducers are self
generating devices, which operate under energy conversion principle and generate an equivalent
output signal (for example from pressure to charge or temperature to electrical potential).
Typical example of active transducers are piezo electric sensors (for generation of charge
corresponding to pressure) and photo voltaic cells (for generation of voltage in response to
illumination).
Passive transducer operates under energy controlling principles, which makes it necessary to use
an external electrical source with them. They depend upon the change in an electrical parameter
(R, L and C).Typical example are strain gauges (for resistance change in response to pressure), and
Electrical transducers are used mostly to measure non-electrical quantities. For this purpose a
detector or sensing element is used, which converts the physical quantity into a displacement. This
displacement actuates an electric transducer, which acts as a secondary transducer and give an
output that is electrical in nature. This electrical quantity is measured by the standard method used
for electrical measurement. The electrical signals may be current, voltage, or frequency; their
A transducer which converts a non-electrical quantity into an analog electrical signal may be
considered as consisting of two parts, the sensing element, and the transduction element. The
sensing or detector element is that part of a transducer which responds to a physical phenomenon
or to a change in a physical phenomenon. The response of the sensing element must be closely
The transduction element transforms the output of a sensing element to an electrical output. This,
Transducers may be further classified into different categories depending upon the principle
employed by their transduction elements to convert physical phenomena into output electrical
signals.
The different electrical phenomena employed in the transduction elements of transducers are as
follows.
1. Resistive
2. Photo-emissive
3. Inductive
4. Photo-resistive
5. Capacitive
6. Potentiometric
7. Electro magnetic
8. Thermo-electric
9. Piezo-electric
Selecting a Transducer
The transducer or sensor has to be physically compatible with its intended application. The
3. Frequency response and resonant frequency: Flat over the entire desired range.
6. Accuracy: Repeatability and calibration errors as well as errors expected due to sensitivity to
other stimuli.
7. Usage and ruggedness: Ruggedness, both of mechanical and electrical intensities versus size
and weight.
8. Electrical parameters: Length and type of cable required, signal to noise ratio when combined
measurement and control work is to be able to sense the position of an object, or the distance it
has moved).
One type of displacement transducer uses a resistive element with a sliding contact or wiper linked
to the object being monitored or measured. Thus the resistance between the slider and one end of
the resistance element depends on the position of the object. Figure 5.1(a) gives the construction
Figure 5.1(b) shows a typical method of use. The output voltage depends on the wiper position
and is therefore a function of the shaft position. This voltage may be applied to a voltmeter
Fig 5.1: (a) Construction of Resistance position transducer (b) Typical method
Deviation from linearity of the resistance versus distance specifications can be as low as 0.1 —
1.0%. Considering Fig. 5.1 (b), if the circuit is unloaded, the output voltage Vo is a certain fraction
When applied to resistive position sensors, this equation shows that output voltage is proportional
to R2, i.e. the position of the wiper of the potentiometer. If the resistance of the transducer is
distributed uniformly along the length of travel of the wiper, the resistance is perfectly linear.
5.4 Strain Gauge:
The Strain Gauge is an example of a passive transducer that uses the variation in electrical resistance
in wires to sense the strain produced by a force on the wires. It is well known that stress (force/unit
area) and strain (elongation or compression/unit length) in a member or portion of any object
Since strain can be measured more easily by using variable resistance transducers, it is a common
practice to measure strain instead of stress, to serve as an index of pressure. Such transducers are
If a metal conductor is stretched or compressed, its resistance changes on account of the fact that
both the length and diameter of the conductor changes. Also, there is a change in the value of the
resistivity of the conductor when subjected to strain, a property called the piezo-resistive effect.
Therefore, resistance strain gauges are also known as piezo resistive gauges.
Many detectors and transducers, e.g. load cells, torque meters, pressure gauges, temperature
sensors, etc. employ strain gauges as secondary transducers. When a gauge is subjected to a positive
stress, its length increases while its area of cross-section decreases. Since the resistance of a
conductor is directly proportional to its length and inversely proportional to its area of cross-
section, the resistance of the gauge increases with positive strain. The change in resistance value of
a conductor under strain is more than for an increase in resistance due to its dimensional changes.
An unbonded strain gauge consists of a wire stretched between two points in an insulating medium,
such as air. The diameter of the wire used is about 25 μm. The wires are kept under tension so that
there is no sag and no free vibration. Unbonded Strain Gauge Derivation are usually connected in
a bridge circuit. The bridge is balanced with no load applied as shown in Fig. 5.2.
When an external load is applied, the resistance of the Strain Gauge Derivation changes, causing
an unbalance of the bridge circuit resulting in an output voltage. This voltage is proportional to the
strain. A displacement of the order of 50μm can be detected with these strain gauges.
(base) or mounting plate, which is usually cemented to the member undergoing stress. The grid of
fine wire is cemented on a carrier which may be a thin sheet of paper, Bakelite, or Teflon. The wire
is covered on the top with a thin material, so that it is not damaged mechanically. The spreading of
the wire permits uniform distribution of stress. The carrier is then bonded or cemented to the
member being studied. This permits a good transfer of strain from carrier to wire.
A tensile stress tends to elongate the wire and thereby increase its length and decrease its cross-
sectional area. The combined effect is an increase in resistance, as seen from the following equation
where
The measurement of the sensitivity of a material to strain is called the gauge factor (GF). It is the
ratio of the change in resistance Δ R/R to the change in the length Δl/l
where
K= gauge factor
Since strain is defined as the change in length divided by the original length,
where σ is the strain in the lateral direction. The resistance of a conductor of uniform cross-
section is
where
l = length of conductor
d= diameter of conductor
When the conductor is stressed, due to the strain, the length of the conductor increases by Δl and
the simultaneously decreases by Δd in its diameter. Hence the resistance of the conductor can now
be written as
Now, Poisson’s ratio μ is defined as the ratio of strain in the lateral direction to strain in the axial
Rationalizing, we get
materials that are very temperature sensitive, devices that are useful in temperature control circuits
made by sintering mixtures of metallic oxides such as manganese, nickel, cobalt, copper and
uranium.
temperature rises. Figure 5.4 shows a graph of resistance vs temperature for a thermistor. The
resistance at room temperature (25°C) for typical commercial units ranges from 100 Ω to 10 Ω.
They are suitable for use only up to about 800°C. In some cases, the resistance of thermistors at
118 DEPT. OF ELECTRONICS & COMMUNICATION E N G G . |M I T M Y S O R E
POWER ELECTRONICS &
INSTRUMENTATIONMODULE5:TRANSDUCER, PROGRAMMABLE 18EC36
LOGIC CONTROLLER
room temperature may decrease by 5% for each 1°C rise in temperature. This high sensitivity to
temperature changes makes the thermistor extremely useful for precision temperature
The smallest thermistors are made in the form of beads. Some are as small as 0.15 mm (0.006 in.)
in diameter. These may come in a glass coating or sealed in the tip of solid glass probes. Glass
probes have a diameter of about 2.5 mm and a length which varies from 6 — 50 mm. The probes
are used for measuring the temperature of liquids. The resistance ranges from 300 Ω to 100 Ω.
Where greater power dissipations is required, thermistors may be obtained in disc, washer or rod
forms.
Disc thermistors about 10 mm in diameter, either self-supporting or mounted on a small plate, are
mainly used for temperature control. These thermistors are made by pressing themistors material
under several tons of pressure in a round die to produce flat pieces 1.25 — 25 mm in diameter and
0.25 — 0.75 mm thick, having resistance values of 1 Ω to 1 MΩ. These are sintered and coated
Washer thermistors are made like disc thermistors, except that a hole is formed in the centre in
order to make them suitable for mounting on a bolt. Rod thermistors are extruded through dies to
make long cylindrical units of 1.25, 2.75, and 4.25 mm in diameter and 12.5 — 50 min long. Leads
are attached to the end of the rods. Their resistance usually varies from 1 — 50 Ω
The advantage of rod thermistors over other configurations is the ability to produce high resistance
units with moderately high power handling capability.
power handling capability. High resistance units find application in measurements that employ low
Thermistors are chemically stable and can be used in nuclear environments. Their wide range of
characteristics also permits them to be used in limiting and regulation circuits, as time delays, for
Typical thermistor configurations are as shown in Fig. 5.5(a). Fig 5.5(b) shows a bush type
thermistor.
Thermistors are non-linear devices over a temperature range, although now units with better than
0.2% linearity over the 0-100°C temperature range are available. The typical sensitivity of a
temperature.
5. Contact and lead resistance problems not encountered due to large Rth (resistance).
measurement of temperature. The Resistance Thermometer Bridge Circuit uses the change in
1. The change in resistance of material per unit change in temperature must be as large as possible.
2. The resistance of the material must have a continuous and stable relationship with temperature.
The main section of a Resistance Thermometer Bridge Circuit is its sensing element. The
characteristics of the sensing element, determines the sensitivity and operating temperature range
of the instrument.
The sensing element may be any material that exhibits a relatively large resistance change with the
change in temperature. The material used should also have a stable characteristics, that is, neither
its resistance nor its temperature coefficient of resistance should undergo permanent change with
use or age
The need for stability frequently limits the temperature range over which the sensing element may
be used.
Another desirable characteristics for a sensing element is a linear change in resistance with change
in temperature.
When the measured temperature is subjected to rapid variations, the speed with which a resistive
The smaller a given sensing element, less heat is required to raise its tempera-ture, the faster is its
response.
Platinum, Nickel and Copper are the metals most commonly used to measure temperature. The
resistivity of platinum tends to increase less rapidly at higher temperatures than for other materials,
hence it is a commonly used material for resistance thermometers. The temperature range over
which Platinum has sta-bility is 260 °C-1100 °C. An industrial Platinum resistance thermometer is
is shown in Fig.13.40(b).
Hence, the temperature sensing element, which may be Nickel, Copper or Platinum contained in a
bulb or well, along with the balancing bridge, forms the basic important components of a
The sensing element Rs is made of a material having a high temperature coefficient, R1, R2 and R5
are made of resistance that are practically constant under normal temperature changes.
When the sensing element is very near the bridge, and under balance conditions, the following
In normal practice, the sensing element is away from the indicator and the bridge, and its leads
When resistance Rs changes, the bridge balance is upset and the galvanometer shows a deflection,
The measurement of temperature by the electrical resistance method has the following advantages
and characteristics.
3. More than one resistance element can be clubbed to the same indicating/ recording instrument.
5. The accuracy of the measuring circuit can be easily checked by substituting a standard resistor
7. Resistance thermometer have a wide working range without loss of accuracy, and can be used
10. The error of the resistive element is in the range of ± 0.25% of the scale
11. The size of the resistive element may be about 6-12 mm in diameter.
1. High cost
The transformer consists of a single primary winding P1 and two secondary windings S1 and S2
wound on a hollow cylindrical former. The secondary windings have an equal number of turns and
are identically placed on either side of the primary windings. The primary winding is connected to
an ac source.
An movable soft iron core slides within the hollow former and therefore affects the magnetic
The displacement to be measured is applied to an arm attached to the soft iron core. (In practice,
the core is made up of a nickel-iron alloy which is slotted longitudinally to reduce eddy current
losses.)
When the core is in its normal (null) position, equal voltages are induced in the two secondary
windings. The frequency of the ac applied to the primary winding ranges from 50 Hz to 20 kHz.
The output voltage of the secondary windings S1 is Es1 and that of secondary winding S2 is Es2.
In order to convert the output from S1 to S2 into a single voltage signal, the two secondaries S1
and S2 are connected in series opposition, as shown in Fig. 5.8(a) & (b).
Fig 5.8 (a) and (b) Secondary winding connected for differential output
Hence the output voltage of the transducer is the difference of the two voltages. Therefore the
When the core is at its normal position, the flux linking with both secondary windings is equal, and
hence equal emfs are induced in them. Hence, at null position Es1 = Es2. Since the output voltage
of the transducer is the difference of the two voltages, the output voltage Eo is zero at null position.
Now, if the core is moved to the left of the null position, more flux links with winding S1 and less
with winding S2. Hence, output voltage Es1 of the second-ary winding S1 is greater than Es2 . The
magnitude of the output voltage of the secondary is then Es1 — Es2, in phase with Es1 (the output
Similarly, if the core is moved to the right of the null position, the flux linking with winding S2
becomes greater than that linked with winding S1. This results in Es2 becoming larger than Es1.
The output voltage in this case is Eo = Es2 — Es1 and is in phase with Es2.
The amount of voltage change in either secondary winding is proportional to the amount of
movement of the core. Hence, we have an indication of the amount of linear motion. By noting
which output is increasing or decreasing, the direction of motion can be determined. The output
ac voltage inverts as the core passes the centre position. The farther the core moves from the
centre, the greater the difference in value between Es1 and Es2 and consequently the greater the
value of Eo. Hence, the amplitude is function of the distance the core has moved, and the polarity
As the core is moved in one direction from the null position, the difference voltage, i.e. the
difference of the two secondary voltages increases, while maintaining an in-phase relation with the
voltage from the input source. In the other direction from the null position, the difference voltage
increases but is 180° out of phase with the voltage from the source.
By comparing the magnitude and phase of the difference output voltage with that of the source,
the amount and direction of the movement of the core and hence of the displacement may be
determined.
The amount of output voltage may be measured to determine the displacement. The output signal
may also be applied to a recorder or to a controller that can restore the moving system to its normal
position.
The output voltage of an Linear Variable Differential Transducer is a linear function of the core
displacement within a limited range of motion (say 5 mm from the null position).
Figure 5.9 shows the variation of the output voltage against displacement for various position of
the core. The curve is practically linear for small displacements (up to 5 mm). Beyond this range,
The diagram in Figs 5.9 (a), (b) and (c) shows the core of an Linear Variable Differential Transducer
In Fig. 5.9 (b), the core is at 0, which is the central zero or null position. Therefore, Es1 = Es2, and
Eo = 0.
When the core is moved to the left, as in Fig. 5.9 (a) and is at A, Es1 is more than Es2 and Eo is
positive. This movement represents a positive value and therefore the phase angle, is Φ = 0°.
When the core is moved to the right towards B, Es2 is greater than Es1 and hence Eo is negative.
Therefore, S2 the output voltage is 180° out of phase with the voltage which is obtained when the
core is moved to the left. The character-istics are linear from 0 — A and 0 — B, but after that they
become non-linear.
One advantage of an Linear Variable Differential Transducer over, the inductive bridge type is that
it produces higher output voltage for small changes in core position. Several commercial models
that produce 50 mV/mm to 300 mV/mm are available. 300 mV/mm implies that a 1 mm
Fig 5.9 : (a), (b), (c) Various core position of LVDT (d) Variation of output voltage vs
displacement
Linear Variable Differential Transducer are available with ranges as low as ± 0.05 in. to as high as
± 25 in. and are sensitive enough to be used to measure displacements of well below 0.001 in. They
can be obtained for operation at temperatures as low as — 265°C and as high as + 600°C and are
1. Linearity: The output voltage of this transducer is practically linear for displacements upto 5
2. Infinite resolution: The change in output voltage is stepless. The effective resolution depends
3. High output: It gives a high output (therefore there is frequently no need for intermediate
amplification devices).
5. Ruggedness: These transducers can usually tolerate a high degree of vibration and shock.
7. Low hysteresis: This transducer has a low hysteresis, hence repeatability is excellent under all
conditions.
4. The dynamic response is limited mechanically by the mass of the core and electrically by the
applied voltage.
Bridge.In this circuit a resistive transducer (whose resistance changes as a function of some physical
Let RT be the resistance of the transducer and ΔR the change in resistance of the resistive
The condition for bridge balance is Vb = Va, i.e. the bridge is balanced when Vb = Va, or when
The bridge is balanced at a desired reference condition, which depends on the specific value of the
physical quantity to be measured. Under this condition, resistors RA, RB and RC are so selected
that they are equal in value to the trans-ducer resistance RT. (The value of the physical quantity
normally depends on the transducers characteristics, the type of physical quantity to be measured,
Initially the bridge is balanced at a desired reference condition. As the physical quantity to be
measured changes, the resistance of the transducer also changes, causing the bridge to be
unbalanced (Vb ). Hence, the output voltage of the bridge is a function of the change in the
MIT MYSORE | DEPT. OF ELECTRONICS & COMMUNICATION ENGG. 129
MODULE5:TRANSDUCER, PROGRAMMABLE LOGIC
18EC36
CONTROLLER
resistance of the transducer. The expression for the output voltage V0, in terms of the change in
Let the change in the resistance of the transducer be ΔR. Since RB and RC are fixed resistors, the
voltage Vb is constant, however, the voltage Va changes as a function of the change in the
transducers resistance.
The output voltage across the bridge terminal is Vab, given by Vab=Va-Vb
Therefore,
The output voltage Vab of the bridge is applied to the Differential Instrumentation Amplifier
Transducer Bridge through the voltage followers to eliminate the loading effect of the bridge circuit.
The gain of the basic amplifier is (RF/R1) and therefore the output voltage Vo of the circuit is
given by
It can be seen from the Eq. (14.16) that Vo is a function of the change in resistance ΔR of the
transducer. Since the change is caused by the change in a physical quantity, a meter connected at
the output can be calibrated in terms of the units of the physical quantity.
semiconductors.
It has resistance as its fundamental property. It is gener-ally installed and operated in the manner
of an ordinary resistor. But its great difference is that it has a negative temperature coefficient
(NTC) or positive temperature coefficient (PTC) type. Most thermistors exhibit an NTC charac-
teristic. An NTC type is one in which its resistance decreases with increase in temperature. The
If in the bridge circuit of Fig 5.10 the transducer used is a thermistor, the circuit can thus be used
as a temperature indicator. The output meter is then calibrated in °C or °F. The bridge is balanced
initially at a desired reference condition. As the temperature varies, the resistance of the thermistor
also changes, unbalancing the bridge, which in turn produces a meter deflection at the output. By
selecting the appropriate gain for the Differential Instrumentation Amplifier Transducer Bridge,
the meter can be calibrated to read a desired temperature. In this circuit, the meter movement
(deflection) depends on the amount of unbalance in the bridge, which is caused by a change in the
value of thermistor resistance ΔR. The change ΔR for the thermistor can be determined as follows.
If the meter in this circuit is replaced by a relay, and if the output of the Differential Instrumentation
Amplifier Transducer Bridge drives the relay that controls the current in the heat-generating circuit,
a temperature controller can be formed. A properly designed circuit should energize a relay when
the temperature of the thermistor drops below a desired value, causing the heater unit to turn on.
Figure 5.10 can be converted into a simple analog weight scale by connecting strain gauges in the
bridge circuit. These strain gauges are connected in all the four arms of the bridge, as shown in Fig
5.11. The strain gauge elements are mounted on a base of the specially made weight platform, on
which an external force or weight is placed. One pair of strain gauge elements in opposite arms
elongates, (i.e. RT1 and RT3 both increases in resistance) while the other pair compresses (RT2
The bridge is balanced when no external force or weight is applied, i.e. RTI = RT2 = RT3 = RT4
Fig 5.11. Strain gauge bridge circuit for analog weight scale
Suppose a weight is placed on the scale platform and RT1 and RT3 increases in resistance. Then
RT2 and RT4 decrease in resistance by the same value AR and the bridge is unbalanced, thereby
where
The Differential Instrumentation Amplifier Transducer Bridge then amplifies the voltage Vab,
giv¬ing a deflection on the meter movement. As the gain of the amplifier is (+ RF/R1), the output
voltage Vo is given by
The gain of the amplifier is selected depending on the sensitivity of the strain gauge and on the full
scale deflection requirements of the meter. The meter can be then calibrated in grams or kilograms.
For better accuracy and resolution, a micro based digital weight scale may be constructed. However,
such a scale is much more complex and expensive then the analog scale.
PLC Structure
The PLC Structure mainly consists of a CPU, memory areas, and appropriate circuits to receive
input/output data as shown in Fig. 5.12. A PLC can be considered as a box full of hundreds of
thousands of separate relays, counters, timers and data storage locations. (These counters, timers,
etc. really do not exists physically but rather they are simulated and can be considered software
counters, timers, etc). These internal relays are simulated through bit locations in registers.
Fig 5.12
Input Relays: (Contacts) these are connected to the outside world. They physically exist and
receive signals from switches, sensors, etc. Typically they are not relays but are transistors.
Internal Utility Relay: (Contacts) these do not receive signals from the outside world nor do they
physically exist. They are simulated relays and are what enables a PLC to eliminate external relays.
There are also some special relays that are dedicated to performing only one task. Some are always
ON while some are always OFF. Some are ON only once during Power-on and are typically used
Counters: These again do not physically exist. They are simulated counters and they can be
programmed to count pulses. Typically these counters can be up-count, down count or both. Since
they are simulated they are limited in their counting speed. Some manufacturers also include high
Timers: These also do not physically exist. They come in many Varieties and increments. The most
common type is an ON-delay type. Others include OFF-delay and both retentive and non-retentive
Output Relays: (Coils) these are connected to the outside world. They exist physically and send
ON/OFF signals to solenoid, lamps, etc. They can be transistors, relays or triacs depending upon
Data Storage: Typically there are registers assigned simply to store data. They are usually used as
temporary storage for math or data they can also be used to store data in case of a power failure.
These registers ensure that there is no loss of contents owing to disconnection of power.
PLC operation
A PLC System Operation works by continually scanning a program. This scan cycle can be
considered as made up of three important states as shown in Fig. 5.13. In addition there are also
more than three states and these are used for checking the system and updating the internal counter
Step 1: Check Input Status: First the PLC takes a look at each input to determine if it is ON or
OFF. In other words, it checks and senses whether the sensor connected to the first input is ON,
to the second input is ON, to the third input is ON… It records this data into its memory to be
Step 2: Execute Program: The PLC System Operation next executes the program, one instruction
at a time. For example, if the program says that if the first input was ON then it should turn ON
the first output. Since it already knows which inputs are ON/ OFF from the previous step, it will
be able to decide whether the first output should be turned ON based on the state of the first input.
It will store the execution results for use later during the third step.
Step 3: Update Output Status: Finally the PLC updates the status of the outputs. It updates the
outputs based on which inputs were ON during the first step and the results of executing the
program during the second step. Based on example in step 2, it would now turn ON the first output
because the first input was ON and the program said to turn ON the first output when this
condition is true.
After the third step, the PLC System Operation goes back to step one and repeats the steps
continuously. The time taken to execute the above three steps or one instruction cycle is defined
Relays
The main purpose of a PLC is to replace real world relays. A Relays Definition is basically an
electro-magnetic switch. When a voltage is applied to the coil, a magnetic field is generated. This
magnetic field attracts the contact of the relay in, causing them to make a connection. These
contacts act like a switch and allow current to flow between 2 points thereby closing the circuit.
Let us consider the following example in which we will simply turn ON a bell, whenever the switch
When the switch closes, current is applied to a bell causing it to sound. In Fig.5.14 it is seen that it
consists of two separate circuits. One circuit is the dc part and the other circuit is the ac part.
In this case we are using a dc relay to control an ac circuit. When the switch is open, no current
flows through the coil of the relay. As soon as the switch is closed, current starts to flow through
the coil causing a magnetic field to build up. This magnetic field causes the contacts of the relay to
close. Hence, ac current flows through the bell and the sound of the bell can be heard.
Let us now replace the Relays Definition by a PLC. The first process is necessary to create what is
called a ladder diagram. (A ladder diagram consists of vertical lines called the bus bars and within
these vertical lines are placed various horizontal lines consisting of input contacts and output. These
horizontal lines are called as rungs.) We have to create a ladder diagram, but a PLC does not
understand a schematic diagram. It only recognizes code. Fortunately most PLCs have software
which convert ladder diagrams into code.
First step: We have to translate all of the items we are using into symbols the PLC understands.
The PLC does not understand terms like switch, relay, bell etc. It prefers input, output, coil, contact,
etc. It does not care what actual input or output device actually is. It only cares that it is an input
or an output.
The batteries or power supply is replaced by a symbol. This symbol is common to all ladder
diagrams. These are called the bus bars. These look like two vertical lines on either side and the
input and output are placed within these bars. The left side can be considered as the voltage and
the right side as the ground and the current flow from left to right.
The inputs and outputs each are also given a symbol. The input, that is, the switch will be connected
by a symbol, shown in Fig below. This symbol can also be used as the contact of the Relays
Definition.
Only one output is normally used, e.g. a bell. The output that the bell will be physically connected
in the circuit by the symbol is shown in Fig. This symbol is used as the coil of a relay.
The ac supply is an external supply hence it is not put in the ladder diagram. The PLC only knows
The PLC must know where everything is located. In other words we have to give all the devices an
address. The location where the switch is going to be physically connected to the PLC. Each inputs
and outputs used have an address. The PLC has a lot of inputs and outputs but the PLC has to
The final step is to convert the schematic into a logical sequence of events. The program written
tells the PLC what to do when certain events take place. The PLC should be told what to do when
the operator turns ON the switch. The diagram shown in Fig. 5.15 is the final converted diagram.
PLC Register
Let us consider a simple example and compare the ladder diagram with its real world external
physically connected relay circuit. In Fig. 5.16 (a), the coil circuit will be energized when there is a
closed loop between the ‘+’ and ‘—’ terminals of the battery. The same circuit can be drawn using
ladder diagram. A ladder diagram consists of individual rungs. Each rung must contain one or more
MIT MYSORE | DEPT. OF ELECTRONICS & COMMUNICATION ENGG. 137
MODULE5:TRANSDUCER, PROGRAMMABLE LOGIC
18EC36
CONTROLLER
inputs and one or more outputs. The first instruction on a rung must always be an input instruction
and last instruction on a rung should always be an output coil. The ladder diagram of Fig. 5.17(a)
The PLC Register in use can be explained by using Fig. 5.17(b) and changing SW2 from normally
Hence, in Fig. 5.17(c), SW1 will be physically OFF and SW2 will be physically ON initially. Each
symbol or instruction has been given an address. This address sets aside a certain storage area in
the PLC data files so that the status of the instruction (i.e. true/false) can be stored. Most PLCs
uses 16 slots or bit storage locations. In the example given above, two different storage locations
In the tables of two registers 00 and 05 shown in Fig. 5.17(d), we can see that in register 00, bit 00
corresponding to input 0000 was a logic 0 and bit 01 corresponding to input 0001 was a logic 1.
Register 05 shows that bit 00 corresponding to output 0500 was a logic 0. The logic 0 or 1 indicate
The PLC will only energise an output when all conditions on the rung are TRUE. Hence, in the
above example, SW1 must be logic 1 and SW2 must be logic 0, then and only then the output (coil)
will be True, that is energized. If any instruction on the rung before the output (coil) is false, then