Lecture 1 Introduction
Lecture 1 Introduction
Page | 1
(a) (b)
(c) (d)
Fig. 1.1: Automation examples
Q: What is the importance of automation?
• High productivity
• Reduced costs
• Better quality and consistency
• Greater safety
• Improved flexibility
• Increased added value and human capacity
• New level of data support and production traceability
• Real-time monitoring and predictive maintenance
Dr. Md. Rabiul Islam, Associate Professor, EEE ∥ [email protected] ∥ Introduction to Automation
গগোপোলগঞ্জ বিজ্ঞোন ও প্রযুবি বিশ্ববিদ্যালয়
Gopalganj Science and Technology University
ইগলবিক্যোল অ্যোন্ড ইগলিবনক্ ইবঞ্জবনয়োব িং বিভোগ Dept. of Electrical and Electronic Engineering
ইবঞ্জবনয়োব িং অ্নুষদ Faculty of Engineering
গগোপোলগঞ্জ-৮১০০, িোিংলোগদশ Gopalganj-8100, Bangladesh
Page | 2
Dr. Md. Rabiul Islam, Associate Professor, EEE ∥ [email protected] ∥ Introduction to Automation
গগোপোলগঞ্জ বিজ্ঞোন ও প্রযুবি বিশ্ববিদ্যালয়
Gopalganj Science and Technology University
ইগলবিক্যোল অ্যোন্ড ইগলিবনক্ ইবঞ্জবনয়োব িং বিভোগ Dept. of Electrical and Electronic Engineering
ইবঞ্জবনয়োব িং অ্নুষদ Faculty of Engineering
গগোপোলগঞ্জ-৮১০০, িোিংলোগদশ Gopalganj-8100, Bangladesh
Q: What is a controller?
The controller is a hardware device or a software program that produces signals as input to the controlled
plant or process to obtain the desired output. The controller works based on logic.
(a) (b)
Fig. 1.4(a)
Dr. Md. Rabiul Islam, Associate Professor, EEE ∥ [email protected] ∥ Introduction to Automation
গগোপোলগঞ্জ বিজ্ঞোন ও প্রযুবি বিশ্ববিদ্যালয়
Gopalganj Science and Technology University
ইগলবিক্যোল অ্যোন্ড ইগলিবনক্ ইবঞ্জবনয়োব িং বিভোগ Dept. of Electrical and Electronic Engineering
ইবঞ্জবনয়োব িং অ্নুষদ Faculty of Engineering
গগোপোলগঞ্জ-৮১০০, িোিংলোগদশ Gopalganj-8100, Bangladesh
If the switch is short then the bulb gives light.
If the switch is open then the bulb gives no light.
This switch may be made short or open in two ways:
• Manually
• Automatically
Page | 5
based on the necessity.
Fig. 1.4(b)
Relay logic is a method of reasoning (making output) based on a series of relay statuses. Relay logic consists
of relays wired up in a particular fashion to perform the desired switching operations. The circuit
incorporates relays along with other components such as motors, timers, actuators, contactors, etc.
Example:
Fig. 1.4(c)
If the relay A is activated
and
If the relay B is activated
Then
The bulb gives light
It is also known as the relay logic control (RLC) works efficiently to perform basic ON/OFF operations
by opening or closing the relay contacts.
When the coil of the relay A and the relay B is not energized they act as open circuits. So these relays are
known as normally open relays or normally open contacts, denoted as
Fig. 1.4(d)
The circuit shown in Fig. 5 made automatically on-off using relays can be represented symbolically below.
Dr. Md. Rabiul Islam, Associate Professor, EEE ∥ [email protected] ∥ Introduction to Automation
গগোপোলগঞ্জ বিজ্ঞোন ও প্রযুবি বিশ্ববিদ্যালয়
Gopalganj Science and Technology University
ইগলবিক্যোল অ্যোন্ড ইগলিবনক্ ইবঞ্জবনয়োব িং বিভোগ Dept. of Electrical and Electronic Engineering
ইবঞ্জবনয়োব িং অ্নুষদ Faculty of Engineering
গগোপোলগঞ্জ-৮১০০, িোিংলোগদশ Gopalganj-8100, Bangladesh
Page | 6
Fig. 1.4(e)
The circuit of Fig. 5(c) and Fig. 5(e) is called a relay logic control circuit. A relay logic control circuit is
a schematic diagram that shows various components, their connections, inputs as well as outputs in a
particular fashion.
It contains two vertical lines, one on the extreme left and the other on the extreme right. These vertical lines
are called rails. The extreme left rail is at the supply voltage potential and is used as an input rail. The
extreme right rail is at zero potential and is used as the output rail.
The term logic is used because programming is primarily concerned with implementing logic and switching
operations; for example, if A or B occurs, switch on C; if A and B occur, switch on D.
Fig. 1.4(f)
Dr. Md. Rabiul Islam, Associate Professor, EEE ∥ [email protected] ∥ Introduction to Automation
গগোপোলগঞ্জ বিজ্ঞোন ও প্রযুবি বিশ্ববিদ্যালয়
Gopalganj Science and Technology University
ইগলবিক্যোল অ্যোন্ড ইগলিবনক্ ইবঞ্জবনয়োব িং বিভোগ Dept. of Electrical and Electronic Engineering
ইবঞ্জবনয়োব িং অ্নুষদ Faculty of Engineering
গগোপোলগঞ্জ-৮১০০, িোিংলোগদশ Gopalganj-8100, Bangladesh
Q: Generations of controller circuits/Automation Systems
1. Generation 1 (Invention of steam engine)
2. Generation 2 (Invention of electricity and uses of Relay-Controlled Systems)
3. Generation 3 (Invention of Microprocessor and uses of Microprocessor-Controlled Systems)
4. Generation 4 (Internet of Things) Page | 7
Q: Generation 2
The 1st generation controller for automation was RLC. The particular symbols are used in relay logic circuits
to represent different circuit components. Some of the most common and widely used symbols are given
below.
1. NO contact
The given symbol indicates a normally open contact. If the contact is normally open, it would not allow
any current to pass through it and hence there will be an Open circuit at this contact.
2. NC contact
This symbol is used to indicate Normally Close contact. This allows the current to pass through it and acts
as a short circuit.
3. Push Button (ON)
This push button allows current to flow through it to the rest of the circuit as long as it is pressed. If we
release the push button, it becomes OFF and no longer allows the current to flow. This means in order to
carry the current the push button has to remain in the pressed state.
4. Push Button (OFF)
The OFF push button indicates an open circuit i.e. it does not allow the flow of current through it. If the
push button is not pressed, it stays in the OFF state. It can transit into the ON state to carry the current
through it once it is pressed.
5. Relay coil
The relay coil symbol is used to indicate the control relay or motor starter and sometimes even a contactor
or timer.
6. Pilot Lamp
The given symbol denotes a Pilot Lamp or simply a bulb. They indicate the machine's operation.
Dr. Md. Rabiul Islam, Associate Professor, EEE ∥ [email protected] ∥ Introduction to Automation
গগোপোলগঞ্জ বিজ্ঞোন ও প্রযুবি বিশ্ববিদ্যালয়
Gopalganj Science and Technology University
ইগলবিক্যোল অ্যোন্ড ইগলিবনক্ ইবঞ্জবনয়োব িং বিভোগ Dept. of Electrical and Electronic Engineering
ইবঞ্জবনয়োব িং অ্নুষদ Faculty of Engineering
গগোপোলগঞ্জ-৮১০০, িোিংলোগদশ Gopalganj-8100, Bangladesh
Q: Explain the working of the relay logic circuit with an example
The working of a relay logic circuit can be explained through the given figures-
Page | 8
Fig. 1.5(b):
In rung 1, the push button is Off and hence it does not allow the current to pass through it. Therefore, there
is no output through rung 1.
In rung 2, the push button is On and therefore, current passes from the high voltage rail to the low voltage
rail and the pilot lamp 1 glows.
Dr. Md. Rabiul Islam, Associate Professor, EEE ∥ [email protected] ∥ Introduction to Automation
গগোপোলগঞ্জ বিজ্ঞোন ও প্রযুবি বিশ্ববিদ্যালয়
Gopalganj Science and Technology University
ইগলবিক্যোল অ্যোন্ড ইগলিবনক্ ইবঞ্জবনয়োব িং বিভোগ Dept. of Electrical and Electronic Engineering
ইবঞ্জবনয়োব িং অ্নুষদ Faculty of Engineering
গগোপোলগঞ্জ-৮১০০, িোিংলোগদশ Gopalganj-8100, Bangladesh
In rung 3, the contact is NO, therefore pilot lamp 2 remains Off and there is no flow of current or output
through the rung.
In rung 4, the contact is NC, allowing the current to pass through it and giving an output to the low-voltage
rung.
In rung 5, no current flows through the main rung as the contact is NO but due to the presence of the sub-
Page | 9
rung, which contains a normally close contact, there is a flow of current and hence the pilot lamp 4 glows.
Q: Example (RLC)
Draw the RLC ladder diagram for a motor that will start when both a presser switch and a temperature
switch are closed or when a push button is closed.
Solution:
The RLC ladder diagram is shown in Fig. 1.6.
Q: Example (RLC)
Draw the RLC ladder diagram to operate a motor at any pressure but not unless the specified temperature
setting has been reached.
Solution:
The RLC ladder diagram is shown in Fig. 1.7.
Dr. Md. Rabiul Islam, Associate Professor, EEE ∥ [email protected] ∥ Introduction to Automation
গগোপোলগঞ্জ বিজ্ঞোন ও প্রযুবি বিশ্ববিদ্যালয়
Gopalganj Science and Technology University
ইগলবিক্যোল অ্যোন্ড ইগলিবনক্ ইবঞ্জবনয়োব িং বিভোগ Dept. of Electrical and Electronic Engineering
ইবঞ্জবনয়োব িং অ্নুষদ Faculty of Engineering
গগোপোলগঞ্জ-৮১০০, িোিংলোগদশ Gopalganj-8100, Bangladesh
Q: Example (RLC)
Draw the RLC ladder diagram to control a relay being used to operate a hydraulic valve, this then results
in pressure being applied to drive a piston to move a workpiece.
Solution:
The RLC ladder diagram is shown in Fig. 1.8. The vertical lines represent the power rails and the horizontal Page | 10
lines to systems connected between them. The sequence of events is read from the top horizontal line
downwards.
(a) (b)
Fig. 1.8: RLC ladder diagram
Fig. 1.8(a) shows a simple ladder diagram. Thus, in the top line of Figure 1.8(a), when the push button is
closed, relay 1 is activated. This closes the contacts on the second line. So the solenoid valve is switched
on. When the push button is released the relay is deactivated. This opens the contacts on the second line
and so the solenoid valve is switched off.
Fig. 1.8(b) shows a more usual ladder diagram. This has the relay 2 switched on by a momentary press of
push-button switch. So the relay 2 is activated. This closes two sets of contacts in the second and third lines.
Contacts on the second line latch the push button switch. So that when the push stops there is still a
connection of power to the relay 2. Contacts on the third line switch on the solenoid valve. The solenoid
valve remains on as long as the power supply is available.
Now if we press the stop button the relay 2 is deactivated. This opens two sets of contacts in the second and
third lines. Contacts on the second line deactivate the latching of the push button. Contacts on the third line
switch off the solenoid valve.
The solenoid valve remains off until the start push button is pressed again. as long as the power supply is
available.
Q: Example (RLC)
Draw the RLC ladder diagram to control green and red light.
Solution:
The RLC ladder diagram is shown in Fig. 1.9.
Dr. Md. Rabiul Islam, Associate Professor, EEE ∥ [email protected] ∥ Introduction to Automation
গগোপোলগঞ্জ বিজ্ঞোন ও প্রযুবি বিশ্ববিদ্যালয়
Gopalganj Science and Technology University
ইগলবিক্যোল অ্যোন্ড ইগলিবনক্ ইবঞ্জবনয়োব িং বিভোগ Dept. of Electrical and Electronic Engineering
ইবঞ্জবনয়োব িং অ্নুষদ Faculty of Engineering
গগোপোলগঞ্জ-৮১০০, িোিংলোগদশ Gopalganj-8100, Bangladesh
Page | 11
0 0 0
0 1 1
1 0 1
1 1 1
This table is realized using the relay logic circuit in the following manner –
Dr. Md. Rabiul Islam, Associate Professor, EEE ∥ [email protected] ∥ Introduction to Automation
গগোপোলগঞ্জ বিজ্ঞোন ও প্রযুবি বিশ্ববিদ্যালয়
Gopalganj Science and Technology University
ইগলবিক্যোল অ্যোন্ড ইগলিবনক্ ইবঞ্জবনয়োব িং বিভোগ Dept. of Electrical and Electronic Engineering
ইবঞ্জবনয়োব িং অ্নুষদ Faculty of Engineering
গগোপোলগঞ্জ-৮১০০, িোিংলোগদশ Gopalganj-8100, Bangladesh
Page | 12
In this, the Pilot lamp will turn on whenever any one of the inputs becomes one which makes the contact
associated with that input as normally close. Otherwise, the contact remains normally open.
AND Gate:
The truth table for AND gate is:
A B Output
0 0 0
0 1 0
1 0 0
1 1 1
Relay logic realization of AND gate is given by –
The contacts are connected in series for AND gate. This means that the pilot lamp will turn ON if and only
if both the contacts are normally close i.e. when both the inputs are 1.
NOT Gate:
The truth table for NOT gate is:
A Output
0 1
1 0
The equivalent relay logic circuit for the given NOT gate truth table is as follows –
The pilot lamp lights up when the input is 0 so that the contact remains normally close. As the input changes
to 1, the contact changes to normally open and hence the pilot lamp doesn’t light up giving the output as 0.
NAND Gate: The NAND gate truth table is:
A B O/P
0 0 1
Dr. Md. Rabiul Islam, Associate Professor, EEE ∥ [email protected] ∥ Introduction to Automation
গগোপোলগঞ্জ বিজ্ঞোন ও প্রযুবি বিশ্ববিদ্যালয়
Gopalganj Science and Technology University
ইগলবিক্যোল অ্যোন্ড ইগলিবনক্ ইবঞ্জবনয়োব িং বিভোগ Dept. of Electrical and Electronic Engineering
ইবঞ্জবনয়োব িং অ্নুষদ Faculty of Engineering
গগোপোলগঞ্জ-৮১০০, িোিংলোগদশ Gopalganj-8100, Bangladesh
0 1 1
1 0 1
1 1 0
The relay logic circuit as realized for the given truth table is as – Page | 13
As two normally close contacts are connected in parallel, the pilot lamp lights up when one or both the
inputs are 0. However, if both the inputs become 1, both the contacts become Normally Open and hence
the output becomes 0 i.e. the pilot lamp doesn’t light up.
NOR Gate:
The truth table for the NOR gate is:
A B Output
0 0 1
0 1 0
1 0 0
1 1 0
The given truth table can be implemented using the relay logic as follows –
Here, two normally close contacts are connected in series which means the pilot lamp will light up only if
both the inputs are 0. If any one of the inputs becomes 1, that contact changes to normally open, and hence
the flow of current is interrupted, thereby causing the pilot lamp not to light up, indicating 0 output.
Q: Problems of RLC
In the “traditional” form of the RLC control system, wiring is made based on the rules governing the control
system. For a large control system, a huge amount of wiring is needed. When the rules used for the control
actions are changed, the wiring has to be removed and has to be made a new wiring.
For example, let’s draw the RLC ladder diagram for a motor that will start when both a presser switch and
a temperature switch are closed or when a push button is closed.
The RLC ladder diagram is shown below.
Dr. Md. Rabiul Islam, Associate Professor, EEE ∥ [email protected] ∥ Introduction to Automation
গগোপোলগঞ্জ বিজ্ঞোন ও প্রযুবি বিশ্ববিদ্যালয়
Gopalganj Science and Technology University
ইগলবিক্যোল অ্যোন্ড ইগলিবনক্ ইবঞ্জবনয়োব িং বিভোগ Dept. of Electrical and Electronic Engineering
ইবঞ্জবনয়োব িং অ্নুষদ Faculty of Engineering
গগোপোলগঞ্জ-৮১০০, িোিংলোগদশ Gopalganj-8100, Bangladesh
Page | 14
Figure 2: The modified RLC ladder diagram for the modified process.
So we have to remove the connection and need to make a new connection. This rewiring in RLC is
extremely difficult for a large control system.
Besides, if a fault occurs in wiring then it is extremely difficult to identify and repair.
(a) (b)
Fig. 4
Dr. Md. Rabiul Islam, Associate Professor, EEE ∥ [email protected] ∥ Introduction to Automation
গগোপোলগঞ্জ বিজ্ঞোন ও প্রযুবি বিশ্ববিদ্যালয়
Gopalganj Science and Technology University
ইগলবিক্যোল অ্যোন্ড ইগলিবনক্ ইবঞ্জবনয়োব িং বিভোগ Dept. of Electrical and Electronic Engineering
ইবঞ্জবনয়োব িং অ্নুষদ Faculty of Engineering
গগোপোলগঞ্জ-৮১০০, িোিংলোগদশ Gopalganj-8100, Bangladesh
Q: Generation 3
The fundamental component of the 3rd generation automation is the microprocessor. After the invention of
the microprocessor, a new era of control systems opened. We can connect the input and output devices to
the microprocessor. We just need to write a program to instruct the microprocessor how to react to each
input signal from, say, switches and give the required outputs to, say, motors and valves. Now we can make Page | 15
control in any control rules just changing the control program. For example,
A push button, a temperature sensor (switch), and a pressure sensor (switch) are connected to a
microprocessor as input devices. Besides, a motor is connected to the same microprocessor as the output
device.
Fig. 5(a)
Let’s we want to turn on the motor when both the presser switch and the temperature switch are closed
based on the condition satisfied or when a push button is closed. We have to write the control program with
the following logic and load to the microprocessor memory.
Fig. 5(b)
Now, the changes require that the manual pushbutton control should be permitted to operate at any pressure
but not unless the specified temperature setting has been reached.
Dr. Md. Rabiul Islam, Associate Professor, EEE ∥ [email protected] ∥ Introduction to Automation
গগোপোলগঞ্জ বিজ্ঞোন ও প্রযুবি বিশ্ববিদ্যালয়
Gopalganj Science and Technology University
ইগলবিক্যোল অ্যোন্ড ইগলিবনক্ ইবঞ্জবনয়োব িং বিভোগ Dept. of Electrical and Electronic Engineering
ইবঞ্জবনয়োব িং অ্নুষদ Faculty of Engineering
গগোপোলগঞ্জ-৮১০০, িোিংলোগদশ Gopalganj-8100, Bangladesh
In this case, we just need to rewrite the program in the following way and load it to the microprocessor
memory.
Page | 16
Fig. 5(c)
So, there is no need to change the hardwire connection. For any control rule, we just have to rewrite the
control program.
By changing the instructions in the program, we can use the same microprocessor system to control a wide
variety of situations.
A microprocessor by itself is not a computer. Additional components such as RAM, ROM, PROM, and
peripheral interfaces are required to make it operational. However, the microcontroller, which is a close
relative of the microprocessor, does contain all the computer functions on a single IC. Microcontrollers
have their compactness is ideal for many control applications. For examples
• Vending machines use a microprocessor system
• Modern domestic washing machines use a microprocessor system
In these machines, the required written program is loaded in the microprocessor memory, and the
microprocessor is installed inside the machine.
In the washing machine, inputs to it arise from the dials used to select the required wash cycle, a switch to
determine that the machine door is closed, a temperature sensor to determine the temperature of the water,
and a switch to detect the level of the water. On the basis of these inputs, the microprocessor is programmed
to give outputs that switch on the drum motor and control its speed, open or close cold and hot water valves,
switch on the drain pump, control the water heater, and control the door lock so that the machine cannot be
opened until the washing cycle is completed.
However, the limitations of a microprocessor-based control system are that it can handle only a limited
number of inputs and outputs and is not suitable for an industrial rush environment.
To overcome the limitations of the microcontroller-based automation systems, the programmable logic
controller (PLC) is designed. A programmable logic controller (PLC) is a special form of microprocessor-
based controller that uses programmable memory to store instructions and to implement functions such as
logic, sequencing, timing, counting, and arithmetic in order to control machines and processes.
Dr. Md. Rabiul Islam, Associate Professor, EEE ∥ [email protected] ∥ Introduction to Automation
গগোপোলগঞ্জ বিজ্ঞোন ও প্রযুবি বিশ্ববিদ্যালয়
Gopalganj Science and Technology University
ইগলবিক্যোল অ্যোন্ড ইগলিবনক্ ইবঞ্জবনয়োব িং বিভোগ Dept. of Electrical and Electronic Engineering
ইবঞ্জবনয়োব িং অ্নুষদ Faculty of Engineering
গগোপোলগঞ্জ-৮১০০, িোিংলোগদশ Gopalganj-8100, Bangladesh
Page | 17
Figure 1.7: A programmable logic controller.
PLCs are specially hardened industrial computers. The first PLC was designed in 1969.
Q: What is a PLC?
• PLC stands for Programmable Logic Controller.
• PLC is an industrial-grade digital computer designed for industrial process control.
• Programmable logic controllers, also called programmable controllers or PLCs, are solid-state
members of the computer family, using integrated circuits instead of electromechanical devices to
implement control functions.
• PLCs can be thought of in simple terms as industrial computers with specially designed architecture
in both their central units (the PLC itself) and their interfacing circuitry to field devices
(input/output connections to the real world).
• A PLC is a computer specially designed to operate reliably under harsh industrial environments –
such as extreme temperatures, wet, dry, and/or dusty conditions.
• PLC is an industrial-grade computer that is capable of being programmed to perform control
functions.
• PLCs are used to automate industrial processes such as a manufacturing plant’s assembly line, an
ore processing plant, or a wastewater treatment plant.
• Programmable logic controllers are now the most widely used industrial process control
technology.
Dr. Md. Rabiul Islam, Associate Professor, EEE ∥ [email protected] ∥ Introduction to Automation
গগোপোলগঞ্জ বিজ্ঞোন ও প্রযুবি বিশ্ববিদ্যালয়
Gopalganj Science and Technology University
ইগলবিক্যোল অ্যোন্ড ইগলিবনক্ ইবঞ্জবনয়োব িং বিভোগ Dept. of Electrical and Electronic Engineering
ইবঞ্জবনয়োব িং অ্নুষদ Faculty of Engineering
গগোপোলগঞ্জ-৮১০০, িোিংলোগদশ Gopalganj-8100, Bangladesh
Page | 18
(a)
(b) (c)
(d) (e)
Fig. 1
On the other hand, an RLC is shown in Fig. 2(a) which is implemented using two relays. We can
control the output device under different control rules. But for different control rules we have to
rewire the connection as shown in Fig. 2(b), Fig. 1(c), and Fig. 2(d).
Dr. Md. Rabiul Islam, Associate Professor, EEE ∥ [email protected] ∥ Introduction to Automation
গগোপোলগঞ্জ বিজ্ঞোন ও প্রযুবি বিশ্ববিদ্যালয়
Gopalganj Science and Technology University
ইগলবিক্যোল অ্যোন্ড ইগলিবনক্ ইবঞ্জবনয়োব িং বিভোগ Dept. of Electrical and Electronic Engineering
ইবঞ্জবনয়োব িং অ্নুষদ Faculty of Engineering
গগোপোলগঞ্জ-৮১০০, িোিংলোগদশ Gopalganj-8100, Bangladesh
Page | 19
(a)
(b) (c)
(d)
Fig. 2
Dr. Md. Rabiul Islam, Associate Professor, EEE ∥ [email protected] ∥ Introduction to Automation
গগোপোলগঞ্জ বিজ্ঞোন ও প্রযুবি বিশ্ববিদ্যালয়
Gopalganj Science and Technology University
ইগলবিক্যোল অ্যোন্ড ইগলিবনক্ ইবঞ্জবনয়োব িং বিভোগ Dept. of Electrical and Electronic Engineering
ইবঞ্জবনয়োব িং অ্নুষদ Faculty of Engineering
গগোপোলগঞ্জ-৮১০০, িোিংলোগদশ Gopalganj-8100, Bangladesh
This rewiring is very difficult for large control system.
PLCs have the great advantage that the same basic controller can be used with a wide range of control
systems. The input devices among themselves, the output devices among themselves, and input devices
with output devices are connected through softwire. So to modify a control system, all that is necessary is
for an operator to change the control program. There is no need to rewire. The result is a flexible, cost-
Page | 20
effective system that can be used with control systems, which vary quite widely in their nature and
complexity.
Q: Compare with an example the method by which the process control operation is changed in a
relay-based system to the method used for a PLC-based system.
In PLC:
Draw the PLC ladder diagram for the following condition: A motor will start when both a presser switch
and a temperature switch are closed or when a push button is closed.
Dr. Md. Rabiul Islam, Associate Professor, EEE ∥ [email protected] ∥ Introduction to Automation
গগোপোলগঞ্জ বিজ্ঞোন ও প্রযুবি বিশ্ববিদ্যালয়
Gopalganj Science and Technology University
ইগলবিক্যোল অ্যোন্ড ইগলিবনক্ ইবঞ্জবনয়োব িং বিভোগ Dept. of Electrical and Electronic Engineering
ইবঞ্জবনয়োব িং অ্নুষদ Faculty of Engineering
গগোপোলগঞ্জ-৮১০০, িোিংলোগদশ Gopalganj-8100, Bangladesh
Page | 22
Light Switch
This is where a programmable logic controller comes into the picture, which doesn’t require any additional
wiring and hardware to make sure of a change. Rather it requires a simple change in code, programming
the PLC to only turn on the light 30 seconds after the switch is turned ON. So, by using a PLC, it is easy to
incorporate multiple inputs and outputs.
Q: PLC Applications
PLCs have a variety of applications and uses, including:
1. Process Automation Plants (e.g. mining, oil &gas)
2. Glass Industry
3. Paper Industry
4. Cement Manufacturing
5. In boilers – Thermal Power Plants
Q: Advantages of using PLC over RLC (Hugh Jack 2.1 and Petruzella-2)
• Increased reliability
• More flexibility
• Lower cost
• Communications capability: A PLC can communicate with other controllers and computer
equipment.
• Faster response time
• Easier to troubleshoot
• There are no physical connections between the field input devices and output devices, as in
hardwired systems. The only connection is through the control program (softwiring), which can be
easily altered.
Types The relays are broadly The PLCs are also classified into two
classified into two types types namely compact PLC and
namely electromagnetic relays modular PLC.
and solid-state relays.
Construction An electromagnetic relay consists A typical PLC consists of an input Page | 23
of an electromagnet, an armature, module, a processing element, an
a set of input terminals, and a set application (PLC program), a power
of control terminals. supply, and an output module.
Operation In the case of the relay, when a When the input signal is received from
low power control signal is the input devices like sensors, the
provided at the input terminals, processing device makes a decision
the armature of the relay moves and releases an output signal through
under the influence of the the output module.
magnetic field of the
electromagnet to turn on and
off the circuit.
Name of control The control system designed by The control system in which PLC is
system using relays is known as relay used is known as programmable logic
logic control. It is also called a control.
hard-wire control system.
Programming Relays do not require PLCs are programmed to work. There
programming to work. are different programming languages
available for PLC programming.
Modification in Very difficult Very easy
circuit design
Memory Relay does not have memory. PLC has a memory module to store the
program.
Fault determination It is difficult to detect the fault It is very easy to determine the fault in
in a relay circuit. a PLC-based circuit by using software.
Flexibility Relay provides a less flexible The flexibility of a PLC base system is
control system. comparatively more.
Input-output A relay has relatively less I/O PLC has more I/O capability.
capability capability.
Advanced A relay performs only a fault PLC can also be programmed to
functionality detection function. And it does perform several advanced functions
not have any other advanced like timer, counter, etc.
functions.
Dr. Md. Rabiul Islam, Associate Professor, EEE ∥ [email protected] ∥ Introduction to Automation
গগোপোলগঞ্জ বিজ্ঞোন ও প্রযুবি বিশ্ববিদ্যালয়
Gopalganj Science and Technology University
ইগলবিক্যোল অ্যোন্ড ইগলিবনক্ ইবঞ্জবনয়োব িং বিভোগ Dept. of Electrical and Electronic Engineering
ইবঞ্জবনয়োব িং অ্নুষদ Faculty of Engineering
গগোপোলগঞ্জ-৮১০০, িোিংলোগদশ Gopalganj-8100, Bangladesh
Personal computers are more liable to crash than PLCs have greater reliability
PLCs
Personal computers are so good at long-term They are not as good at long-term data storage and
data storage and analysis analysis as personal computers.
Programming PCs need expertise. As a PLCs are easily programmed and have an easily
consequence, they are not user-friendly. understood programming language that is primarily
concerned with logic and switching operations. As a
consequence, they are more user-friendly.
PCs are not flexible to expand to tackle a larger PLCs in a rack format are easy to expand to tackle a
number of input/output devices. larger number of input/output devices.
Dr. Md. Rabiul Islam, Associate Professor, EEE ∥ [email protected] ∥ Introduction to Automation
গগোপোলগঞ্জ বিজ্ঞোন ও প্রযুবি বিশ্ববিদ্যালয়
Gopalganj Science and Technology University
ইগলবিক্যোল অ্যোন্ড ইগলিবনক্ ইবঞ্জবনয়োব িং বিভোগ Dept. of Electrical and Electronic Engineering
ইবঞ্জবনয়োব িং অ্নুষদ Faculty of Engineering
গগোপোলগঞ্জ-৮১০০, িোিংলোগদশ Gopalganj-8100, Bangladesh
The common input devices of PCs are The common input devices of a PLC are switches,
keyboards and mouse connected to the input and sensors connected to the respective input
ports. modules.
The common output devices of a PC are a The common output devices of a PLC are control
monitor, and printer connected to the output valves, VFD drives, and solenoid valves connected
Page | 25
ports. to the respective output modules.
PC requires clean space and sometimes air- Operates in an industrial environment. PLC is
conditioned room for its lifetime operation. The designed in such a way that it can withstand
common personal computer is not designed for industrial environments like different ambient
harsh environments. temperatures, humidity, and electrical noise.
PLCs are rugged and designed to withstand
vibrations, temperature, humidity, and noise.
Capable of executing several programs Most PLCs, on the other hand, execute a single
simultaneously, in any order. program in an orderly and sequential fashion from
the first to the last instruction
Have hard drive Have no hard drive
Similarity:
PLCs share many features of the personal computer you have at home.
• PLC and PC share the same architecture.
• They both have a power supply,
• They both have a CPU (Central Processing Unit),
• They both have inputs and outputs (I/O), memory,
They both have operating software (although PLC has a different operating software).
Dr. Md. Rabiul Islam, Associate Professor, EEE ∥ [email protected] ∥ Introduction to Automation
গগোপোলগঞ্জ বিজ্ঞোন ও প্রযুবি বিশ্ববিদ্যালয়
Gopalganj Science and Technology University
ইগলবিক্যোল অ্যোন্ড ইগলিবনক্ ইবঞ্জবনয়োব িং বিভোগ Dept. of Electrical and Electronic Engineering
ইবঞ্জবনয়োব িং অ্নুষদ Faculty of Engineering
গগোপোলগঞ্জ-৮১০০, িোিংলোগদশ Gopalganj-8100, Bangladesh
common personal computer is not designed for industrial environments like different ambient
harsh environments. temperatures, humidity, and electrical noise.
PLCs are rugged and designed to withstand
vibrations, temperature, humidity, and noise.
c.
Page | 26
PC PLC
Programming PCs need expertise. As a PLCs are easily programmed and have an easily
consequence, they are not user-friendly. understood programming language that is primarily
concerned with logic and switching operations. As a
consequence, they are more user-friendly.
d.
PC PLC
Capable of executing several programs Most PLCs, on the other hand, execute a single
simultaneously, in any order. program in an orderly and sequential fashion from
the first to the last instruction
Q: Generation 4 of Automaton
The key technology and fundamental component of fourth-generation automation is the Internet of Things
(IoT). It is not easy to separate IoT and automation because automation is a tremendous driver for the
development of IoT devices. Automation has given applicable purposes to many IoT technologies.
Internet of Things (IoT):
In traditional Internet using traditional computing devices (such as desktops, laptops, smartphones, and
tablets), one people exchange data with other peoples. So we can say that the traditional Internet is the
“Internet of Peoples”.
When one “Thing (Physical object)” can exchange data, at anytime and anywhere, with another “Thing
(Physical object)” then it is called the “Internet of Things (IoT).”
For IoT, three factors must be secured
• Things
• Connectivity
• Cloud
Things: An embedded (microprocessor) system with sensors and actuators.
Connectivity: Bluetooth, Wi-Fi, LTE, etc.
Cloud: Thinger.io
So the IoT extends Internet connectivity beyond typical computing devices (such as desktops, laptops,
smartphones, and tablets) to any range of non-Internet-enabled physical devices and everyday objects to
sense, communicate, and interact with each other. Embedded with the microprocessor, these devices can
communicate and interact over the internet, sharing their internal states or the external environment, and
can be remotely monitored and controlled. In general, Internet of Things (IoT) devices are nonstandard
computing hardware. Typically, non-IoT devices include PC, mobile phones, tablets, laptops, or landlines.
Why IoT:
Dr. Md. Rabiul Islam, Associate Professor, EEE ∥ [email protected] ∥ Introduction to Automation
গগোপোলগঞ্জ বিজ্ঞোন ও প্রযুবি বিশ্ববিদ্যালয়
Gopalganj Science and Technology University
ইগলবিক্যোল অ্যোন্ড ইগলিবনক্ ইবঞ্জবনয়োব িং বিভোগ Dept. of Electrical and Electronic Engineering
ইবঞ্জবনয়োব িং অ্নুষদ Faculty of Engineering
গগোপোলগঞ্জ-৮১০০, িোিংলোগদশ Gopalganj-8100, Bangladesh
In agriculture, one Thing-A will measure the humidity of the soil and send data to the cloud through
connectivity. Another Thing-B takes data from the cloud, analyzes it, and turns on the water pump if needed.
Another Thing-C collects the data about insect attack to the agriculture field and sends it to the cloud.
Another Thing-D collects data from the cloud and takes necessary actions based on the analyzed data. So
via cloud, Things are communicating and exchanging data with one another for better results.
Page | 27
In home, “Thing-A” collects the humidity data and sends it to the server. The “Thing-B” collects the
analyzed data from the cloud and activates the actuator to keep humidity within a comfortable range. Here,
two Things are communicating and exchanging data. Similarly, “Thing-C” collects the temperature data
and sends it to the server, where “Thing-D” collects the analyzed data from the cloud and activates the
actuator to keep the temperature within a comfortable range. Similarly, “Thing-E” collects the data about
the mode and sends it to the server, where “Thing-F” collects the analyzed data from the cloud and plays
music (actuator) matched to the mode. In this way, all Things communicate and exchange data to make life
comfortable in IoT.
In industry, Industrial devices like sensors, connectors, actuators, interfaces, motion controllers, lightbulbs,
locks, etc., each act as an IoT device. So they will have the capability to share information about their
condition and performance in the cloud.
Combined with cloud computing and advanced data analytics, automation IoT software can manage these
devices and learn to adapt accordingly to accommodate new ones as necessary. When data generated by
IIoT devices can be analyzed with appropriate techniques, we can leverage to improve efficiency,
productivity, visibility, and more. The Internet of Things (IoT) in industrial automation is also known as
the Industrial Internet of Things (IIoT). It refers to the use of Internet of Things technology (connected
machines, devices, and sensors) in industrial applications. IIoT networks typically support machine-to-
machine (M2M) communication and the regular transmission of data between the central system (cloud)
and all IIoT-integrated devices. It enables building self-managing production processes requiring cloud
computing and communications standards that allow sensors, controllers, people, machines, equipment,
logistics systems, and products to communicate and cooperate directly.
References
1. Frank D. Petruzella. “Programmable Logic Controllers,” McGraw-Hill Education, Fifth Edition,
2017.
2. L.A. Bryan, E.A. Bryan. “Programmable Controllers: Theory and Implementation,” An Industrial
Text Company Publication, Atlanta, Georgia, USA, Second Edition, 1997.
3. Hugh Jack. “Automating Manufacturing Systems with PLCs,” Version 5.1, March 21, 2008.
4. W. Bolton. “Programmable Logic Controllers,” Elsevier (Newnes), Sixth Edition, 2015.
Dr. Md. Rabiul Islam, Associate Professor, EEE ∥ [email protected] ∥ Introduction to Automation