SlideShare a Scribd company logo
UNIT 4
PROGRAMMABLE LOGIC CONTROLLER
UNIT IV PROGRAMMABLE LOGIC
CONTROLLER
• Introduction – Basic structure – Input and
output processing – Programming –
Mnemonics – Timers, counters and internal
relays – Data handling – Selection of PLC.
Content
• Introduction
• Basic structure
• Input and output processing
• Programming
• Mnemonics
• Timers, counters and internal relays
• Data handling
• Selection of PLC
PROGRAMMABLE LOGIC CONTROLLER
• A Programmable Logic Controller(PLC) is a
digital computer used for automation of
typically industrial electromechanical
processes, such as control of machinery on
factory assembly lines, amusement rides or
light fixtures.
Applications
• Automated manufacturing process equipment
and machinery
• Packaging and filling equipment
• Chemical mixing
• Conveyor systems and distillation etc.,
Features and specification
• They are rugged and designed to withstand
vibration, temperature, humidity and noise
• The interfacing for inputs and outputs is inside
the controller.
• They are easily programmed and have an
easily understood programming language.
• Programming is primarily concerned with logic
and switching operation.
Hardwired motor circuit
Hardwired motor circuit with PLC
Basic structure
• PLC is designed as a replacement for the
hardwired relay and timer logic, where PLC
provides ease and flexibility of control based
on programming and executive logical
instruction.
• The internal functions such as timers, counter
and shift registers making sophisticated
control possible using even the smallest PLC.
• PLC capable of performing function such as
– counting,
– logistics,
– numerical application,
– comparing and processing of signals.
• A PLC is divided in to 4 parts. They are
– Input/output module (I/O)
– Central processing Unit (CPU)
– Memory
– Programming unit
i) Input/output module (I/O)
• It is used to transfer the data between
external devices and CPU
• It is incorporated into PLC in two ways
I. Fixed I/O – it is a small unit that comes in one
piece with processor i.e., the I/O terminals
cannot be changed in fixed I/O
II. Modular I/O – it is packed together i.e., there are
several compartment of I/O module are plugged
together.
Central processing Unit (CPU)
• It is consisting of a microprocessor which
interrupts the input signal and carries out the
control actions according to the program stored in
the memory, communicating the decision as an
action signal to the output.
• It scan the total information package stored in the
memory and input and output devices
continuously.
• During the scan the CPU executes instruction
based on input data, sends appropriate output
responses to the output devices, updates data
acquisition systems and indicate condition
changes
• Scan time for larger unit depends on the size
of the memory and configuration of the
system
• Power supply unit is needed to convert the AC
voltage to the low DC voltage necessary for
the processor and to supply power to other
circuit in the input and output interface
module.
Memory Unit
• The memory in PLC stores the digital control
logic, the process program and the necessary
instruction to operate the system.
• The memory used in PLC are
• Non-volatile memory
• Volatile memory
• According to purpose of usage
• RAM –volatile memory
• ROM- permanent storage
Programming unit
• It is used to enter the required program into
the memory of the processor
• There are normally 3 approaches followed by
the program
– Use of hand held programmer
– Terminal with video display unit
– PC with appropriate software
Architecture
• Buses
– Data buses – it is used for communicating data
b/n elements
– Address buses-it is used to read the address of
locations for accessing stored data
– Control buses- it is used for internal control action
carried by the CPU
– System buses- it is used for communication b/n
Input/output ports and input/output units
• Memory
– RAM
– ROM
• PROM
• EPROM
• Electrically EPROM
Optoisolator
• Electrical connection from the external world
is usually by means of optoisolator
• When a digital pulses passes through the LED,
a pulse of Infrared radiation is produced.
• This pulses is detected by the phototransistor
and gives rise to a voltage in that circuit.
Optoisolator
Input channel with optoisolator
• Common input voltage is 5V and 24V
• Output voltage is 24V and 240V
• Output are often specified as being of
– Relay type
– Transistor type
– Triac type
Relay type of output
The relay type output is used for both ac and dc switching
Relay are slow to operate
Transistor type output
The transistor type output is used for dc switching
This give faster switching action
Triac type of output
The triac type output is used for switching AC voltages
Programming
• The programming of PLC is based on the
ladder diagram.
• Ladder diagram involve writing a program in a
similar maner to drawing a switching circuit.
Unit 4-PROGRAMMABLE LOGIC INTERFACE-ME6702– MECHATRONICS
Unit 4-PROGRAMMABLE LOGIC INTERFACE-ME6702– MECHATRONICS
Unit 4-PROGRAMMABLE LOGIC INTERFACE-ME6702– MECHATRONICS
Switch controlling Solenoid
e.g., solenoid valve
open to allow water
to enter a vessel
Ladder Diagram for
Switch Control
Temperature Control System
Logic functions
An AND System
An OR System
NOT System
NOR System
NAND System
XOR System
Cylinder Sequencing
A+, B+, A- and B-
List of Mnemonics used for the
Mitsubishi f Series PLC
Mnemonics for Logic system
Mnemonics for Logic system
Timer
Delay ON Timers:
• The term delay is used to indicate that this
timer burns on, after waiting for a fixed time
delay period.
• When there is an input, the timer is energized
and starts timing, after some pre-set value,
the timer contacts are closed to output.
• TON is used to denote ON-delay
Delay OFF Timers:
• OFF delay timers are maintained as ON for a
fixed time of delay period before turning off.
• TOF is used to denote OFF-delay.
Timer circuit programmed to cause an output to
go ON for 0.5s, then OFF for 0.5s, then OFF for
0.5s and so on
ON-OFF
cycle timer
Internal relay
COUNTERS
• Counters are used to count a specified
number of contact operatio
Types of Counters:
• Up Counters
• Down Counters ns
Up Counters
• Up counters count up from the zero to pre –
set value
• The events are added until the pre – set value
is reached
• When the counter reaches the set value, its
contacts change state
Down Counters
• Down counters count down from the pre – set
value to zero
• The events are subtracted until the pre – set
value is reached
• When the counter reaches the Zero value, its
contacts change state
Counter
Master control relay
JUMP Instruction
Data handling
• Data movement
• Data comparison
• Arithmetic operation
• Code conversion
Data Movement
 Moving data from one memory location to
