LEC 28-30 - Mechatronics Systems and Applications
LEC 28-30 - Mechatronics Systems and Applications
Applications
Course Code: ES-451
LECTURE#28-30
Basics of Programmable Logic Controllers
(CLO-3)
(PLO-3)
Programmable Logic Controllers
• Modern control systems mostly include some form of
embedded computer or Programmable Logic Controller
(PLC) for controlling the process in a programmed or in
automation way.
– Embedded computer is a microprocessor or
microcontroller based system used for a specific task
rather than general-purpose computing.
• A PLC is a type of computer or an embedded
controller that has been designed for the control of
industrial process control applications.
• PLCs differ from office computers in the types of tasks that
they perform and the hardware and software they
require to perform these tasks.
Programmable Logic Controllers
• Most PLC components are in card form that can be interchanged quickly in
case of the event failure.
• A typical PLC application has about one hundred inputs and outputs, but the
scale of the applications varies widely.
Life before PLC
• Prior to PLCs, most of control tasks were performed by
contactors, control relays and other electromechanical devices,
often referred to as hard-wired control.
• Circuit diagrams had to be designed, electrical components
specified and installed, and wiring lists created.
• Electricians would then wire the components necessary to
perform a specific task.
• If an error occurred , the wires had to be reconnected correctly.
• A change in function or system expansion required extensive
component changes and rewiring.
• PLC is the first type of “mechatronic” control system.
• While the specific applications vary widely, all PLCs monitor
inputs and other variable values, make decisions based on a
stored program, and control outputs to automate a process or
machine.
PLC System (1)
• The basic elements of a PLC include input modules or points,
a Central Processing Unit (CPU), output modules or points, and
a programming device.
PLC System
• PLC Inputs are in form of switches (i.e., push buttons) controlled by
machine operators or position sensors.
• Primary function of a PLC’s input circuitry is to convert the signals
provided by various switches and sensors into logic signals that can be
used by the CPU.
• The CPU evaluates the status of inputs, outputs, and other variables as
it executes a stored program.
– The CPU then sends signals to update the status of outputs.
– Timers can be programmed in PLC to run a specific process for a
defined time.
• Output modules convert control signals from the CPU into digital or
analog values that can be used to control various output devices.
– Outputs include lamps, solenoid valves, and motors,
– Input–output interfacing done within the controller.
• The programming device is used to enter or change the PLC’s program
or to monitor or change stored values.
PLC Input Devices (1)
• Push buttons
– Normally open (NO)
– Normally closed (NC)
• Break before make
• Selector Switch
• Limit Switches
• Temperature Limit Switch (Thermostat)
• Pressure Limit Switch
• Level Limit Switch
PLC Input Devices (2)
• Sensors
– Proximity Sensor
– Inductive Proximity Sensor
– Capacitive Proximity Sensor
– Reed Switching Sensor
– Photoelectric Sensors
– Ultrasonic Sensors
– Displacement/Position Sensors
– Linear and Rotary Potentiometers
– Linear Variable Differential Transformer
– Capacitive Displacement Sensors
PLC Input Devices_ Push buttons (1)
• Push buttons are the ones that you see as START or
STOP buttons in a PLC control system.
• It operates by either MAKING contact (Make) or by
BREAKING contact (Break).
• Pushbuttons are divided into two categories:
– Normally open or Normally closed.
PLC Input Devices_ Push buttons (2)
Normally open (NO)
• Normally open push buttons, when connected to the circuit, makes an
OPEN circuit.
– Current will 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 (NC)
• Normally closed push buttons, when connected to the circuit, SHORTS the
connected terminals.
• Current will flow through the switch.
– If you connect a normally closed push button to a circuit, the circuit will
turn on immediately because there is electrical continuity already.
– Pushing the button will make its metal contacts touch with each other,
closing the connection between the two connected terminals.
PLC Input Devices_ 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 one BREAKS the contact while the other MAKES the
contact.
PLC Input Devices_ 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.
• Common example is in electric fans (dimmer), where you
can select a number that then dictates the speed of the fan’s
motor.
• This process selects a varying load for the motor in order to
control its speed.
PLC Input Devices_ Limit Switches
• Limit switches, change state when a predetermined
limit is reached.
• These are useful in automation because you can set a
limit (using the limit switch) where a specific process
stops.
PLC Input Devices_ Temperature Limit Switch
• Temperature limit switch (thermostat), is used to detect
temperature changes in the system.
• They can also be Normally Open and Normally Closed, depending
on what type is used.
• This means 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.
– change state when a predetermined limit is reached.
• These are useful in automation because you can set a limit (using
the limit switch) where a specific process stops.
PLC Input Devices_ Pressure Limit Switch
• Pressure switches are 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.
• 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 (liquid or gas) inside “try to escape”.
• Using pressure limit switches allow us to prevent that scenario.
PLC Input Devices_ 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 commonly used in conjunction with inlet and
outlet valves in a liquid level control system, or in a heating
and mixing application.
Sensors
• Sensor is a device that when exposed to a physical
phenomenon (temperature, displacement, force, etc.)
measures a physical quantity and converts it into a signal
which can be read by an observer or by an instrument and
produces a proportional output signal (electrical, mechanical,
magnetic, etc.).
– A thermocouple converts temperature to an output
voltage which can be read by a voltmeter.
• Sensors may operate simple on/off switches to detect the
following:
– Objects (Proximity switch)
– Empty or full (level switch)
– Hot or cold (thermostat)
– Pressure high or low (pressure switch)
SENSOR CLASSIFICATION
Fig(a): Simple electrical ladder diagram representation Fig (b): PLC implementation
Example 1 : PLC- Design Configuration & Implementation
QUESTION STATEMENT:
In the hardwired circuit shown in Fig (a), pilot light (PL) will turn ON if the limit
switch LS1 closes and if either push button PB1 or limit switch LS2 closes.
In PLC circuit, the same series of events will cause the pilot light—connected to
an output module—to turn ON.
• Note: In PLC circuit of Fig (b), internal representation of contacts provides
the equivalent power logic as a hardwired circuit when the referenced input
field device closes or is pushed.
Sketch hardwired and PLC implementation diagrams for the circuit in Fig(a)
illustrating the configurations of inputs that will turn PL ON.
SOLUTION:
Draw the truth table of problem.
Fig (c) shows several possible configurations for the circuit in Fig (a).
The highlighted blue lines indicate that power is present at that connection
point, also the way a programming or monitoring device represents power in a
PLC circuit.
The last two configurations in Fig (c) are the only ones that will turn PL ON
PLC- Design Configuration & Implementation Example 1
Fig (c)
Text References
TEXT BOOK:
Garry Dunning, “Introduction to Programmable
Logic Controller “, Publisher: Thomson_Delmaar
learning, latest edition.
REFRENCE BOOKS:
Kelvin T. Erickson, “Programmable Logic
Controllers: An Emphasis on Design and
Application”, Latest edition.
END OF LECTURE