Professional Documents
Culture Documents
Programmable Logic
Controler (PLC)
Jens Bathelt
Content of Module 3
Lesson 3.1, 1h: deepening Programmable Logic Controlers (PLC)
and explaining Sequential Function Charts (SFC).
Case 3.1, 2h: Programming SFC using SIMATIC S7-Graph
Lesson 3.2, 1h: The remaining four IEC-1131 languages and
State Transition Diagrams (STD)
Case 3.2, 2h: Deepening SFC using SIMATC S7-Graph
Objectives
Understand the principle setup and the properties of a PLC
Distinguish between the different sequential control types and
their characteristics
Classification of the major programming languages (SFC, ST
FBD, IL, LD) concerning their level of programming complexity
Know the elements and properties of SFC
Path step diagram and I/O list
Leadslide
product
gra
tion
requirements
assurance of properties
3D Visualization
sys
ig n
d es
Simulation
tem
tem
int e
sys
Control
domain-specific design
Control
Actors
programming
Sensors
Basic System
E-CAD
M-CAD
Electrical controls
(Elektrische Steuerungen)
Logic control
(VerknpfungsSteuerung)
Sequential circuit
(Schaltwerke)
Combinatorial circuit
(Schaltnetze)
Sequential control
(Ablaufsteuerung)
Time bounded
(zeitgefhrt)
Cyclic signal
processing (zyklische
Signalverarbeitung)
Process bounded
(prozessgefhrt)
Time bounded
http://www.plcs.net/
PLC History
MODICON 084,
the first practical
programmable
controller (1969).
Improved
Communication:
PLC PLC
Miniaturization
Soft PLCs
Hardware
1960
Assembler on
manufacturer specific
hardware. 6-12 keys for
each instruction
1970
Analog I/Os
like +/-10V in
addition to the
digital I/Os
(Boolean variables)
1980
1990
Symbolic
programming
on PCs
Software
Five
standardized
programming
languages
IEC 1131-3
http://www.plcs.net/
http://members.aol.com/rewellner/chatterx1/haupt.html
Mechatronic system
Control technology
PLC
Actors
Sensors
Electro mechanical
Border
Basic System
Mechanical design
Material
Information
product
grat
ion
requirements
Energy
desi
Simulation
3D Visualization
gn
syst
em
inte
em
syst
assurance of properties
Control
domain-specific design
Control
Actors
programming
Sensors
Basic System
E-CAD
M-CAD
Input circuit
CPU / Memory
Output circuit
Eingnge/Inputs:
Sensors
Ausgnge/Outputs:
Actors
1x
I/O-List
Program
- Inputvariables
- Outputvariables
- Sequential
logic
1x
Logic control
(VerknpfungsSteuerung)
Sequential circuit
(Schaltwerke)
Combinatorial circuit
(Schaltnetze)
Sequential control
(Ablaufsteuerung)
time bounded
(zeitgefhrt)
?
?
Cyclic signal
processing (zyklische
Signalverarbeitung)
process bounded
(prozessgefhrt)
upload
Programming environment
PLC
level of language
SFC
high
Fill
Empty
T1
2
ST
AND
A
B
LD
low
FBD
C
AND
NOT B
LD
A
ANDN B
ST
C
A B
IL
- --/---------( )
analysis
design
coding
Bonfatti F., Monari P. D. and Sampieri U.: IEC 1131-3 Programming Methodology, CJ International, France, 1997
SFC basics
Initial step
Transition 0
Step
FILL
Action name
Transition
Action: SFC, ST,
FBD, IL or LD
condition
Transition 1
2
Transition 2
Empty
Action identifier:
- S: Set output (1)
SFC basics
loop
and
or
SFC properties
Graphical language (not like C)
Derived from Petri Nets
Transition conditions do lead to a sensor
Petri Net example
http://www.ento.vt.edu/~sharov/PopEcol/lec1/petrinet.html
SIEMENS: GRAPH
The IEC standard does support a language mix: SFC for the toplevel structure and for instance ST as an action inside of a SFC
action box
Cyl. C
Clamping
Cyl. A
Holding
Cyl. D
Cutting
Cyl. B Feeding
Cylinder A extends and holds the bar material
A:1
B:1
Cylinder C extends and clamps the bar material in the cutting device
C:1
Cylinder B retracts (the feeding unit moves back) and cylinder D retracts
C:0
Current state
Signal
Limit switch
A:1
B:1
Cylinder C extends and clamps the bar material in the cutting device
C:1
Cylinder B retracts (the feeding unit moves back) and cylinder D retracts
C:0
Cyl. C
Clamping
Cyl. A
Holding
Cyl. D
Cutting
Cyl. B Feeding
Ordinary
signal line
Branching
Or
condition
And
condition
The I/O list is listing all In- and Outputs used in the control:
Cyl. C
Clamping
Cyl. D
Cutting
Cyl. A
Holding
A/S
S0
S1
S2
S3
S4
S5
S6
S7
S8
A0
A1
A2
A3
Variable Name
di_start
di_cylA_home
di_cylA_work
di_cylB_home
di_cylB_work
di_cylC_home
di_cylC_work
di_cylD_home
di_cylD_work
do_cylA_valve
do_cylB_valve
do_cylC_valve
do_cylD_valve
Comment
Start button
Limit switch cyl. A home
Limit switch cyl. A work
Limit switch cyl. B home
Limit switch cyl. B work
Limit switch cyl. C home
Limit switch cyl. C work
Limit switch cyl. D home
Limit switch cyl. D work
Control valve for cylinder
Control valve for cylinder
Control valve for cylinder
Control valve for cylinder
Cyl. B Feeding
A
B
C
D
SIEMENS TIA Modul C1
FAQ: The terms analog and digital I/O in the PLC world
Digital outputs
Analog I/Os
di_xxx
do_xxx
ai_xxx
ao_xxx
//digital input
//digital output
//analog input
//analog output
f.i.
f.i.
f.i.
f.i.
for
for
for
for
a limit switch
simple pneumatic cylinder
a temperature sensor
a motor
SFC in SIEMENS..
..for the
cutting
device
Cyl. C
Clamping
Cyl. A
Holding
Cyl. B Feeding
Cyl. D
Cutting
Objectives
Understand the principle setup and the properties of a PLC
Distinguish between the different sequential control types and
their characteristics
Classification of the major programming languages (SFC, ST
FBD, IL, LD) concerning their level of programming complexity
Know the elements and properties of SFC
Path step diagram and I/O list