s7sfcs7b_e.pdf

(1600 KB) Pobierz
s
Contents
1
SFC for SIMATIC S7
2
SIMATIC
Basics of SFC
3
Starting and Operating
SFC for SIMATIC S7
Manual
4
Creating the Project Structure
Adapting the Properties of
Charts, Types and Instances
5
Configuring Sequential
Control Systems
6
Compiling SFC Types and
SFC Instances
7
8
Downloading to the AS
Behavior of the Sequential
Control System in the AS
9
Testing and Commissioning
Sequential Control Systems
10
11
Documenting Programs
Configuring Parameter
Controls
12
13
Tips & Tricks
Index
11/2006
A5E00807946-01
812530327.036.png 812530327.037.png 812530327.038.png 812530327.039.png 812530327.001.png 812530327.002.png 812530327.003.png 812530327.004.png 812530327.005.png 812530327.006.png 812530327.007.png 812530327.008.png 812530327.009.png
 
Safety Guidelines
This manual contains notices you have to observe in order to ensure your personal safety, as well as to
prevent damage to property. The notices referring to your personal safety are highlighted in the manual
by a safety alert symbol, notices referring to property damage only have no safety alert symbol. The
notices shown below are graded according to the degree of danger.
Danger
indicates that death or severe personal injury will result if proper precautions are not taken.
!
Warning
indicates that death or severe personal injury may result if proper precautions are not taken.
!
Caution
with a safety alert symbol indicates that minor personal injury can result if proper precautions are not
taken.
!
Caution
without a safety alert symbol indicates that property damage can result if proper precautions are not
taken.
Notice
indicates that an unintended result or situation can occur if the corresponding notice is not taken into
account.
If more than one degree of danger is present, the warning notice representing the highest degree of
danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a
warning relating to property damage.
Qualified Personnel
The device/system may only be set up and used in conjunction with this documentation. Commissioning
and operation of a device/system may only be performed by qualified personnel . Within the context of
the safety notices in this documentation qualified persons are defined as persons who are authorized to
commission, ground and label devices, systems and circuits in accordance with established safety
practices and standards.
Prescribed Usage
Note the following:
Warning
This device and its components may only be used for the applications described in the catalog or the
technical description, and only in connection with devices or components from other manufacturers
which have been approved or recommended by Siemens.
Correct, reliable operation of the product requires proper transport, storage, positioning and assembly
as well as careful operation and maintenance.
!
Trademarks
All names identified by ® are registered trademarks of the Siemens AG.
The remaining trademarks in this publication may be trademarks whose use by third parties for their
own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and
software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency.
However, the information in this publication is reviewed regularly and any necessary corrections are
included in subsequent editions.
Siemens AG
Automation and Drives
Postfach 4848
90437 NÜRNBERG
GERMANY
A5E00807946-01
11/2006
Copyright © Siemens AG 2006
Technical data subject to change
812530327.010.png 812530327.011.png 812530327.012.png 812530327.013.png 812530327.014.png 812530327.015.png 812530327.016.png 812530327.017.png 812530327.018.png 812530327.019.png 812530327.020.png 812530327.021.png 812530327.022.png 812530327.023.png 812530327.024.png 812530327.025.png 812530327.026.png 812530327.027.png 812530327.028.png 812530327.029.png 812530327.030.png 812530327.031.png 812530327.032.png
 
