Step 7 Basic v11 Sp2 Enus en-us

3012
SIMATIC STEP 7 Basic V11.0 SP2 System Manual Online help printout 04/2012 System overview of STEP 7 and WinCC 1 Readme 2 Installation 3 Migrating projects 4 First steps 5 Introduction to the TIA Portal 6 Editing projects 7 Editing devices and networks 8 Programming the PLC 9 Visualizing processes (Basic) 10 Using technology functions 11 Using online and diagnostics functions 12

Transcript of Step 7 Basic v11 Sp2 Enus en-us

System overview of STEP 7 and WinCC Readme Installation

1 2 3 4 5 6 7 8 9 10 11 12

SIMATICMigrating projects

STEP 7 Basic V11.0 SP2System Manual

First steps Introduction to the TIA Portal Editing projects Editing devices and networks Programming the PLC Visualizing processes (Basic) Using technology functions Using online and diagnostics functions

Online help printout

04/2012

Legal information Warning notice systemThis 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 only to property damage have no safety alert symbol. These 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 relevant information 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 PersonnelThe product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.

Proper use of Siemens productsNote the following: WARNING Siemens products may only be used for the applications described in the catalog and in the relevant technical documentation. If products and components from other manufacturers are used, these must be recommended or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and maintenance are required to ensure that the products operate safely and without any problems. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.

TrademarksAll names identified by are registered trademarks of 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 LiabilityWe 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 Industry Sector Postfach 48 48 90026 NRNBERG GERMANY

05/2012 Technical data subject to change

Copyright Siemens AG 2012. All rights reserved

Table of contents1 System overview of STEP 7 and WinCC....................................................................................................23 1.1 1.2 1.3 2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.2.2 2.2.3 2.2.3.1 2.2.3.2 2.2.3.3 2.2.3.4 2.2.3.5 2.2.3.6 2.2.3.7 2.2.3.8 2.2.4 2.2.4.1 2.2.4.2 2.2.4.3 2.2.4.4 2.2.5 2.2.5.1 2.3 2.3.1 2.3.2 2.3.3 2.3.4 2.3.4.1 2.3.4.2 2.3.4.3 2.3.4.4 2.3.4.5 2.3.4.6 2.3.4.7 2.3.5 2.3.6 2.3.6.1 Scaling of STEP 7 and WinCC....................................................................................................23 Options for STEP 7 Engineering System....................................................................................24 Options for WinCC Engineering and Runtime systems...............................................................24 General notes..............................................................................................................................27 General notes..............................................................................................................................27 Notes on the installation..............................................................................................................31 Use of communications processors.............................................................................................32 STEP 7 Basic..............................................................................................................................33 Security information.....................................................................................................................33 Notes on use...............................................................................................................................34 Editing devices and networks......................................................................................................35 General information on devices and networks............................................................................35 Use of modules on the S7-1200..................................................................................................35 Replacing the ET 200S pulse generator and positioning modules..............................................36 Setting flow control for CM 1241 (RS232)...................................................................................37 Removing and plugging Ethernet modules..................................................................................37 Notes on online and diagnostics..................................................................................................37 Compiling the hardware of a pulse generator..............................................................................38 Particular aspects at the CP 1242-7 - Telecontrol interface........................................................38 Programming a PLC....................................................................................................................39 General notes on PLC programming...........................................................................................39 SCL..............................................................................................................................................40 Instructions..................................................................................................................................40 Testing the user program............................................................................................................41 Technological functions...............................................................................................................42 Notes on technological functions.................................................................................................42 WinCC Readme...........................................................................................................................42 Security note................................................................................................................................42 Notes on use...............................................................................................................................43 Migration......................................................................................................................................46 Engineering System....................................................................................................................47 Screens and Screen Objects.......................................................................................................47 Tags and connections.................................................................................................................51 Alarm system and alarm displays................................................................................................52 System functions.........................................................................................................................53 Recipes........................................................................................................................................53 User administration......................................................................................................................53 Communication............................................................................................................................53 Compiling and loading.................................................................................................................56 Runtime.......................................................................................................................................59 Notes on operation in Runtime....................................................................................................59

Readme......................................................................................................................................................27

STEP 7 Basic V11.0 SP2 System Manual, 04/2012,

3

Table of contents

2.3.6.2 2.3.7 2.3.7.1 3 3.1 3.1.1 3.1.2 3.1.2.1 3.1.3 3.1.3.1 3.1.3.2 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 3.10 3.10.1 3.10.2 3.10.3 4 4.1 4.2 4.2.1 4.2.2 4.2.3 4.3 4.4 4.5 4.6 4.6.1 4.6.1.1 4.6.1.2 4.6.1.3 4.6.1.4 4.6.2 4.6.2.1 4.6.2.2 4.6.2.3 4.6.2.4