another
Unit 4-PROGRAMMABLE LOGIC INTERFACE-ME6702– MECHATRONICS
Arithmetic operation
• AND
• OR
• NOT
• EX-OR
• NAND
Code Conversions
• All the internal operations in the CPU of a PLC
are carried out through binary numbers.
• Most PLCs provide BCD-to-binary and binary-
to-BCD conversion for use.
• When a decimal (input) signal is given, BCD
conversion is used.
• Similarly, when a decimal output is required,
Decimal conversion is used.
• The data at the source address is in BCD and
converted to binary and placed at the
destination address.
Controlling the speed of motor
Selection of PLC
• System definition
• Choosing the I/O hardware
• I/O timing consideration
• Analog I/O module –resolution, voltage level
• Conversion speed
• Analog closed control
• Communication
• Counter, encoders and positioning
• Selecting suppliers

More Related Content

PDF
ME8791-Mechatronics introduction,systems and emerging areas
PPT
Introduction to mechatronics
PPTX
PLC Architecture
PPTX
PICK AND PLACE ROBOTS IN MECHTRONICS BY ABS
PDF
introduction to mechatronics
PPTX
PDF
Introduction to automation - Module 01
PDF
Lec 8,9,10 (interfacing)
ME8791-Mechatronics introduction,systems and emerging areas
Introduction to mechatronics
PLC Architecture
PICK AND PLACE ROBOTS IN MECHTRONICS BY ABS
introduction to mechatronics
Introduction to automation - Module 01
Lec 8,9,10 (interfacing)

What's hot (20)

PPTX
Robot control
PPT
Unit 1(part-1)Introduction of mechatronics
PPTX
PLC LADDER DIAGRAM
PPTX
Chapter 8 - Robot Control System
PDF
PLC Ladder Programming [Mechatronics]
PPT
Robot kinematics
PPT
Electric Actuator
PPTX
Input - Output Devices for PLC
PPTX
Robotics ch 4 robot dynamics
PPTX
Classification of transducer
PDF
Plc ppt
PPTX
Actuators
PPTX
Module 5 hydraulics and pneumatics Actuation systems
PPTX
Permanent magnet brushless dc motors ppt
PPTX
TYPES OF SINGLE PHASE INDUCTION MOTOR
PPTX
Automation and robotics
PDF
Seven segment interfacing with 8051.pdf
PPTX
Unit III-- senors in robotics
PDF
PID controller in control systems
PPT
Hydraulic and Pneumatic Actuators
Robot control
Unit 1(part-1)Introduction of mechatronics
PLC LADDER DIAGRAM
Chapter 8 - Robot Control System
PLC Ladder Programming [Mechatronics]
Robot kinematics
Electric Actuator
Input - Output Devices for PLC
Robotics ch 4 robot dynamics
Classification of transducer
Plc ppt
Actuators
Module 5 hydraulics and pneumatics Actuation systems
Permanent magnet brushless dc motors ppt
TYPES OF SINGLE PHASE INDUCTION MOTOR
Automation and robotics
Seven segment interfacing with 8051.pdf
Unit III-- senors in robotics
PID controller in control systems
Hydraulic and Pneumatic Actuators
Ad

