1 S Preface Contents Introducing the Product and Installing the Software 1. Installation 2. Simatic Working Out the Automation Concept 3. Basics of Designing a Program Structure 4. Startup and Operation 5. Programming with STEP 7. Setting Up and Editing the Project 6. Editing Projects with Different Versions of STEP 7 7. Manual Defining Symbols 8. Creating Blocks and Libraries 9. Creating Logic Blocks 10. Creating Data Blocks 11. Parameter Assignment for Data Blocks 12. Creating STL Source Files 13. Displaying Reference Data 14. Checking Block Consistency and Time Stamps as a Block Property 15. Configuring Messages 16. Controlling and Monitoring Variables 17. Establishing an Online Connection and Making CPU Settings 18. Downloading and Uploading 19. Testing with the Variable Table 20.
2 Testing Using Program Status 21. This manual is part of the documentation Testing using the Simulation Program package with the order number: (Optional Package) 22. 6ES7810-4CA08-8BW0. Diagnostics 23. Printing and Archiving 24. Working with M7 Programmable Control Systems 25. Tips and Tricks 26. Edition 03/2006 Appendix A. A5E00706944-01. Index Safety Guidelines This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring to property damage only have no safety alert symbol. The notices shown below are graded according to the degree of danger. Danger ! indicates that death or severe personal injury will result if proper precautions are not taken.
3 Warning ! indicates that death or severe personal injury may result if proper precautions are not taken. Caution ! with a safety alert symbol indicates that minor personal injury can result if proper precautions are not taken. Caution without a safety alert symbol indicates that property damage can result if proper precautions are not taken. Notice indicates that an unintended result or situation can occur if the corresponding notice is not taken into account. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage. Qualified Personnel The device/system may only be set up and used in conjunction with this documentation.
4 Commissioning and operation of a device/system may only be performed by qualified personnel. Within the context of the safety notices in this documentation qualified persons are defined as persons who are authorized to commission, ground and label devices, systems and circuits in accordance with established safety practices and standards. Prescribed Usage Note the following: Warning ! This device and its components may only be used for the applications described in the catalog or the technical description, and only in connection with devices or components from other manufacturers which have been approved or recommended by siemens . Correct, reliable operation of the product requires proper transport, storage, positioning and assembly as well as careful operation and maintenance.
5 Trademarks All names identified by are registered trademarks of the siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner. Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions. siemens AG. A5E00706944-01 Copyright siemens AG 2006. Automation and Drives 03/2006 Technical data subject to change Postfach 4848. 90437 N RNBERG. GERMANY. Preface Purpose This manual provides a complete overview of Programming with STEP 7.
6 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 , 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, MS Windows XP Professional or MS Windows Server 2003 operating system.
7 Scope of the Manual This manual is valid for release of the STEP 7 Programming software package. You can find the latest information on the service packs: in the " " 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. A5E00706944-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 Order Number STEP 7 Basic Information with Basic information for technical 6ES7810-4CA08-8BW0. Working with STEP 7, personnel describing the methods Getting Started Manual of implementing control tasks with STEP 7 and the S7-300/400.
8 Programming with STEP 7. programmable controllers. Configuring Hardware and Communication Connections, STEP 7. From S5 to S7, Converter Manual STEP 7 Reference with Provides reference information 6ES7810-4CA08-8BW1. Ladder Logic (LAD) / Function Block and describes the Programming Diagram (FDB) / Statement List (STL) languages LAD, FBD and STL, for S7-300/400 manuals and standard and system function extending the scope of the Standard and System Function STEP 7 basic information. for S7-300/400. Volume 1 and Volume 2. Online Helps Purpose Order Number Help on STEP 7 Basic information on Part of the STEP 7. Programming and configuring Standard software. hardware with STEP 7 in the form of an online help. Reference helps on AWL/KOP/FUP Context-sensitive reference Part of the STEP 7.
9 Reference help on SFBs/SFCs information. Standard software. Reference help on Organization Blocks Programming with STEP 7. iv A5E00706944-01. Preface Further Support If you have any technical questions, please get in touch with your siemens representative or responsible agent. You will find your contact person at: You will find a guide to the technical documentation offered for the individual Simatic Products and Systems here at: The online catalog and order system is found under: Training Centers siemens offers a number of training courses to familiarize you with the Simatic . 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: Technical Support You can reach the Technical Support for all A&D products Via the Web formula for the Support Request Phone: + 49 180 5050 222.
10 Fax: + 49 180 5050 223. Additional information about our Technical Support can be found on the Internet pages Service & Support on the Internet In addition to our documentation, we offer our Know-how online on the internet at: 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. A5E00706944-01 v Preface Programming with STEP 7. vi A5E00706944-01. Contents 1 Introducing the Product and Installing the Software 1-1.