Notes on operation of panels in Runtime....................................................................................60 HMI devices.................................................................................................................................60 Notes on HMI devices.................................................................................................................60 System requirements for installation...........................................................................................63 Notes on the system requirements..............................................................................................63 System requirements STEP 7 Basic...........................................................................................64 Software and hardware requirements STEP 7............................................................................64 System requirement for WinCC Basic.........................................................................................65 Software and hardware requirements.........................................................................................65 Licenses and Powerpacks...........................................................................................................68 Licenses......................................................................................................................................73 Installation log..............................................................................................................................74 Starting installation......................................................................................................................75 Installing Support Packages........................................................................................................77 Displaying the installed software.................................................................................................78 Modifying or updating installed products.....................................................................................79 Repairing installed products........................................................................................................81 Starting to uninstall......................................................................................................................82 Installing and uninstalling the migration tool................................................................................84 System requirements...................................................................................................................84 Installing the migration tool..........................................................................................................84 Uninstalling the migration tool.....................................................................................................85 Migrating projects........................................................................................................................87 Preparing projects with the migration tool...................................................................................88 Migrating projects with the migration tool....................................................................................88 Calling the migration tool.............................................................................................................90 Creating a migration file...............................................................................................................90 Migrating projects........................................................................................................................91 Displaying the history of the migration.........................................................................................92 Displaying the log file of the migration.........................................................................................92 Migrating WinCC flexible projects (Basic)...................................................................................93 Basics (WinCC flexible)...............................................................................................................93 Migration (WinCC flexible)...........................................................................................................93 Basics on migration (WinCC flexible)..........................................................................................94 Projects from Migrating WinCC flexible projects (WinCC flexible)..............................................96 Compiling and loading a migrated project (WinCC flexible)........................................................98 Migrating engineering data (WinCC flexible)..............................................................................99 Supported HMI devices (WinCC flexible)....................................................................................99 Object support during migration (WinCC flexible).....................................................................100 Changes of values of object properties by the migration (WinCC flexible)................................102 Migration tags (WinCC flexible).................................................................................................103

Installation...................................................................................................................................................63

Migrating projects.......................................................................................................................................87

4

STEP 7 Basic V11.0 SP2 System Manual, 04/2012,

Table of contents

4.6.2.5 4.6.2.6 4.6.2.7 4.6.3 4.6.3.1 4.6.3.2 4.6.3.3 4.6.4 4.6.4.1 4.6.4.2 4.6.5 4.6.5.1 4.6.5.2 4.6.5.3 4.6.5.4 4.6.5.5 4.6.5.6 4.6.5.7 4.6.5.8 4.6.5.9 4.7 4.7.1 4.7.2 4.7.3 4.7.4 4.7.5 4.7.6 5 6 5.1 6.1 6.1.1 6.1.1.1 6.1.1.2 6.1.1.3 6.1.1.4 6.1.1.5 6.1.2 6.1.2.1 6.1.2.2 6.1.2.3 6.1.2.4 6.1.2.5 6.1.2.6 6.1.2.7 6.1.2.8 6.1.2.9 6.1.2.10 6.1.3 6.1.3.1

Migration of alarm classes and alarm groups (WinCC flexible).................................................104 Migration of language-dependent contents (WinCC flexible)....................................................106 Migrating libraries (WinCC flexible)...........................................................................................109 Migrating runtime data (WinCC flexible)....................................................................................110 Migrating runtime data (WinCC flexible)....................................................................................110 Backing up recipe data and user administration (WinCC flexible).............................................110 Restoring recipe data and user administration (WinCC flexible)...............................................111 Migrating integrated projects (WinCC flexible)..........................................................................112 Migrating integrated projects (WinCC flexible)..........................................................................112 Migrating an integrated project (WinCC flexible).......................................................................113 Reference (WinCC flexible).......................................................................................................115 Migration of data types (WinCC flexible)...................................................................................115 Migrating data types of Allen-Bradley DF1 (WinCC flexible).....................................................117 Migrating data types of Allen-Bradley Ethernet IP (WinCC flexible)..........................................117 Migrating data types of Mitsubishi FX (WinCC flexible).............................................................118 Migrating data types of Modicon Modbus (WinCC flexible).......................................................118 Migrating data types of Modicon Modbus TCP/IP (WinCC flexible)..........................................119 Migrating data types of Omron Hostlink/Multilink (WinCC flexible)...........................................119 Migrating data types of SIMATIC S7 200 (WinCC flexible).......................................................120 Migrating data types of SIMATIC S7 300/400 (WinCC flexible)................................................120 Post-editing integrated projects.................................................................................................123 Migrating an integrated project..................................................................................................123 Post-editing integrated projects.................................................................................................125 Converting unspecified CPUs into specified CPUs...................................................................126 Creating an integrated HMI connection.....................................................................................128 Re-linking HMI tags...................................................................................................................130 Deleting an unspecified connection...........................................................................................131 Getting Started Documentation.................................................................................................133 User interface and operation.....................................................................................................135 Starting, setting and exiting the TIA Portal...............................................................................135 Starting and exiting the TIA Portal.............................................................................................135 Overview of the program settings..............................................................................................135 Overview of the script and text editor settings...........................................................................137 Overview of the print settings....................................................................................................138 Changing the settings................................................................................................................139 Layout of the user interface.......................................................................................................139 Views.........................................................................................................................................139 Portal view.................................................................................................................................139 Project view...............................................................................................................................141 Project navigation......................................................................................................................143 Work area..................................................................................................................................146 Inspector window.......................................................................................................................154 Task cards.................................................................................................................................156 Details view...............................................................................................................................158 Overview window.......................................................................................................................159 User interface layout..................................................................................................................162 Keyboard shortcuts....................................................................................................................166 Keyboard shortcuts for project editing.......................................................................................166

First steps.................................................................................................................................................133 Introduction to the TIA Portal....................................................................................................................135