Similar to Unit 4-PROGRAMMABLE LOGIC INTERFACE-ME6702– MECHATRONICS (20)

PPT
UNIT IV PROGRAMMABLE LOGIC CONTROLLER
PPT
MECHATRONICS-UNIT 4-PROGRAMMABLE LOGIC CONTROLLER .ppt
PDF
UNIT 4-PROGRAMMABLE LOGIC CONTROLLER.pdf
PPTX
programmable logic controller functions of plc
PPT
Mechatronics-PLCs, PLC - programming.ppt
PPT
PLC basic concepts
PPT
plc documentation concerned with the operation
PDF
imp plc-presentation-140205031532-phpapp02
PPT
PLC Basic
PPTX
Microcontroller Basics with all the required parts included
PPTX
Programmable Logic Controllers (1).pptx
PDF
PLC Programming - Working, Specifications of PLC
PPT
Basics of Programmable Logic Controllers and Signals
PPTX
plc_scada.pptx
PPT
What Is a Programmable Logic Controller (PLC)
PDF
Automation.pdf
PPT
PPTX
automation slides,plc,scada,HMI
PPTX
Fundamentals of plc 1
PPTX
Programmable Logic Controller
UNIT IV PROGRAMMABLE LOGIC CONTROLLER
MECHATRONICS-UNIT 4-PROGRAMMABLE LOGIC CONTROLLER .ppt
UNIT 4-PROGRAMMABLE LOGIC CONTROLLER.pdf
programmable logic controller functions of plc
Mechatronics-PLCs, PLC - programming.ppt
PLC basic concepts
plc documentation concerned with the operation
imp plc-presentation-140205031532-phpapp02
PLC Basic
Microcontroller Basics with all the required parts included
Programmable Logic Controllers (1).pptx
PLC Programming - Working, Specifications of PLC
Basics of Programmable Logic Controllers and Signals
plc_scada.pptx
What Is a Programmable Logic Controller (PLC)
Automation.pdf
automation slides,plc,scada,HMI
Fundamentals of plc 1
Programmable Logic Controller
Ad

More from Mohanumar S (20)

