Académique Documents
Professionnel Documents
Culture Documents
TRAINING
ON
N BASIC
PROGRAMMABLE
LOGIC CONTROLLER
T
(PLC)
SIEMENS S7
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
OBJECTIVES
At the end of this course, participants will be able to:
1. Identify and explain the advantages of a
programmable logic control compared to
conventional controls;
2. Install and Operate
p programmable
p g logic
g
controller;
3. Identify and describe the functions of the
system components of a programmable logic
control;
4. Make a program in ladder diagram and
statement list programming;
1
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
OBJECTIVES Cont…
Cont
55. Translate a ladder diagram
g p
program
g into
statement list program;
6. Translate a ladder diagram program into
electrical and logic circuits equivalent;
7
7. Connect/Wire discrete input and output
PLC control systems;
8
8. C
Carry outt basic
b i Maintenance
M i t &
Troubleshooting of a PLC system
9. Observe safe practices in dealing with PLC
controls systems.
CONTENT
y Introduction to PLC and IEC 61131 Standard
y Introduction to Siemens PLC Hardware
y Types of PLCs – Micro and Modular PLCs
y Parts of a PLC
y The Power Supply Unit
y The PLC Central Processing Unit
y The PLC Memory
y types
yp
y Input and Output Modules
y Special Modules and Peripheral devices
y PLC System Components, Installation, and Field
device Connections
y Introduction
I d i to Si
Siemens S7
S Software
S f
y S7 Simatic Manager and MicroWin
y Creating a project and Software/Hardware configurations
y PLC Number Systems and I/O Addressing
2
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
CONTENT cont…
y Introduction to Siemens PLC programming
languages:
y LAD,
LAD STL
STL, and FBD
FBD.
y Uploading,
Uploading Downloading and Running a Program
y Hands‐on
d practicall exercises & simulations
l
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
WHAT IS PLC?
A Programmable Logic Controller (PLC) or
programmable controller is a digital (programmable
electronic device) computer used for automation of
electromechanical p processes,, such as control of
machinery on factory assembly lines, amusement rides,
or lighting fixtures. PLCs are used in many industries
and machines. Unlike general‐purpose computers, the
PLC is designed for multiple inputs and output
arrangements, extendedd d temperature ranges, immunity
to electrical noise, and resistance to vibration and
i
impact.
t All PLCs
PLC monitorit inputs
i t andd other
th variable
i bl
values, make decisions based on a stored program in its
memory and control outputs to automate a process or
memory,
machine. 3
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
OUTPUTS
OPRATION
&
MONITORING
PLC
INTPUTS
HARD‐WIRED
HARD WIRED CONTROL
Prior to PLCs, many control tasks were performed by
contactors control relays and other electromechanical
contactors,
devices. This is often referred to as hard‐wired control.
Circuit diagrams had to be designed, electrical
components specified and installed, and wiring lists
created.
A change in function
or system expansion
required extensive
component changes g
and rewiring.
4
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
A BRIEF HISTORY OF PLC
Before the PLC, control, sequencing, and safety interlock logic for
manufacturing automobiles was accomplished using hundreds or
thousands of relays, cam timers, and drum sequencers and dedicated
closed-loop controllers. The process for updating such facilities for the
yearly model change-over was very time consuming and expensive,
expensive
as electricians needed to individually rewire each and every relay.
In 1968 GM Hydramatic (the automatic transmission division of
General Motors) issued a request for proposal for an electronic
replacement for hard-wired relay systems. The winning proposal came
from Bedford Associates of Bedford,
Bedford Massachusetts.
Massachusetts The first PLC,
PLC
designated the 084 because it was Bedford Associates' eighty-fourth
project, was the result. Bedford Associates started a new company
d di t d to
dedicated t developing,
d l i manufacturing,
f t i selling,
lli and
d servicing
i i thi
this
new product: Modicon, which stood for MOdular DIgital CONtroller.
One of the people who worked on that project was Dick Morley, who
is considered to be the "father" of the PLC.
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
ADVANTAGES OF PLCs
PLCs not only are capable of performing the same tasks as
hard‐wired control,, but are also capablep of manyy more
complex applications.
Some of the additional advantages of PLCs are as follows:
y Smaller physical size than hard‐wire solutions.
y Designed
D i d for
f industrial
i d t i l environment
i t
y Easier and faster to make changes.
y PLCs have integrated diagnostics and override functions.
y Diagnostics
g are centrallyy available.
y Applications can be immediately documented.
y Applications can be duplicated faster and less
expensively. 6
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
SOME PLC APPLICATION AREAS
y Conveyors
y System
y y Paper Mills
y Fillers, Package, Labeler y Motor Control
y Heat Treating Metal Products y Power House/Plant
y Oil & Gas Management
PLC BRANDS
BRANDS…
There are several manufacturers/brands of PLCs within the
automation industry.
industry However,
However three brands that are very
common in the Nigerian industrial system are mentioned
here below:
y Siemens
y Allen
All Bradley
B dl
y Omron
7
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
THE SIEMENS S7 PLCs
Siemens makes several PLC product lines in the SIMATIC®
S7 family.
family They are: S7-200,
S7-200 S7-300
S7-300, and S7-400
S7-400.
IIntegrated
t t d PLCs
PLC are special
i l Integrated PLCs
kind of Modular PLCs that
are manufactured with an
integrated I/O or dedicated
signal/function modules
modules.
They are built to bridge the
gap between a Micro &
Modular PLCs. Some S7-300
series such as CPU315T
CPU315T-
2DP, CPU313C, CPU 314C-
2 PtP,
PtP CPU 317TF
317TF-2
2 DP etc.
etc
belong to this group of PLCs,
they are also compact in
nature. 9
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
PARTS OF THE PLC
The PLC system is essentially made up of the following units:
The Power supply, Central Processing Unit, Memory unit,
I
Input/Output
/O units,
i Communication
C i i unit/ports.
i/
Input Output
Devices Devices
AC Power
Internal Supply Unit
10
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
S7 300 & 400 PLCs HAVE MODULAR POWER SUPPLY UNIT
CPU
120/230v AC
LINE
24v DC LINE
11
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
GENERAL S7 CPU FEATURES
MEMORY SLOT
STATUS
INDICATORS
MODE SELECTOR
BATTERY
COMPATMENT
COMMUNICATION
PORTS
12
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
THE PLC MEMORY UNIT
13
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
ACCESSIBLE MEMORY PACKAGES
• Flash Memory Card, FEPROM, Micro Memory Card
14
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
THE INPUT MODULE
The input Module connects all the input devices such as
Switches, Sensors to the PLC. And can either be DIGITAL
(DCV/ACV) Module
M d l or ANALOG Module.
M d l
15
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
INPUT DEVICES
The input devices comprise of all electro-mechanical devices that send
electrical signal to the PLC Input Modules. They are either DISCRETE
or ANALOG depending on the type of signal they send to the PLC.
PLC
Example: Classification:
• Pushbuttons • Digital/Discrete
• Thermocouple • 120/230 VAC
• Transmitter • 24 VDC
• Level
L lSSwitches
it h • Analog
A l
• Photoelectric Sensors • Current 4-20mA
• Voltage 0-10v
• Proximity Sensors
• Motor Starter Contacts
y Contacts
• Relay
Etc.
DIGITAL/DISCRETE
/ INPUTS
A discrete input, also referred
to as a digital input, is an
input that is either on or off.
Pushbuttons, toggle switches,
limit switches
switches, proximity
switches, and contact closures
are examples of discrete
sensors which are connected
to the PLCs discrete or
digital inputs. In the ON
condition a discrete input may
be referred to as a logic 1 or a
logic high. In the OFF condition
a discrete input may be
referred to as a logic 0 or a
16
logic low. APPLIED ENGINEERING TECHNOLOGY INITIATIVE
ANALOG INPUTS
An Analog input is a
continuous, variable signal.
Typical analog inputs may vary
from 4 to 20 milliamps, or 0 to
10 volts.
volts In the following
example, a level transmitter
monitors the level of liquid in a
tank. Depending on the level
transmitter, the signal to the
PLC can either increase or
decrease as the level in the
tank increases.
increases These inputs
are connected to Analog input
Module of the PLC.
OUTPUT DEVICES
The Output devices comprise of all Actuator devices that
receive/transmit/convert the PLC electrical control signal to other form of
signal in order to do an automated
a tomated work
ork . They
The are either DISCRETE or
ANALOG depending on the type of signal they receive from the PLC.
Examples: Classification:
• Valves • Digital/Discrete
• Solenoids • 120/230 VAC
• C t l Relays
Control R l • 24 VDC
• Analog meter • Analog
• Lamps • Current
• Fans • Voltage
• Relays
¾ 240 VAC
¾ 24 VAC/VDC
• Transistor MOSFET
¾ 24 VDC
18
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
DIGITAL/DISCRETE OUTPUTS
A Discrete Output is an
output that is either ON or
OFF. Solenoids, contactor
coils
coils, and lamps are
examples of actuator
devices connected to
discrete outputs. Discrete
outputs may also be referred
to as digital outputs. In the
following example, a lamp
can be turned on or off by
the PLC output it is
connected To.
ANALOG OUTPUTS
An Analog Output signal
is a continuous,
continuous variable
signal. The output may be
as simple as a 0-10 VDC
level that drives an analog
meter. Examples of analog
meter
t outputs
t t are speed, d
weight, and temperature.
The output signal may also
be used on more complex
applications such as a
current-to-pneumatic
transducer that controls an
air-operated
i t d fl
flow-control
t l
valve. 19
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
COMMUNICATION PORTS/INTERFACE
Siemens S7 uses RS232/RS485 communication ports standard which is
located on the CPU. It communicate from the port to peripheral devices
through either a Point to Point Interface (PPI) cable or a Multi-Point
Multi Point
Interface (MPI) cable or Distributed Peripheral (DP) cable. Furthermore,
the PLC can also communicate to peripheral devices through special
C
Communication
i ti Processor
P (CP) Modules.
M d l
S7-300/400
RS232/485 port for
COMMUNICATION
CABLE MPI/DP CABLE
S7-200 RS232/485
port
for PPI CABLE
SPECIAL MODULEs
Special Modules are modules that are designed for specific
pp
automated I/O application. These mayy be required
q for special
p
Communication purposes, motion control, and temperature
measurement etc. This includes also general I/O Expansion
modules. Examples are as show below:
21
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
PERIPHERAL DEVICES
Peripheral devices are secondary devices such as the
Programming device, HMIs, Printers etc which are only
connected for special use and occasions.
HMIs
S7 SYSTEM OVERVIEW
COMMUNICATION
SYSTEMS
PPI
INPUTS/OUTPUT
DEVICES
22
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
PLC OPERATION MODES
The S7 PLCs have Operation mode switch for various operation modes on
the CPU. When the mode switch is in the RUN position the CPU is in the
Run mode and can execute its program.
g When the mode switch is in the
STOP position the CPU is stopped. When the mode switch is in the TERM
position the programming device can select the operating mode. The MRES
position is used to rest the PLC memory. Note: that the modes and status
indicator may vary slightly depending on the PLC model. The analog
adjustment is used to increase or decrease values stored in special memory.
These values can be used to update the value of a timer or counter,
counter or can be
used to set limits
24
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
HORIZONTAL/VERTICAL
HORI ONTA /V RTICA INSTALLATION
INSTA ATION
MULTI‐TIER/RACK INSTALLATION
ER
ER
EXPANSION
RACK (ER)
CENTRAL
RACK (CR)
25
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
RAIL/BUS CONNECTION MOUNTING TYPE
2
1.Chasis/Backplane
2.Tracks
3 Output module/card
3.
4. Input module/card
5. Processor
6 Memory card
6.
7. Power supply
26
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
PLC SYSTEM INSTALLATION cont..
y The panel should have adequate space for the PLC rack/rail installations and
cable trunks.
y Minimum clearance are required between the PLC modules and enclosure,
check the specs.
y Back‐up Battery should be installed if the PLC only has a RAM memory
y Proper ventilation
l is required
d but
b theh panell should
h ld be
b waterproof.
f
y Ensure proper Input/Output load sizing (Current/Voltage level) and use a
((Diode/RC)
/ )p protective circuit for inductive loads when necessary.
y
y The PLC system panel should have a properly labeled cable termination block.
y Power cables and signal cables should not be in the same cable trunk especially
when
h theh power cablebl is
i carrying
i a high
hi h voltage.
l
y Standard flexible cable of proper wire gauge size with crimp connectors are
generallyy used for basic PLC system
g y cabling.
g
y Simple I/O devices can be generally wired with flexible cables, but it is
recommended that shielded cable should be used for critical analog signal
devices; where there is much industrial noise and when the signal have to travel
through a long distance to minimize electrical/field interference.
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
27
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
SOURCING Vs SINCKING FIELD DEVICEs
AND THE PLC I/O MODULE
SOURCING + 24v DC
L
3 WIRE
PNP IN1
SENSOR IN1
PLC PLC
+ SINCKING + SOURCING
INPUT INPUT
POWER POWER
SUPPLY MODULE SUPPLY MODULE
- - 3 WIRE
NPN
SENSOR
COM COM
SINCKING
28
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
SOURCING Vs SINCKING FIELD DEVICEs
AND THE PLC OUTPUT MODULE
SOURCING
+
L SOURCING
OUT1 + SINCKING OUT1 OUTPUT
OUTPUT
FIELD COM - FIELD
DEVICE
DEVICE
PLC
PLC SINCKING
SOURCING OUTPUT SINCKING
OUTPUT MODULE
MODULE
N -
COM
COM
30
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
BASIC REQUIREMENT FOR PLC PROGRAMMING
In order to Program a PLC the following are the basic requirements:
• The PLC S7-200, 300, 400
• A Communication
C i i Cable
C bl PPI/MPI Cable
C bl
• A Programming Device PG/PC
• A Software (STEP 7 – SIMATIC Manager)
31
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
INTRODUCTION TO SIEMENS S7 PLC PROGRAMMING
MICROWIN FOR S7-200 PLCs SOFTWARE
32
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
CREATING A PROJECT
Before you create a project, you should know that STEP 7 projects can be
created in different orders. Two options are as shown below:
33
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
OPENING A PROJECT in Simatic Manager
g
y By ‘New Project Wizard’
y By
y Customised New Project
j
34
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
HARDWARE CONFIGURATION
STARTING HW CONFIGURATION
35
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
HARDWARE SETPOINT CONFIGURATION
36
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
CREAT A PROGRAM IN OB1 AFTER
HW CONFIGURATION
37
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
RUNG
38
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
ELECTRICAL CONTROL CCT. Vs PLC & LADDER DIAGRAM
I0.6
39
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
40
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
PLC I/O ADDRESSING/NUMBERING
The S7 PLCs inputs and outputs are labeled at the wiring terminations and next
to the status indicators. These alphanumeric symbols identify the I/O address to
which a device is connected
connected. This address is used by the CPU to determine
which input is present and which output needs to be turned on or off. I
designates a discrete input and Q designates a discrete output. The first
number identifies the byte,
byte the second number identifies the bit
bit. Input I0
I0.0,
0 for
example, is byte 0, bit 0.
I0.0 = Byte 0, Bit 0
I0 1 = B
I0.1 Byte
t 0
0, Bit 1
Q1.0 = Byte 1, Bit 0
Q1.1 = Byte 1, Bit 1
41
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
PLC MEMORY AREAS/PROCESS IMAGES
¾ Process‐Image Input Register: I
¾ Process
Process‐Image
Image Output Register: Q
¾ Analog Inputs: AI
¾ Analog Outputs: AQ
y Variable Memory Area: V
y Bit
Bi MMemory A
Area: M
y Timer: T
y Counter: C
y Special
p Memory:
y SM
¾ High‐Speed Counters: HC
y Accumulators: AC
y Local Memory Area: L
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
42
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
43
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
44
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
PLC PROGRAMMING EXERCISE
BEGINs
y CREATING
y ADDRESSING
y COMMENTING
y DOWNLOADING
y UPLOADING
y SIMULATION
y ACTUAL CONNETION OF A PROJECT & RUNNING
OF A PLC PROGRAM
y COMMISIONING OF THE PLC PROGRAM
ALL REFER TO YOUR PLC TRAINING SYSTEMs
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
PLC TIMERS
45
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
46
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
REVERSE ON‐DELAY TIMER CONTOL FUNCTION
47
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
A TONR TIMER CONTOL EXAMPLE
48
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
SIMATIC MANAGER TIMERS
S_PULSE Pulse S5 Timer
If the signal state of input I0.0 changes from "0" to "1" (positive
edge in RLO), the timer T5 will be started. The timer will
continue
ti t run for
to f theth specified
ifi d time
ti off two
t seconds
d (2 s)) as
long as I0.0 is "1". If the signal state of I0.0 changes from "1" to
"0" before the timer has expired the timer will be stopped. If the
signal state of input I0.1 changes from "0" 0 to "1"
1 while the timer
is running, the time is reset. The output Q4.0 is logic "1" as long
as the timer is running and "0" if the time has elapsed or was
reset.
49
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
SIMATIC MANAGER TIMERS cont…
S OFFDT Off
S_OFFDT Off-Delay
Delay S5 Timer
ON DELAY TIMER
50
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
STORE ON DELAY TIMER
PULSE TIMER
51
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
EXTENDED PULSE TIMER
52
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
TIMER BIT INSTRUCTION
COMPARISON INSTRUCTION
53
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
LOADING AND TRANSFERING OF DATA
INSTRUCTION
PLC COUNTERS
54
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
THE THREE TYPES OF COUNTERS
THE UP COUNTER
55
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
THE DOWN COUNTERS
56
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
SIMATIC MANAGER S7 COUNTER
57
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
C48
60
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
EVALUATIONS
TRAINING OBJECTIVES
At the end of this course, participants will be able to:
1. Identify and explain the advantages of a programmable logic control
compared to conventional controls;
2. Install and operate
p p
programmable
g logic
g controller;;
3. Identify and describe the functions of the system components of a
programmable logic control;
4
4. Make a program in ladder diagram and statement list programming;
5. Translate a ladder diagram program into statement list program;
6. Translate a ladder diagram program into electrical and logic circuits
equivalent;
i l
7. Connect/Wire discrete input and output PLC control systems;
8. Carry out basic Maintenance & Troubleshooting g of a PLC system
9. Observe safe practices in dealing with PLC controls systems.
SELF EVALUATION
APPLIED ENGINEERING TECHNOLOGY INITIATIVE
END OF PROGRAM
THANK YOU
61
APPLIED ENGINEERING TECHNOLOGY INITIATIVE