STEP 7 Basic V11.0 SP2 System Manual, 04/2012,

5

Table of contents

6.1.3.2 6.1.3.3 6.1.3.4 6.1.3.5 6.1.3.6 6.1.4 6.1.4.1 6.1.4.2 6.2 6.2.1 6.2.2 6.2.3 6.2.4 6.2.5 6.2.6 6.2.7 6.2.8 7 7.1 7.2 7.2.1 7.2.2 7.2.3 7.2.4 7.2.5 7.2.6 7.2.7 7.2.7.1 7.2.7.2 7.2.7.3 7.2.7.4 7.2.7.5 7.2.7.6 7.2.7.7 7.3 7.3.1 7.3.1.1 7.3.1.2 7.3.2 7.3.2.1 7.3.3 7.3.3.1 7.3.3.2 7.3.4 7.3.4.1 7.3.4.2 7.3.4.3 7.3.4.4 7.3.4.5 7.3.4.6

Keyboard shortcuts for windows................................................................................................167 Keyboard shortcuts in the project tree.......................................................................................167 Keyboard shortcuts in tables.....................................................................................................167 Keyboard shortcuts for text editing............................................................................................168 Using the on-screen keyboard...................................................................................................169 Special features specific to the operating system.....................................................................169 Influence of user rights..............................................................................................................169 Expanding user rights................................................................................................................170 Help on the information system.................................................................................................171 General remarks on the information system..............................................................................171 Opening the Help system..........................................................................................................174 Searching the Help system for keywords..................................................................................175 Full-text searches......................................................................................................................175 Using favorites...........................................................................................................................176 Printing help topics....................................................................................................................177 Disabling the automatic display of tooltip cascades..................................................................177 Safety Guidelines......................................................................................................................178 The basics of projects................................................................................................................181 Creating and managing projects................................................................................................182 Creating a new project...............................................................................................................182 Opening projects.......................................................................................................................182 Displaying properties of the project...........................................................................................183 Saving projects..........................................................................................................................184 Closing projects.........................................................................................................................185 Deleting projects........................................................................................................................185 Working with multi-language projects........................................................................................186 Project text basics.....................................................................................................................186 Select project languages...........................................................................................................187 Setting the editing language......................................................................................................188 Translating texts directly............................................................................................................188 Translating texts using reference texts......................................................................................189 Exporting and importing project texts........................................................................................190 Application examples for multilanguage projects......................................................................192 Editing project data....................................................................................................................193 Compiling and loading project data...........................................................................................193 Compiling project data...............................................................................................................193 Downloading project data..........................................................................................................195 Comparing project data.............................................................................................................200 Basics of project data comparison.............................................................................................200 Protecting project data...............................................................................................................201 Protection concept for project data............................................................................................201 Revoking access rights for devices...........................................................................................202 Printing project contents............................................................................................................202 Documentation settings.............................................................................................................202 Printout of project contents........................................................................................................203 Changing the print settings........................................................................................................204 Specifying the print layout.........................................................................................................205 Entering document information..................................................................................................206 Managing cover pages and frames...........................................................................................207

Editing projects.........................................................................................................................................181

6

STEP 7 Basic V11.0 SP2 System Manual, 04/2012,

Table of contents

7.3.4.7 7.3.4.8 7.3.4.9 7.4 7.4.1 7.4.2 7.4.3 7.5 7.5.1 7.5.2 7.6 7.6.1 7.6.2 7.6.3 7.6.4 7.7 7.7.1 7.7.2 7.7.3 7.7.4 7.8 7.8.1 7.8.2 7.8.3 7.8.4 7.8.4.1 7.8.4.2 7.8.4.3 7.8.4.4 7.8.4.5 7.8.4.6 7.8.4.7 7.8.5 7.8.5.1 7.8.5.2 7.8.5.3 7.8.5.4 7.8.5.5 7.8.5.6 7.8.5.7 7.8.5.8 7.8.5.9 7.8.5.10 7.8.5.11 7.8.5.12 7.8.5.13 7.8.5.14 7.9 7.9.1

Designing cover pages and frames...........................................................................................210 Displaying print preview.............................................................................................................216 Printing project data...................................................................................................................219 Undoing and redoing actions.....................................................................................................221 Basics of undoing and redoing actions......................................................................................221 Undoing an action......................................................................................................................223 Redoing an action......................................................................................................................224 Finding and replacing in projects...............................................................................................225 Information on the search function............................................................................................225 Search and replace...................................................................................................................225 Working with text lists................................................................................................................227 Text lists....................................................................................................................................227 Creating user-defined text lists..................................................................................................228 Editing user-defined text lists.....................................................................................................229 Editing system-defined text lists................................................................................................230 Using memory cards..................................................................................................................231 Basics about memory cards......................................................................................................231 Adding a user-defined card reader............................................................................................231 Accessing memory cards..........................................................................................................232 Displaying properties of memory cards.....................................................................................232 Using libraries............................................................................................................................233 Library basics............................................................................................................................233 "Libraries" task card...................................................................................................................235 Using the elements and parts view............................................................................................237 Working with the project library.................................................................................................238 Project library basics.................................................................................................................238 Creating folders in the project library.........................................................................................238 Adding elements to the project library.......................................................................................239 Using elements of the project library.........................................................................................241 Editing elements of a project library..........................................................................................243 Removing elements from the project library..............................................................................245 Filtering the view........................................................................................................................246 Working with global libraries......................................................................................................246 Global library basics..................................................................................................................246 Creating a new global library.....................................................................................................247 Opening a global library.............................................................................................................248 Displaying properties of global libraries.....................................................................................249 Saving a global library...............................................................................................................250 Closing a global library..............................................................................................................252 Deleting a global library.............................................................................................................252 Creating folders in the global libraries.......................................................................................253 Adding elements to a global library...........................................................................................254 Using elements of a global library.............................................................................................256 Editing elements of a global library............................................................................................259 Removing elements from a global library..................................................................................261 Using a supplied global library...................................................................................................262 Filtering the view........................................................................................................................263 Using cross-references..............................................................................................................264 Using cross-references..............................................................................................................264

