Академический Документы
Профессиональный Документы
Культура Документы
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
requirements product
assurance of properties
sys tem
Control
Simulation
3D Visualization
domain-specific design
Control Actors Basic System
programming
Sensors
E-CAD M-CAD
sys
tem
int e
gra tion
ig n d es
Time bounded
PLC (Programmable Logic Controller) PLC Online Tutorial: http://www.plcs.net/contents.shtml A PLC (i.e. Programmable Logic Controller) is a device that was invented to replace the necessary sequential relay circuits for machine control. The PLC works by looking at its inputs and depending upon their state, turning on/off its outputs.
http://www.plcs.net/
Examples of machines controlled by a PLC PLCs are used in many "real world" applications. If there is industry present, chances are good that there is a PLC present. If you are involved in machining, packaging, material handling, automated assembly or countless other industries you are probably already using them. Even machine tools have a PLC beside their NC.
PLC History
MODICON 084, the first practical programmable controller (1969).
Matsushita Electric Works Schweiz AG
1990
Five standardized programming languages IEC 1131-3
Software
Analog I/Os like +/-10V in addition to the digital I/Os (Boolean variables)
http://www.plcs.net/ http://members.aol.com/rewellner/chatterx1/haupt.html
Mechatronic system
Control technology
Sensors
Material
Energy
Information
requirements
product
assurance of properties
Control
Simulation
3D Visualization
domain-specific design
Control Actors Basic System
programming
Sensors
E-CAD M-CAD
syst em
inte
grat ion
em syst desi gn
Eingnge/Inputs:
Sensors
1x
Program
- Sequential logic
Ausgnge/Outputs:
Actors
1x
? ?
upload
Programming environment
PLC
The software development process for PLCs The five IEC 1131-3 (1993) languages arranged according to the software development process for PLCs: SFC, Sequential Function Chart (AS, Ablaufsprache) ST, Structured Text FBD, Function Block Diagram (FUP, Funktionsplan) IL, Instruction List (AWL, Anweisungsliste) LD, Ladder Diagram (KOP, Kontaktplan)
low
C:=A AND NOT B
level of language
SFC high
1 T1 2
N S
Fill Empty
ST
AND A B
FBD
C
LD A ANDN B ST C C
LD
A B
IL
- --/---------( )
analysis
design
coding
Bonfatti F., Monari P. D. and Sampieri U.: IEC 1131-3 Programming Methodology, CJ International, France, 1997
Fields of application for the PLC languages LD: Derived from the pre-PLC relay based controls. For instance used for the tool handling in the FANUC machine control ST: Good for former C programmers FBD: Drawing functions blocks to express logics (like and/or/not) analog to signal flows observed in electronic circuit diagrams (Stromlaufplan). IL: Old language, many experienced users, a lot of generated code in use in industry, hard to maintain, hard to read for externals, hard to handle in larger projects, fast, minimal memory usage, no programming structure. SFC: chemistry
SFC basics
Initial step
0 1 S FILL
Action name
Transition 0
Step Transition condition Action: SFC, ST, FBD, IL or LD
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
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. D Cutting
Cyl. B Feeding
Cylinder A extends and holds the bar material Cylinder B extends and feeds the material to the limit stop Cylinder C extends and clamps the bar material in the cutting device Cylinder A retracts (releases the hold) and cylinder D extends (cutting) Cylinder B retracts (the feeding unit moves back) and cylinder D retracts Cylinder C retracts and releases the clamping A:1 B:1 C:1 A:0 & D:1 B:0 & D:0 C:0
Limit switch
Cylinder A extends and holds the bar material Cylinder B extends and feeds the material to the limit stop Cylinder C extends and clamps the bar material in the cutting device Cylinder A retracts (releases the hold) and cylinder D extends (cutting) Cylinder B retracts (the feeding unit moves back) and cylinder D retracts Cylinder C retracts and releases the clamping
A:1 B:1 C:1 A:0 & D:1 B:0 & D:0 C:0
Cyl. D Cutting
Cyl. B Feeding
path-step diagram: signal modeling Sensors are connected via input variables to the signal lines.
Branching
Or condition
And condition
Cyl. D Cutting
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
Q: Input or Output? A: Always from the controls point of view! Q: Analog or Digital? A: The signal from or to the control is binary (digital) or a floating point value like 3.12435 (analog)
PLC byte interface for the communication with actuators and sensors: 0.0 0.1 0.2 0.3 1 Byte 0.4 0.5 [4 Bytes (DoubleWord) o i 0.6 Analog I/O (float in C)] a d 0.7 1.0 1.1 1 Bit [Digital I/O (bool in C++)] ..
Cyl. D Cutting
Cyl. B Feeding
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
English settings in SIMATIC ! SIMATIC Optionen Einstellungen Sprache ENGLISCH (BausteinBlock,..) Mnemonics ENGLISCH (IE, QA,..)