Lecture 01 - Introduction To PLC 2022 Nov
Lecture 01 - Introduction To PLC 2022 Nov
Digital Electronics
Introduction to Programmable 4
5 6
▪ Ladder Programming
▪ Examples
Why PLC?
➢ Discrete
➢ Continuous
Combinational Logic
Sequential Logic
➢ Deals with
Stability
Accuracy
Speed of response
Source : https://www.electronics-tutorials.ws/wp-content/uploads/2013/08/seq4.gif?fit=379%2C179
• Switches
• Push buttons
• Proximity detectors
• Limit switches
• Relays, Contactors
• Motor starter
• Solenoids
Source : https://c8.alamy.com/comp/RP3CB9/electric-service-panel-with-many-3-phase-contactors-and-relays-RP3CB9.jpg
https://previews.123rf.com/images/phadventure/phadventure1512/phadventure151200072/50159684-electrical-control-panel-with-relays-and-wires-closeup.jpg
▪ Difficult to modify
▪ Difficult to maintain
▪ The early PLCs were used along with other new automation techniques
to shorten the changeover time.
▪ The new PLCs helped reduce change over time to a matter of a few
days.
ME 4210 – Analog and Digital Electronics 20
Functions of a PLC
Source : https://sc02.alicdn.com/kf/Hdfc7220b2884425c86884ce5f0c045a9L.jpg_350x350.jpg
https://www.tk-siemens.com/Upload/Articles/2019/29/siemens-s7-300-plc.jpg
https://miro.medium.com/max/2552/1*UyVjYzAXlmoTyBeStwUbzg.jpeg
ME 4210 – Analog and Digital Electronics 24
CPU
▪ Brain
Fixed I/O
▪ In Small PLCs
▪ Expansion modules,
• Digital Input Modules
• Digital Output Modules
• Analog Input Modules
• Analog Output Modules
• Communication Modules
• Special Purpose Modules
• High speed counting
• High accuracy positioning
• On-line self optimizing control
• Multi axis synchronization, interpolation.
(This module may contain additional processors)
Indicators
• Power
• RUN
Ethernet • Communication
Port • Error
Port for
RS232
Expansion
Interface
Modules
Output
Terminals
ME 4210 – Analog and Digital Electronics 32
Sinking & Sourcing
▪ Sinking and Sourcing are terms used to define the control of direct
current flow in a load.
▪ Digits: 0,1,2,3,4,5,6,7,8,9
▪ Base: 10
▪ Weights: 1,10,100,1000, ……
▪ Digits: 0,1
▪ Base: 2
▪ Weights: 1,2,4,8,16, ……
0,1,2,3,4,5,6,7,8,9,A,B,
C,D,E,F
▪ The main difference between a signed and an unsigned number is, well,
the ability to use negative numbers.
▪ Unsigned numbers can only have values of zero or greater.
▪ In contrast, signed numbers are more natural with a range that includes
negative to positive numbers.
▪ RAM is volatile, meaning that the data stored in RAM will be lost if
power is lost.
▪ ROM memory is non-volatile. This means a user program will not lose
data during a loss of electrical power.
▪ ROM is normally used to store the programs that define the capabilities
of the PLC.
▪ EPROMs are designed so that data stored in them can be read, but not
easily altered.
A super capacitor, so named because of its ability to maintain a charge for a long
period of time, protects data stored in RAM in the event of a power loss. The RAM
memory is typically backed up on the S7-221 and 222 for 50 hours, and on the S7-
224 and 226 for 190 hours.
• stores the ladder logic (LAD) or statement list (STL) program instructions.
This area of memory controls the way data space and I/O points are used. LAD or
STL instructions are written using a programming device such as a PC, then
loaded into program memory of the PLC.
Data Space
Configurable Space
▪ Write the states of the output devices to output RAM area and then copy
to output module at the end of execution cycle
▪ Interlocking
▪ Examples
Data Types:
• Bit data
• Byte data = 8-bit
• Word data = 16-bit
• Double Word data = 32-bit
Byte Address
X0 Y0
Laptop)
▪ Logic continuity exists when power flows through the rung from left
to right
X0 X1 Y0
X2
Y0
X0
Y1
X1
X2 Y0
Rising edge
Rising edge gives single pulse at the time of going ON condition. Storage bit stores the status of
input
Falling edge
Falling edge gives single pulse at the time of going input’s OFF condition which is connected to
it. Storage bit stores the status of input. Output bit stores the status of function performed by the
block.
5 6
Stir Motor Y0
1.2) A lamp should get switched on when Push button 1 & Push button 2 switch buttons
push together
1.3) Modify the above program to switch on the lamp by pressing any of the detent push
buttons
2.2
2.4
• If paint level gets lower than a pre-set value conveyer needs to be stopped.
• If paint level gets lower than a pre-set value or the conveyor is stopped for any
reason, a siren will get activated as an alert to the operator and the conveyor will get
turned off.
• A liquid level sensor is used to sense the paint level & a zero speed sensor(ZSS) is used
to detect the status of the conveyor.
Conveyer Motor Y0
Alarm Y1
• After switching off the main motor it takes about 30 seconds to it to slow down.
• Hence Lubrication for main motor bearings is required for 30 s after the supply of the
motor is switched off.
• After 30 s, lubrication pump and green indicator bulb will get turned off.
• You need to add an Emergency Switch to turn off the system in any case during the
operation.
• When the emergency switch is pressed, system cannot be started without releasing it.
ME 4210 – Analog and Digital Electronics 95
Solution
Spindle Motor Y0
Lubrication Pump Y1
Green Indicator Lamp Y2
Alarm Y3
Timer T0