STEP 7 Basic V11.0 SP2 System Manual, 04/2012,

7

Table of contents

7.10 7.10.1 7.10.2 8 8.1 8.1.1 8.1.1.1 8.1.1.2 8.1.1.3 8.1.1.4 8.1.1.5 8.1.1.6 8.1.1.7 8.1.1.8 8.1.1.9 8.1.1.10 8.1.1.11 8.1.1.12 8.1.2 8.1.2.1 8.1.2.2 8.1.3 8.1.3.1 8.1.3.2 8.1.3.3 8.1.4 8.1.4.1 8.1.4.2 8.1.4.3 8.1.4.4 8.1.4.5 8.1.4.6 8.1.5 8.1.5.1 8.1.5.2 8.1.5.3 8.1.5.4 8.1.5.5 8.1.5.6 8.1.5.7 8.1.5.8 8.1.5.9 8.1.5.10 8.1.5.11 8.1.5.12 8.1.5.13 8.1.6 8.1.6.1 8.1.6.2 8.1.6.3 8.1.6.4

Simulating devices.....................................................................................................................264 Simulation of devices.................................................................................................................264 Starting the simulation...............................................................................................................265 Configuring devices and networks.............................................................................................267 Hardware and network editor....................................................................................................267 Overview of hardware and network editor.................................................................................267 Network view.............................................................................................................................269 Device view...............................................................................................................................271 Topology view............................................................................................................................274 Printing hardware and network configurations..........................................................................276 Activating the page break preview for printout..........................................................................277 Changing the print options.........................................................................................................278 Inspector window ......................................................................................................................278 Hardware catalog .....................................................................................................................280 Information on hardware components.......................................................................................281 Enabling product support...........................................................................................................282 Keyboard action in the hardware and network editor................................................................283 Configuring devices...................................................................................................................284 Basics........................................................................................................................................284 Configuring individual devices...................................................................................................293 Configure networks....................................................................................................................307 Networking devices...................................................................................................................307 Communication via connections................................................................................................325 Displaying and configuring topology..........................................................................................376 Creating configurations..............................................................................................................391 Configurations for automation systems.....................................................................................391 Configurations for PROFIBUS DP.............................................................................................423 Configurations for PROFINET IO..............................................................................................445 Bus coupling with PN/PN coupler..............................................................................................473 Configurations using external tools...........................................................................................474 Loading a configuration.............................................................................................................476 System diagnostics with 'Report System Errors'.......................................................................478 Introduction to system diagnostics with 'Report System Errors'................................................478 Basics of system diagnostics.....................................................................................................479 Components supported.............................................................................................................480 Diagnostics blocks for reporting system errors..........................................................................480 Properties of the blocks.............................................................................................................481 Supported error OBs.................................................................................................................481 Overview of the status DBs.......................................................................................................483 Diagnostics status DB...............................................................................................................483 PROFINET IO DB......................................................................................................................487 PROFIBUS DP DB....................................................................................................................489 Displaying settings of system diagnostics.................................................................................491 Basic settings............................................................................................................................491 Advanced settings.....................................................................................................................494 Displaying alarms......................................................................................................................497 Overview of the alarm display...................................................................................................497 Archive view..............................................................................................................................498 Layout of the alarms in the archive view...................................................................................498 Receiving alarms.......................................................................................................................498

Editing devices and networks...................................................................................................................267

8

STEP 7 Basic V11.0 SP2 System Manual, 04/2012,

Table of contents

8.1.6.5 8.1.6.6 8.1.6.7 8.1.6.8 8.1.6.9 8.1.6.10 8.1.6.11 8.1.6.12 8.1.7 8.1.7.1 8.1.7.2 8.2 8.2.1 8.2.1.1 8.2.1.2 8.2.1.3 8.2.1.4 8.2.1.5 8.2.1.6 8.2.1.7 8.2.1.8 8.2.2 8.2.2.1 8.2.2.2 8.2.2.3 9 9.1 9.1.1 9.1.1.1 9.1.1.2 9.1.1.3 9.1.1.4 9.1.1.5 9.1.1.6 9.1.2 9.1.2.1 9.1.2.2 9.1.2.3 9.1.2.4 9.1.2.5 9.1.2.6 9.1.2.7 9.1.2.8 9.1.3 9.1.3.1 9.1.3.2 9.1.3.3 9.1.4 9.1.4.1 9.1.4.2 9.1.4.3

