Industrial Automation (20MC44P)
Industrial Automation (20MC44P)
Industrial Automation (20MC44P)
Automation
20MC44P
N Akshaykumar
B.E. M.Tech.
INDUSTRIAL AUTOMATION
[20MC44P]
BY
N AKSHAYKUMAR
B.E. [Mechanical Engg.]
M.Tech. [Thermal Power Engg.]
INDUSTRIAL AUTOMATION
[20MC44P]
Course Overview
Program Mechatronics CIE Marks Time Week Marks
Course Code 20MC44P WT 1 30 80 5 Avg. 30
Course Name Industrial Automation WT 2 30 80 9
Scheme L:T:P::3:1:4 WT 3 30 80 13
CIE Marks 60 ST 1 100 180 6 Avg. 20
Semester 4 ST 2 100 180 12
Type of Course Core – Integrated Port Folio 10 1 – 13 10
Contact Hours 8 hrs/wk, 104 hrs/sem CIE 60
Credits 6 SEE 100 180 SEE 40
SEE Marks 40 Total Marks 100
Course Outcomes
Understand concept on Automation in material identification & Material handling
CO1
techniques
CO2 Perform specified control functions using a Programmable Logic Controller [PLC]
CO3 Explain the concepts of SCADA, HMI and DCS and list their various applications
CO4 List various applications of embedded systems
Course Rationale:
In present scenario, Manufacturing industries are moving towards complete automation. Small
and medium industries are in a phase of switching to PLC and SCADA technology for data acquisition
and control. Industrial automation systems are used to control and monitor a process, machine or device
in a computerized manner that usually fulfills repetitive functions or tasks. They are intended to operate
automatically in order to reduce and improve human work in the industry. Advantages of this technology
is commonly attributed to higher production rates and increased productivity, more efficient use of
materials, better product quality, improved safety, shorter worksheets for labor, and reduced factory lead
times.
The Automation Engineer will design, program, simulate and commission automated machines
and plant wide processes to perform many job functions. Depending on the size of the organization, the
engineer will perform some or all of these responsibilities. Therefore, it is necessary for diploma
engineers to have knowledge of both PLC and SCADA technology. This course attempts to provide basic
theoretical and practical aspects of automation technologies to develop operational competency. Hence
this course is the foundation for diploma engineers who want to further specialize in the field of industrial
automation.
Reference Books
1. Programmable Logic Controllers – W Bolton
2. Digital Fundamentals – Thomas L. Floyd
3. Automation, Production Systems, and Computer-Integrated Manufacturing – Mikell P.
Groover.
4. Electric Motors and Drives – Fundamentals, Types and Applications – Austin Hughes & Bill
Drury.
5. Programmable Logic Controllers – Frank Petruzella.
Week 1
Lecture 1
Introduction
Production Systems
A production system is a collection of people, equipment, and procedures organized to
perform the manufacturing operations of a company [organization, firm, factory, shop floor, etc.]
Production systems are classified as:
1. Facilities: Facilities consists of the factory, the equipment and
the organization of equipment.
2. Manufacturing support systems: This is the set of
procedures used by the company to manage production and to
solve technical and logistics problems encountered in ordering
materials, moving work through factory, and ensuring that
products meet quality standards. Product design and certain
business functions are included among manufacturing support
systems.
Automation
Automation can be defined as the technology by virtue of which all the processes of
manufacturing systems are performed by machines without the direct involvement of human
worker.
Automation Hierarchy
The concept of automated systems
can be applied to various levels of factory
operations. We can have five possible
levels of automation in a production plant.
1. Device Level: This is the lowest level.
It includes the actuators, sensors & other
hardware that comprise the machine level.
The devices are combined into the
individual control loops of machine. For
example, the feedback control loops for
one axis of CNC machine or a joint of a
robot.
2. Machine Level: Hardware at device
level is assembled into machines.
Functions at this level include performing
sequence of steps in a program in an
orderly and accurate manner. For example,
CNC machine tools, industrial robots,
powered conveyors & automated guided vehicles.
3. Cell or System Level: This level operates under the instructions from plant level. It is a group
of machines or workstations connected by a material handling system, computer & other
equipment. Production lines are included in this level. Functions include: part dispatching &
machine loading, coordination among machines & material handling system & collecting &
evaluating inspection data.
4. Plant Level: Plant or factory level receives instructions from the corporate information system
& implements them in production. Functions include: order processing, process planning,
inventory control, purchasing, material requirements planning, shop floor control & quality
control.
5. Enterprise Level: This is the highest level, consisting of corporate information system. It is
concerned with management of the company. Functions include: marketing & sales, accounting,
design, research, aggregate planning & master production scheduling.
Program of Instructions
The actions performed by automated process are defined by a program of instructions.
Part or product developed during the operation is completed during a work cycle in various steps.
The processing steps for work cycle are specified in a work cycle program. Work cycle programs
are also called numerical control [NC]. Common steps of program include: loading of part,
performing the operation & unloading the part.
Control System
The control element of the automated system executes the program of instructions to get
the desired product. The controls in an automated system can be either closed loop or open loop.
2. Order Scheduling
The order scheduling module prepares a dispatch list, which indicates which production
orders should be accomplished at the various work centers. It also provides information about
relative priorities of different jobs
The order scheduling module in shop floor control is intended to solve two problems in
production control:
1. Machine loading: Allocating orders to work centers is referred to as machine loading. The
term shop loading is also used, which refers to the loading of all machines in the plant.
2. Job sequencing: Job sequencing involves determining the sequence in which the jobs will be
processed through a given work center.
Some of the dispatching rules used to establish priorities for production orders are,
• First-come-first-serve. Jobs are processed in the order in which they arrive at the machine.
• Earliest due date. Orders with earlier due dates are given higher priorities.
• Shortest processing time. Orders with shorter processing times are given higher priorities.
• Least slack time. Slack lime is defined as the difference between the time remaining until due
date and the process time remaining. Orders with the least slack in their schedule are given
higher priorities.
• Critical ratio. The critical ratio is defined as the ratio of the time remaining until due date
divided by the process time remaining. Orders with the lowest critical ratio are given higher
priorities.
When an order is completed at one work center, it enters the queue at the next machine in
its process routing. The relative priorities of the different orders may change over time. Reasons
behind these changes include, demand for certain products, equipment breakdowns,
cancellation of an order by a customer, and defective raw materials.
3. Order Progress
The order progress module in shop floor control monitors the status of the various orders
in the plant, WIP, and other characteristics that indicate the progress and performance of
production. The information presented to production management is often summarized in the
form of reports, such as
• Work order status reports. These reports indicate the status of production orders, like the
current work center, processing hours remaining, whether the job is on-time or behind schedule,
and priority level.
• Progress reports. A progress report is used to report performance of the shop during a certain
time period (e.g., week or month in the master schedule). It provides information on how many
orders were completed, how many orders should have been completed and so on.
• Exception reports. An exception report indicates the deviations from the production schedule
(e.g. overdue jobs) and similar exception information.
Factory Data Collection System
The factory data collection system (FDC
system) consists of the various paper documents,
terminals, and automated devices located throughout
the plant for collecting data on shop floor operations.
The ultimate purpose of the factory data collection
system is 1. To supply status and performance data to
the shop floor control system and 2. To provide
current information to production foremen, plant
management and production control personnel.
To accomplish this purpose, the factory data
collection system must input data to the plant
computer system. In current CIM technology, this is
done using an on-line mode, in which the data are
entered directly into the plant computer system and
are immediately available to the order progress
module, the advantage of on-line data collection is
that the data file representing the status of the shop
can be kept current at all times. As changes in order
progress are reported, these changes are immediately
incorporated into the shop status file.
Week 1
Tutorial
Other common automation systems in everyday use are, automatic washing machine,
air conditioning system, refrigeration system, automatic coffee dispenser, etc. the modern-
day developments in Artificial Intelligence [AI] has paved way for automation of home,
industry, office/workplace, farming, smart city, etc. which use IoT [Internet of Things] to
achieve automation.
Alexa: Virtual Assistant
Home Automation
Week 2
Lecture 1
Data Input Techniques
Manua1 (Clerical) Data Input Techniques.
Manually oriented techniques of factory data collection are those in which the production
workers must read from and fill out paper forms indicating order progress data. The paper forms
include:
• Job traveler: This is a log sheet that travels with the shop packet through the factory. Workers
who spend time on the order are required to record their times on the log sheet along with other
data such as the date, piece counts, defects, and so on.
• Employee time sheets: In this method, a daily time sheet is prepared for each worker, and the
worker must fill out the form to indicate work that he/she accomplished during the day. Data
entered on the form include order number, operation number on the route sheet, number of
pieces completed during the day, and time spent.
• Operation tear strip: With this technique, the traveling documents include a set of preprinted
tear strips that can be easily separated from the shop packet. The preprinted data on each tear
strip includes order number and route sheet details. At the end of the shift, one of the tear strips
is torn off.
• Prepunched cards. This is essentially the same technique as the tear strips method, except that
prepunched computer cards are included with the shop packet instead of tear strips.
2. Moving beam scanners use a highly focused beam of light, actuated by a rotating
mirror to traverse an angular sweep in search of the bar code on the object. Lasers are often used
to achieve the highly focused beam of light.
1. Driver-less Trains
A driver-less train consists of a towing
vehicle [AGV] that pulls one or more trailers to form
a train. It was the first type of AGV System to be
introduced & is still widely used. A common
application is moving heavy payloads over large
distances in warehouses or factories. For trains
consisting of 5-10 trailers, this is an efficient
transport system.
2. Pallet Trucks
Automated guided pallet trucks are used to
move palletized loads along pre-determined routes. In
the typical application the vehicle is backed into the
loaded pallet by a human worker who steers the truck
& uses its forks to elevate the load slightly. Then the
worker drives the pallet truck to the guide path,
programs its destination & the vehicle proceeds
automatically to the destination for unloading. The
capacity of a pallet truck ranges up to several thousand
kilograms & some trucks are capable of handling two
pallets. A recent introduction in pallet trucks is the
Fork Lift AGV. This can reach greater heights to reach loads on racks & shelves.
3. Unit Load Carriers
AGV unit load carriers are used to move
unit loads from one station to another. They are
often equipped for automatic loading & unloading
of pallets by means of powered rollers, moving
belts, mechanized lift platforms. Unit load carriers
are of two types, light load AGVs & assembly line
AGVs. The light load AGV is a small vehicle with
a load capacity of 250 kg or less. They are
designed to move small loads like, single parts, small baskets or pans. Assembly line AGV is
used to carry partially completed subassembly through a sequence of assembly workstations to
finish the product.
Self-guided Vehicles
Self-guided vehicles
[SGVs] represent the latest
AGVs guidance technology.
SGVs operate without
continuously defined
pathways. They use a
combination of dead reckoning
& beacons located throughout
the plant, which can be
identified by on-board sensors.
Dead reckoning refers to the
capability of a vehicle to
follow a given route without a
defined pathway in the floor.
Movement is accomplished by computing the required number of wheel rotation in a sequence of
steering angles. These calculations are done by the vehicles on-board computer. Based on the
beacon positions in the plant, the on-board navigation computer uses triangulation to update
positions calculated by dead reckoning. Dead reckoning is used to move the vehicle between
beacons, & the actual locations of beacons provide data to update computer’s dead reckoning
map.
The advantage of SGV is its flexibility. The SGV pathways are defined in software. The
path can be changed by altering the data in navigation computer. The pathways can be expanded
by installing new beacons. All these changes can be made quickly & without much alteration to
plant facility.
Week 2
Tutorial
Multimedia / Industrial Visit to PLC Based Automated Machines
1. What is a PLC?
There are three main types of RFID systems: low frequency (LF), high frequency (HF)
and ultra-high frequency (UHF). Microwave RFID is also available. Frequencies vary greatly by
country and region.
• Low-frequency RFID systems: These range from 30 kHz to 500 kHz, though the typical
frequency is 125 kHz. LF RFID has short transmission ranges, generally anywhere from
a few inches to less than six feet.
• High-frequency RFID system: These ranges from 3 MHz to 30 MHz, with the typical
HF frequency being 13.56 MHz the standard range is anywhere from a few inches to
several feet.
• UHF RFID systems: These range from 300 MHz to 960 MHz, with the typical
frequency of 433 MHz and can generally be read from 25-plus feet away.
• Microwave RFID systems. These run at 2.45 GHz and can be read from 30-plus feet
away.
The frequency used will depend on the RFID application, with actual obtained distances
sometimes varying from what is expected.
Week 2
Practical
Exercise 2
%SULFAPENNICILLIN?@103020181222?&49512?
Week 3
Lecture 1
Traffic Control and Safety
Vehicle Management
For AGVs to operate efficiently the vehicle must be well managed. There are two aspects
of vehicle management, 1. Traffic Control & 2. Vehicle Safety.
1. Traffic Control
The purpose of traffic control in an AGVS is to minimize interference between vehicles
& to prevent collisions. Two methods of traffic control used in AGVS are, 1. On-board Vehicle
Sensing & 2. Zone Control. The two techniques are often used in combination.
Zone Blocking
In zone control,
AGVS layout is divided
into separate zones, &
the operating rule is
that no vehicle is
permitted to enter a
zone if that zone is already occupied by another vehicle. The length of the zone is at least
sufficient to hold one vehicle plus allowances for safety & other considerations.
2. Vehicle Safety
• An important safety feature
of an AGV is that its
travelling speed is slower
than the normal walking
pace of a human. This
reduces the danger of
overtaking a human walking
along the guide path in front
of the vehicle.
• In addition to this a safety
feature included in most
guided systems is automatic
stopping of the vehicle if it moves in wrong path away from the defined path by a short
distance of 50-150 mm.
• Another safety device is an obstacle sensor located on each vehicle. This is the same on-
board sensor used for traffic control. The sensor can detect obstacles along forward path,
including humans.
• A safety device included on all AGVs is an emergency bumper. The bumper surrounds the
front of the vehicle & protrudes ahead of it by 300 mm or more. When bumper contacts an
object, the vehicle is programmed to brake immediately.
• Other safety devices on a typical vehicle include warning lights [blinking or rotating
lights] & warning bells, which alert humans that the vehicle is present.
Week 3
Lecture 2
System Management of Automated Guided Vehicles
On-board Control Panel
Each guided vehicle is equipped with
some form of On-board control panel for the
purpose of manual vehicle control, vehicle
programming, and other functions. Most
commercial vehicles can be dispatched by means
of this control panel to a given station in the
AGVS layout. It provides the AGVS with
flexibility and timeliness in coping with changes
and variations in delivery requirements.
As shown in figure consider a house with staircase. Here we will set lighting system for
the users to switch ON/OFF the light whether they are on bottom of the stair or at top. We will
provide separate switch for each floor as shown in figure.
Working
• Add two NO contacts of SW 1 (X0) and SW 2 (X1) in series and NC contacts of SW1
(X0) and SW2 (X1) in series, in parallel to NO Contacts.
• If the status of the bottom switch (SW1) and status of the top switch (SW2) are same then
lamp will be ON.
• And if either status of the bottom or top switch is different from other then lamp (Y0)
will be OFF.
• When lamp (Y0) is OFF then user can ON the lamp by changing status of any switch.
02 X0 = 0 & X1 = 0 Y0 = 1 Lamp ON
Category Equipment
Industrial Trucks, Automated Guided Vehicles, Rail-Guided Vehicles,
Transport Equipment
Conveyors, Hoists & Cranes
Positioning Equipment Industrial Robots
Containers: Pallets, Tote Pans, Boxes, Baskets, Barrels, Drums,
Unit Load Formation
Cartons
Equipment
Unitizing Equipment: Palletizers, Depalletizers
Conventional: Bulk Storage, Racks, Shelving & Bins, Drawers
Storage Equipment
Automated: AS/RS
Identification and
Barcodes, RFID, Magnetic Stripe, OCR, Machine Vision
Control Equipment
Fixed I/O is typical of small PLCs that come in one package with no separate, removable
units. The processor and I/O are packaged together, and the I/O terminals will have a fixed
number of connections. The main advantage of this type of packaging is lower cost.
One disadvantage of fixed I/O is its lack of flexibility; you are limited in what you can
get in the quantities and types dictated by the packaging. For some models, if any part in the unit
fails, the whole unit has to be replaced.
Modular I/O is divided by compartments into which separate modules can be plugged.
This feature greatly increases your options and the unit’s flexibility. The basic modular controller
consists of a rack, power supply, processor module (CPU), input/output (I/O modules), and an
operator interface for programming and monitoring. The modules plug into a rack. When a
module is slid into the rack, it makes an electrical connection with a series of contacts called the
backplane, located at the rear of the rack. The PLC processor is also connected to the backplane
and can communicate with all the modules in the rack.
• The power supply supplies DC power to other modules that plug into the rack.
• The I/O system forms the interface to condition the various signals received from or sent
to external field devices. Input devices such as pushbuttons, limit switches, and sensors
are hardwired to the input terminals. Output devices such as small motors, motor starters,
solenoid valves, and indicator lights are hardwired to the output terminals. To electrically
isolate the internal components from the input and output terminals, PLCs commonly
employ an optical isolator, which uses light to couple the circuits together.
• A programming device is used to enter the desired program into the memory of the
processor. A personal computer (PC) is the most commonly used programming device.
Most brands of PLCs have software available so that a PC can be used as the
programming device.
The CPU controls and processes all the operations within the PLC. It is supplied with a
clock with a frequency, 1 – 8 MHz. This frequency determines the operating speed of the PLC
and provides the timing and synchronization for all elements in the system. A bus system carries
information and data to and from the CPU, memory and input/ output units. There are several
memory elements: a system ROM to give permanent storage for the operating system and fixed
data, RAM for the user’s program and temporary buffer stores for the input/output channels.
Week 4
Lecture 2
I/O Modules [Interfaces]
The Input/Output (I/O) section of a PLC is the section to which all field devices are
connected and provides the interface between them and the CPU.
Operation
• The input noise filter consisting of the capacitor and resistors R1 and R2 removes false
signals due to contact bounce or electrical interference.
• When the pushbutton is closed, 120 VACS is applied to the bridge rectifier input.
• This results in a low-level DC output voltage across the LED of the optical isolator. The
Zener diode (ZD) rating sets the minimum threshold voltage that can be detected.
• When light from the LED strikes the phototransistor, it conducts the status of the
pushbutton logic to the processor.
• The optical isolator separates the higher AC input voltage from the logic circuits and
prevents damage to the processor due to line voltage transients. This isolation also
reduces electrical noise.
• An AC/DC type of input module is used for both AC and DC inputs as the input polarity
does not matter.
Discrete Output Interface Module
Operation
• The digital
logic circuits
of the
processor set
the output
status
according to
the program.
• When the
processor
calls for an
output load to
be energized,
a voltage is
applied
across the LED of the opto-isolator.
• The LED then emits light, which switches the phototransistor into conduction which
triggers the triac AC semiconductor switch into conduction, allowing current to flow to
the output load.
• The triac conducts in either direction, the output to the load is alternating current.
• Fuses are normally required for the output module for each circuit to be protected
• The triac cannot be used to switch a DC load.
Logic Diagram:
Truth Table:
(7 ∙ 8) +
7 8 (7 ∙ 8) 17 18 (17 ∙ 18) Output
(17 ∙ 18)
1 1 1 1 1 1 1 7, 8, 17, 18 ON
1 1 1 1 0 0 1 7, 8 ON
1 1 1 0 1 0 1 7, 8 ON
1 1 1 0 0 0 1 7, 8 ON
1 0 0 1 1 1 1 17, 18 ON
1 0 0 1 0 0 0 OFF
1 0 0 0 1 0 0 OFF
1 0 0 0 0 0 0 OFF
0 1 0 1 1 1 1 17, 18 ON
0 1 0 1 0 0 0 OFF
0 1 0 0 1 0 0 OFF
0 1 0 0 0 0 0 OFF
0 0 0 1 1 1 1 17, 18 ON
0 0 0 1 0 0 0 OFF
0 0 0 0 1 0 0 OFF
0 0 0 0 0 0 0 OFF
Ladder Diagram:
Ladder Diagram:
Working:
Rung N0000 shows ladder diagram for bulb energized through series switches X0 & X1.
The bulb will be energized or ON only when both the switches are ON [Realization of AND
logic].
Rung N0001 shows ladder diagram for bulb energized through parallel switches X2 &
X3. The bulb will be energized or ON only when either of the two switches or both switches are
ON [Realization of OR logic].
02 X2 = 1, X3 = 0 Y0 = 1 Input X2 ON – Bulb ON
03 X2 = 0, X3 = 1 Y0 = 1 Input X3 ON – Bulb ON
Observations:
1. Series Switches act as AND logic.
2. Parallel Switches act as OR logic.
Week 5
Lecture 1
Ladder Diagram Symbols
PLC programming based on the use of
ladder diagrams involves writing a program in a
similar manner to drawing a switching circuit.
The ladder diagram consists of two vertical lines
representing the power rails. Circuits are
connected as horizontal lines, i.e. the rungs of the ladder, between these two verticals.
Output:
Programming Examples
1. Two limit switches connected in series and used to control a solenoid valve.
2. Two limit switches connected in parallel and used to control a solenoid valve.
3. Two limit switches connected in parallel with each other and in series with a
pressure switch.
4. Two limit switches connected in parallel with each other and in series with two sets
of flow switches (that are connected in parallel with each other), and used to control
a pilot light.
5. Two limit switches connected in series with each other and in parallel with a third
limit switch, and used to control a warning horn.
Week 5
Lecture 2
Relation of Digital Gate Logic to Contact/Coil Logic
AND Gate
An AND gate is a device with two or more
inputs and one output. The AND gate output is 1
only if all inputs are 1
OR Gate
An OR gate can have any number of
inputs but only one output. The OR gate output is
1 if one or more inputs are 1.
NOT Gate
Unlike the AND and OR functions, the
NOT function can have only one input. The NOT
output is 1 if the input is 0. The output is 0 if the
input is 1. The result of the NOT operation is
always the inverse of the input, and the NOT
function is, therefore, called an inverter.
NAND Gate: An AND gate with an inverted output is called a NAND gate.
NOR Gate: An OR gate with output an inverted output is called a NOR gate.
XOR Gate: An often-used combination of gates is the exclusive-OR (XOR) function. The
output of this circuit is HIGH only when one input or the other is HIGH, but not both. The
exclusive-OR gate is commonly used for the comparison of two binary numbers.
Week 5
Lecture 3
Conversion from word description to ladder diagram and vice-versa.
It is possible to prepare a ladder logic program directly from the narrative description of a
control process. Some of the steps in planning a program are as follows:
• Define the process to be controlled.
• Draw a sketch of the process, including all sensors and manual controls needed to carry
out the control sequence.
• List the sequence of operational steps in as much detail as possible.
• Write the ladder logic program to be used as a basis for the PLC program.
• Consider different scenarios where the process sequence may go astray and adjust as
needed.
• Consider the safety of operating personnel and adjust as needed.
Example:
Figure shows the sketch of a drilling process that
requires the drill press to turn on only if there is a part
present and the operator has one hand on each of the start
switches. This precaution will ensure that the operator’s
hands are not in the way of the drill.
The sequence of operation requires that switches 1
and 2 and the part sensor all be activated to make the drill
motor operate.
Week 5
Tutorial
The Process Fan is to run only when all of the following conditions are met,
a. Input 1 is OFF.
b. Input 2 is ON or Input 3 is ON, or both 2 and 3 are ON.
c. Inputs 5 and 6 are both ON.
d. One or more of the inputs 7, 8 or 9 is ON.
Develop the above conditions in the Boolean expression and write the
Logic diagram using gates and PLC Ladder diagram.
̅) ∙ (2 + 3) ∙ (5 ∙ 𝟔) ∙ (7 + 8 + 9) = F
Boolean Expression: (𝟏
Logic Diagram:
Ladder Diagram:
̅) ∙ (2 + 3) ∙ (5 ∙ 𝟔) ∙ (7 + 8 + 9) = F
Working of PLC Ladder Diagram for Boolean Logic: (𝟏
Week 5
Practical
Exercise 1
Ladder Diagram:
Truth Table:
Input Output
A B AND OR NOT [A] NAND NOR XOR
0 0 0 0 1 1 1 0
0 1 0 1 1 1 0 1
1 0 0 1 0 1 0 1
1 1 1 1 0 0 0 0
Working of PLC Ladder Diagram for AND
Logic: [Rung N0000]
02 X2 = 0, X3 = 1 Y1 = 1 Input X3 ON – Output ON
03 X2 = 1, X3 = 0 Y1 = 1 Input X2 ON – Output ON
02 X5 = 0, X6 = 1 Y3 = 1 Input X6 ON – Output ON
03 X5 = 1, X6 = 0 Y3 = 1 Input X5 ON – Output ON
On-delay timer circuit with normally open, timed closed (NOTC) & normally closed, timed
open (NCTO) contact
Off-delay timer circuit with normally open, timed open (NOTO) & normally closed, timed
closed (NCTC) contact
Timer Instructions
Instruction Function
TON [Timer On Delay] Counts time-based intervals when the instruction is true.
Counts time-based intervals when the instruction transitions
TOF [Timer Off Delay]
from a true to false condition.
Counts time-based intervals when the instruction is true and
RTO [Retentive Timer On] retains the accumulated value when the instruction goes false or
when power cycle occurs.
RES [Reset] Resets a retentive timer’s accumulated value to zero.
Coil & Block formatted Timer Instruction
Control Bits
The enable bit is true (has a status of 1) whenever the timer instruction
Enable Bit [EN] is true. When the timer instruction is false, the enable bit is false (has
a status of 0).
The timer-timing bit is true whenever the accumulated value of the
Timer-Timing Bit timer is changing, which means the timer is timing. When the timer is
[TT] not timing, the accumulated value is not changing, so the timer-timing
bit is false.
The done bit changes state whenever the accumulated value reaches
Done Bit [DN]
the preset value. Its state depends on the type of timer being used.
Instruction Information [T4:0]
This number must come from the timer file. In the example shown,
Timer Number the timer number is T4:0, which represents timer file 4, timer 0 in that
file.
The time base (which is always expressed in seconds) may be either
Time Base
1.0 or 0.01 s. In the example shown, the time base is 1.0 s.
In the example shown, the preset value is 15. The timer preset value
Preset Value
can range from 0 through 32,767.
In the example shown, the accumulated value is 0. The timer’s
accumulated value normally is entered as 0, although it is possible to
Accumulated Value
enter a value from 0 through 32,767. Regardless of the value that is
preloaded, the timer value will become 0 whenever the timer is reset.
Timers are often used as part of automatic sequential control systems. The operation of
the circuit can be summarized as follows:
• Lube-oil pump motor starter coil M1 is energized when the start pushbutton PB1 is
momentarily actuated.
• As a result, the lube-oil pump motor starts. When the lube-oil pump builds up sufficient oil
pressure, the lube-oil pressure switch closes.
• This in turn energizes TD to begin the time-delay period.
• After the preset time-delay period of 25, TD contact closes to energize coil M2 and start the
main feed motor.
Ladder Diagram:
Output:
Sl. No. Inputs Outputs Remark
01 Lube Oil ON Y0 = 1 Process Starts
̅ (BC) + D
2. O = 𝐀
3. ̅̅̅̅̅̅̅̅
𝐀+𝐁=𝐀 ̅. 𝐁
̅ [De-Morgan’s Theorem]
̅ C + D𝐄̅F
4. S = A + 𝐁
5. Z = A.B.C.D
Week 6
Practical
Exercise 2
Ladder Diagram:
Working:
[N0000] When the Master Switch X0 is ON the process starts which is indicated by the Status
indicator Y0. Soon after the process starts the timer switch T100 starts timing and after its preset
delay time of 7s, it actuates Mixer A [Y1].
[N0001] When the timer T100 is up the timer T101 starts timing and after its preset delay time of
3.6s, it actuates Mixer B [Y2].
[N0002] When the timer T101 is up the timer T102 starts timing and after its preset delay time of
5s, it actuates Mixer C [Y3].
[N0000] The process continues and all the mixers will be ON until the Master switch is turned
OFF.
Timing Diagram &Function:
Ladder Diagram:
Working:
[N0000] The X0 acts as sensor which conducts [ON] when the item is detected. The X0 sends
signal in pulses to the counter which counts each time until it reaches the Preset value. The Y0
indicates the status of completion of counting operation.
The switch X1 is the reset switch to reset the counter.
Output:
Control Bits
Count-Up Enable Bit The count-up enable bit is used with the count-up counter and is true
[CU] whenever the count-up counter instruction is true.
Count-Down Enable The count-down enable bit is used with the count-down counter and is
Bit [CD] true whenever the count-down counter instruction is true.
The done bit is true whenever the accumulated value is equal to or
Done Bit [DN] greater than the pre-set value of the counter, for either the count-up or
the count-down counter.
The overflow bit is true whenever the counter counts past its
Overflow Bit [OV] maximum value, which is 32,767. On the next count, the counter will
wrap around to –32,768 and will continue counting till 0
The underflow bit will go true when the counter counts below –
Underflow Bit [UN] 32,768. The counter will wrap around to +32,767 and continue
counting down toward 0
Update Accumulator The update accumulator bit is used only in conjunction with an
Bit [UA] external HSC (high-speed counter).
Instruction Information [C5:0]
This number must come from the counter file. In the example shown,
Counter Number the counter number is C5:0, which represents counter file 5, counter 0
in that file.
The preset value can range from – 32,768 to +32,767. In the example
Preset Value
shown, the preset value is 10.
The accumulated value can also range from –32,768 to +32,767.
Typically, as in this example, the value entered in the accumulated
Accumulated Value
word is 0. Regardless of what value is entered, the reset instruction
will reset the accumulated value to 0.
Counter Instructions
Instruction Function
Increments the accumulated value at each false-to-true transition
CTU [Count-Up] and retains the accumulated value when an off/on power cycle
occurs.
Decrements the accumulated value at each false-to-true
CTD [Count-Down] transition and retains the accumulated value when an on/off
power cycle occurs.
HSC [High-Speed Counter] Counts high-speed pulses from a high-speed input.
RES [Reset] Resets a counter’s accumulated value to zero.
Paint spray process control that requires both a timer and counter.
Working:
When X0 sends 5 signals, counter counts and after 5 counts which is its preset value it
energizes Y0 & Y1. Also, after 5 counts the Y0 starts timer with a preset value of 25 [2.5 s] after
which Y1 is turned OFF.
Working:
When X0 is ON it starts timer with a preset value of 30s. After 30s delay X0 energizes
Y0, when Y0 is ON we can start counting process by counting signals at X1. Y1 will be ON after
5 counts and X2 is reset button.
Working:
This program is designed to indicate how many parts pass a given process point per
minute. When the X0 is closed, both the timer and counter are enabled. The counter is pulsed for
each part that passes the parts sensor [X1]. The counting begins and the timer starts timing
through its 1-minute time interval. At the end of 1 minute, the timer done bit causes the counter
rung to go false. The number of parts for the past minute is represented by the accumulated value
of the counter. The sequence is reset by momentarily opening and closing
the X2 switch.
Week 7
Lecture 3
Simple Real Time Examples
2. Stacking Problem
Week 7
Tutorial
The production line may be powered off accidentally or turned off for noon
break. The program is to control the counter to retain the counted number
and resume counting after the power is turned ON again. When the daily
production reaches 500, the target completed indicator will be ON to remind
the operator for keeping a record. Press the Clear button to clear the history
records. The counter will start counting from 0 again. Write a PLC Ladder
Program to perform this operation.
Retentive Counters are often used for retaining the count even after the line is
accidentally turned OFF. The retentive counters are available from C0 to C199.
• Sensor X0 detects the product on production line and the Counter C0 counts it. [N0000]
• Once the counter preset valve or Production target for the day is reached, the target indicator
Y0 will be ON. [N0001]
• X1 is the reset switch which deletes the counter data and starts from 0 the next day.
Ladder Diagram:
Output:
Sl. No. Inputs Outputs Remark
01 Production Line OFF Y0 = 0 Process Starts
Develop Ladder Program for relay-based motor control automation such that
the motor reverses its direction when the limit switches are activated
Ladder Diagram:
Working:
[N0002] When the workpiece is near Limit switch 2, it will enable reverse motor, for latching
reverse Motor is connected in parallel with limit switch 2. Reverse Pushbutton (PB) is also
connected in parallel to manually operate Reverse motor.
Output:
Ladder Diagram:
Working:
02 X0 = 1, T50 = 1 Y1 = 1 YELLOW ON
03 X0 = 1, T51 = 1 Y2 = 1 GREEN ON
Week 7
Practical
Exercise 3
Build PLC ladder program for the real time application: Water level
controlling
Ladder Diagram:
Working:
03 X0 = 0, X1 = 1, M = 1 Y0 = 1 Low-Level Sensor ON
1. Develop automatic door system using optical sensor and linear actuator
Working:
When someone enters the optical sensor sensing field, opening motor starts working to
open the door automatically till the door touches the opening limit switch. If the door touches
the opening limit switch for 8 s and nobody enters the sensing field, the closing motor starts
working to close the door automatically till the closing limit switch touched together. Stop the
closing action immediately if someone enters the sensing field during the door closing process.
Below are the sensor and actuator used in this system:
Optical Sensor: An optical sensor can detect the presence of human and their movement
towards the door.
Servo Motor: Motor is a rotary actuator or linear actuator that is capable of carrying out precise
control of angular or linear position, velocity, and acceleration. It uses a suitable motor coupled
to a sensor for position feedback. The motor drives the door when the input is given.
Ladder Diagram:
Week 8
Lecture 2
Working:
The following ladder diagram explains the basic control for
upward and downward movement of lift either operated from inside
elevator or from outside elevator. Also, the door opening and closing
indication is available as and when they are opened and closed. The
limit switches status indicates whether the lift is making an upward or
downward movement henceforth. The ladder diagram consists four inputs for up and down
movement, two inputs for limit switch status and one for door status. Two outputs for the motor
direction.
Ladder Diagram:
Week 8
Lecture 3
3. Design ladder diagram for car parking. (Hint: car is to be detected and
enter the parking space to a particular location if space is available. If there is
no space, a lamp should indicate that parking is full)
Working:
The entry/exit
sensor [X0] senses the
car when it passes in
close proximity to
sensor. The exit sensor
[X1] senses the car
leaving the parking area.
The signal from exit
sensor is given to the
U/D input of Up-Down
Counter C0 there by
decreasing the count
whenever the car leaves the parking area. The Counter preset value is set as 10. When the
number of cars in the parking area is 10 the ‘Parking Full’ status indicator will be ON. It will go
OFF when one or more car leaves the parking area. The X3 switch acts as emergency reset
button for counter.
Ladder Diagram:
Output:
Week 8
Tutorial
Write a PLC Ladder Program such that Once the photoelectric sensor detects
10 products, the robotic arm will begin to pack up. When the action is
completed, the robotic arm and the counter will be reset.
Ladder Diagram:
Working:
[N0000]: Item sensor senses the products on the conveyor and counts them. When the count
reaches 10 [preset value] the robotic arm gets actuated [Y0].
[N0001]: Now the robotic arm carries out packing process, and the packed item is sensed by
another sensor [Y1]. When the count of packed product reaches 10 [preset value] the process is
completed the robotic arm and counter is reset.
Output:
Week 8
Practical
Exercise 1
Develop automatic door system using optical sensor and linear actuator
Working:
When someone enters the optical sensor sensing field, opening motor starts working to
open the door automatically till the door touches the opening limit switch. If the door touches
the opening limit switch for 8 s and nobody enters the sensing field, the closing motor starts
working to close the door automatically till the closing limit switch touched together. Stop the
closing action immediately if someone enters the sensing field during the door closing process.
Below are the sensor and actuator used in this system:
Optical Sensor: An optical sensor can detect the presence of human and their movement
towards the door.
Servo Motor: Motor is a rotary actuator or linear actuator that is capable of carrying out precise
control of angular or linear position, velocity, and acceleration. It uses a suitable motor coupled
to a sensor for position feedback. The motor drives the door when the input is given.
Ladder Diagram:
[N0000]: Optical sensor [X0] detects the human being and the door is opened through motor
[Y0].
[N0001]: When the opening door reaches extreme end it is indicated by open limit switch [X2].
It starts the customary 8 s delay using a timer [T200]
[N0002]: When the timer time is up it actuates the door close motor [Y1]
Output:
Ladder Diagram:
[N0000]: This rung shows if the elevator call is made from 1st floor or from inside elevator from
ground floor, the elevator moves up through motor Y0 until it reaches 1st floor and actuates up
limit switch X6
[N0002]: This rung shows if the elevator call is made from ground floor or from inside elevator
from 1st floor, the elevator moves down through motor Y1 until it reaches ground floor and
actuates down limit switch X5
[N0003, N0004, N0005]: Indicates the door status of the elevator.
Output:
02 X6 = 1, X3 = 1 Y1 = 1 Motor Down is ON
Week 8
Practical
Exercise 3
Design ladder diagram for car parking. (Hint: car is to be detected and enter
the parking space to a particular location if space is available. If there is no
space, a lamp should indicate that parking is full)
Working:
The entry/exit sensor [X0]
senses the car when it passes in close
proximity to sensor. The exit sensor
[X1] senses the car leaving the
parking area. The signal from exit
sensor is given to the U/D input of
Up-Down Counter C0 thereby
decreasing the count whenever the car
leaves the parking area. The Counter
preset value is set as 10. When the number of cars in the parking area is 10 the ‘Parking Full’
status indicator will be ON. It will go OFF when one or more car leaves the parking area. The X3
switch acts as emergency reset button for counter.
Ladder Diagram:
Output:
Week 9
Lecture 1
1. Write a PLC ladder diagram for detecting the standing bottles on the
conveyor and pushing falling bottles in tray.
Working:
When conveyor is running, all bottles transfer form one station to other station for next
process. There are two sensors used, for standing and fallen bottles detection, one pneumatic
cylinder for pushing the fallen bottle from the conveyor onto tray.
[N0000]: When the start push-button is actuated, process cycle starts and the conveyor starts
[N0001]: When Bottles are transferring on the conveyor, the sensors X2 and X3 sense the
orientation of the bottle. Sensor X2 sense down position of the bottle & Sensor X3 sense top
position of the bottle. If sensor X2 sense the bottle & sensor X3 does not sense the bottle then
the pneumatic actuator Y2 will come in action & it will reject the bottle from the conveyor. After
this, the perfect bottles will go in the soda filling station & whole cycle will be completed.
Ladder Diagram:
Output:
Week 9
Lecture 2
Working:
[N0000]: When switch is actuated the indicator will be ON.
[N0001]: When the switch is turned OFF it will turn on the timer T0 and after 5 s time delay the
indicator will turn OFF.
Ladder Diagram:
Output:
02 X0 = 0 Y0 = 0 After 5 s
Week 9
Lecture 3
Ladder Diagram:
Output:
Week 9
Tutorial
Ladder Diagram:
Working:
[N0000]: X0 is the main start button to turn on saw, fan and oil pump, Y0 is the start memory.
[N0001]: X1 is the stop button for sawing process.
[N0002]: X2 is the fan reset button, also the T0 switch gets actuated when saw is stopped within
20 s, T0 is actuated after 5 s when the saw is turned OFF within 20 s of its operation.
[N0003]: T2 has a preset value of 10 s. Oil pump will be off when saw is turned OFF within 20 s
of its operation. If the saw is turned OFF after 20 s of operation, oil pump remains ON for 10 s
after the saw is turned OFF.
[N0004]: This rung actuates the timer T0 when the saw is turned OFF within 20 s of its
operation.
[N0005]: This rung actuates the timer T1, which times the sawing operation.
[N0006]: This rung actuates the timer T2, when the saw is stopped after 20 s.
[N0007]: This rung generates the OFF signal for oil pump [Y4] when the saw is stopped before
operating for 20 s.
Output:
Ladder Diagram:
Working:
[N0000]: X0 is the Start/Reset button.
[N0001]: X1 is the Sensor 1 which senses Part C and the items are counted by counter C0.
[N0002]: X2 is the Sensor 2 which senses Part D and the items are counted by counter C1.
[N0003]: The indicator Y1 will be ON only when 6 of Part C & 8 of Part D are on conveyor.
The counters are reset when indicator is ON. And the counting begins again.
Output:
The Counter has to keep track of net number or parts on a conveyor. The
number of parts going on the conveyor is counted by one proximity device’s
count. The number leaving the conveyor is counted by a second proximity
devices count. Each Proximity device feeds information into its own counter
function. Construct a PLC diagram using Counters Used for a Net Count
Ladder Diagram:
Working:
[N0000]: Entry sensor X1 senses the object at entry and the counter C0 counts them.
[N0001]: Exit sensor X2 senses the object at exit and the counter C1 counts them.
[N0002]: The (-) function subtracts the value of C1 from C0 and displays at D0 [net count].
Output:
Week 10
Lecture 1
Program Control
Program control instructions are used to enable or disable a block of logic program or to
move execution of a program from one place to another place. The program control commands
can be summarized as follows:
Jump Instruction
The jump (JMP) instruction
is an output instruction used to jump
over certain program instructions
when certain conditions exist. When
the jump instruction is used, the PLC
will not execute the instructions of a
rung that is jumped. The jump
instruction is often used to jump
over instructions not pertinent to the
machine’s operation at that instant.
Some manufacturers provide
a Skip instruction, which is
essentially the same as the jump
instruction.
The Forward jump
function permits an input logic condition to skip over a block of PLC ladder logic. The Reverse
jump is also possible where the instruction travels backwards to a specific block.
Subroutine Function
In addition to the main ladder logic program, PLC programs may also contain additional
program files known as subroutines. A subroutine is a short program that is used by the main
program to perform a specific function. Large programs are often broken into subroutine
program files, which are called and executed from the main program.
The jump to subroutine (JSR), subroutine (SBR), and return (RET) instructions are used
to direct the controller to execute a subroutine file.
Week 10
Lecture 2
Data Manipulation
Data manipulation instructions allow numerical data stored in the controller’s memory to
be operated on within the control program. It includes operations involving moving or
transferring numeric information stored in one memory word location to another word in a
different location, and carrying out simple operations such as converting from one data format to
another. The commands can be summarized as follows:
FIFO Functions
The First In, First Out (FIFO)
instructions are word shift operations that are
similar to bit shift operations. Word shifting
provides a simpler method of loading and
unloading data into a file, usually called the
stack. This ensures that the oldest part in the
inventory is used first, as the first part entered is the first part removed. The opposite principle—
where the last data to be stored are the first to be retrieved—is known as LIFO (Last In, First
Out).
The FFL loads logic words into a user-created file called a FIFO stack. The FFU
instruction is used to unload the words from the FIFO stack.
The parameters that are required to be entered in the instruction block are summarized as
follows:
FFL & FFU Instruction Parameters
Source Word address from which the data are entered into the FIFO file
FIFO Address of the file in which the data are entered [starts with #]
Control The status bits, stack length, and position are stored here
Length File length in words
Position The next available location where instruction loads data to stack
Week 10
Tutorial
Develop and Simulate a PLC Ladder Diagram for Bottle Filling Plant
Working:
[N0000]: Master Start and Stop PB.
[N0001]: Conveyor is turned ON.
[N0002]: Sensor senses the bottle.
[N0003]: The bottle indicator turns conveyor OFF and turns the solenoid valve ON for filling
operation. Which is stopped after 10 s [T1 Preset]. The Conveyor starts again.
[N0004]: A counter to count daily target [500 Preset]
Ladder Diagram:
Output:
Working:
The figure shows the
arrangement of lights to give a
flashing, moving arrow pattern that
moves to right. Bit Shift Right
register moves the bit one at a time
to the right. The starting 7 1’s in the registers is progressively moved to right and then up to next
register. As the bits move the lights signal move progressively to consecutive lights.
Initial Condition:
Unused Bits
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0
Initial Load [1st Arrow]
Second Condition:
Unused Bits
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
0 0 0 0 0 0 0 1 1 1 1 1 1 1 0 0
2nd Arrow
Third Condition:
3rd Arrow Unused Bits
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1
3rd Arrow
Fourth Condition:
4th Arrow Unused Bits
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
0 0 0 0 0 1 1 1 1 1 1 1 0 0 0 0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Week 10
Practical
Exercise 2
Applying the Concept of Shift Registers, Explain Morse code SR Patterns.
The PID controller is the most widely used type of process controller. When combined
into a single control loop the proportional, integral, and derivative modes complement each other
to reduce the system error to zero faster than any other controller.
Either programmable controllers can be fitted with Input/Output modules that produce
PID control, or they will already have sufficient mathematical functions to allow PID control to
be carried out.
The operation of the
PID loop can be summarized as
follows:
• The process variable
(pressure) is measured and
feedback is generated.
• The PLC program compares
the feedback to the setpoint and
generates an error signal.
• The error is examined by the
PID loop calculation in three ways: with proportional, integral, and derivative methodology.
• The controller then issues an output to correct for any measured error by adjustment of the
position of the variable flow outlet valve.
Basically, PID controller tuning consists of determining the appropriate values for the
gain (proportional band), rate (derivative), and reset time (integral) tuning parameters (control
constants) that will give the control required.
Week 11
Lecture 2
Concept Of HMI [Human Machine Interface]
Human machine interfaces give the ability to the operator and to management to view the
operation in real time. Through personal computer–based setup software, you can configure
display screens to:
• Replace hardwired pushbuttons and pilot lights with realistic-looking icons. The machine
operator need only touch the display panel to activate the pushbuttons.
• Show operations in graphic format for easier viewing.
• Allow the operator to change timer and counter presets by touching the numeric keypad graphic
on the touch screen.
• Show alarms, complete with time of occurrence and location.
• Display variables as they change over time.
Human Machine Interfaces (HMIs), are also referred to as User Interface, Operator Panel,
or Terminal and provide a means of controlling, monitoring, managing, and/or visualizing
device processes. They can be located on the machine or in centralized control rooms.
Week 11
Lecture 3
Introduction to DCS [Distributive Control System]
A distributive control system (DCS) is a network-based system. Distributive control
involves two or more PLCs communicating with each other to accomplish the complete control
task. Each PLC controls different processes locally and the PLCs are constantly exchanging
information through the communications link and reporting on the status of the process.
We are banding dowels into bundles of 40. Counter function keeps track of
the count of number of dowels in the bundle as they are added. The dowel
counter’s count number is kept in register. Running Count is compared to 40.
When the counter reaches 40, the output goes ON. The same output is
connected to a bander that operates when 40 is reached. Construct a ladder
diagram using Equal - to Compare Function.
Ladder Diagram:
Working:
[N0000]: X0 is the start button which starts the process and the counter C0 with a preset value of
40 which is kept in a register R5. Y0 also resets counter. Y0 is actuated when counter/register
accumulated value equals 40.
[N0001]: When the counter reaches 40 it is then compared to 40 in an EQUAL TO comparator
function, when it is true it actuates the bander machine which bands and packs 40 dowels
together [Y1].
Output:
Week 11
Practical
Exercise 1
Simulate / Interface Electro-Pneumatic Kit to control SAC [Single-Acting
Cylinder].
Working:
The input module consists of a push button switch. The output module has a 3/2 Solenoid
DCV which, when actuated, allows fluid to piston side of Spring-returned, single-acting
cylinder. When the pushbuttin is released the piston in the cylinder returns to its original position
by the action of spring.
Output:
Retracted Position:
Extended Position:
Week 11
Practical
Exercise 2
Simulate / Interface Electro-Pneumatic Kit to control DAC [Double-Acting
Cylinder].
Working:
The input module consists of two solenoid push button switches X1 & X2 which
actuates the solenoid Directional Control Valve. The output module is a 5/2 Solenoid DCV
which, when actuated, allows fluid to double-acting cylinder. X3 is the solenoid which when
actuated extends the cylinder, and the X4 solenoid retracts the cylinder back.
Output:
Extended Position:
Retracted Position:
Week 12
Lecture 1
SCADA [Supervisory Control And Data Acquisition]
Data collection is simplified by using a SCADA (supervisory control and data
acquisition) system. Exchanging data from the plant floor to a supervisory computer allows data
logging, data display, trending, downloading of recipes, setting of selected parameters, and
availability of general production data.
In general, a SCADA system usually refers to a system that coordinates but does not
control processes in real time. In a typical SCADA system, independent PLCs perform I/O
control functions on field devices while being supervised by a SCADA/HMI software package
running on a host computer. An important part of most SCADA implementations is alarm
handling. The announcement includes audible sounds, visual indications, and messages.
3. Utilities
a. Electrical power distribution from gas-fired, coal, nuclear
b. Electrical power transmission and distribution
4. Agriculture / Irrigation
5. Manufacturing
7. Pharmaceutical
8. Telecommunications
9. Transportation
Week 12
Tutorial
Ladder Diagram:
Working:
[N0000]: The pulse input is sent to incrementor which increments the value stored in register
R62.
[N0001 & N0002]: These rung compares the value of register R62 with 87, Y0 & Y1 will be ON
except when R62 is 87. [N0001 is NOT EQUAL TO comparator and N0002 has EQUAL TO
comparator.
Output:
Working:
The gripper rotary motion can be controlled by the two different circuits and switches
which when operated exclusively makes the gripper motor to rotate clockwise or anti-clockwise.
The gripper can be controlled through a ladder diagram with two input switches and two outputs
for clockwise and anti-clockwise motion. The ladder diagram also counts the number of motion
or switching ON off switches X1 and X2 through a count up counter.
Output:
Week 13
Lecture 1
Embedded System
The term embedded system is used for a microprocessor-
based system that is designed to control a function or range of
functions and is not designed to be programmed by the system user.
The programming has been done by the manufacturer and has been
‘burnt’ into the memory system and cannot be changed by the system
user.
An embedded system is nearly any computing system other
than a desktop computer. An embedded system is a dedicated system which performs the desired
function upon power up, repeatedly.
Embedded systems are found in a variety of common electronic devices, such as:
(a) Consumer electronics: cell phones, pagers, digital cameras, camcorders, videocassette
recorders, portable video games, calculators, and personal digital assistants;
(b) Home appliances: microwave ovens, air conditioning, refrigeration system, answering
machines, thermostat, home security, washing machines, and lighting systems;
(c) Office automation: fax machines, copiers, printers, and scanners;
(d) Business equipment: cash registers, curbside check-in, alarm systems, card readers, product
scanners, and automated teller machines;
(e) Automobiles: transmission control, cruise control, fuel injection, anti-lock brakes, and active
suspension, engine control system, keyless entry in automobiles
(f) Manufacturing: industrial robots, robotic arms, automation jigs and fixtures, machine tools
(g) Defense: drones, surveillance equipment, satellites, missiles.
Week 13
Lecture 3
Robotic Drones
An unmanned aerial
vehicle (UAV), or a drone, is
an aircraft without any human pilot,
crew, or passengers on board. UAVs are
a component of an unmanned aircraft
system (UAS), which includes adding a
ground-based controller and a system of
communications with the UAV. The
flight of UAVs may operate under remote
control by a human operator, as remotely-
piloted aircraft (RPA), or with various
degrees of autonomy, such
as autopilot assistance, up to fully
autonomous aircraft.
Braking System
Anti-lock brake system is used in
automobiles to avoid skidding especially in
a slippery road. This system allows the
wheels to have better contact with the road.
This system consists of sensors to track the
speed, valves, pump and a controller. There
is an electronic control unit in the system
which monitors the movement of the wheel.
If a wheel in the automobiles goes slow, the
speed sensors will tell the valves to reduce
pressure to the brake and thereby the wheel
turns faster. On the other hand, if the wheel
goes faster, the pressure to the wheel is
increased thereby slowing down the wheel.
Air-conditioning
The main job of an air conditioner is to cool the indoor air. Air conditioners monitor and
regulate the air temperature via a thermostat. Air conditioners function also acts as
dehumidifiers. On-chip analog to digital converters (ADCs) will keep on monitoring the
temperature via various temperature sensors. If at all the room temperature changes due to
variation in external temperature, controller will take a counter acting signal to the compressor
and temperature will be brought to required range. PWM could be used to control the compressor
motor frequency and fan speed. ADCs could monitor the varying compressor motor frequency
and signal the on-chip multi-channel Timers (via CPU) to create most efficient PWM waveforms
for the motor speed, resulting in better efficiency and low power consumption.
Refrigerator
The temperature measurement requires one or more sensors, and then whatever signal
conditioning and data acquisition circuitry that is needed. Some sort of data processing is
required to compare the signal representing the measured temperature to that representing the
required temperature and deduce an output. Controlling the compressor requires some form
of electronic interface, which accepts a low-level input control signal and then converts this to
the electrical drive necessary to switch the compressor power. This process of control can be
done by a conventional electronic circuit or it can be done by a small embedded computer.
Engine Control System
This new ECU, or ECM (engine control module), shares the information from all of the sensors
fitted to the engine to provide very precise control of the fuel and ignition systems. This integration also
allows both systems to work together in providing improved fuel economy, performance, emissions and
reliability.
Embedded Systems
Drone
Week 13
Practical
Exercise 2
Components:
1. Quadcopter Frame
2. Brushless Motor,
A2212 1000KV
Propeller Brushless
ESC, 30A
3. Lipo battery, 3S /
11,1V / 2200mAh /
30C
4. 3S lipo battery
charger, AC
100~240v
5. Funduino UNO R3
ATMEGA328
Development Board
6. GY-521 MPU6050
3-Axis Acceleration Gyroscope 6DOF Module
7. Transmitter, 2.4GHz 6-CH TX Receiver, RX
Wiring:
Code: http://www.brokking.net/ymfc-al_downloads.html