SIEMENS - simatic programming with step 7 v5.3

pdf
Số trang SIEMENS - simatic programming with step 7 v5.3 570 Cỡ tệp SIEMENS - simatic programming with step 7 v5.3 3 MB Lượt tải SIEMENS - simatic programming with step 7 v5.3 0 Lượt đọc SIEMENS - simatic programming with step 7 v5.3 1
Đánh giá SIEMENS - simatic programming with step 7 v5.3
4.8 ( 20 lượt)
Nhấn vào bên dưới để tải tài liệu
Đang xem trước 10 trên tổng 570 trang, để tải xuống xem đầy đủ hãy nhấn vào bên trên
Chủ đề liên quan

Nội dung

s Preface, Contents Introducing the Product and Installing the Software Installation SIMATIC Programming with STEP 7 V5.3 Working Out the Automation Concept Basics of Designing a Program Structure Startup and Operation Setting Up and Editing the Project Editing Projects with different Versions of STEP 7 Defining Symbols Creating Blocks and Libraries Manual Creating Logic Blocks Creating Data Blocks Parameter Assignment for Data Blocks Creating STL Source Files Displaying Reference Data Checking Block Consistency and Time Stamps as a Block Property Configuring Messages Controlling and Monitoring Variables Establishing an Online Connection and Making CPU Settings Downloading and Uploading Debugging Testing Using Program Status Testing using the Simulation Program (Optional Package) Diagnostics Printing and Archiving This manual is part of the documentation package with the order number: 6ES7810-4CA07-8BW0 Edition 01/2004 A5E00261405-01 Working with M7 Programmable Control Systems Tips and Tricks Appendix Index 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 A Safety Guidelines This manual contains notices intended to ensure personal safety, as well as to protect the products and connected equipment against damage. These notices are highlighted by the symbols shown below and graded according to severity by the following texts: ! Danger ! Warning ! Caution indicates that death, severe personal injury or substantial property damage will result if proper precautions are not taken. indicates that death, severe personal injury or substantial property damage can result if proper precautions are not taken. indicates that minor personal injury can result if proper precautions are not taken. Caution indicates that property damage can result if proper precautions are not taken. Notice draws your attention to particularly important information on the product, handling the product, or to a particular part of the documentation. Qualified Personnel Only qualified personnel should be allowed to install and work on this equipment. Qualified persons are defined as persons who are authorized to commission, to ground and to tag circuits, equipment, and systems in accordance with established safety practices and standards. Correct 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. This product can only function correctly and safely if it is transported, stored, set up, and installed correctly, and operated and maintained as recommended. Trademarks SIMATIC®, SIMATIC HMI® and SIMATIC NET® are registered trademarks of SIEMENS AG. Third parties using for their own purposes any other names in this document which refer to trademarks might infringe upon the rights of the trademark owners. Copyright © Siemens AG 2004 All rights reserved Disclaimer of Liability The reproduction, transmission or use of this document or its contents is not permitted without express written authority. Offenders will be liable for damages. All rights, including rights created by patent grant or registration of a utility model or design, are reserved. We have checked the contents of this manual for agreement with the hardware and software described. Since deviations cannot be precluded entirely, we cannot guarantee full agreement. However, the data in this manual are reviewed regularly and any necessary corrections included in subsequent editions. Suggestions for improvement are welcomed. Siemens AG Bereich Automation and Drives Geschaeftsgebiet Industrial Automation Systems Postfach 4848, D- 90327 Nuernberg ©Siemens AG 2004 Technical data subject to change. Siemens Aktiengesellschaft A5E00261405-01 Preface Purpose This manual provides a complete overview of programming with STEP 7. It is designed to support you when installing and commissioning the software. It explains how to proceed when creating programs and describes the components of user programs. The manual is intended for people who are involved in carrying out control tasks using STEP 7 and SIMATIC S7 automation systems. We recommend that you familiarize yourself with the examples in the manual "Working with STEP 7 V5.3, Getting Started." These examples provide an easy introduction to the topic "Programming with STEP 7." Basic Knowledge Required In order to understand this manual, general knowledge of automation technology is required. In addition, you must be familiar with using computers or PC-similar tools (for example, programming devices) with the MS Windows 2000 Professional or MS Windows XP Professional operating system. Scope of the Manual This manual is valid for release 5.3 of the STEP 7 programming software package. You can find the latest information on the service packs: • in the "readme.wri" file • in the updated STEP 7 online help. The topic "What's new?" in the online help offers an excellent introduction and overview of the newest STEP 7 innovations. Programming with STEP 7 V5.3 A5E00261405-01 iii Preface STEP 7 Documentation Packages This manual is part of the documentation package "STEP 7 Basic Information.“ The following table displays an overview of the STEP 7 documentation: Documentation Purpose STEP 7 Basic Information with Basic information for technical 6ES7810-4CA07-8BW0 personnel describing the methods of implementing control tasks with STEP 7 and the S7-300/400 programmable controllers. • Working with STEP 7 V5.3, Getting Started Manual • Programming with STEP 7 V5.3 • Configuring Hardware and Communication Connections, STEP 7 V5.3 • From S5 to S7, Converter Manual STEP 7 Reference with Order Number Provides reference information and describes the programming languages LAD, FBD, and STL, and standard and system functions extending the scope of the STEP 7 basic information. 6ES7810-4CA07-8BW1 Online Helps Purpose Order Number Help on STEP 7 Basic information on Part of the STEP 7 programming and configuring with Standard software. STEP 7 in the form of an online help. Reference helps on STL/LAD/FBD Reference help on SFBs/SFCs Reference help on Organization Blocks Context-sensitive reference information. • Ladder Logic (LAD)/Function Block Diagram (FBD)/Statement List (STL) for S7-300/400 manuals • Standard and System Functions for S7-300/400 iv Part of the STEP 7 Standard software. Programming with STEP 7 V5.3 A5E00261405-01 Preface Online Help The manual is complemented by an online help which is integrated in the software. This online help is intended to provide you with detailed support when using the software. The help system is integrated in the software via a number of interfaces: • There are several menu commands which you can select in the Help menu: The Contents command opens the index for the Help on Step 7. • Using Help provides detailed instructions on using the online help. • The context-sensitive help offers information on the current context, for example, an open dialog box or an active window. You can open the context-sensitive help by clicking the "Help" button or by pressing F1. • The status bar offers another form of context-sensitive help. It displays a short explanation for each menu command when the mouse pointer is positioned on the menu command. • A brief explanation is also displayed for each icon in the toolbar when the mouse pointer is positioned on the icon for a short time. If you prefer to read the information from the online help in printed format, you can print out individual help topics, books, or the entire online help. This manual, as well as the manuals "Configuring Hardware with STEP 7", "Modifiying the System During Operation via CiR" and "Automation System S7 400H - Fault-tolerant Systems" is an extract from the HTML-based Help on STEP 7. For detailed procedures please refer to the STEP 7 help. As the manuals and the online help share an almost identical structure, it is easy to switch between the manuals and the online help. You can find the electronic manuals after installing STEP 7 via the Windows Start menu: Start > SIMATIC > Documentation. Further Support If you have any technical questions, please get in touch with your Siemens representative or agent responsible. You will find your contact person at: http://www.siemens.com/automation/partner Training Centers Siemens offers a number of training courses to introduce you to the S7 automation system. Please contact your regional training center or our central training center in D 90327 Nuremberg, Germany for details: Telephone: +49 (911) 895-3200. Internet: http://www.sitrain.com Programming with STEP 7 V5.3 A5E00261405-01 v Preface A&D Technical Support Worldwide, available 24 hours a day: Nuernberg Beijing Peking Johnson City Worldwide (Nuernberg) Technical Support 24 hours a day, 365 days a year Phone: +49 (180) 5050-222 Fax: +49 (180) 5050-223 E-Mail: adsupport@ siemens.com GMT: +1:00 Europe / Africa (Nuernberg) United States (Johnson City) Asia / Australia (Beijing) Authorization Technical Support and Authorization Technical Support and Authorization Local time: Mon.-Fri. 8:00 to 5:00 PM Local time: Mon.-Fri. 8:00 to 5:00 PM Local time: Mon.-Fri. 8:00 to 5:00 PM Phone: +49 (180) 5050-222 Phone: +1 (423) 262 2522 Phone: +86 10 64 75 75 75 Fax: +49 (180) 5050-223 Fax: +1 (423) 262 2289 Fax: +86 10 64 74 74 74 E-Mail: adsupport@ siemens.com E-Mail: simatic.hotline@ E-Mail: adsupport.asia@ +1:00 GMT: GMT: sea.siemens.com -5:00 siemens.com GMT: +8:00 The languages of the SIMATIC Hotlines and the authorization hotline are generally German and English. vi Programming with STEP 7 V5.3 A5E00261405-01 Preface Service & Support on the Internet In addition to our documentation, we offer our Know-how online on the internet at: http://www.siemens.com/automation/service&support where you will find the following: • The newsletter, which constantly provides you with up-to-date information on your products. • The right documents via our Search function in Service & Support. • A forum, where users and experts from all over the world exchange their experiences. • Your local representative for Automation & Drives. • Information on field service, repairs, spare parts and more under "Services". Programming with STEP 7 V5.3 A5E00261405-01 vii Preface viii Programming with STEP 7 V5.3 A5E00261405-01 Contents 1 Introducing the Product and Installing the Software..................................................1-1 1.1 1.2 1.3 1.4 1.4.1 1.4.2 1.4.3 2 Installation.......................................................................................................................2-1 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.2.2 2.3 2.3.1 3 Automation License Manager.........................................................................2-1 User Rights Through The Automation License Manager ...............................2-1 Installing the Automation License Manager ...................................................2-3 Guidelines for Handling License Keys............................................................2-4 Installing STEP 7 ............................................................................................2-5 Installation Procedure.....................................................................................2-6 Setting the PG/PC Interface ...........................................................................2-9 Uninstalling STEP 7......................................................................................2-11 Uninstalling STEP 7......................................................................................2-11 Working Out the Automation Concept .........................................................................3-1 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 4 Overview of STEP 7 .......................................................................................1-1 The STEP 7 Standard Package .....................................................................1-5 What's New in STEP 7, Version 5.3? .............................................................1-9 Extended Uses of the STEP 7 Standard Package .......................................1-11 Engineering Tools.........................................................................................1-12 Run-Time Software.......................................................................................1-14 Human Machine Interface ............................................................................1-15 Basic Procedure for Planning an Automation Project ....................................3-1 Dividing the Process into Tasks and Areas....................................................3-2 Describing the Individual Functional Areas ....................................................3-4 Listing Inputs, Outputs, and In/Outs ...............................................................3-6 Creating an I/O Diagram for the Motors .........................................................3-6 Creating an I/O Diagram for the Valves .........................................................3-7 Establishing the Safety Requirements ...........................................................3-7 Describing the Required Operator Displays and Controls .............................3-8 Creating a Configuration Diagram ..................................................................3-9 Basics of Designing a Program Structure ...................................................................4-1 4.1 4.2 4.2.1 4.2.2 4.2.3 4.2.4 4.2.4.1 4.2.4.2 4.2.4.3 4.2.4.4 4.2.4.5 4.2.4.6 Programs in a CPU.........................................................................................4-1 Blocks in the User Program............................................................................4-2 Blocks in the User Program............................................................................4-2 Organization Blocks and Program Structure ..................................................4-3 Call Hierarchy in the User Program................................................................4-8 Block Types ..................................................................................................4-10 Organization Block for Cyclic Program Processing (OB1) ...........................4-10 Functions (FC) ..............................................................................................4-15 Function Blocks (FB) ....................................................................................4-16 Instance Data Blocks....................................................................................4-19 Shared Data Blocks (DB) .............................................................................4-21 System Function Blocks (SFB) and System Functions (SFC) .....................4-22 Programming with STEP 7 V5.3 A5E00261405-01 ix Contents 4.2.5 4.2.5.1 4.2.5.2 4.2.5.3 4.2.5.4 4.2.5.5 4.2.5.6 4.2.5.7 4.2.5.8 5 Startup and Operation....................................................................................................5-1 5.1 5.2 5.3 5.4 5.4.1 5.4.2 5.4.3 5.4.4 5.4.5 5.4.6 5.4.7 5.4.8 5.4.9 5.5 5.5.1 5.5.2 5.5.3 5.5.4 5.5.5 5.5.6 5.5.7 5.5.8 5.6 5.6.1 5.6.2 5.6.3 5.6.4 5.6.5 5.6.6 6 Starting STEP 7 ..............................................................................................5-1 Starting STEP 7 with Default Start Parameters..............................................5-2 Calling the Help Functions..............................................................................5-3 Objects and Object Hierarchy.........................................................................5-4 Objects and Object Hierarchy.........................................................................5-4 Project Object .................................................................................................5-5 Library Object .................................................................................................5-6 Station Object .................................................................................................5-7 Programmable Module Object........................................................................5-8 S7/M7 Program Object .................................................................................5-10 Block Folder Object ......................................................................................5-11 Source File Folder Object.............................................................................5-14 S7/M7 Program without a Station or CPU....................................................5-15 User Interface and Operation .......................................................................5-16 Operating Philosophy ...................................................................................5-16 Window Arrangement ...................................................................................5-17 Elements in Dialog Boxes.............................................................................5-18 Creating and Managing Objects ...................................................................5-19 Selecting Objects in a Dialog Box ................................................................5-24 Session Memory...........................................................................................5-25 Changing the Window Arrangement ............................................................5-25 Saving and Restoring the Window Arrangement .........................................5-25 Keyboard Operation .....................................................................................5-26 Keyboard Control..........................................................................................5-26 Key Combinations for Menu Commands......................................................5-27 Key Combinations for Moving the Cursor.....................................................5-28 Key Combinations for Selecting Text ...........................................................5-30 Key Combinations for Access to Online Help...............................................5-30 Key Combinations for Toggling between Windows ......................................5-30 Setting Up and Editing the Project ...............................................................................6-1 6.1 6.2 6.2.1 6.2.2 6.2.3 6.2.4 6.2.5 6.3 6.3.1 6.3.2 6.3.3 6.3.4 6.3.5 6.3.6 x Organization Blocks for Interrupt-Driven Program Processing ....................4-23 Organization Blocks for Interrupt-Driven Program Processing ....................4-23 Time-of-Day Interrupt Organization Blocks (OB10 to OB17) .......................4-24 Time-Delay Interrupt Organization Blocks (OB20 to OB23).........................4-26 Cyclic Interrupt Organization Blocks (OB30 to OB38) .................................4-26 Hardware Interrupt Organization Blocks (OB40 to OB47) ...........................4-28 Startup Organization Blocks (OB100 / OB101 / OB102)..............................4-29 Background Organization Block (OB90) ......................................................4-31 Error Handling Organization Blocks (OB70 to OB87 / OB121 to OB122)....4-32 Project Structure .............................................................................................6-1 Setting Up a Project........................................................................................6-2 Creating a Project ...........................................................................................6-2 Inserting Stations ............................................................................................6-4 Inserting an S7/M7 Program...........................................................................6-5 Editing a Project .............................................................................................6-7 Checking Projects for Software Packages Used............................................6-8 Managing Multilingual Texts ...........................................................................6-9 Managing Multilingual Texts ...........................................................................6-9 Types of Multilingual Texts ...........................................................................6-11 Structure of the Export File...........................................................................6-12 Managing User Texts Whose Language Font is Not Installed .....................6-13 Optimizing the Source for Translation ..........................................................6-14 Optimizing the Translation Process..............................................................6-15 Programming with STEP 7 V5.3 A5E00261405-01
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.