Export archive............................................................................................................................499 Clear archive.............................................................................................................................499 "Active alarms" view..................................................................................................................499 Layout of the alarms in the "Active alarms" view.......................................................................500 Status of the alarms...................................................................................................................500 Acknowledging alarms...............................................................................................................500 Ignoring alarms..........................................................................................................................501 Keyboard commands in the alarm display.................................................................................502 Additional information on configurations....................................................................................502 Functional description of S7-1200 CPUs...................................................................................502 Distributed I/O............................................................................................................................561 Device and network diagnostics................................................................................................590 Hardware diagnostics................................................................................................................590 Overview of hardware diagnostics.............................................................................................590 Showing non-editable and current values of configurable module properties...........................598 Showing the current values of dynamic modules properties.....................................................602 Checking a module for defects..................................................................................................605 Changing the properties of a module or the programming device / PC....................................610 Diagnostics in STOP mode.......................................................................................................618 Online accesses in the Online and Diagnostics view................................................................621 Checking PROFIBUS DP subnets for faults..............................................................................624 Connection diagnostics.............................................................................................................627 Overview of connection diagnostics..........................................................................................627 Displaying the connection status using icons............................................................................628 Detailed connection diagnostics................................................................................................629 Creating a user program............................................................................................................633 Programming basics..................................................................................................................633 Operating system and user program.........................................................................................633 Blocks in the user program........................................................................................................634 Block calls..................................................................................................................................641 Operands in instructions............................................................................................................654 Data types.................................................................................................................................677 Program flow control..................................................................................................................753 Declaring PLC tags....................................................................................................................758 Overview of PLC tag tables.......................................................................................................758 Structure of the PLC tag tables.................................................................................................759 Creating and managing PLC tag tables.....................................................................................760 Declaring PLC tags....................................................................................................................762 Declaring symbolic constants....................................................................................................768 Editing properties.......................................................................................................................770 Monitoring of PLC tags..............................................................................................................772 Editing PLC tag tables...............................................................................................................773 Creating and managing blocks..................................................................................................777 Creating blocks..........................................................................................................................777 Specifying block properties........................................................................................................786 Managing blocks........................................................................................................................792 Programming blocks..................................................................................................................796 Program editor...........................................................................................................................796 Programming code blocks.........................................................................................................807 Programming data blocks..........................................................................................................946

Programming the PLC..............................................................................................................................633

STEP 7 Basic V11.0 SP2 System Manual, 04/2012,

9

Table of contents

9.1.4.4 9.1.4.5 9.1.5 9.1.5.1 9.1.5.2 9.1.5.3 9.1.5.4 9.1.5.5 9.1.6 9.1.6.1 9.1.6.2 9.1.7 9.1.7.1 9.1.7.2 9.1.7.3 9.1.7.4 9.1.7.5 9.1.7.6 9.1.7.7 9.2 9.2.1 9.2.2 9.2.2.1 9.2.2.2 9.2.2.3 9.2.2.4 9.2.2.5 9.2.2.6 9.2.2.7 9.2.2.8 9.2.2.9 9.2.2.10 9.2.3 9.2.3.1 9.2.3.2 9.2.3.3 9.2.3.4 9.2.3.5 9.2.3.6 9.2.3.7 9.2.4 9.2.4.1 9.2.4.2 9.2.4.3 9.2.4.4 9.2.4.5 9.2.4.6 9.2.4.7 9.2.5 9.2.5.1 9.2.5.2 9.2.5.3

Programming PLC data types...................................................................................................967 Using external source files........................................................................................................977 Comparing project data.............................................................................................................981 Basics of comparing project data..............................................................................................981 Carrying out an online/offline comparison.................................................................................985 Carrying out offline/offline comparisons....................................................................................986 Using the comparison editor .....................................................................................................988 Performing detailed block comparisons.....................................................................................994 Compiling and downloading blocks.........................................................................................1000 Compiling blocks.....................................................................................................................1000 Downloading blocks.................................................................................................................1004 Protecting blocks.....................................................................................................................1013 Protecting blocks.....................................................................................................................1013 Setting up and removing block copy protection.......................................................................1015 Setting up block know-how protection.....................................................................................1016 Opening know-how protected blocks.......................................................................................1017 Printing know-how protected blocks........................................................................................1017 Changing a password..............................................................................................................1019 Removing block know-how protection.....................................................................................1019 Displaying program information...............................................................................................1020 Overview of available program information.............................................................................1020 Displaying an assignment list..................................................................................................1021 Introduction to the assignment list...........................................................................................1021 Layout of the assignment list...................................................................................................1022 Symbols in the assignment list................................................................................................1023 Displaying an assignment list..................................................................................................1024 Setting the view options for the assignment list.......................................................................1025 Filter options in the assignment list.........................................................................................1026 Defining filters for assignment list............................................................................................1026 Filtering an assignment list......................................................................................................1027 Defining retentive memory areas for bit memories..................................................................1028 Enabling the display of retentive bit memories........................................................................1029 Displaying the call structure.....................................................................................................1029 Introduction to the call structure..............................................................................................1029 Symbols in the call structure....................................................................................................1031 Layout of the call structure......................................................................................................1032 Displaying the call structure.....................................................................................................1033 Setting the view options for the call structure..........................................................................1033 Introducing the consistency check in the call structure...........................................................1034 Checking block consistency in the call structure.....................................................................1035 Displaying the dependency structure......................................................................................1035 Introduction to the dependency structure................................................................................1035 Layout of the dependency structure........................................................................................1037 Symbols in the dependency structure.....................................................................................1037 Displaying the dependency structure......................................................................................1038 Setting the view options for the dependency structure............................................................1039 Introducing the consistency check in the dependency structure.............................................1039 Checking block consistency in the dependency structure.......................................................1040 Displaying CPU resources.......................................................................................................1041 Introducing resources..............................................................................................................1041 Layout of the "Resources" tab.................................................................................................1043 Displaying resources...............................................................................................................1044

