Professional Documents
Culture Documents
البحث الاول
البحث الاول
Department
Engineering
Course
Programmable logic control
Name
Supervised By Dr / Hatem
Section 15
Sensors
Sensors are devices that either measures a physical quantity or detects it.
In PLC automation, a sensor must be a transducer who can convert a physical
quantity into an electrical quantity.
It is important to know that there is no “one-fits-all” sensor that exists in this
world. As engineers, we have to solve PLC automation problems using the correct
sets of devices and it starts with how you can monitor the physical conditions in
your system.
These samples are then converted into bit representations (how many bits is
dependent on the design of the PLC). This is called quantization. To easily
visualize it, check the table below: it shows a bit equivalent for the -3.5V to +3.5V
range.
1
Because the PLC has a CPU, it will then perform digital signal processing in order
to process the data and convert it to an equivalent result in the output module.
Discrete sensors, on the other hand, outputs a HIGH or a LOW voltage only.
This is derived from the Binary number system where the only possible digits are
0 and 1 which can represent LOW and HIGH, respectively.
HIGH signals, even though they are represented as 1 even in some PLCs, are not
represented by 1 Volt. PLCs usually run on 24 Volts DC.
What this means is that PLCs will read HIGH at the input side only when the
voltage is at 24 Volts DC.
These discrete sensors have internal switching circuits that classify them as either
a sinking (NPN) or a sourcing device (PNP). Basically, PNP provides +24 V as
input, and NPN provides -24V as input. Hence, the input modules must also be
classified as sourcing or sinking.
Examples of Sensors
Proximity Sensor
Proximity Sensors, in PLC automation, are usually used in detecting the presence
or absence of objects made of varying materials. They do so WITHOUT making
2
contact. Sometimes they are called “proximity switches” because the output is
binary, HIGH or LOW—just like a switch.
Reed Switch
The reed switch consists of two ferromagnetic material sealed in glass or plastic.
The two materials do not initially touch each other, but when a magnetic field
from either a permanent magnet or an induced one (from a current-carrying coil)
is placed near the reed switch, the switch closes and makes electrical continuity.
3
For PLC automation, this can be perfectly used for notification/alarm systems
where doors are involved: for example, when a room only allows authorized
personnel to enter, opening the door will light up a bulb in the security guard
office to indicate that there is someone opening that door.
Photoelectric Sensors
Photoelectric sensors use a light emitting diode as an emitter, and usually
phototransistors or photodiodes at the receiver side. Basically, when the light
(usually infrared) from the emitter’s LED hits the receiver, the sensor changes
state from LOW to HIGH.
These sensors may be used in creative ways in PLC automation because
photoelectric sensors have different modes of operation.
In PLC automation systems, only an object that can block the path of light
between the emitter and the detector may be detected by the photoelectric sensor.
Usually, these objects are placed in consecutively and are moved by a conveyor
so that the total number of items may be counted.
Reflective
The photoelectric sensor operates as a reflective type when it requires that the
object reflects the emitted light onto the detector.
In PLC automation systems, the reflective type is most commonly used in
detecting the liquid level of containers and tell whether they contain the desired
level.
4
Ultrasonic Sensors
Ultrasonic Sensors uses sound waves and their reflection in order to detect the
presence of an object. Obviously, objects that absorb sound are incapable of being
detected by ultrasonic sensors.
You may think that this sensor may annoy the people around it because of the
emitted sound. That would not be possible, and I’ll explain why.
The term “Ultrasonic” means that the frequency being used is higher than what
humans are capable of hearing.
Basically, ultrasonic sensors have high enough frequency to even be deciphered
by humans.
Audible sound frequencies only range from 20Hz to 20 kHz, and this range can
only be reduced naturally due to aging.
This is why some really old people may not be able to hear sinusoidal tones at 18
kHz but a younger one can.
Displacement/Position Sensors
A displacement sensor measures the distance between a specified reference point
and the location of the target object. Usually, these are used in fabrication to attain
higher precision levels. Hence, these sensors are undoubtedly analog, because
they give off a range of values.
5
When the contact point reaches the topmost level, the output voltage becomes the
same as the source voltage. When the contact point is at the middle, the output
voltage becomes half of that of the source.
Depending on how precise the PLC can read the voltage, every little change in
resistance which is represented by a percentage of the voltage source, may also
represent a change in distance.
The same concept applies to a rotary potentiometer, except it measures angular
distance. This means that the movement is circular as opposed to straight.
In PLC automation, the potentiometers are used when a DC voltage is used to
represent the change in distance.
6
The capacitive displacement sensor, though, should have its output signal
reconditioned first before it becomes usable for PLC automation.
7
Push buttons are the ones that you will usually see as START or STOP buttons
in a PLC control system. It operates by either MAKING contact (Make) or by
BREAKING contact (Break). Hence, pushbuttons are divided into two
categories: Normally open or Normally closed.
Normally open (NO)
Normally open push buttons, when connected to the circuit, normally make an
OPEN circuit.
In this scenario, the current can NOT flow
through the switch, as there is no electrical
continuity.
Pushing the button will make its metal
contacts touch with each other, closing the
connection between the two connected
terminals and hence allowing the current to
pass.
Normally closed push buttons, when connected to the circuit, SHORTS the
connected terminals. In this scenario, current can already flow through the switch.
This means that if you connect a normally closed push button to a circuit, the
circuit will turn on immediately because there is electrical continuity already.
This means pushing the button will make its metal contacts touch with each other,
closing the connection between the two connected terminals.
8
Break before make
These types of switches have BOTH the normally open and the normally closed
in one construction.
One side of the switch is normally closed and one side is normally open, so when
a button is pressed, one contact will be in the OFF position and one will be ON.
Simply put, the other one BREAKS contact while the other one MAKES, hence
the name.
Selector Switch
Selector switches are still manually operated switches, however instead of being
normally open or closed, there are more than two contacts to select from.
The usual example is found in electric fans, where you can select a number that
then dictates the speed of the fan’s motor.
This process actually selects a varying load for the motor in order to control its
speed.
Limit Switches
Limit switches, as the name implies, change state when a predetermined limit is
reached. These are actually useful in automation because you can set a limit
(using the limit switch) where a specific process stops.
There are also different types of limit switches which allow us to choose the
physical quantity to limit in our control system design.
Temperature Limit Switch
9
Also called Thermostat, the temperature limit switch is used to detect temperature
changes in your system.
They can also be Normally Open and Normally Closed, depending on what type
is used.
This dictates the actual Industrial application that it can be used in—whether it
be an overheating prevention, or even just maintaining a certain temperature of
materials.
Pressure switches are most commonly used in containers where the pressure of
liquids or gases is crucial.
They change their state whenever a liquid or gas in a tank reaches a high enough
pressure. Again, they can either be Normally Open or Normally Closed switches.
When the pressure inside a tank increases to a high amount, the difference
between the atmospheric pressure and the pressure inside will make the fluid
10
(liquid or gas) inside “try to escape”. Using pressure limit switches allow us to
prevent that scenario.
Level Limit Switch
Level switches more commonly called Level Sensors, are used to control the
height of a liquid inside a container, usually a tank.
They are most commonly used in conjunction with inlet and outlet valves in a
liquid level control system, or in a heating and mixing application.
11
Transistor PLC Outputs: Transistor outputs are voltage-dependent and they can
only operate DC loads. PLC control systems providing transistor outputs are
mainly used in low-power DC circuitry such as within microprocessors and in
applications that require faster switching operations like controlling lights.
TRIAC PLC Outputs: TRIAC is a term that means Triode for Alternating
Current (AC). TRIACs are silicon-based, solid-state electronic switches that are
activated by a small amount of control voltage from a PLC for example. Their
working principle is similar to that of MOSFET (Metal Oxide Semiconductor
Field Effect Transistor) transistors. TRIAC PLC outputs are ideal for controlling
low-power AC loads such as motor starters, lighting systems, and contactors.
12
D) Solenoid Valves
A solenoid valve is simply an electromechanical valve that is electrically
controlled. The two most common types of solenoid valves are Direct Acting and
Pilot Operated. Usually, these valves are used to control the flow directions of
fluids in hydraulic and pneumatic systems. A typical solenoid valve includes a
solenoid, which is an electrical coil having a movable ferromagnetic plunger
(core) in its center.
In its resting position, the plunger normally closes off an orifice. If DC control
voltage is applied to the solenoid from a PLC, it closes the solenoid switch–that
connects the solenoid to another power source–allowing electric current to pass
through the coil. This creates a strong magnetic field that pulls the plunger
upwards into the valve’s frame, thereby opening the orifice. When the DC control
voltage is removed from the solenoid circuit, the plunger resumes its original
position by use of spring force. This is the basic principle used to OPEN and
CLOSE PLC controlled solenoid valves.
13
output of an electric generator from let’s say 0…2000kW (Kilo-Watts). As you
can see, there are many field devices that make use of analog PLC outputs
14