PDF
20ME702-Mechatronics-UNIT-1,UNIT-2,UNIT-3,UNIT-4,UNIT-5, 2025-2026
PPT
20ME702-MECHATRONICS.ppt, ACADEMIC YEAR: 2024-25
PPT
20CE501PE – INDUSTRIAL WASTE MANAGEMENT.ppt
PPT
20ME702– MECHATRONICS -UNIT-4.ppt
PPT
20ME702– MECHATRONICS -UNIT-3.ppt
PPTX
20ME702– MECHATRONICS -UNIT-2.pptx
PPT
20ME702– MECHATRONICS -UNIT-5-Motor.ppt
PPT
20ME702– MECHATRONICS -UNIT-1-Sensor and transducers.ppt
PPT
M.P- II-UNIT II CENTRE LATHE AND SPECIAL PURPOSE LATHES..ppt
PPT
M.P- II-UNIT I -THEORY OF METAL CUTTING.ppt
PPT
M.P- II-UNIT III-SHAPER, MILLING AND BROACHING MACHINES.ppt
PPTX
M.P- II-UNIT IV - ABRASIVE PROCESSES AND GEAR CUTTING.pptx
PPT
M.P- II-UNIT V - CNC MACHINE TOOLS AND PART PROGRAMMING.ppt
PPTX
EM-Unit-V-Mechanical properties
PPTX
EM-UNIT-V-Testing utm-hardness-impact
PPTX
EM-Unit-IV- Vacuum plasma hardening
PPTX
EM-Unit-IV- Ttt diagram
PPTX
EM-Unit-IV- Cct diagram
PPTX
EM-Unit-IV- Case hardening
PPT
EM-Unit-IV- case hardening
20ME702-Mechatronics-UNIT-1,UNIT-2,UNIT-3,UNIT-4,UNIT-5, 2025-2026
20ME702-MECHATRONICS.ppt, ACADEMIC YEAR: 2024-25
20CE501PE – INDUSTRIAL WASTE MANAGEMENT.ppt
20ME702– MECHATRONICS -UNIT-4.ppt
20ME702– MECHATRONICS -UNIT-3.ppt
20ME702– MECHATRONICS -UNIT-2.pptx
20ME702– MECHATRONICS -UNIT-5-Motor.ppt
20ME702– MECHATRONICS -UNIT-1-Sensor and transducers.ppt
M.P- II-UNIT II CENTRE LATHE AND SPECIAL PURPOSE LATHES..ppt
M.P- II-UNIT I -THEORY OF METAL CUTTING.ppt
M.P- II-UNIT III-SHAPER, MILLING AND BROACHING MACHINES.ppt
M.P- II-UNIT IV - ABRASIVE PROCESSES AND GEAR CUTTING.pptx
M.P- II-UNIT V - CNC MACHINE TOOLS AND PART PROGRAMMING.ppt
EM-Unit-V-Mechanical properties
EM-UNIT-V-Testing utm-hardness-impact
EM-Unit-IV- Vacuum plasma hardening
EM-Unit-IV- Ttt diagram
EM-Unit-IV- Cct diagram
EM-Unit-IV- Case hardening
EM-Unit-IV- case hardening

Recently uploaded (20)

PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
web development for engineering and engineering
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPT
Project quality management in manufacturing
PDF
Digital Logic Computer Design lecture notes
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
Welding lecture in detail for understanding
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PDF
composite construction of structures.pdf
DOCX
573137875-Attendance-Management-System-original
PPTX
Construction Project Organization Group 2.pptx
Embodied AI: Ushering in the Next Era of Intelligent Systems
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
CH1 Production IntroductoryConcepts.pptx
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
web development for engineering and engineering
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Project quality management in manufacturing
Digital Logic Computer Design lecture notes
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Welding lecture in detail for understanding
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
OOP with Java - Java Introduction (Basics)
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Lesson 3_Tessellation.pptx finite Mathematics
composite construction of structures.pdf
573137875-Attendance-Management-System-original
Construction Project Organization Group 2.pptx