10

STEP 7 Basic V11.0 SP2 System Manual, 04/2012,

Table of contents

9.2.5.4 9.3 9.3.1 9.3.2 9.3.3 9.3.4 9.4 9.4.1 9.4.2 9.4.2.1 9.4.3 9.4.3.1 9.4.3.2 9.4.3.3 9.4.3.4 9.4.3.5 9.4.3.6 9.4.3.7 9.4.3.8 9.4.4 9.4.4.1 9.4.4.2 9.4.4.3 9.4.4.4 9.4.4.5 9.4.4.6 9.4.4.7 9.4.4.8 9.4.4.9 9.4.4.10 9.5 9.5.1 9.5.2 9.5.3 9.5.4 9.5.5 9.5.6 9.5.7 9.5.8 9.5.8.1 9.5.8.2 9.5.8.3 9.5.8.4 9.5.8.5 9.5.8.6 9.5.8.7 9.5.8.8 9.5.8.9 9.5.8.10 9.5.8.11 9.5.8.12

Selecting the maximum load memory available......................................................................1044 Displaying cross-references....................................................................................................1045 General information about cross references...........................................................................1045 Structure of the cross-reference list.........................................................................................1045 Displaying the cross-reference list...........................................................................................1047 Displaying cross-references in the Inspector window..............................................................1048 Testing the user program........................................................................................................1049 Basics of testing the user program..........................................................................................1049 Testing with program status....................................................................................................1050 Testing the program................................................................................................................1050 Testing with the watch table....................................................................................................1055 Introduction to testing with the watch table..............................................................................1055 Layout of the watch table.........................................................................................................1056 Basic mode and expanded mode in the watch table...............................................................1057 Icons in the watch table...........................................................................................................1057 Creating and editing watch tables...........................................................................................1059 Entering tags in the watch table..............................................................................................1061 Monitoring tags in the watch table...........................................................................................1066 Modifying tags in the watch table............................................................................................1070 Testing with the force table......................................................................................................1077 Introduction for testing with the force table..............................................................................1077 Safety precautions when forcing tags......................................................................................1078 Layout of the force table..........................................................................................................1079 Basic mode and expanded mode in the force table................................................................1080 Icons in the force table............................................................................................................1081 Open and edit force table........................................................................................................1082 Entering tags in the force table................................................................................................1083 Monitoring tags in the force table............................................................................................1088 Forcing tags in the force table.................................................................................................1091 Stop forcing tags......................................................................................................................1098 Configuring alarms..................................................................................................................1100 Introduction to alarm configuration..........................................................................................1100 Assigning alarm numbers........................................................................................................1100 Components of an alarm.........................................................................................................1101 Available alarm blocks.............................................................................................................1101 Alarm type and alarms.............................................................................................................1103 Formal parameters, alarm data types and alarm blocks.........................................................1104 Layout of the alarm editor........................................................................................................1105 Creating and editing alarms.....................................................................................................1106 Creating PLC alarms...............................................................................................................1106 Edit PLC alarms in the alarm editor.........................................................................................1107 Edit PLC alarms in the program editor....................................................................................1107 Deleting PLC alarms................................................................................................................1108 Creating and editing an alarm type..........................................................................................1108 Creating and editing an instance DB.......................................................................................1108 Creating user diagnostic messages........................................................................................1109 Editing user diagnostic alarms.................................................................................................1109 Deleting user diagnostic messages.........................................................................................1110 Entering texts...........................................................................................................................1110 Locking texts............................................................................................................................1111 Locking attributes....................................................................................................................1111

STEP 7 Basic V11.0 SP2 System Manual, 04/2012,

11

Table of contents

9.5.8.13 9.5.8.14 9.5.8.15 9.5.8.16 9.5.9 9.5.9.1 9.5.9.2 9.5.9.3 9.5.9.4 9.5.10 9.5.10.1 9.5.10.2 9.6 9.6.1 9.6.1.1 9.6.1.2 9.6.1.3 9.6.1.4 9.7 9.7.1 9.7.1.1 9.7.1.2 9.7.1.3 9.7.1.4 9.7.2 9.7.2.1 9.7.2.2 9.7.2.3 9.7.2.4 9.8 9.8.1 9.8.1.1 9.8.1.2 9.8.2 9.8.2.1 9.8.2.2 9.8.2.3 9.8.3 9.8.3.1 9.8.3.2 9.8.3.3 9.8.3.4 9.8.3.5 9.8.3.6 9.8.3.7 9.8.3.8 9.8.4 9.8.4.1 9.8.4.2 9.8.4.3 9.8.5

