44825068-TIA-Portal-Step-7-Basic-V10-5-SP2

1573
02/2010 00002013 STEP 7 V10.5 SP2 Readme 1 Installation 2 First steps 3 Introduction to the TIA Portal 4 Editing projects 5 Configuring devices and networks 6 Programming a PLC 7 Visualize processes 8 Using online and diagnostics functions 9 Source documents 10

Transcript of 44825068-TIA-Portal-Step-7-Basic-V10-5-SP2

  • 02/201000002013

    STEP 7 V10.5 SP2

    Readme 1Installation 2First steps 3Introduction to the TIA Portal 4Editing projects 5Configuring devices andnetworks 6Programming a PLC 7Visualize processes 8Using online and diagnosticsfunctions 9Source documents 10

  • Safety GuidelinesThis manual contains notices you have to observe in order to ensure your personal safety, as well as to preventdamage to property. The notices referring to your personal safety are highlighted in the manual by a safety alertsymbol, notices referring only to property damage have no safety alert symbol. These notices shown below aregraded according to the degree of danger.Dangerindicates that death or severe personal injury will result if proper precautions are not taken.Warningindicates that death or severe personal injury may result if proper precautions are not taken.Cautionwith a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken.Cautionwithout a safety alert symbol, indicates that property damage can result if proper precautions are not taken.Noticeindicates that an unintended result or situation can occur if the corresponding information is not taken intoaccount.If more than one degree of danger is present, the warning notice representing the highest degree of danger willbe used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating toproperty damage.

    Qualified PersonnelThe device/system may only be set up and used in conjunction with this documentation. Commissioning andoperation of a device/system may only be performed by qualified personnel. Within the context of the safetynotes in this documentation qualified persons are defined as persons who are authorized to commission, groundand label devices, systems and circuits in accordance with established safety practices and standards.

    Prescribed UsageNote the following:WarningThis device may only be used for the applications described in the catalog or the technical description and onlyin connection with devices or components from other manufacturers which have been approved or recommendedby Siemens. Correct, reliable operation of the product requires proper transport, storage, positioning andassembly as well as careful operation and maintenance.

    TrademarksAll names identified by are registered trademarks of the Siemens AG. The remaining trademarks in thispublication may be trademarks whose use by third parties for their own purposes could violate the rights of theowner.

    Siemens AGAutomation and DrivesPostfach 48 4890437 NRNBERGGERMANY

    Order No.: 00002013Edition 02/2010

    Copyright Siemens AG .Technical data subject tochange

  • This document was created with the "My Documentation Manager" system.

    Created by Karl-Heinz Busch on 11.02.2010.

    The "My Documentation Manager" system can be found at http://www.automation.siemens.com/MDM

    Please read the following legal notice:

    This document has been compiled by the user with the help of the free "My Documentation Manager" systemand is a free excerpt from the documentation and/or the documentation created and provided by Siemens forthis product. SIEMENS AG assumes no liability for the contents of the linked Web sites.

    A list of the documentation used for this purpose can be found in the attachment. This documentation can befound on the Siemens website at: http://support.automation.siemens.com.

    The user bears sole responsibility for ensuring that the contents are up to date by regularly checking the relevantdocumentation which can be found at http://support.automation.siemens.com.

    The user shall bear all responsibility and risk for compiling this document. In this respect, Siemens disclaims allliability for the document compiled by the user.

    The document shall only be used for the user's own internal purposes and, unless explicitly permitted by theSupplementary Terms of Use for "My Documentation Manager", shall not be passed on to third parties.

    The use of this document is subject to the Additional Terms of Use for "My Documentation Manager" availableat: https://www.automation.siemens.com/mdm/ExtendedAGB.

  • Table of contents1 Readme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

    1.1 General notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131.1.1 General notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131.1.2 Notes on the installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151.1.3 Using the sample project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171.1.4 Displaying communications interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171.2 Readme STEP 7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181.2.1 Notes on use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181.2.2 Configuring devices and networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191.2.3 Programming a PLC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211.3 Readme WinCC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 521.3.1 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 521.3.2 Notes on use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 531.3.3 Migration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 541.3.4 Engineering System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 551.3.5 Runtime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 601.3.6 HMI devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61

    2 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 632.1 System requirements for installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 632.1.1 Notes on the system requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 632.1.2 System requirements STEP 7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 632.2 Licenses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 642.3 Starting installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 642.4 Starting to uninstall . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66

    3 First steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 693.1 Basic functions of the Totally Integrated Automation Portal . . . . . . . . . . . . . . . . . . . . . . . . . . 693.1.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 693.1.2 Creating a project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 783.1.3 Configuring hardware and networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 793.1.4 Programming the PLC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 883.1.5 Configuring technology functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 953.1.6 Configuring visualization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 983.1.7 Loading project data to the devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1033.1.8 Using online functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104

    STEP 7 V10.5 SP202/2010, 00002013

    5

  • 4 Introduction to the TIA Portal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1114.1 User interface and operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1114.1.1 Special features specific to the operating system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1114.1.2 Starting, setting and exiting the TIA Portal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1134.1.3 Layout of the user interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1164.1.4 Adapting the user interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1294.1.5 Keyboard shortcuts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1324.2 Help on the information system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1364.2.1 General remarks on the information system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1364.2.2 Using the Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1394.2.3 Disabling the display of tooltip cascades . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1414.2.4 Safety Guidelines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142

    5 Editing projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1455.1 The basics of projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1455.2 Creating a new project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1455.3 Opening projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1465.4 Saving projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1465.5 Closing projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1475.6 Deleting projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1475.7 Comparing project data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1485.7.1 Overview of the comparison editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1485.7.2 Comparing online-offline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1505.7.3 Using the filter for comparison results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1515.7.4 Running a detailed comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1515.7.5 Updating comparison results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1525.7.6 Specifying actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1525.7.7 Synchronizing comparison actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1535.8 Compiling project data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1535.8.1 General information on compiling project data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1535.8.2 Compiling project data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1545.9 Loading project data on the device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1555.9.1 General information on loading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1555.9.2 Downloading project data from the project tree to the device . . . . . . . . . . . . . . . . . . . . . . . . 1555.9.3 Loading project data to an accessible device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1575.10 Printing project contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1585.10.1 Documentation settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1585.10.2 Creating a print preview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1585.10.3 Printing project data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1595.11 Migrating projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1605.11.1 Migrating projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1605.11.2 Displaying the project history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1605.11.3 Displaying the log file of a migration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161

    Table of contents

    6STEP 7 V10.5 SP202/2010, 00002013

  • 5.12 Finding and replacing in projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1615.12.1 Information on the search function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1615.12.2 Search and replace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1625.13 Working with memory cards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1635.13.1 Basics about memory cards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1635.13.2 Adding a user-defined card reader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1645.13.3 Accessing memory cards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1655.13.4 Selecting the card type of a memory card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1655.13.5 Displaying properties of memory cards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1665.14 Working with text lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1675.14.1 Text lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1675.14.2 Creating user-defined text lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1685.14.3 Editing user-defined text lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1695.14.4 Editing system-defined text lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1695.15 Working with multi-language projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1705.15.1 Project text basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1705.15.2 Select project languages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1725.15.3 Setting the editing language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1725.15.4 Translating texts directly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1735.15.5 Translating texts using reference texts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1735.16 Working with libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1745.16.1 Library basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1745.16.2 "Libraries" task card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1755.16.3 Using the elements and parts view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1775.16.4 Working with the project library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1785.16.5 Working with global libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1825.17 Protecting project data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1895.17.1 Protection concept for project data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1895.18 Using cross-references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1905.18.1 Using cross-references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190

    6 Configuring devices and networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1916.1 Hardware and network editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1916.1.1 Overview of hardware and network editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1916.1.2 Network view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1926.1.3 Device view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1946.1.4 Printing hardware and network configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1966.1.5 Changing the print options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1976.1.6 Inspector window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1976.1.7 Hardware catalog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1986.1.8 Information on hardware components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2006.1.9 Enabling product support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2016.1.10 Keyboard action in the hardware and network editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2016.2 Configuring devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2026.2.1 Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202

    Table of contents

    STEP 7 V10.5 SP202/2010, 00002013

    7

  • 6.2.2 Configuring individual devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2106.3 Networking devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2206.3.1 Communication and networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2206.3.2 Networking devices in the network view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2216.3.3 Tabular network overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2236.3.4 Networking devices in the device view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2246.3.5 Checking or changing network parameters and interface parameters . . . . . . . . . . . . . . . . . 2256.3.6 Changing networkings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2266.3.7 Copying, cutting or deleting subnets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2266.3.8 Configuring Industrial Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2276.3.9 Open User Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2306.3.10 HMI connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2396.4 Configuring operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2476.4.1 Selecting a CPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2476.4.2 Changing properties of the modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2486.4.3 CPU properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2506.4.4 Addressing modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2566.4.5 Time-of-day functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2606.4.6 High-speed counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2616.4.7 Point-to-point communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2666.4.8 Using clock memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2746.4.9 Setting options for the level of protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2756.4.10 Loading a configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2766.5 Diagnosing hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2786.5.1 Overview of hardware diagnostics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2786.5.2 Showing non-editable and current values of configurable module properties . . . . . . . . . . . . 2846.5.3 Showing the current values of dynamic modules properties . . . . . . . . . . . . . . . . . . . . . . . . . 2866.5.4 Checking a module for defects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2896.5.5 Changing the properties of a module or the programming device / PC . . . . . . . . . . . . . . . . 2936.5.6 Diagnostics in STOP mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2966.6 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2986.6.1 Creating an unspecified CPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2986.6.2 Open User Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299

    7 Programming a PLC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3117.1 Functional description of S7-1200 CPUs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3117.1.1 Operating modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3117.1.2 Memory areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3177.1.3 I/O data area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3227.1.4 Basics of program execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3237.2 Creating a user program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3347.2.1 Programming basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3347.2.2 Declaring PLC tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3947.2.3 Creating and managing blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4067.2.4 Programming blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4217.2.5 Comparing blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 521

    Table of contents

    8STEP 7 V10.5 SP202/2010, 00002013

  • 7.2.6 Compiling blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5257.2.7 Downloading blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5287.2.8 Protecting blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5367.3 Displaying program information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5387.3.1 Overview of available program information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5387.3.2 Displaying an assignment list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5397.3.3 Displaying the call structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5467.3.4 Displaying the dependency structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5527.3.5 Displaying CPU resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5577.4 Displaying cross-references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5617.4.1 General information about cross references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5617.4.2 Structure of the cross-reference list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5617.4.3 Displaying the cross-reference list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5637.4.4 Displaying cross-references in the Inspector window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5647.5 Testing the user program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5657.5.1 Basics of testing the user program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5657.5.2 Testing with program status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5657.5.3 Testing with the watch table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5707.6 Programming examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6027.6.1 LAD programming examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6027.6.2 FBD programming examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6127.7 Using technology objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6237.7.1 Using Motion Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6237.7.2 Using PID Compact . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6497.8 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6677.8.1 Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6677.8.2 Extended instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 935

    8 Visualize processes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10178.1 Migration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10178.1.1 Migration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10178.1.2 Migration basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10178.1.3 Object support during migration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10188.1.4 Migrating projects from WinCC flexible 2008 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10218.1.5 Migration of data types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10238.2 Working with screens . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10258.2.1 Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10258.2.2 Working with objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10428.2.3 Working with text lists and graphics lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10818.2.4 Dynamizing screens . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10978.2.5 Working with function keys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11068.2.6 Working with layers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11178.2.7 Working with libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11248.2.8 Display and operating objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11368.2.9 Configuring screen navigation for Basic Panels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1161

    Table of contents

    STEP 7 V10.5 SP202/2010, 00002013

    9

  • 8.3 Working with tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11638.3.1 Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11638.3.2 Working with tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11678.3.3 Working with arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11848.3.4 Working with cycles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11888.3.5 Displaying tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11898.4 Working with alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11918.4.1 Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11918.4.2 Working with alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12018.4.3 Operating alarms in Runtime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12258.4.4 Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12318.5 Working with recipes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12678.5.1 Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12678.5.2 Elements and basic settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12738.5.3 Displaying and editing recipes in Runtime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12768.5.4 Configuring recipes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12798.5.5 Using recipes in Runtime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12898.6 Working with the user administration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12958.6.1 Field of application of the user administration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12958.6.2 Form of the user administration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12968.6.3 Elements and basic settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12988.6.4 Setting up the user administration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13028.6.5 Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13208.6.6 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13218.7 Working with system functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13308.7.1 Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13308.7.2 Working with function lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13328.7.3 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13388.7.4 Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13418.8 Working with the Scheduler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13968.8.1 Field of application of the Scheduler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13968.8.2 Working with tasks and triggers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13968.8.3 Elements and basic settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13978.8.4 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14018.9 Working with connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14028.9.1 Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14028.9.2 Working with connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14048.9.3 User data area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14118.9.4 Commissioning components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14328.10 Importing and exporting project data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14338.10.1 Importing and exporting project data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14338.10.2 Importing and exporting recipes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14348.11 Compiling and loading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14388.11.1 Compiling and loading projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14388.11.2 Simulating projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1446

    Table of contents

    10STEP 7 V10.5 SP202/2010, 00002013

  • 8.11.3 Servicing the HMI device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14528.11.4 Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14558.12 Operation in Runtime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14578.12.1 Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14578.12.2 Commissioning projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14608.12.3 Languages in runtime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14658.12.4 Operating projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14698.13 Performance features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15238.13.1 Engineering system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15238.13.2 Basic Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15238.14 Displaying cross-references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15268.14.1 General information about cross references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15268.14.2 Displaying the cross-reference list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15268.14.3 Structure of the cross-reference list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15278.14.4 Displaying cross-references in the Inspector window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1528

    9 Using online and diagnostics functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15319.1 General information about online mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15319.2 Online access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15329.3 Displaying accessible devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15339.4 Opening the properties of an interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15349.5 Setting parameters for the Ethernet interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15349.5.1 Setting parameters for the Industrial Ethernet interface . . . . . . . . . . . . . . . . . . . . . . . . . . . 15349.5.2 Displaying operating system parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15359.5.3 Connecting the PG/PC interface to a subnet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15369.5.4 Setting parameters for the Ethernet interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15369.5.5 Assigning a temporary IP address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15379.5.6 Managing temporary IP addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15389.6 Establishing and canceling an online connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1538

    10 Source documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1541Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1543

    TabellenTable 7-1 Sorted by symbolic name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329Table 7-2 Sorted by numerical name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331Table 7-3 Bit operands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 578Table 7-4 Byte operands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 579Table 7-5 Word operands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 579Table 7-6 Double word operands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 579Table 7-7 Bit operands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 580Table 7-8 Byte operands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 580Table 7-9 Word operands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 580

    Table of contents

    STEP 7 V10.5 SP202/2010, 00002013

    11

  • Table 7-10 Double word operands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 581Table 8-1 The following table shows which symbols display the assignment of the function keys: . . . . 1107Table 8-2 10000 - Printer alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1234Table 8-3 20000 - Global script alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1234Table 8-4 30000 - Alarms for IFwSetValue: SetValue() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1235Table 8-5 40000 - Linear scaling alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1235Table 8-6 50000 - Data server alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1235Table 8-7 60000 - Win32 function alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1235Table 8-8 70000 - Win32 function alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1236Table 8-9 80000 - Archive alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1239Table 8-10 90000 - FDA alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1242Table 8-11 110000 - Offline function alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1243Table 8-12 120000 - Trend alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1243Table 8-13 130000 - System information alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1243Table 8-14 140000 - Connection alarms: chns7: Connection + device . . . . . . . . . . . . . . . . . . . . . . . . . . 1244Table 8-15 150000 - Connection alarms: chnAS511: Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1246Table 8-16 160000 - Connection alarms: IVar (WinLC) / OPC: Connection . . . . . . . . . . . . . . . . . . . . . . . 1247Table 8-17 170000 - S7 dialog alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1247Table 8-18 180000 - Misc/common alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1248Table 8-19 190000 - Tag alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1248Table 8-20 190100 - Area pointer alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1250Table 8-21 200000 - PLC coordination alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1250Table 8-22 200100 - PLC user version alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1251Table 8-23 210000 - PLC job alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1251Table 8-24 220000 - WinCC channel adapter alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1252Table 8-25 230000 - View alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1252Table 8-26 240000 - Authorization alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1255Table 8-27 250000 - S7 Force alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1255Table 8-28 260000 - Password alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1255Table 8-29 270000 - System events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1258Table 8-30 280000 - DPHMI alarms Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1258Table 8-31 290000 - Recipe system events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1259Table 8-32 300000 - Alarm_S alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1264Table 8-33 310000 - Report system events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1264Table 8-34 320000 - Alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1264Table 8-35 330000 - GUI alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1266Table 8-36 350000 - GUI alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1266

    Table of contents

    12STEP 7 V10.5 SP202/2010, 00002013

  • Readme 11.1 General notes

    1.1.1 General notesThe information in this readme file supersede statements made in other documents.Read the following notes carefully because they include important information for installationand use. Read these notes prior to installation.

    Security settingsTo allow the software packages to run in the TIA Portal, modifications will be made to thesecurity settings of your system during installation: Port 4410 for TCP will be entered as an exception in the Windows firewall. The following subfolder will be shared for all users in the installation folder: Portal V10.5\Data

    Installing new .Net versions or .Net service packs Close the TIA portal before installing a new .Net version or a new .Net service pack on your

    programming device/PC. Restart the TIA portal only after successful installation of the new .Net version or the new .Net service

    pack.

    Error when repairing an existing installation of STEP 7 Basic V10.5If WinCC flexible 2008 SP1 and STEP 7 Basic V10.5 are installed and you start a STEP 7 repairinstallation using the setup program on the DVD, an error occurs.To repair the installation, copy the content of the STEP 7 Basic V10.5 DVD to your hard diskand restart the repair from here using the setup program.

    Notes on handling If a project in the list of projects last used is located on a network drive that is not connected, you may

    experience delays when opening the "Project" menu.

    1 Readme1.1 General notes1.1.1 General notes

    STEP 7 V10.5 SP202/2010, 00002013

    13

  • When you insert a CPU, you may need to wait for some time if the project editor is open at the sametime. This generally takes longer when you insert the first CPU in a newly created project. To be ableto continue working more quickly, you should close the project editor before inserting a CPU.

    The message "Application is not responding" may appear in VISTA with functions that take a longtime to run (loading the CPU for example). If this occurs, wait until the function has correctly finished.

    If you have installed a Microsoft mouse with IntelliPoint, you may find that it superimposes componentsover the buttons of the title bar. If this is the case, uninstall the IntelliPoint software from Microsoft.

    Enabling the "Virtual Desktop" options with NVIDIA graphics cards can cause problems. In this case,disable the "nView virtual desktop manager" of your NVIDIA graphics driver.

    Using the TIA Portal via a remote desktopIn principle, it is possible to use the TIA Portal via a remote desktop connection. Duringconfiguration, you should, however, avoid disconnecting the connection to the desktop client.In rare cases, this can lead to the software user interface being blocked.If you experience this blockage, follow these steps on the desktop client.1. Open the Windows Task-Manager and close the "rdpclip.exe" process.2. Type in "rdpclip.exe" in the command prompt to restart the process.Note that the current content of the clipboard will be lost. You can, however, then continueconfiguration as usual. To be on the safe side, you should restart the TIA Portal at the nextopportunity.

    Opening the TIA portal multiple timesIf you are running several applications of the TIA portal and they continually become active inturn, you can briefly switch to another application or use the key combination tosolve the problem.

    Note on SD cardsThe SD cards have been formatted and initialized by Siemens for use with S7-1200 modules.This format must not be overwritten otherwise the card will no longer be accepted by theS7-1200 modules. Formatting with Windows tools is therefore not permitted.Behavior in case of open force jobsNote that active force jobs will be retained even after you have loaded a new project to the SDcard. This means you should first delete all active force jobs before you remove an SD cardfrom the CPU and before you overwrite the card in the PC with a new project.

    Issues when shutting down Windows XP or when activating a screen saverWindows XP uses the ACPI (Advanced Configuration and Power Interface) to shut down thecomputer or to go to standby mode. It can happen that while the system is processing a newlyinstalled tool that the screen saver is not activated by the ACPI or that after exiting the tool thatWindows XP cannot be shut down properly.If the TIA Portal is running, the Standby function of the computer is deactivated. To put thecomputer into Standby, you have to first exit the TIA Portal.

    Readme1.1 General notes

    14STEP 7 V10.5 SP202/2010, 00002013

  • The following description shows several optional settings in the "Power Options Properties"you can use to set the Standby mode of the computer with the function "Hibernate":1. In Windows XP, open the "Power Options Properties" by pointing at "Start > Settings > Control Panel

    > Power Options" and select the tab "Hibernate". Select the "Enable hibernation" check box.2. Switch to the "Advanced" tab. In the dialog field "Power buttons" click the drop-down list box under

    "When I close the lid of my portable computer:" and select the option "Hibernate".3. Then click the drop-down list box under"When I press the power button on my computer:" and select

    the option "Shut down".4. Click "Apply" and confirm the settings with "OK".5. Afterwards, restart the PC.If you experience problems shutting down the computer, make sure that the TIA Portal hasclosed completely.1. In the shortcut menu, select the Task Manager from the shortcut menu on the Taskbar.2. If you see the process "Siemens.Automation.ObjectFrame.FileStorage.Server.exe" in the

    "Processes" tab, wait until this process has closed.3. Then you can shut down the computer.

    FAQs on the TIA PortalFAQs on the TIA Portal are available at http://support.automation.siemens.com.

    1.1.2 Notes on the installationContents

    Information that could not be included in the online help.

    Requirements for installation of STEP 7 Basic V10.5 SP2The following conditions have to be met in addition to the requirements listed in the installationinstructions: The Internet download version of SP2 for STEP 7 Basic V10.5 requires STEP 7 Basic V10.5 for

    installation. The trial version of SP2 is not compatible with STEP 7 Basic V10.5. You cannot install it on a computer

    that already has a version of STEP 7 Basic V10.5 installed.

    Installation with "start.exe /unattendedmode" If you want to make an identical installation on several computers, you can use the setupprogram to save all the settings in an INI file.1. Open the Windows command prompt with "Start > Run".2. If you want to create an INI file, start Setup with "start.exe/recordmode". Select the settings you want

    to use for the installation in the dialogs. Setup closes after the licensing dialog. No installation is

    1.1.2 Notes on the installation

    Readme1.1 General notes

    STEP 7 V10.5 SP202/2010, 00002013

    15

  • performed when Setup closes. All of the settings are stored in the "SIA_Auto.ini" file that is saved inthe "My Documents" folder.

    3. If you want to perform an installation based on an INI file, start Setup with "start.exe/unattendedmode".The program will look for the "SIA_Auto.ini" file in "My Documents" or "InstData\Resources" folders.When an INI file is found, the installation is performed with the settings it contains.A message appears if no INI file is found.

    Integrating installation with "start.exe /unattendedmode" in a batchTo start installation with "start.exe/unattendedmode" in a batch, you can change the parametersof the "SIA_Auto.ini" file as needed. SuppressReboot

    Rebooting is suppressed at the end of the installation process, regardless whether or not it isnecessary.

    SuppressLicenseDialogThe dialog for the license request is suppressed.

    SuppressErrorDialogError messages are suppressed.

    SuppressDoneDialogThe finish dialog at the end of Setup is suppressed.

    Installation of STEP 7 Basic V10.5 under Windows XP with Turkish Regional and Language OptionsInstallation of STEP 7 Basic V10.5 under Windows XP may be cancelled, if the regional andlanguage options have been set to Turkish. In this case change the regional and languageoptions from Turkish to English or German.1. Open the Control Panel under Windows with one of the following commands:

    "Start > Control Panel" (Start menu under Windows XP) "Start > Settings > Control Panel" (classic start menu)

    2. Open the "Regional and Language Options".3. Select the "Regional Options" tab.4. Under "Standards and formats" select "German" or "English" in the drop-down list.5. Click "Apply" and confirm with OK.6. Restart your PC for the setting to become active. Now you can continue with the installation of STEP 7

    Basic V10.5.7. After installation, you can revert the regional and language settings (as described in steps 1 to 4) to

    Turkish.

    RemovingIn rare cases removal of the program can cause the computer to freeze, even when a full versionof SQL Server 2005 is installed. In this occurs, disconnect the computer from the network tocontinue the removal process.

    Readme1.1 General notes

    16STEP 7 V10.5 SP202/2010, 00002013

  • 1.1.3 Using the sample projectContents

    Information that could not be included in the online help.

    IntroductionOn the installation data medium, there is a sample project that soon gets you working withprojects in the TIA Portal. You can edit the sample project to suit your purposes.

    Procedure To use the sample project, follow these steps:1. Insert the installation medium in the relevant drive.2. Navigate to the folder "\Documents\Examples\DEMO Project S7-1200".3. Copy the "DEMO Project S7-1200" folder to a local drive.4. Open the TIA Portal.5. Select the "Open" command in the "Project" menu.

    The "Open project" dialog opens and includes the list of most recently used projects.6. Click the "Browse" button and navigate to the "DEMO Project S7-1200" folder on the local drive.7. Select the "DEMO Project S7-1200.ap10" file.8. Confirm your selection with "Open".

    The sample project opens and you can edit it.You can copy the sample project from the installation data medium again whenever you wantto.

    1.1.4 Displaying communications interfacesContents

    Information that could not be included in the online help.

    IntroductionCommunications interfaces are displayed in the TIA Portal only if they already existed on yourcomputer when you installed the TIA Portal. If you have installed the TIA Portal on yourcomputer and then install a new CP (communications processor), this CP is detected by theoperating system and displayed in the Windows Device Manager but it is not displayed in theproject tree of the TIA Portal under "Online access".

    1.1.3 Using the sample project1.1.4 Displaying communications interfaces

    Readme1.1 General notes

    STEP 7 V10.5 SP202/2010, 00002013

    17

  • Procedure To display communications processors installed later in the TIA Portal, follow these steps:1. Install/update the relevant drivers if the Windows "Hardware Update Wizard" opens after you insert

    the device.2. Close the TIA Portal.3. Select "Start > Settings> Control Panel> Set PG/PC Interface" and close the application with OK.4. Restart the TIA Portal.

    ResultThe hardware now exists and can be used and the communications interface is displayed under"Online access".

    1.2 Readme STEP 7

    1.2.1 Notes on useContents

    Information that could not be included in the online help.

    Online operation Simultaneous online operation of STEP 7 and STEP 7 Basic has not been approved.

    Number of the time error interrupt OB Time error interrupt OB280 is mentioned in a few topics of the online help. The correct numberof the time error interrupt OB is 80.

    Configuring and assigning module parameters You will find an overview of the modules you can configure and assign with STEP 7 Basic V10.5at http://support.automation.siemens.com.

    1.2 Readme STEP 71.2.1 Notes on use

    Readme1.2 Readme STEP 7

    18STEP 7 V10.5 SP202/2010, 00002013

  • 1.2.2 Configuring devices and networks

    1.2.2.1 Setting flow control for CM 1241

    ContentsInformation that could not be included in the online help.

    Values for XON and XOFF If flow control is enabled for the CM 1241 (RS-232) communications module and set to "XON/XOFF", you can enter identical values for the XON and XOFF characters. From a technicalpoint of view, however, this configuration is impractical. You should therefore use differentvalues for XON and XOFF.

    1.2.2.2 Notes on Open User Communication

    Unique connection ID for Open User CommunicationYou will have to enter a unique value for the connection ID in the connection settings of theOpen User Communication in case you know the connection partner. The uniqueness of theconnection ID will not be checked by the connection settings and there will be no default settingmade for the connection ID when you create a new connection.

    1.2.2.3 Notes on online and diagnostics

    ContentsInformation that could not be included in the online help.

    Setting the language of the diagnostic texts The language for the diagnostics texts is the same as the user interface language that was setwhen the project was created. If you want diagnostic texts to displayed in another language,go to "Language & Resources > Project languages" in the project tree of your project. Selectthe check box for the additional language. Then compile the devices that are relevant fordiagnostics. The diagnostic texts will now be displayed in the language set for the user interface.

    Displaying event texts during online access after changing the editing language If you click "Online > Accessible devices > Update" and then set a different editing languagein the project tree in "Language & Resources > Project languages" or change the user interfacelanguage in "Options > Settings", no event texts will be displayed for CPUs in "Online > Online& Diagnostics > Diagnostics buffer". Click "Online > Accessible devices > Update" again. Thetexts are then displayed again.

    1.2.2 Configuring devices and networks1.2.2.1 Setting flow control for CM 12411.2.2.2 Notes on Open User Communication1.2.2.3 Notes on online and diagnostics

    Readme1.2 Readme STEP 7

    STEP 7 V10.5 SP202/2010, 00002013

    19

  • Diagnostics data from high-speed counters and pulse generators For high-speed counters and pulse generators that have not been activated, the table with thedevice overview shows the diagnostics icon which means: "No diagnostics data availablebecause the current online configuration data differs from the offline configuration data".

    Opening the online and diagnostics view for inputs/outputs You can call up the "Online & Diagnostics" function context-sensitive with a selected device inthe hardware and network editor using the key combination . You can select either anentire CPU or individual input/output modules in the device overview table and open thecorresponding online and diagnostics view with the key combination . You can alsoopen the online and diagnostics view for the integrated inputs/outputs, if you have selected thecorresponding line for an integrated input/output in the tabular device view of the CPU.

    Language in the Online and Diagnostics view If you start the online and diagnostics view from a device in the list of available nodes, therewill be some rare cases when the events in the online and diagnostics view are not displayedin the language of the user interface. To display the events in the correct language, you willhave to match the editing language to the language of the user interface in the respectiveproject. Restart the TIA Portal.

    Hardware detection followed by online connection When the "Online > Hardware detection" command is performed for an unspecified CPU, theonline configuration is not loaded from the CPU. If you do not load the configuration resultingfrom the hardware detection to the CPU, the device and network views will always show adifference between the offline and online configurations. It will appear there are differentconfigurations in the online and diagnostic views, although the MLFBs are identical in the actualCPU and the offline CPU.

    Assigning an IP address If an IP address is assigned directly to a PLC with "Functions > Assigning an IP address" viathe diagnostics and online function, this IP address will be set permanently and retained evenafter a restart or power failure.

    1.2.2.4 Notes on cycle time

    Violation of cycle monitoring time When the cycle time exceeds the cycle monitoring time for the first time, there is an attempt tostart the time error interrupt OB (OB 80). If there is no time error interrupt OB in the CPU, theCPU will switch to "RUN" mode. The CPU will switch to "STOP" mode if the cycle time exceedsthe cycle monitoring time for a second time in the same cycle.

    1.2.2.4 Notes on cycle time

    Readme1.2 Readme STEP 7

    20STEP 7 V10.5 SP202/2010, 00002013

  • 1.2.2.5 Compiling the hardware of a pulse generator

    ContentsInformation that could not be included in the online help.

    Compiling with a disabled pulse generator If a pulse generator is deactivated and the following error message nevertheless appearsduring compilation of the hardware "Pulse generator as: PTO cannot be selected. Associatedhigh speed counter not correctly configured.", follow these steps:1. Deactivate the high-speed counter.2. Activate the pulse generator and set the operating mode to "PTO".3. Deactivate the pulse generator.4. Recompile the hardware.

    1.2.3 Programming a PLC

    1.2.3.1 General notes on PLC programming

    ContentsInformation that could not be included in the online help.

    Loss of retentive data after deleting online blocks or after downloading to the device If you delete online blocks or download an element of your project to the CPU (for example aprogram block, a data block or the hardware configuration), the next time the CPU changes toRUN mode, it runs cold restart. Apart from deleting the inputs, initializing the outputs anddeleting the non-retentive memory, the retentive memory areas are also deleted.All subsequent changes from STOP to RUN are warm restarts (during which the retentivememory is not deleted).

    Updating the block folder in the list of available nodes Note that the content of the block folder in the list of available nodes is only updated when youclose and open the block folder. To ensure that the latest content is displayed after changingthe online program, close the block folder and open it again.

    Calling blocks as multi-instance You can only call up function blocks as multiple instances if they are included in the librariessupplied with STEP 7 V10.5. You cannot call up any function blocks you have created yourselfas multiple instances.

    1.2.2.5 Compiling the hardware of a pulse generator1.2.3 Programming a PLC1.2.3.1 General notes on PLC programming

    Readme1.2 Readme STEP 7

    STEP 7 V10.5 SP202/2010, 00002013

    21

  • IEC check The "IEC check" option is disabled as default. You cannot link operands of the REAL data type and operands of the DWORD data type in one

    instruction regardless of the "IEC check" setting. You will have to perform an explicit conversion withthe "CONVERT" instruction.

    Global libraries You will find information on global libraries on the product DVD in the directory "\Documents\AdditionalDocuments".

    MODBUS libraryThe instruction "MB_SLAVE" was updated in STEP 7 V10.5 SP2.If you have already used "MB_SLAVE" V1.0 in a project, you will have to manually replace thisversion with the latest version "MB_SLAVE" V1.1" after installation of SP2.To do this, follow these steps:1. Delete "MB_SLAVE" V1.0 from all blocks in the project.2. Delete "MB_SLAVE" V1.0 from the project library.3. Insert "MB_SLAVE" V1.1 in all required locations of use.4. Compile the project.

    Program status of LAD and FBD boxes If LAD/FBD boxes do not have the ENO connected, in certain situations, the status of the boxcannot be displayed, for example with SCALE NORMALIZE MOVE

    Process image of PTO/PWM outputs Do not use PTO/PWM outputs in the process image (for example, for accesses in the userprogram, for online functions or in the HMI). The update rate of the process image is muchslower than the rate of the signal changes. The display in the process image does not reflectthe signal flow.

    Loss of symbolic constants after moving a signal boardAfter moving a signal board to another device, no symbolic constants are created. This affectsthe programming of the blocks because the required constants are not available. Duringcompilation an alarm is generated related to the missing constants. The hardware interruptshave to be deactivated on the signal board and then reactivated so that the symbolic constantscan be recreated.

    Readme1.2 Readme STEP 7

    22STEP 7 V10.5 SP202/2010, 00002013

  • Changing the mnemonic settingsTo avoid error messages when compiling blocks after changing the mnemonic settings, saveyour project, close the project and then reopen it.

    1.2.3.2 LREAL data type

    1.2.3.2 Using LREAL data type

    ContentsInformation that could not be included in the online help.

    Introduction In some instructions you can use the LREAL (64 bit) data type in addition to the REAL (32 bit)data type to represent floating-point numbers. The LREAL data type is only available in blocksfor which you have set purely symbolic addressing.

    Use in instructionsThe following table shows the instructions available for the LREAL data type:

    1.2.3.2 LREAL data type1.2.3.2 Using LREAL data type

    Readme1.2 Readme STEP 7

    STEP 7 V10.5 SP202/2010, 00002013

    23

  • Operation Mnemonics DescriptionComparator CMP == Query if the first comparison value is

    equal to the second comparison value.CMP Query if the first comparison value is

    unequal to the second comparisonvalue.

    CMP >= Query if the first comparison value isgreater than or equal to the secondcomparison value.

    CMP Query if the first comparison value isgreater than the second comparisonvalue.

    CMP < Query if the first comparison value is lessthan the second comparison value.

    -|OK|- Query if the value of a tag is a validfloating-point number.

    -|NOT_OK|- Query if the value of a tag is an invalidfloating-point number.

    Moving MOVE Copies the content of input IN to theoutput OUT when the signal state is "1"at the EN enable input.

    MOVE_BLK Copies the contents of the memory area(source area) at the input IN to thememory area (destination area) at theoutput OUT. Use the COUNT parameterto specify the number of elements youwant to copy to the destination area.

    UMOVE_BLK Copies the contents of the memory area(source area) at the input IN to thememory area (destination area) at theoutput OUT without interruption. Use theCOUNT parameter to specify thenumber of elements you want to copy tothe destination area.

    FILL_BLK Fills a memory area (destination area) atthe output OUT with the value of input IN.The destination area is filled beginningwith the address specified at the OUToutput. The number of repeated copyoperations is specified with the COUNTparameter.

    Readme1.2 Readme STEP 7

    24STEP 7 V10.5 SP202/2010, 00002013

  • Operation Mnemonics DescriptionUFILL_BLK Fills a memory area (destination area) at

    the output OUT with the value of input INwithout interruption. The destinationarea is filled beginning with the addressspecified at the OUT output. The numberof repeated copy operations is specifiedwith the COUNT parameter.

    Readme1.2 Readme STEP 7

    STEP 7 V10.5 SP202/2010, 00002013

    25

  • Operation Mnemonics DescriptionMathematic functions ADD Adds the value at the IN1 input to the

    value at the IN2 input and outputs thesum at the OUT output (OUT = IN1+IN2).

    SUB Subtracts the value at the IN2 input fromthe value at the IN1 input and outputs thedifference at the OUT output (OUT =IN1-IN2).

    MUL Multiplies the value at the IN1 input bythe value at the IN2 input and outputs theproduct at the OUT output (OUT =IN1*IN2).

    DIV Divides the value at the IN1 input by thevalue at the IN2 input and outputs thequotient at the OUT output (OUT = IN1/IN2).

    NEG Changes the sign of the value at the INinput and outputs the result at the OUToutput.

    ABS Forms the absolute value of a number.SQR Forms the square of a floating-point

    number.SQRT Forms the square root of a floating-point

    number.LN Forms the natural logarithm of a floating-

    point number.EXP Forms the exponential value of a

    floating-point number to base e.SIN Forms the sine value of a floating-point

    number. The floating-point number hererepresents an angle in a radian.

    COS Forms the cosine value of a floating-point number. The floating-point numberhere represents an angle in a radian.

    TAN Forms the tangent value of a floating-point number. The floating-point numberhere represents an angle in a radian.

    ASIN Forms the arcsine value of a floating-point number whose range of definitionis -1

  • Operation Mnemonics DescriptionConverter CONVERT Reads the content of the IN parameter

    and converts it according to the specifieddata types.

    ROUND Rounds the value at the IN input to thenext integer and outputs the result at theOUT output.

    CEIL Rounds the value at the IN input to thenext greater integer and outputs theresult at the OUT output.

    FLOOR Rounds the value at the IN input to thenext smaller integer and outputs theresult at the OUT output.

    TRUNC Selects the integer part of the floating-point number at the IN input and outputsthis without decimal places to the OUToutput.

    1.2.3.2 LREAL

    ContentsInformation that could not be included in the online help.

    Description Tags of the LREAL data type have a length of 64 bits and are used to display floating-pointnumbers. A tag of the LREAL data type consists of the following three components: Sign: The sign is determined by the signal state of bit 63. The bit 63 assumes the value "0" (positive)

    or "1" (negative). 11-bit exponents to base 2: The exponent is increased by a constant (base, +1023), so that it has a

    range of 2047. 52-bit mantissa: Only the fraction part of the mantissa is shown. The integer part of the mantissa is

    not stored, as it is always equal to "1" within the valid value range.The following table lists the properties of an LREAL tag:

    Length (bits) Format Range of values Examples of value input64 Floating-point numbers to

    IEEE 754 standard-1.7976931348623158e+308 to -2.2250738585072014e-3080+2.2250738585072014e-308 to+1.7976931348623158e+308

    1.0e-5

    Floating-point numbers 1.0

    1.2.3.2 LREAL

    Readme1.2 Readme STEP 7

    STEP 7 V10.5 SP202/2010, 00002013

    27

  • The following illustration shows the structure of an LREAL tag:

    See alsoUsing LREAL data type (Page 23)

    1.2.3.3 Reset IEC timer

    1.2.3.3 ---

    ContentsInformation that could not be included in the online help.

    IntroductionIn addition to the instructions described above, you have an instruction in LAD to reset IECtimers.

    Symbol

    --- ( RT ) ---

    Parameter Data type Memory area Description DB D DB of the IEC timer reset

    at RLO = "1".

    DescriptionUse the operation "Reset IEC timer" to reset IEC time to "0".The operation is only executed if the result of logic operation (RLO) at the input of the coil is"1". If current flows to the coil (RLO is "1"), then the parameters of the IEC timer DB are set to"0". If the result of the logic operation at the input of the coil is "0" (no signal flow at the coil),then the parameters will remain unchanged.The operation does not influence the RLO. The RLO at the input of the coil is sent immediatelyto the output of the coil.

    1.2.3.3 Reset IEC timer1.2.3.3 ---

    Readme1.2 Readme STEP 7

    28STEP 7 V10.5 SP202/2010, 00002013

  • PlacementThe operation "Reset IEC timer" can be placed at any location in the network.

    Example

    The IEC timer "TON_Motor1" will be reset, if one of the following conditions is met: The inputs I 0.0 AND I 0.1 are "1". The signal state at input I 0.2 is "0".

    1.2.3.3 ---

    ContentsInformation that could not be included in the online help.

    IntroductionIn addition to the instructions described above, you have an instruction in FBD to reset IECtimers.

    Symbol

    Parameter Data type Memory area Description DB D DB of the IEC timer reset

    at RLO = "1".

    DescriptionUse the operation "Reset IEC timer" to reset IEC time to "0".The operation is only executed if the result of logic operation (RLO) is "1" at the box input. Ifthe box input supplies the signal status "1", then the parameters of the IEC timer DB are set to"0". If the result of logic operation is "0" at the box input, the parameters remain unchanged.

    1.2.3.3 ---

    Readme1.2 Readme STEP 7

    STEP 7 V10.5 SP202/2010, 00002013

    29

  • The operation does not influence the RLO. The RLO at the box input is transferred directly tothe box output.

    PlacementThe operation "Reset IEC timer" can be placed at any location in the logic string.

    Example

    The IEC timer "TON_Motor1" will be reset, if one of the following conditions is met: The inputs I 0.0 AND I 0.1 have signal state "1". The signal state at input I 0.2 is "0".

    1.2.3.4 Read field

    1.2.3.4 Read field

    IntroductionIn addition to the instructions described above, you have an instruction in LAD to read individualcomponents of a field.

    NoteInsert instruction "Read field"You insert the instruction "Read field" by dragging an empty box from the "Favorites" pane andselecting the instruction from the drop-down list of the empty box.

    1.2.3.4 Read field1.2.3.4 Read field

    Readme1.2 Readme STEP 7

    30STEP 7 V10.5 SP202/2010, 00002013

  • Symbol

    Figure1-1

    Parameter Data type Memory area DescriptionEN BOOL I, Q, M, D, L Enable inputENO BOOL I, Q, M, D, L Enable outputINDEX DINT I, Q, M, D, L or constant Index of field

    components that areread out

    MEMBER All elementary datatypes as components ofan ARRAY tag

    I, Q, M, D, L First component of thefield from which will beread

    VALUE All elementary datatypes

    I, Q, M, D, L Tag to which the fieldcomponent is written

    You can select the data type for the instruction from the "DT" drop-down list.

    DescriptionUse the instruction "Read field" to read out a specific component from the field displayed at theMEMBER parameter and transfer its contents to the tag at the VALUE parameter. You specifythe index of the field components to be read at the INDEX parameter. Enter the first componentof the field which is read at the MEMBER parameter.The data type of the field component at the MEMBER parameter and the tags at the VALUEparameter have to match the data type of the instruction "Read field".The processing of the "Read field" instruction can only be started when the signal state at theEN enable input is "1". If no error occurs during execution, the ENO output also has signal state"1".The enable output ENO returns signal state "0" if one of the following conditions applies: The EN input has signal state "0". The field component indicated at the INDEX parameter is not defined in the field entered at MEMBER

    parameter. Errors such as an overflow occur during processing.

    Readme1.2 Readme STEP 7

    STEP 7 V10.5 SP202/2010, 00002013

    31

  • Example

    Figure1-1

    Parameter Tag ValueINDEX a_index 4MEMBER "DB_1".Main_Field[-10] The first component of the field "Main_Field

    [-10..10] of REAL" in data block "DB_1"VALUE a_real The component with index 4 of the field

    "Main_Field[-10..10] of REAL"

    The field component with index 4 is read out from the field "Main_Field[-10...10] of REAL" andwritten to the tag "a_real". The field component to be read is specified by the value at the INDEXparameter.

    1.2.3.4 Read field

    IntroductionIn addition to the instructions described above, you have an instruction in LAD to read individualcomponents of a field.

    NoteInsert instruction "Read field"You insert the instruction "Read field" by dragging an empty box from the "Favorites" pane andselecting the instruction from the drop-down list of the empty box.

    1.2.3.4 Read field

    Readme1.2 Readme STEP 7

    32STEP 7 V10.5 SP202/2010, 00002013

  • Symbol

    Figure1-1

    Parameter Data type Memory area DescriptionEN BOOL I, Q, M, D, L Enable inputENO BOOL I, Q, M, D, L Enable outputINDEX DINT I, Q, M, D, L or constant Index of field

    components that areread out

    MEMBER All elementary datatypes as components ofan ARRAY tag

    I, Q, M, D, L First component of thefield from which will beread

    VALUE All elementary datatypes

    I, Q, M, D, L Tag to which the fieldcomponent is written

    You can select the data type for the instruction from the "DT" drop-down list.

    DescriptionUse the instruction "Read field" to read out a specific component from the field displayed at theMEMBER parameter and transfer its contents to the tag at the VALUE parameter. You specifythe index of the field component to be read at the INDEX parameter. Enter the first componentof the field which is read at the MEMBER parameter.The data type of the field component at the MEMBER parameter and the tags at the VALUEparameter have to match the data type of the instruction "Read field".The processing of the "Read field" instruction can only be started when the signal state at theEN enable input is "1". If no error occurs during execution, the ENO output also has signal state"1".The enable output ENO returns signal state "0" if one of the following conditions applies: The EN input has signal state "0". The field component indicated at the INDEX parameter is not defined in the field entered at MEMBER

    parameter. Errors such as an overflow occur during processing.

    Readme1.2 Readme STEP 7

    STEP 7 V10.5 SP202/2010, 00002013

    33

  • Example

    Figure1-1

    Parameter Tag ValueINDEX a_index 4MEMBER "DB_1".Main_Field[-10] The first component of the field "Main_Field

    [-10..10] of REAL" in data block "DB_1"VALUE a_real The component with index 4 of the field

    "Main_Field[-10..10] of REAL"

    The field component with index 4 is read out from the field "Main_Field[-10...10] of REAL" andwritten to the tag "a_real". The field component to be read is specified by the value at the INDEXparameter.

    1.2.3.5 Write field

    1.2.3.5 Write field

    IntroductionIn addition to the instructions described above, you have an instruction in LAD to write individualfield components of a field.

    NoteInsert instruction "Write field"You insert the instruction "Write field" by dragging an empty box from the "Favorites" pane andselecting the instruction from the drop-down list of the empty box.

    1.2.3.5 Write field1.2.3.5 Write field

    Readme1.2 Readme STEP 7

    34STEP 7 V10.5 SP202/2010, 00002013

  • Symbol

    Figure1-1

    Parameter Data type Memory area DescriptionEN BOOL I, Q, M, D, L Enable inputENO BOOL I, Q, M, D, L Enable outputINDEX DINT I, Q, M, D, L or constant Index of field component

    that is writtenVALUE All elementary data

    typesI, Q, M, D, L or constant Tag whose content is

    copiedMEMBER All elementary data

    types as components ofan ARRAY tag

    I, Q, M, D, L First component of thefield to which you write

    You can select the data type for the operation from the "DT" drop-down list.

    DescriptionUse the instruction "Write field" to transfer the content of the tag at the VALUE parameter to aspecific component of the field at the MEMBER parameter. You specify the index of the fieldcomponent that is described by the value at the INDEX parameter. Enter the first componentof the field to which is written at the MEMBER parameter.The data types of the field component specified at the MEMBER parameter and the tag at theVALUE parameter have to match the data type of the instruction "Write field".The processing of the "Write field" instruction can only be started when the signal state at theEN enable input is "1". If no error occurs during execution, the ENO output also has signal state"1".The enable output ENO returns signal state "0" if one of the following conditions applies: The EN input has signal state "0". The field component indicated at the INDEX parameter is not defined in the field entered at MEMBER

    parameter. Errors such as an overflow occur during processing.

    Readme1.2 Readme STEP 7

    STEP 7 V10.5 SP202/2010, 00002013

    35

  • Example

    Figure1-1

    Parameter Tag ValueINDEX a_index 4VALUE a_real 10.54MEMBER "DB_1".Main_Field[-10] The first component of the field

    "Main_Field[-10..10] of REAL" in data block"DB_1"

    The value "10.54" of the tag "a_real" is written to the field component with index 4 of the field"Main_Field[-10...10] of REAL". The index of the field component to which the content of the"a_real" tag is transferred" is specified by the value at the INDEX parameter.

    1.2.3.5 Write field

    IntroductionIn addition to the instructions described above, you have an instruction in LAD to write individualfield components of a field.

    NoteInsert instruction "Write field"You insert the instruction "Write field" by dragging an empty box from the "Favorites" pane andselecting the instruction from the drop-down list of the empty box.

    1.2.3.5 Write field

    Readme1.2 Readme STEP 7

    36STEP 7 V10.5 SP202/2010, 00002013

  • Symbol

    Figure1-1

    Parameter Data type Memory area DescriptionEN BOOL I, Q, M, D, L Enable inputENO BOOL I, Q, M, D, L Enable outputINDEX DINT I, Q, M, D, L or constant Index of field component

    that is writtenVALUE All elementary data

    typesI, Q, M, D, L or constant Tag whose content is

    copiedMEMBER All elementary data

    types as components ofan ARRAY tag

    I, Q, M, D, L First component of thefield to which you write

    You can select the data type for the operation from the "DT" drop-down list.

    DescriptionUse the instruction "Write field" to transfer the content of the tag at the VALUE parameter to aspecific component of the field at the MEMBER parameter. You specify the index of the fieldcomponent that is described by the value at the INDEX parameter. Enter the first componentof the field to which is written at the MEMBER parameter.The data types of the field component specified at the MEMBER parameter and the tag at theVALUE parameter have to match the data type of the instruction "Write field".The processing of the "Write field" instruction can only be started when the signal state at theEN enable input is "1". If no error occurs during execution,