L-18 (SM) (Ia&c) ( (Ee) Nptel)
L-18 (SM) (Ia&c) ( (Ee) Nptel)
L-18 (SM) (Ia&c) ( (Ee) Nptel)
4
Programmable Logic
Control Systems
Version 2 EE IIT, Kharagpur 1
Lesson
18
Introduction to
Sequence/Logic Control
and Programmable Logic
Controllers
Version 2 EE IIT, Kharagpur 2
Instructional Objectives
After learning the lesson students should be able to
Note that some of these can also be operated using analog control methods. However, in specific
applications they may be viewed as discrete control or sensing devices for two reasons, namely,
A. The inputs to these devices only belong to two specific sets. For example in the control of
a reciprocating conveyor system, analog motor control is not applied. Simple on-off
control is adequate. Therefore for this application, the motor-starter actuation system may
be considered as discrete.
B. Often the control problem considered is supervisory in nature, where the problem is
provide different types of supervisory commands to automatic control systems, which in
turn carry out analog control tasks, such that over all system operating modes can be
maintained and coordinated to achieve system objectives.
Point to Ponder: 1
A. Categorise the following sensor systems as Discrete or Continuous
a) thermostat b)clinical thermometer c) the infrared sensor in TV sets
B. Categorise the following actuator systems as Discrete or Continuous
a)the trigger of a gun b) the steering wheel of the car c) a step motor
Piston
Upper
limit
switch
Up
Sole-
noid
Down Die Lower
Solenoid limit
switch
Point to Ponder: 2
A. Define what is Logic Control system in your own language. Give an example
B. In the context of your example show typical objectives in Logic Control
Point to Ponder: 3
C. Of Logic Control and Analog Control which one appears simpler and why ?
D. Can you cite an example system which requires both Analog and Logic Control?
However, since it evolved out of relay control panels the PLCs adopted legacy concepts, which
were applicable to such panels. To facilitate maintenance and modification of the physically
wired control logic, the control panel was systematically organized so that each control formed a
rung much like a rung on a ladder. The development of PLCs retained the ladder logic concept
where control circuits are defined like rungs on a ladder where each rung begins with one or
more inputs and each rung usually ends with only one output. A typical PLC ladder structure is
shown below in Fig. 3.2
Relay Ladder
Rung Logic
] Rung
• Relay coil
(Virtual)
•
Power
•
Rails
Fig. 18.4 The structure of Relay Ladder Logic Programs for PLCs
Point to Ponder: 4
E. Name three of the most prominent advantages of the PLCs over hardwired Relay
Contactor Logic
F. Can you name a single disadvantage in any situation?
G. Do you think the idea of developing programs that look like Relay Ladders is very
efficient? If so, why? If not, why was it pursued?
Application Areas
Programmable Logic Controllers are suitable for a variety of automation tasks. They provide a
simple and economic solution to many automation tasks such as
• Logic/Sequence control
• PID control and computing
• Coordination and communication
Architecture of PLCs
The PLC is essentially a microprocessor-based real-time computing system that often has to
handle significant I/O and Communication activities, bit oriented computing, as well as normal
floating point arithmetic. A typical set of components that make a PLC System is shown in Fig.
3.5 below.
Communication
Backplane
Processor CPU
Function Power
Modules
Network Printer
communication Programmer unit
The components of the PLC subsystem shown in Fig. 3.5 are described below.
Communications processors
Communications processors autonomously handle data communication with the following:
♦ Standard peripherals such as printers, keyboards and CRTs,
♦ Supervisory Computer Systems,
♦ Other Programmable controllers,
The data required for each communications processors is stored in a RAM or EPROM sub
module so that they do not load the processor memories. A local area network can also be
configured using communications processors. This enables the connection of various PLCs over
a wide distance in various configurations. The network protocols are often proprietary. However,
over the last decade, interoperable network protocol standards are also supported in modern
PLCs.
Expansion units
Modules for the input and output of signals are plugged into expansion units. The latter are
connected to the central controller via interface modules. Expansion units can be connected in
two configurations.
A. Centralized configuration
The expansion units (EU) are located in the same cabinet as the central controllers or in
an adjacent cabinet in the centralized configuration, several expansion units can be
connected to one central controller. The length of the cable from the central controller to
the most distant expansion unit is often limited based on data transfer speeds.
B. Distributed configuration
The expansion units can be located at a distance of up to 1000 m from the central
controller. In the distributed configuration, up to 16 expansion units can be connected to
one central controller. Four additional expansion units can be connected in the centralized
configuration to each distributed expansion unit and to the central controller.
Input/Output Units
A host of input and output modules are connected to the PLC bus to exchange data with the
processor unit. These can be broadly categorized into Digital Input Modules, Digital Output
Modules, Analog Input Modules, Analog Output Modules and Special Purpose Modules.
Digital Input Modules
The digital inputs modules convert the external binary signals from the process to the internal
digital signal level of programmable controllers.
Digital Output Modules
The digital output modules convert the internal signal levels of the programmable controllers
into the binary signal levels required externally by the process.
Analog Input Modules
The analog input modules convert the analog signals from the process into digital values which
are then processed by the programmable controller.
Analog Output Modules
The analog output modules convert digital values from the programmable controller into the
analog signals required by the process.
Special Purpose Modules
These may include special units for:
These modules contain additional processors, and are used to relieve the main CPU from the
high computational loads involved in the corresponding tasks. These are discussed in detail in
Lesson 22
Programmers
External programming units can be used to download programs into the program memory of the
CPU. The external field programmers provide several software features that facilitate program
entry in graphical form. The programmers also provide comprehensive aids for debugging and
execution monitoring support logic and sequence control systems. Printer can be connected to
the programmers for the purpose of documenting the program. In some cases, special
programming packages that run on Personal Computers, can also be used as programming units.
There are two ways of entering the program:
A. Direct program entry to the program memory (RAM) plugged into the central controller.
For this purpose, the programmer is connected to the processor or to the programmer
interface modules.
B. Programming the EPROM sub modules in the programmer without connecting it to the
PC (off-line). The memory sub modules are then plugged into the central controller.
Point to Ponder: 5
A. Name three major elements of a PLC System
B. What is the need for special purpose I/O modules? Explain with an example
C. What is a communication Processor?
Point to Ponder: 1
A. Categorise the following sensor systems as Discrete or Continuous
a) thermostat : Discrete b) clinical thermometer : Continuous c) the infrared sensor in TV
sets : Discrete
B. Categorise the following actuator systems as Discrete or Continuous
A) the trigger of a gun: Discrete b) the steering wheel of the car: Continuous c) a step
motor: May be considered Discrete or Continuous depending on the mode it is used. If it
is used in the incremental mode it may be thought to be discrete
(clockwise/anticlockwise). If it is used in the slewing mode, it may be considered
continuous
Point to Ponder: 2
A. Define what is Logic Control system in your own language. Give an example
Ans: A detailed definition provided in the lesson. The example of a die press is also
provided. However, try to give your own example.
Ans: The following are valid control objectives for the die press example.
1. When MCS is off Up_lamp should never be 1
2. Every transition of the Up_lamp signal from 0 to 1 should be immediately followed
by a transition of Dn_lamp from 0 to 1
3. Up_lamp and Dn_lamp can never simultaneously be 1, although they can
simultaneously be 0.
Such statements are specifications in the sense that the logic controller must ensure that
they are satisfied in the controlled system.
Point to Ponder: 3
A. Of Logic Control and Analog Control which one appears simpler and why ?
Ans: Analog Control is more complex than logic control. This is because of the fact that
logic control models are captured by simple state transition systems containing only a few
states. The state space of an analog control system is in infinite. The dynamics can be far
more complex than simple state transition systems. Factors such as disturbances must be
considered, unlike in logic control
B. Can you cite an example system, which requires both Analog and Logic Control?
Ans: There are many examples. In a variable air volume air conditioning system, the cooling
water temperature is controlled by on-off control of the chiller, while volume of air is
Point to Ponder: 4
A. Name three of the most prominent advantages of the PLCs over hardwired Relay
Contactor Logic
Ans: For very simple and small systems such as power distribution control a relay based
control panel may be a cheaper solution.
C. Do you think the idea of developing programs that look like Relay Ladders is very
efficient? If so, why? If not, why was it pursued?
Ans: It is not efficient. It was pursued, because when PLCs were developed Plant Engineers
were more conversant with Relay Logic. So the language was introduced for ease of
understanding of Plant Engineers.
Point to Ponder: 5
A. Name three major elements of a PLC System
B. What is the need for special purpose I/O modules? Explain with an example
Ans: Some i/o operations like high speed counting of shaft encoder pulses to measure speed
is very computationally intensive. Therefore to free the CPU from this load, so that other
control logics can be computed, special i/o modules with dedicated processors for the task
are used.
Ans: It is a special processor that handles all communication related tasks with other
supervisory systems.