Insert associated values in alarms..........................................................................................1112 Structure of associated values................................................................................................1112 Examples of associated values...............................................................................................1113 Deleting associated values......................................................................................................1114 Text lists for alarms.................................................................................................................1114 Basics of alarm text lists..........................................................................................................1114 Editing text lists for alarms.......................................................................................................1115 Integrating texts from text lists in alarms.................................................................................1115 Example of integrating texts from text lists in alarms..............................................................1116 Alarm classes..........................................................................................................................1116 Creating alarm classes............................................................................................................1116 Editing alarm classes...............................................................................................................1117 Using global project functions..................................................................................................1118 Importing and exporting...........................................................................................................1118 Basics for importing and exporting..........................................................................................1118 Format of the export file...........................................................................................................1118 Exporting PLC tags..................................................................................................................1119 Importing PLC tags..................................................................................................................1120 Programming examples...........................................................................................................1121 LAD programming examples...................................................................................................1121 Example of controlling a conveyor belt ...................................................................................1121 Example of detecting the direction of a conveyor belt.............................................................1122 Example of detecting the fill level of a storage area ...............................................................1123 Example of controlling room temperature................................................................................1126 FBD programming examples...................................................................................................1128 Example of controlling a conveyor belt ...................................................................................1128 Example of detecting the direction of a conveyor belt.............................................................1130 Example of detecting the fill level of a storage area ...............................................................1131 Example of controlling room temperature................................................................................1134 References..............................................................................................................................1136 General parameters of the instructions...................................................................................1136 Meaning of the parameters REQ, RET_VAL and BUSY with asynchronous instructions.......1136 Evaluating errors with output parameter RET_VAL.................................................................1138 Simple instructions..................................................................................................................1142 LAD..........................................................................................................................................1142 FBD.........................................................................................................................................1298 SCL..........................................................................................................................................1460 Extended instructions..............................................................................................................1568 Date and time-of-day...............................................................................................................1568 String + Char...........................................................................................................................1578 Distributed I/O..........................................................................................................................1597 Interrupts.................................................................................................................................1625 Diagnostics..............................................................................................................................1641 Pulse........................................................................................................................................1650 Data logging............................................................................................................................1652 Data block functions................................................................................................................1661 Technology..............................................................................................................................1665 PID Control..............................................................................................................................1665 Motion Control.........................................................................................................................1709 High-speed counters...............................................................................................................1741 Communication........................................................................................................................1743

12

STEP 7 Basic V11.0 SP2 System Manual, 04/2012,

Table of contents

9.8.5.1 9.8.5.2 9.8.5.3 9.8.5.4 9.8.5.5 10

Communications processor.....................................................................................................1743 S7 communication...................................................................................................................1802 Open User Communication.....................................................................................................1810 Web server..............................................................................................................................1841 TeleService..............................................................................................................................1843

Visualizing processes (Basic).................................................................................................................1851 10.1 Creating screens.....................................................................................................................1851 10.1.1 Basics......................................................................................................................................1851 10.1.1.1 Screen basics .........................................................................................................................1851 10.1.1.2 Availability of screens for specific HMI devices.......................................................................1852 10.1.1.3 Basics......................................................................................................................................1854 10.1.1.4 Working with screens..............................................................................................................1857 10.1.1.5 Working with Templates..........................................................................................................1860 10.1.2 Working with objects................................................................................................................1865 10.1.2.1 Overview of objects.................................................................................................................1865 10.1.2.2 Options for Editing Objects......................................................................................................1868 10.1.2.3 Inserting an object...................................................................................................................1869 10.1.2.4 Deleting an Object ..................................................................................................................1871 10.1.2.5 Positioning an object...............................................................................................................1872 10.1.2.6 Resizing an object...................................................................................................................1873 10.1.2.7 Selecting multiple objects........................................................................................................1874 10.1.2.8 Aligning objects.......................................................................................................................1876 10.1.2.9 Moving an object forward or backward....................................................................................1878 10.1.2.10 Show objects outside the screen area...............................................................................1879 10.1.2.11 Rotating objects..................................................................................................................1880 10.1.2.12 Flipping objects..................................................................................................................1881 10.1.2.13 Designing an object............................................................................................................1882 10.1.2.14 Inserting multiple objects of the same type (stamping tool)...............................................1882 10.1.2.15 Repositioning and resizing multiple objects.......................................................................1884 10.1.2.16 External graphics................................................................................................................1884 10.1.2.17 Managing external graphics...............................................................................................1885 10.1.2.18 Storing an external image in the graphics library...............................................................1887 10.1.2.19 Working with object groups................................................................................................1889 10.1.2.20 Configuring the keyboard access.......................................................................................1895 10.1.2.21 Examples............................................................................................................................1898 10.1.3 Working with text lists and graphics lists.................................................................................1901 10.1.3.1 Working with text lists..............................................................................................................1901 10.1.3.2 Working with graphics lists......................................................................................................1908 10.1.4 Dynamizing screens................................................................................................................1916 10.1.4.1 Basics on dynamization...........................................................................................................1916 10.1.4.2 Dynamization in the inspector window....................................................................................1916 10.1.4.3 Dynamization with animations.................................................................................................1918 10.1.4.4 Dynamize with system functions.............................................................................................1927 10.1.5 Working with function keys......................................................................................................1929 10.1.5.1 Working with function keys .....................................................................................................1929 10.1.5.2 Assigning function keys globally..............................................................................................1931 10.1.5.3 Local assignment of function keys...........................................................................................1933 10.1.5.4 Assigning a function key to a function.....................................................................................1934 10.1.5.5 Assigning operator authorization for a function key.................................................................1935 10.1.5.6 Assigning a function key to a graphic......................................................................................1937 10.1.5.7 Example: Using function keys for screen navigation...............................................................1939