Unit 4-PROGRAMMABLE LOGIC INTERFACE-ME6702– MECHATRONICS

  • 2. UNIT IV PROGRAMMABLE LOGIC CONTROLLER • Introduction – Basic structure – Input and output processing – Programming – Mnemonics – Timers, counters and internal relays – Data handling – Selection of PLC.
  • 3. Content • Introduction • Basic structure • Input and output processing • Programming • Mnemonics • Timers, counters and internal relays • Data handling • Selection of PLC
  • 4. PROGRAMMABLE LOGIC CONTROLLER • A Programmable Logic Controller(PLC) is a digital computer used for automation of typically industrial electromechanical processes, such as control of machinery on factory assembly lines, amusement rides or light fixtures.
  • 5. Applications • Automated manufacturing process equipment and machinery • Packaging and filling equipment • Chemical mixing • Conveyor systems and distillation etc.,
  • 6. Features and specification • They are rugged and designed to withstand vibration, temperature, humidity and noise • The interfacing for inputs and outputs is inside the controller. • They are easily programmed and have an easily understood programming language. • Programming is primarily concerned with logic and switching operation.
  • 10. • PLC is designed as a replacement for the hardwired relay and timer logic, where PLC provides ease and flexibility of control based on programming and executive logical instruction. • The internal functions such as timers, counter and shift registers making sophisticated control possible using even the smallest PLC.
  • 11. • PLC capable of performing function such as – counting, – logistics, – numerical application, – comparing and processing of signals. • A PLC is divided in to 4 parts. They are – Input/output module (I/O) – Central processing Unit (CPU) – Memory – Programming unit
  • 12. i) Input/output module (I/O) • It is used to transfer the data between external devices and CPU • It is incorporated into PLC in two ways I. Fixed I/O – it is a small unit that comes in one piece with processor i.e., the I/O terminals cannot be changed in fixed I/O II. Modular I/O – it is packed together i.e., there are several compartment of I/O module are plugged together.
  • 13. Central processing Unit (CPU) • It is consisting of a microprocessor which interrupts the input signal and carries out the control actions according to the program stored in the memory, communicating the decision as an action signal to the output. • It scan the total information package stored in the memory and input and output devices continuously. • During the scan the CPU executes instruction based on input data, sends appropriate output responses to the output devices, updates data acquisition systems and indicate condition changes
  • 14. • Scan time for larger unit depends on the size of the memory and configuration of the system • Power supply unit is needed to convert the AC voltage to the low DC voltage necessary for the processor and to supply power to other circuit in the input and output interface module.
  • 15. Memory Unit • The memory in PLC stores the digital control logic, the process program and the necessary instruction to operate the system. • The memory used in PLC are • Non-volatile memory • Volatile memory • According to purpose of usage • RAM –volatile memory • ROM- permanent storage
  • 16. Programming unit • It is used to enter the required program into the memory of the processor • There are normally 3 approaches followed by the program – Use of hand held programmer – Terminal with video display unit – PC with appropriate software
  • 18. • Buses – Data buses – it is used for communicating data b/n elements – Address buses-it is used to read the address of locations for accessing stored data – Control buses- it is used for internal control action carried by the CPU – System buses- it is used for communication b/n Input/output ports and input/output units
  • 19. • Memory – RAM – ROM • PROM • EPROM • Electrically EPROM
  • 20. Optoisolator • Electrical connection from the external world is usually by means of optoisolator • When a digital pulses passes through the LED, a pulse of Infrared radiation is produced. • This pulses is detected by the phototransistor and gives rise to a voltage in that circuit.
  • 22. Input channel with optoisolator
  • 23. • Common input voltage is 5V and 24V • Output voltage is 24V and 240V • Output are often specified as being of – Relay type – Transistor type – Triac type
  • 24. Relay type of output The relay type output is used for both ac and dc switching Relay are slow to operate
  • 25. Transistor type output The transistor type output is used for dc switching This give faster switching action
  • 26. Triac type of output The triac type output is used for switching AC voltages
  • 27. Programming • The programming of PLC is based on the ladder diagram. • Ladder diagram involve writing a program in a similar maner to drawing a switching circuit.
  • 31. Switch controlling Solenoid e.g., solenoid valve open to allow water to enter a vessel Ladder Diagram for Switch Control
  • 33. Logic functions An AND System An OR System
  • 37. List of Mnemonics used for the Mitsubishi f Series PLC
  • 40. Timer
  • 41. Delay ON Timers: • The term delay is used to indicate that this timer burns on, after waiting for a fixed time delay period. • When there is an input, the timer is energized and starts timing, after some pre-set value, the timer contacts are closed to output. • TON is used to denote ON-delay
  • 42. Delay OFF Timers: • OFF delay timers are maintained as ON for a fixed time of delay period before turning off. • TOF is used to denote OFF-delay.
  • 43. Timer circuit programmed to cause an output to go ON for 0.5s, then OFF for 0.5s, then OFF for 0.5s and so on ON-OFF cycle timer
  • 45. COUNTERS • Counters are used to count a specified number of contact operatio Types of Counters: • Up Counters • Down Counters ns
  • 46. Up Counters • Up counters count up from the zero to pre – set value • The events are added until the pre – set value is reached • When the counter reaches the set value, its contacts change state
  • 47. Down Counters • Down counters count down from the pre – set value to zero • The events are subtracted until the pre – set value is reached • When the counter reaches the Zero value, its contacts change state
  • 51. Data handling • Data movement • Data comparison • Arithmetic operation • Code conversion
  • 52. Data Movement  Moving data from one memory location to another
  • 54. Arithmetic operation • AND • OR • NOT • EX-OR • NAND
  • 55. Code Conversions • All the internal operations in the CPU of a PLC are carried out through binary numbers. • Most PLCs provide BCD-to-binary and binary- to-BCD conversion for use. • When a decimal (input) signal is given, BCD conversion is used.
  • 56. • Similarly, when a decimal output is required, Decimal conversion is used. • The data at the source address is in BCD and converted to binary and placed at the destination address.
  • 58. Selection of PLC • System definition • Choosing the I/O hardware • I/O timing consideration • Analog I/O module –resolution, voltage level • Conversion speed • Analog closed control • Communication • Counter, encoders and positioning • Selecting suppliers