Contents
1
1-1
SFC for SIMATIC S7
1.1
Introduction .................................................................................................... ... 1-1
1.2
Getting Started................................................................................................ .. 1-6
1.2.1
How to Work with SFC in Overview................................................................ .. 1-6
1.2.2
How to Create an SFC Chart in Overview...................................................... .. 1-8
1.2.3
How to Create an SFC Type in Overview....................................................... 1-11
1.2.4
How to Create an SFC Instance in Overview ................................................. 1-14
2
2-1
Basics of SFC
2.1
SFC in the STEP 7 Environment .................................................................... .. 2-1
2.2
SFC and Plant Hierarchy ................................................................................ .. 2-3
2.3
SFC and Other Target Systems ..................................................................... .. 2-3
2.4
Use and Functionality of SFCs ....................................................................... .. 2-4
2.4.1
What is an SFC Chart?................................................................................... .. 2-4
2.4.2
What is an SFC Type / SFC Instance?........................................................... .. 2-7
2.4.3
SFC Chart and SFC Type Compared............................................................ . 2-10
2.4.4
External View of the SFC Chart...................................................................... 2-11
2.5
SFC Elements................................................................................................. 2-13
2.5.1
What is a Sequencer? ................................................................................... . 2-13
2.5.2
What are Sequencer Elements?..................................................................... 2-14
2.5.3
What is a Step? .............................................................................................. 2-16
2.5.4
What is a Transition? ..................................................................................... . 2-17
2.5.5
What is a Text?.............................................................................................. . 2-18
2.5.6
What is a Sequence?...................................................................................... 2-18
2.5.7
What is a Simultaneous Branch? ................................................................... 2-19
2.5.8
What is an Alternative Branch? ...................................................................... 2-20
2.5.9
What is a Loop?.............................................................................................. 2-21
2.5.10
What is a Jump? ............................................................................................ . 2-22
3
3-1
Starting and Operating
3.1
Working with the SFC Editor .......................................................................... .. 3-1
3.2
How to Start the SFC Editor ........................................................................... .. 3-1
3.3
Navigating in the SFC..................................................................................... .. 3-2
3.3.1
How to Navigate in the SFC ........................................................................... .. 3-2
3.4
User Interface and Operator Inputs ................................................................ .. 3-3
3.4.1
Elements of the User Interface ....................................................................... .. 3-3
3.4.2
Dialog Boxes................................................................................................... .. 3-8
3.5
Working with the Mouse ................................................................................. .. 3-9
3.6
Working with the Keyboard............................................................................ . 3-10
3.6.1
Working with the Keyboard............................................................................ . 3-10
3.6.2
Key Combinations for Menu Commands........................................................ 3-10
3.6.3
Shortcuts for Menu Commands ...................................................................... 3-12
3.6.4
Navigating in the Menu Bar and Menus with the Keyboard ........................... 3-14
3.6.5
Navigating in Dialog Boxes with the Keyboard............................................... 3-15
3.6.6
Navigating in Texts with the Keyboard ........................................................... 3-16
3.6.7
Selecting Text with the Keyboard ................................................................... 3-16
3.6.8
Keyboard Shortcuts in the Sequence ............................................................. 3-17
3.6.9
Opening Help with the Keyboard.................................................................... 3-17
SFC for SIMATIC S7
A5E00807946-01
iii
812530327.033.png
Contents
3.6.10
Changing the Window Section ...................................................................... . 3-17
3.7
Default Colors ................................................................................................ . 3-18
3.8
Data Backup in the SFC Editor....................................................................... 3-19
4
4-1
Creating the Project Structure
4.1
How to Create a Project Structure.................................................................. .. 4-1
4.2
Creating, Configuring and Managing SFCs.................................................... .. 4-2
4.2.1
Overview of Creating, Configuring and Managing SFCs................................ .. 4-2
4.2.2
Creating an SFC chart .................................................................................... .. 4-4
4.2.2.1
How to Create an SFC Chart.......................................................................... .. 4-4
4.2.3
Creating an SFC Type and Creating an SFC Instance .................................. .. 4-5
4.2.3.1
How to Create an SFC Type .......................................................................... .. 4-5
4.2.3.2
How to Create an SFC Instance..................................................................... .. 4-6
4.2.4
Configuring an SFC Chart .............................................................................. .. 4-7
4.2.4.1
Basics for Configuring an SFC Chart ............................................................. .. 4-7
4.2.4.2
Configuration Changes in the SFC Chart ....................................................... .. 4-9
4.2.5
Configuring the SFC Type and SFC Instance ................................................ 4-10
4.2.5.1
Type/Instance Concept of SFC ...................................................................... 4-10
4.2.5.2
Configuring the SFC Type ............................................................................. . 4-10
4.2.5.3
Configuration Changes in the SFC Type........................................................ 4-13
4.2.5.4
Configuring the SFC Instance ....................................................................... . 4-14
4.2.5.5
Configuration Changes in the SFC Instance .................................................. 4-16
4.2.6
Opening ......................................................................................................... . 4-17
4.2.6.1
How to Open SFC Charts or SFC Types........................................................ 4-17
4.2.6.2
How to Open SFC Instances ......................................................................... . 4-18
4.2.7
Copying.......................................................................................................... . 4-19
4.2.7.1
Copying and Moving SFC Charts ................................................................... 4-19
4.2.7.2
Copying and Moving SFC Types.................................................................... 4-21
4.2.7.3
Copying and Moving SFC Instances .............................................................. 4-21
4.2.8
Deleting.......................................................................................................... . 4-22
4.2.8.1
How to Delete SFC Charts and SFC Types ................................................... 4-22
4.2.8.2
How to Delete SFC Instances ....................................................................... . 4-22
5
5-1
Adapting the Properties of Charts, Types and Instances
5.1
How to Adapt Chart Properties ....................................................................... .. 5-1
5.2
How to Adapt Type Properties........................................................................ .. 5-3
5.3
How to update SFC Types.............................................................................. .. 5-4
5.4
How to Adapt Instance Properties .................................................................. .. 5-4
5.5
Message Configuration................................................................................... .. 5-6
5.5.1
How to Configure Messages in the SFC ........................................................ .. 5-6
5.6
Configuring Characteristics ............................................................................ .. 5-8
5.6.1
Using the Characteristics Editor and the Interface Editor............................... .. 5-8
5.6.2
Characteristics of the SFC Type..................................................................... .. 5-9
5.6.3
Note on Subsequent Modifications to Control Strategies............................... 5-11
5.6.4
How to Configure Note Texts and Position Texts........................................... 5-12
5.6.5
Inputs/Outputs for Characteristics .................................................................. 5-13
5.6.6
Block Contacts................................................................................................ 5-14
5.6.7
Attributes for Characteristics ......................................................................... . 5-15
6
6-1
Configuring Sequential Control Systems
6.1
How to Configure Sequential Control Systems .............................................. .. 6-1
6.2
Creating the Sequencer Topology.................................................................. .. 6-3
6.2.1
How to Create a Sequencer Topology ........................................................... .. 6-3
6.2.2
How to Configure Multiple Sequencers .......................................................... .. 6-5
6.2.3
Overview of Inserting/Creating SFC Elements ............................................... .. 6-9
6.2.4
How to Create a Sequence ........................................................................... . 6-10
6.2.5
How to Create and Edit a Simultaneous Branch ............................................ 6-11
SFC for SIMATIC S7
iv
A5E00807946-01
812530327.034.png
Contents
6.2.6
How to Create and Edit an Alternative Branch ............................................... 6-13
6.2.7
How to Create and Edit a Loop ...................................................................... 6-14
6.2.8
How to Create and Edit a Jump...................................................................... 6-16
6.2.9
How to Create and Edit a Text Box ................................................................ 6-18
6.3
Managing SFC Elements............................................................................... . 6-20
6.3.1
Selecting SFC Elements................................................................................ . 6-20
6.3.1.1
How to Select with a Mouse Click .................................................................. 6-20
6.3.1.2
How to Select with the Keyboard.................................................................... 6-21
6.3.1.3
How to Select with the Lasso ........................................................................ . 6-21
6.3.1.4
How to Select Steps and Transitions for Editing ............................................ 6-22
6.3.2
Copying, Moving and Deleting SFC Elements ............................................... 6-23
6.3.2.1
How to Copy SFC Elements .......................................................................... . 6-23
6.3.2.2
How to copy object properties of SFC elements ............................................ 6-25
6.3.2.3
How to Move SFC Elements ......................................................................... . 6-26
6.3.2.4
Deleting SFC Elements ................................................................................. . 6-28
6.4
Editing Sequencers........................................................................................ . 6-29
6.4.1
How to Edit Sequencer Properties ................................................................. 6-29
6.4.2
Editing in the Properties Dialog ...................................................................... 6-31
6.4.2.1
How to Edit a Step .......................................................................................... 6-31
6.4.2.2
How to Edit Actions in a Step ......................................................................... 6-33
6.4.2.3
How to Edit Addresses in a Step .................................................................... 6-35
6.4.2.4
Valid Entries for Addresses ............................................................................ 6-38
6.4.2.5
How to Filter Block Inputs/Outputs ................................................................. 6-40
6.4.2.6
How to Access Structures............................................................................... 6-41
6.4.3
Editing Transitions .......................................................................................... 6-43
6.4.3.1
How to Edit the Transition.............................................................................. . 6-43
6.4.3.2
Formulating the Conditions of a Transition..................................................... 6-46
6.4.3.3
How to Edit Addresses in a Transition............................................................ 6-47
6.4.3.4
How to Edit OS Comments in a Transition .................................................... . 6-49
6.4.4
Shared Addresses and Valid Data Types....................................................... 6-51
6.4.4.1
Shared Addresses ......................................................................................... . 6-51
6.4.4.2
Absolute Addressing....................................................................................... 6-51
6.4.4.3
How to Perform Symbolic Addressing ............................................................ 6-52
6.4.4.4
Valid Data Types ............................................................................................ 6-53
6.5
Specifying Runtime Properties ....................................................................... 6-54
6.5.1
Runtime Properties of an SFC....................................................................... . 6-54
6.5.2
How to Edit the Run Sequence ...................................................................... 6-55
6.5.3
Runtime Attributes for Runtime Groups and SFCs ........................................ 6-56
6.6
Standard Interface and Chart Inputs/Outputs................................................. 6-59
6.6.1
Inputs/Outputs of the SFC Chart Standard Interface ..................................... 6-59
6.6.1.1
Standard Interface of the SFC Chart .............................................................. 6-60
6.6.1.2
Meanings in the Table ................................................................................... . 6-64
6.6.1.3
Inputs/Outputs of the SFC Chart Sorted According to Usage ........................ 6-65
6.6.2
Standard Interface of the SFC Type.............................................................. . 6-66
6.6.2.1
Inputs/Outputs of the SFC Type Standard Interface ...................................... 6-67
6.6.2.2
Inputs/Outputs of the SFC Type Sorted According to Usage......................... 6-73
6.6.2.3
"Inputs/Outputs" Interface Expansions .......................................................... . 6-73
6.6.3
"Characteristics" Interface Parameter Assignments....................................... 6-74
6.6.3.1
"Control Strategies" Characteristic ................................................................. 6-74
6.6.3.2
Characteristic for Note Texts ......................................................................... . 6-75
6.6.3.3
Characteristic for Position Texts .................................................................... . 6-75
6.6.4
"Characteristics" Interface Expansions.......................................................... . 6-76
6.6.4.1
"Setpoints" Characteristic ............................................................................... 6-77
6.6.4.2
Meaning and Usage of Setpoints ................................................................... 6-85
6.6.4.3
"Process Values" Characteristic ..................................................................... 6-89
6.6.4.4
"Control Values" Characteristic....................................................................... 6-89
6.6.4.5
"Parameters" Characteristic............................................................................ 6-90
SFC for SIMATIC S7
A5E00807946-01
v
812530327.035.png
Zgłoś jeśli naruszono regulamin