STEP 7 Basic V11.0 SP2 System Manual, 04/2012,

13

Table of contents

10.1.6 Working with layers.................................................................................................................1941 10.1.6.1 Basics on working with layers..................................................................................................1941 10.1.6.2 Moving objects between layers...............................................................................................1942 10.1.6.3 Setting the active layer............................................................................................................1942 10.1.6.4 Show and hide layers..............................................................................................................1943 10.1.6.5 Renaming layers......................................................................................................................1945 10.1.7 Working with libraries..............................................................................................................1946 10.1.7.1 Basics on libraries...................................................................................................................1946 10.1.7.2 Copy templates and types.......................................................................................................1947 10.1.7.3 Libraries in WinCC...................................................................................................................1948 10.1.7.4 Displaying library objects.........................................................................................................1950 10.1.7.5 Managing library objects..........................................................................................................1953 10.1.7.6 Storing an object in a library....................................................................................................1954 10.1.7.7 Inserting a library object..........................................................................................................1955 10.1.7.8 Creating a global library...........................................................................................................1955 10.1.7.9 Saving a global library.............................................................................................................1956 10.1.7.10 Opening a global library.....................................................................................................1957 10.1.8 Display and operating objects.................................................................................................1958 10.1.8.1 Device-Specific Nature of the Objects.....................................................................................1958 10.1.8.2 Objects....................................................................................................................................1959 10.1.9 Configuring screen navigation.................................................................................................1986 10.1.9.1 Basics for screen navigation....................................................................................................1986 10.1.9.2 Assign button with screen change...........................................................................................1987 10.1.9.3 Assign screen change to function key.....................................................................................1988 10.2 10.2.1 10.2.1.1 10.2.1.2 10.2.1.3 10.2.1.4 10.2.1.5 10.2.2 10.2.2.1 10.2.2.2 10.2.2.3 10.2.3 10.2.3.1 10.2.3.2 10.2.3.3 10.2.4 10.2.4.1 10.2.5 10.2.5.1 10.2.5.2 10.3 10.3.1 10.3.1.1 10.3.1.2 10.3.1.3 10.3.1.4 10.3.1.5 Working with Tags...................................................................................................................1989 Basics......................................................................................................................................1989 Basics of tags..........................................................................................................................1989 Overview of HMI tag tables.....................................................................................................1990 External tags............................................................................................................................1991 Addressing external tags.........................................................................................................1992 Internal tags.............................................................................................................................1994 Working with tags....................................................................................................................1995 Creating tags...........................................................................................................................1995 Editing tags..............................................................................................................................2000 Configuring tags......................................................................................................................2005 Working with arrays.................................................................................................................2022 Basics on arrays......................................................................................................................2022 Creating array tags..................................................................................................................2024 Examples of arrays..................................................................................................................2025 Working with cycles.................................................................................................................2025 Cycle basics............................................................................................................................2025 Displaying tags........................................................................................................................2026 Outputting tag values in screens.............................................................................................2026 Configuring trend displays for values from the PLC................................................................2027 Working with alarms................................................................................................................2028 Basics......................................................................................................................................2028 Alarm system in WinCC...........................................................................................................2028 Alarm types..............................................................................................................................2029 Alarm states ............................................................................................................................2031 Alarm classes..........................................................................................................................2033 Acknowledgment.....................................................................................................................2034

14

STEP 7 Basic V11.0 SP2 System Manual, 04/2012,

Table of contents

10.3.1.6 10.3.1.7 10.3.2 10.3.2.1 10.3.2.2 10.3.2.3 10.3.2.4 10.3.3 10.3.3.1 10.3.3.2 10.3.3.3 10.3.3.4 10.3.4 10.3.4.1 10.3.4.2 10.4 10.4.1 10.4.1.1 10.4.1.2 10.4.1.3 10.4.1.4 10.4.1.5 10.4.1.6 10.4.2 10.4.2.1 10.4.3 10.4.3.1 10.4.3.2 10.4.4 10.4.4.1 10.4.4.2 10.4.4.3 10.4.5 10.4.5.1 10.4.6 10.4.6.1 10.5 10.5.1 10.5.2 10.5.3 10.5.3.1 10.5.3.2 10.5.3.3 10.5.3.4 10.5.3.5 10.5.4 10.5.4.1 10.5.4.2 10.5.4.3 10.5.4.4 10.5.5

Alarm groups...........................................................................................................................2036 Alarm number..........................................................................................................................2037 Working with alarms................................................................................................................2037 Alarm components and properties...........................................................................................2037 Configuring alarms..................................................................................................................2039 Configuring alarm output.........................................................................................................2051 Acknowledging alarms.............................................................................................................2058 Operating alarms in Runtime...................................................................................................2061 Alarms in Runtime...................................................................................................................2061 Simple alarm view, simple alarm window in runtime ..............................................................2063 Alarm indicator in Runtime......................................................................................................2064 Acknowledging alarms.............................................................................................................2065 Reference................................................................................................................................2066 System functions for alarms....................................................................................................2066 System events......................................