Siemens IM151-7 CPU System Manual - 0
Siemens IM151-7 CPU System Manual - 0
Siemens IM151-7 CPU System Manual - 0
Product Overview Getting Started Addressing ET 200S in the PROFIBUS Network ET 200S in the MPI Network
Drawing number
A5E00385826-01 Edition 12/2004
1 2 3 4 5 6 7 8 9 10
DP Master Module Commissioning and Diagnostics Functions of the IM 151-7 CPU Cycle and Response Times Technical Specifications Changing over from the IM 151-7 CPU (6ES7 151-7Ax00-0AB0) to the IM 151-7 CPU (6ES7 151-7AA10-0AB0) Position of the IM 151-7 CPU in the CPU Range Glossary, Index
11 12
Edition 11/2003
A5E00058783-04
Safety Guidelines
This manual contains notices intended to ensure personal safety, as well as to protect the products and connected equipment against damage. These notices are highlighted by the symbols shown below and graded according to severity by the following texts:
! ! !
Danger
indicates that death, severe personal injury or substantial property damage will result if proper precautions are not taken.
Warning
indicates that death, severe personal injury or substantial property damage can result if proper precautions are not taken.
Caution
indicates that minor personal injury can result if proper precautions are not taken.
Caution
indicates that property damage can result if proper precautions are not taken.
Notice
draws your attention to particularly important information on the product, handling the product, or to a particular part of the documentation.
Qualified Personnel
Only qualified personnel should be allowed to install and work on this equipment. Qualified persons are defined as persons who are authorized to commission, to ground and to tag circuits, equipment, and systems in accordance with established safety practices and standards.
Correct Usage
Note the following:
Warning
This device and its components may only be used for the applications described in the catalog or the technical description, and only in connection with devices or components from other manufacturers which have been approved or recommended by Siemens. This product can only function correctly and safely if it is transported, stored, set up, and installed correctly, and operated and maintained as recommended.
Trademarks
SIMATIC, SIMATIC HMI and SIMATIC NET are registered trademarks of SIEMENS AG. Third parties using for their own purposes any other names in this document which refer to trademarks might infringe upon the rights of the trademark owners.
Copyright W Siemens AG 2003 All rights reserved The reproduction, transmission or use of this document or its contents is not permitted without express written authority. Offenders will be liable for damages. All rights, including rights created by patent grant or registration of a utility model or design, are reserved. Siemens AG Bereich Automation and Drives Geschaeftsgebiet Industrial Automation Systems Postfach 4848, D- 90327 Nuernberg Siemens Aktiengesellschaft
Disclaim of Liability We have checked the contents of this manual for agreement with the hardware and software described. Since deviations cannot be precluded entirely, we cannot guarantee full agreement. However, the data in this manual are reviewed regularly and any necessary corrections included in subsequent editions. Suggestions for improvement are welcomed. Siemens AG 2003 Technical data subject to change. A5E00058783-04
Preface
iii
Preface
iv
Preface
6ES7151-1AA10-8xA01
S Addressing of the
IM151-7 CPU
S Commissioning and
diagnostics for the ET 200S
S Commissioning and
diagnostics for motor starters
S Technical
specifications of the IM151-1, digital and analog electronic modules
S Technical
specifications of motor starters
S Commissioning and
diagnostics for the IM151-7 CPU
S Technical specifications
of the IM151-7 CPU Automation system S7-300, list of operations 6ES7398-8AA10-8xN01
S S S S
S S S S S
6ES7151-1AE00-8xA01 1STEP 5V/204kHz 1POS INC/Digital 1POS SSI/Digital 1POS INC/Analog 1POS SSI/Analog
The documentation packages or manuals can only be ordered in the languages German and English. In addition, the languages French, Spanish and Italian are available in the Internet (see Service & Support in the Internet)
Preface
Note The ET 200S fail-safe modules manual is part of the S7 F Systems documentation package.
Special note
In addition to the ET 200S manuals, you will also need the manual for the DP master used and the documentation for the configuration and programming software used (see the list in Appendix A of the ET 200S Distributed I/O System manual).
Note You will find a detailed list of the contents of the ET 200S manuals in Section 1.2 of this manual. We recommend that you begin by reading this section so as to find out which parts of which manuals are most relevant to you in helping you to do what you want to do.
vi
Preface
Additional support
Please contact your local Siemens representative if you have any queries about the products described in this manual. http://www.siemens.com/automation/partner
vii
Preface
Training center
We offer training courses to help familiarize you with the ET 200S distributed I/O system and the SIMATIC S7 programmable controller. Please contact your local training center or the central training center in D 90327 Nrnberg. Telephone: +49 (911) 895-3200 Internet: http://www.sitrain.com
Technical support and authorization staff generally speak English and German.
viii
Preface
ix
Preface
Contents
1 2 Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Product Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1 1.2 3 What is the IM 151-7 CPU interface module? . . . . . . . . . . . . . . . . . . . . . . . Guide to the ET 200S manuals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii 1-1 1-2 1-5 2-1 2-3 2-4 2-6 2-7 2-9 2-10
Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1 2.2 2.3 2.4 2.5 2.6 2.7 1st step: Installing the IM 151-7 CPU (ET 200S) and S7-300 . . . . . . . . . . 2nd step: Wiring the IM 151-7 CPU (ET 200S) and S7-300 . . . . . . . . . . . . 3rd step: Commissioning the IM 151-7 CPU (ET 200S) . . . . . . . . . . . . . . . 4ht step: Configuring the IM 151-7 CPU for stand-alone operation (MPI) 5th step: Programming the IM 151-7 CPU . . . . . . . . . . . . . . . . . . . . . . . . . . 6th step: Test Run . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7th step: Upgrading the IM 151-7 CPU as an I slave and commissioning the S7-300 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.8 8th step: Configuring the IM 151-7 CPU as an I slave and the S7-300 as a DP master . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.9 2.10 9th step: Programming the IM 151-7 CPU and the S7-300 CPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10th step: Commissioning and test run of the IM 151-7 CPU and S7-300
2-11
2-12 2-16 2-19 3-1 3-2 3-4 3-5 3-7 4-1 4-2 4-6 4-8 4-9 4-12 5-1 5-2 5-3
Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.1 3.2 3.3 3.4 Slot-Oriented Addressing of the I/O Modules . . . . . . . . . . . . . . . . . . . . . . . . User-oriented addressing of the I/O Modules . . . . . . . . . . . . . . . . . . . . . . . . Data interchanger with the DP Master . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Accessing the intermediate memory in the IM 151-7 CPU . . . . . . . . . . . . .
ET 200S in the PROFIBUS Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1 4.2 4.3 4.4 4.5 ET 200S in the PROFIBUS network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Network components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PROFIBUS address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Functions via the PD/OP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Direct communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ET 200S in the MPI Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1 5.2 ET 200S in the MPI network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . MPI address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
xi
Contents
DP Master Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.1 6.2 Mounting the DP master module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Commissioning the IM 151-7 CPU as a DP master . . . . . . . . . . . . . . . . . . .
6-1 6-2 6-3 7-1 7-2 7-4 7-7 7-9 7-12 7-15 7-16 7-18 7-18 7-19 7-20 7-22 7-25 7-25 7-27 7-29 7-30 8-1 8-2 8-4 8-6 8-12 8-12 8-15 8-20 8-23 8-25 8-26 8-28 8-29 8-34 8-38 8-41 8-42 8-44
Commissioning and Diagnostics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1 7.2 7.3 7.4 7.5 7.6 7.6.1 7.6.2 7.6.3 7.6.4 7.6.5 7.6.6 7.7 7.7.1 7.7.2 7.7.3 7.7.4 Configuring the IM 151-7 CPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Resetting the memory of the IM 151-7 CPU . . . . . . . . . . . . . . . . . . . . . . . . . Commissioning and startup of the IM 151-7 CPU as an I slave . . . . . . . . Diagnostics using LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Diagnostics via diagnostic address with STEP 7 . . . . . . . . . . . . . . . . . . . . . Slave diagnostics with IM 151-7 CPU used as an intelligent slave . . . . . . Station status 1 to 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Master PROFIBUS address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Manufacturer ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Module diagnostics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Module status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Interrupt status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Diagnostic data of the electronic modules . . . . . . . . . . . . . . . . . . . . . . . . . . . Evaluating diagnostic data of the electronic modules in the user program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Structure and content of the diagnostic data bytes 0 to 7 . . . . . . . . . . . . . . Channel-specific diagnostic data from byte 8 onwards . . . . . . . . . . . . . . . . Example: ET 200S module: 2 AI U (6ES7 134-4FB00-0AB0) each with diagnostics for channel 0 and 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Functions of the IM 151-7 CPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.1 8.2 8.3 8.4 8.4.1 8.4.2 8.4.3 8.4.4 8.4.5 8.5 8.6 8.7 8.8 8.9 8.10 8.11 8.12 8.13 Data for the PROFIBUS-DP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . The mode selector and LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SIMATIC Micro Memory Card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Memory concept . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Memory areas of the IM 151-7 CPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Memory functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Address areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Handling data in DBs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Storing/download entire projects on/from Micro Memory Cards . . . . . . . . Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . S7 connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Routing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data consistency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Parameterization of the reference junction for the connection of thermocouples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8-46
xii
Contents
8.14 8.15 10
Removal and insertion of modules during operation . . . . . . . . . . . . . . . . . . Switching power modules off and on during operation . . . . . . . . . . . . . . . .
8-48 8-51 9-1 9-2 9-5 9-8 10-1 10-2 11-1 12-1 12-2 12-3
Cycle and Response Times . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.1 9.2 9.3 Cycle time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Response time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Interrupt response time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11
12 13
Changing IM 151-7 CPU (6ES7 151-7Ax00..) to IM 151-7 CPU (6ES7 151-7AA10-0AB0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Position of the IM 151-7 CPU in the CPU Range . . . . . . . . . . . . . . . . . . . . . . . . . . . 12.1 12.2 Differences to selected S7-300 CPUs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Porting the user program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
xiii
Contents
Figures 1-1 1-2 1-3 2-1 2-2 3-1 3-2 3-3 3-4 3-5 4-1 4-2 4-3 4-4 4-5 4-6 4-7 5-1 6-1 6-2 7-1 7-2 7-3 7-4 7-5 7-6 7-7 7-8 7-9 7-10 7-11 7-12 8-1 8-2 8-3 8-4 8-5 8-6 8-7 8-8 8-9 8-10 9-1 9-2 9-3 10-1 12-1 View of the ET 200S distributed I/O system with the IM 151-7 CPU and the DP master module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Components and the manuals required for them . . . . . . . . . . . . . . . . . . . . . Components and the manuals required for them (continued) . . . . . . . . . . Installing the IM 151-7 CPU (ET 200S) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Illustration showing the S7-300 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Structure of the default address area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Slots on the ET 200S . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Example of address assignment for I/O modules . . . . . . . . . . . . . . . . . . . . Structure of the address area for user-oriented addressing . . . . . . . . . . . . Principles of data transfer between the DP master and the ET 200S with the IM 151-7 CPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Example of a PROFIBUS network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting the mode of the DP interface at the IM 151-7 CPU . . . . . . . . . . . . The PD/OP accesses the ET 200S via the DP interface in the DP master . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . The PD directly accesses the ET 200S . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Connecting the DP network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Principle behind forcing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Direct communication with the IM 151-7 CPU . . . . . . . . . . . . . . . . . . . . . . . Example of an MPI network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Example of the structure with the IM 151-7 CPU acting as the DP master . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Mounting the DP master module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . How to use the mode selector to reset the memory . . . . . . . . . . . . . . . . . . Diagnostic addresses for the DP master and ET 200S . . . . . . . . . . . . . . . . Format of the slave diagnostic data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Structure of the module diagnosis for the IM 151-7 CPU . . . . . . . . . . . . . . Structure of the module status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Structure of the interrupt status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Byte y+4 to y+7 for the diagnostic interrupt (changed operating status of the intelligent slave) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Byte y+4 to y+7 for diagnostic interrupt (SFB 75) . . . . . . . . . . . . . . . . . . . . Structure of the diagnostic data using a 4 channel mixed module as an example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bytes 0 and 1 of the diagnostic data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bytes 4 to 7 of the diagnostic data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Single fault of a channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Mode selector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Position of the memory card slot for the MMC on the IM 151-7 CPU . . . . Memory areas of the IM 151-7 CPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Load and working memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Processing steps within a cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Handling recipe data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Handling measured value archives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Routing gateway . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Routing TeleService application example . . . . . . . . . . . . . . . . . . . . . . . . . . Example of a parameterization dialog box for the CPU module parameters in STEP 7 V5.2 + SP1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Component parts of the cycle time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Shortest response time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Longest response time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Basic circuit diagram for the IM 151-7 CPU . . . . . . . . . . . . . . . . . . . . . . . . . Example: FB with unpacked addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3 1-5 1-6 2-3 2-5 3-2 3-2 3-4 3-4 3-5 4-2 4-3 4-5 4-5 4-7 4-10 4-12 5-2 6-1 6-2 7-5 7-12 7-15 7-19 7-21 7-22 7-23 7-24 7-26 7-27 7-28 7-29 8-4 8-9 8-12 8-15 8-21 8-23 8-24 8-39 8-40 8-47 9-2 9-6 9-7 10-4 12-3
xiv
Contents
12-2 12-3
12-4 12-5
xv
Contents
Tables 1-1 1-2 3-1 3-2 3-3 4-1 4-2 6-1 7-1 7-2 7-3 7-4 7-5 7-6 Limitations in the use of ET 200S modules . . . . . . . . . . . . . . . . . . . . . . . . . . Topics of the manuals in the ET 200S manual package . . . . . . . . . . . . . . . Addresses of the ET 200S I/O modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . Accessing the address areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Addressing interface in STEP 7 V5.1 (extract) . . . . . . . . . . . . . . . . . . . . . . . Behavior of the IM 151-7 CPU depending on the DP interface setting . . . Network components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Event recognition of the IM 151-7 CPU as a DP master . . . . . . . . . . . . . . . Configuration options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ways to reset the memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Internal CPU events at memory resetting . . . . . . . . . . . . . . . . . . . . . . . . . . . LED display for PROFIBUS-DP (IM 151-7 CPU is an I slave) . . . . . . . . . . LED display for PROFIBUS-DP (IM 151-7 CPU is a master) . . . . . . . . . . Responses to operating mode changes and interruptions in user data transfer in the DP master and the ET 200S with the IM 151-7 CPU as an I slave . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Evaluation of RUN-STOP transitions in the DP master/ ET 200S with IM 151-7 CPU as the I slave . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Structure of station status 1 (byte 0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Structure of station status 2 (byte 1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Structure of station status 3 (byte 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Structure of the master PROFIBUS address (byte 3) . . . . . . . . . . . . . . . . . Structure of the manufacturer identification (bytes 4 and 5) . . . . . . . . . . . . Identifiers of the module classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Attributes from the device database (DDB) file . . . . . . . . . . . . . . . . . . . . . . Positions of the mode selector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LEDs for CPU functionality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Available MMCs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Firmware update with MMC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Backing up the operating system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Retentive behavior of the memory objects . . . . . . . . . . . . . . . . . . . . . . . . . . Retentive behavior of the DBs in IM 151-7 CPU . . . . . . . . . . . . . . . . . . . . . Address areas of the system memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Connecdevices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Features of the clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Distribution of the S7 connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Availability of the S7 connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Communication utilities of the IM 151-7 CPU . . . . . . . . . . . . . . . . . . . . . . . . GD resources of the IM 151-7 CPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Overview of the blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Parameter blocks, setparameters and their ranges for the IM 151-7 CPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Parameterization of the reference junction . . . . . . . . . . . . . . . . . . . . . . . . . . Result of the preset/actual comparison in modules that cannot be parameterized . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Result of the preset/actual comparison in the case of parameterizable modules with the power module switched on . . . . . . . . . . . . . . . . . . . . . . . . Result of the preset/actual comparison in the case of parameterizable modules with the power module switched off . . . . . . . . . . . . . . . . . . . . . . . . Operating system processing time in the scan cycle checkpoint . . . . . . . . Process image updating . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Dependency of the user program scanning time . . . . . . . . . . . . . . . . . . . . . Extending the cycle by nesting interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . Interrupt response times of the IM 151-7 CPU (without communication) . 1-2 1-7 3-3 3-7 3-8 4-4 4-6 6-5 7-2 7-4 7-5 7-10 7-11
7-13 7-14 7-16 7-17 7-17 7-18 7-18 7-27 8-2 8-4 8-5 8-7 8-10 8-11 8-14 8-14 8-20 8-27 8-28 8-32 8-33 8-34 8-37 8-42 8-44 8-46 8-49 8-49 8-50 9-3 9-3 9-4 9-4 9-8
7-7 7-8 7-9 7-10 7-11 7-12 7-13 8-1 8-2 8-3 8-4 8-5 8-6 8-7 8-8 8-9 8-10 8-11 8-12 8-13 8-14 8-15 8-16 8-17 8-18 8-19 8-20 8-21 9-1 9-2 9-3 9-4 9-5
xvi
Contents
Terminal assignment for the interface module IM 151-7 CPU . . . . . . . . . . Pin assignment of the DP master module . . . . . . . . . . . . . . . . . . . . . . . . . . . Differences to selected S7-300 CPUs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Example : Replacements under Tools ! Rewire . . . . . . . . . . . . . . . . . . . . . .
xvii
Contents
xviii
Product Overview
In this chapter
The product overview provides information about S S The role of the IM 151-7 CPU interface module within the ET 200S distributed I/O system. Which manuals in the ET 200S manual package contain what information.
Chapter overview
In Section 1.1 1.2 Contents What is the IM 151-7 CPU interface module? Guide to the ET 200S manuals Page 1-2 1-5
1-1
Product Overview
1.1
EM 1STEP 5V/204kHz 6ES7 138-4DC00-0AB0 1 SI 3964/ASCII 1SI MODBUS/USS 2AI U HF 2AI I 2/4WIRE HF 2AO U HF 6ES7 138-4DF00-0AB0 6ES7 138-4DF10-0AB0 6ES7 134-4LB00-0AB0 6ES7 134-4MB00-0AB0 6ES7 135-4LB01-0AB0
1-2
Product Overview
View
The figure below shows a sample configuration of an ET 200S with an IM 151-7 CPU.
Reversing starter
DP master module
Electronic modules
Power bus
Figure 1-1
View of the ET 200S distributed I/O system with the IM 151-7 CPU and the DP master module
1-3
Product Overview
How to configure the ET 200S with IM 151-7 CPU is described in Chapters 7.1 and 6.2 of this manual.
The Instruction list contains the STEP 7 instruction set for programming the IM 151-7 CPU.
1-4
Product Overview
1.2
IM151-1
PM-E
2 AO
2DO
2 AI
IM151-1
2PULSE
6ES7 151-1AA10-8xA0
PM-E
1SSI
2DO
6ES7 151-1AC00-8xA0
1PosInc/Analog
1PosInc/Digital
IM151-1
PM-E
2DO
Modbus/USS
IM151-1
PM-E
2DO
2 AI
IM151-7 CPU
PM-E
6ES7 151-1AA10-8xA0
2 AO
2DO
2 AI
6ES7 151-1AB00-8xA0
Figure 1-2
1-5
Product Overview
IM151-1
2 AO
2DO
PM-D
PM-E
IM 151
P M
DS
DS
ET 200S Distributed I/O System + ET 200S Motor Starters ET 200S Safety-Integrated SIGUARD System
6ES7 151-1AA10-8xA0
IM151-1
PM-E
PM-E
F-DO
ET 200S Distributed I/O System + ET 200S Distributed I/O System, Fail-Safe Modules manual in the documentation packages: S7 F Systems and S7 Distributed Safety
6ES7 151-1AA10-8xA0
2DO
2DO
F-DI
IM151-1
PM-E
F DO
PM-D F PROFIsafe
F DI
F-DS 1 e-x
F-DS 1e-x
ET 200S Distributed I/O System + ET 200S Distributed I/O System, Fail-Safe Modules manual in the documentation packages: S7 F Systems and S7 Distributed Safety + ET 200S Motor Starters Fail-Safe Motor Starters Safety-Integrated SIGUARD
6ES7 151-1AA10-8xA0
Figure 1-3
1-6
Product Overview
ET 200S components Configuration possibilities Communication Configuration Addressing Installation Electrical configuration and wiring of the ET 200S Programming Commissioning and diagnostics Functions General technical specifications Technical specifications Terminal modules Power modules Direct starters and soft starters Reversible starters Safety-integrated ET 200S SIGUARD Interface module Electronic modules
1 1
1 3
1 4
2 3
2 3 4
3 2 2 4 5 5 5 6
Positioning ET 2200S
1-7
Product Overview
Table 1-2
Positioning module Expansion module Fail-safe modules Monitoring, cycle and reaction times Order numbers Dimension drawings Applications Glossary A B C Gl Gl Gl A B 10 11 7
3-6
9 12 11 10 9
13
10
The frame for configuration and parameter assignment for the IM 151-7 CPU can be found on the Internet at http://www.ad.siemens.de/simatic-cs
1-8
Description
Positioning ET 2200S
Getting Started
Introduction
This guide takes you through the 10 commissioning steps required to set up a functioning IM 151-7 CPU application by running through a concrete example. In this way, you will get to know the basic functions of your IM 151-7 CPU for the following: S S S Hardware and software Stand-alone operation (MPI) Intelligent DP slave (PROFIBUS-DP)
Prerequisites
You must be familiar with the fundamentals of electronic/electrical engineering and have experience of working with computers and MicrosoftR Windowst 95/98/NT/2000.
Danger The IM 151-7 CPU, the ET 200S and the S7-300 are used in installations and systems that require you to comply with specific rules and regulations that vary depending on the application. Please note the relevant safety and accident prevention regulations, such as IEC 204 (emergency stop systems). Non-compliance with these regulations can result in serious injury and damage to both machinery and equipment.
Chapter overview
In Section 2.1 2.2 2.3 2.4 2.5 2.6 2.7 1st step: Contents Installing the IM 151-7 CPU (ET 200S) and S7-300 Page 2-3 2-4 2-6 2-7 2-9 2-10 2-11
2nd step: Wiring the IM 151-7 CPU (ET 200S) and S7-300 3rd step: 4th step: 5th step: 6th step: 7th step: Commissioning the IM 151-7 CPU (ET 200S) Configuring the IM 151-7 CPU for stand-alone operation (MPI) Programming the IM 151-7 CPU Test Run Changing the IM 151-7 CPU to an I slave and commissioning of the S7-300
2-1
Getting Started
Contents Configuring the IM 151-7 CPU as an I slave and the S7-300 as a DP master Programming the IM 151-7 CPU and the S7-300-CPU
10th step: Commissioning and test run of the IM 151-7 CPU and S7-300
1 1 1 1 1 1 1 2 1
e.g. 6ES7 307-1EA00-0AA0 e.g. 6ES7 151-7AA10-0AB0 e.g. 6ES7 953-8LL00-0AA0 e.g. 6ES7 138-4CA00-0AA0 e.g. 6ES7 131-4BD00-0AA0 e.g. 6ES7 132-4BD00-0AA0 e.g. 6ES7 193-4CC30-0AA0 e.g. 6ES7 193-4CB30-0AA0 various various
1 1 1 1 1 1 approx. 2m 4
various commercially available commercially available commercially available commercially available commercially available commercially available
2-2
Getting Started
2.1
1st step: Installing the IM 151-7 CPU (ET 200S) and S7-300
Description Install the S7-300 as described in Installation Manual for Automation System S7-300, Setting Up. If you want to operate the IM 151-7 CPU using a dedicated power supply, hang the PS in the mounting rail of the S7-300 and push in until it engages. Hang the IM 151-7 CPU in the mounting rail and push in until it engages. Hang the TM for the PM in the mounting rail to the right of the IM 151-7 CPU and push in until it engages. Push the TM to the left until it engages audibly in the IM 151-7 CPU. Repeat points 3 and 4 for two TMs for the electronics modules and finally for the terminating module (does not engage in the mounting rail). Push the PM into the appropriate TM until it engages. Push the DI into the free TM on the left until it engages. Push the DO into the last free TM until it engages. Insert the micro memory card into the IM 151-7 CPU (must be installed otherwise the system will not work). A micro memory card with unknown content should be erased beforehand at the programming device.
Sequence 1 2 3 4 5 6 7 8 9 10
Figure 2-1
2-3
Getting Started
2.2
Sequence 1 2 3 4
2nd step: Wiring the IM 151-7 CPU (ET 200S) and S7-300
Description Wire the S7-300 as described in Installation Manual for Automation System S7-300, Setting Up. Lengthen the connections for each of the 4 buttons using a cable. Strip 6 mm of insulation from the free cable ends and cap the ends with wire end ferrules. At the DI of the S7-300, connect each of the inputs 1.1 (terminal 13) and 1.2 (terminal 14) to L+ on the PS of the S7-300 using a button. Connect the two remaining 1-pin buttons to the DI of the ET 200S as follows:
S connect one button to terminals 1 and 3 S connect the other button to terminals 5 and 7
Note regarding spring terminals Releasing the spring of a connection: Insert a screwdriver with 3 mm tip as far as it will go into the upper round hole of the terminal, pulling the screwdriver handle upwards slightly if necessary. A free cable end can then be inserted into the square hole below. Pull the screwdriver back out again and check that the cable is fitted securely. 5 Wire terminal 2 on the TM of the PM to L+ of the PS and terminal 3 on the TM of the PM to M of the PS. The ends of the cables to be connected must be stripped by 11 mm and capped with wire end ferrules. Wire terminal 1L+ of the IM 151-7 CPU to L+ of the PS and terminal 1M of the IM 151-7 CPU to M of the PS. Note S The ends of the cables to be connected must be stripped by 11 mm and capped with wire end ferrules.
S The PS of the S7-300 can also be used to supply power to the IM 151-7 CPU and to the
PM. 7 8 Connect the PD and IM 151-7 CPU to the PD cable and tighten all connectors. Connect the PS of the ET 200S, the PS of the S7-300 and the PD to the mains power supply system.
2-4
Getting Started
Illustration showing the S7-300 (the power supply wiring for the DI and DO is not shown; the PD is connected to the S7-300)
Powersupply ON/OFF Switch for setting system voltage Mode selector switch Profile rail Programming device with STEP 7 Software
Power connector
Switches
Figure 2-2
2-5
Getting Started
2.3
Note On initial commissioning (condition when supplied) of the ET 200S, the CPU can be accessed using the MPI address 2, HSA 31 and 187.5 kBaud.
Sequence 1
S The 24 VDC LED lights up on the PS. S The PWR and SF LEDs light up on the PM. S All LEDs light up on the IM 151-7 CPU, the SF, BF, FRCE and RUN LEDs go out again and
the STOP LED starts to flash rapidly. The IM 151-7 CPU performs a memory reset. 2 Then press the two buttons which are connected to the DI module. The 1 LED lights up when the buttons at terminal 1 and 3 are pressed. The 5 LED lights up when the buttons at terminal 5 and 7 are pressed. 3 4a 4b Switch on your PD and start the SIMATIC Manager on the Windows Desktop. In the main menu of the SIMATIC Manager, click on Tools and select the menu item Set PD/PC Interface. Configure the PD/PC interface as follows:
Note: The communication processor may have a different name on your PD. It is important to make sure that the MPI version is set. 5 Confirm the settings with OK and close the Set PD/PC Interface program.
2-6
Getting Started
2.4
4ht step: Configuring the IM 151-7 CPU for stand-alone operation (MPI)
Action Does the wizard for a new project appear in the SIMATIC Manager? Result If yes: Close the wizard because the IM 151-7 CPU is not supported by the project wizard. If no: Proceed to point 2
Sequence 1
In the main menu of the SIMATIC Manager, navigate to File and select the menu item New. Enter Getting Started as the project name and click on the OK button.
Navigate to Insert and select the menu item Station. In the list, click on: SIMATIC 300 Station.
4 5
Rename this station to ET 200S In the SIMATIC Manager, navigate to ET 200S Station. Double-click on the Hardware symbol in the right-hand part of the window to open the Editor used to edit the hardware configuration.
If no catalog is shown in the right-hand part of the window, activate it by selecting the command Catalog in the View menu. In the catalog, navigate through PROFIBUS-DP to ET 200S. Drag the IM 151-7 CPU whose order number matches the order number on your IM 151-7 CPU, and drop it into the top left-hand window. By default, the IM 151-7 CPU is integrated as a stand-alone CPU (MPI/not networked). Note: You can find out the order number in the catalog by clicking on an IM 151-7 CPU in the catalog. The order number of this IM 151-7 CPU then appears in the field below the catalog.
2-7
Getting Started
Sequence 7
Action Navigate through the appropriate IM 151-7 CPU to PM. Drag the PM whose order number matches the order number on your PM, and drop it onto slot 4.
Result
9 10
Select the command Save and compile in the Station menu. Download the configuration to the IM 151-7 CPU by means of the MPI and close the Hardware Editor.
The hardware configuration is compiled and saved The configuration is downloaded and a symbol for the IM 151-7 CPU appears in the right-hand part of the SIMATIC Manager window.
2-8
Getting Started
2.5
Sequence 1
2 3
Double-click on the OB 1 symbol in the right-hand part of the window. In the LAD/FBD/STL Editor, select the LAD command in the View menu to switch over to the LAD programming language. Click on the horizontal line of the current path. In the toolbar, click on the || symbol (NO contact) twice and then on the ( ) symbol (coil) once. Click on the red question mark at the left-hand NO contact in the current path. Enter E1.0 and press Return. Enter E1.1 and press Return. Enter A2.0 and press Return.
The LAD/FBD/STL Editor used to edit the OB 1 block opens. A current path is displayed in Network 1.
4 5
The line is highlighted. The symbols are inserted into the current path. The NO contact is highlighted and a text input box with a cursor appears in place of the question mark. The left-hand NO contact is given the name E1.0. The right-hand NO contact is given the name E1.1. The coil is given the name A2.0. The Editor is closed and OB 1 is saved.
7 8
Close the Editor and answer the Save prompt with Yes.
2-9
Getting Started
2.6
Sequence 1 2
Select the block container in the left-hand side of the window again. In the PLC menu, select the Load command to transfer the program and the hardware configuration to the IM 151-7 CPU. Confirm all windows that appear with Yes.
The program and configuration are downloaded from the PD to the IM 151-7 CPU.
4 5
Set the mode selector on the IM 151-7 CPU to RUN. Press the two buttons alternately.
The STOP LED goes out. The RUN LED starts to flash and then remains lit. The LEDs of inputs E1.0 and E1.2 light up alternately. The LED of output 2.0 does not light up. The LEDs of inputs E1.0 and E1.2 (1 and 5 LED of the DI) light up simultaneously. The LED of output 2.0 (1 LED of the DO) lights up since the two buttons have been linked in the program by means of an AND function (= series connection) and assigned to output A2.0. A connected actuator or display element would then be activated.
Switch the mode selector of the IM 151-7 CPU to STOP and switch off the PS of the IM 151-7 CPU.
2-10
Getting Started
2.7
7th step: Upgrading the IM 151-7 CPU as an I slave and commissioning the S7-300
Description Remove the connector of the PD cable from the IM 151-7 CPU. Start the Set PD/PC Interface program as described under step 3, point 4. Change the configuration of the PD/PC interface as follows:
Sequence 1 2a 2b
Confirm the settings with OK and close the Set PD/PC Interface program.
2-11
Getting Started
2.8
8th step: Configuring the IM 151-7 CPU as an I slave and the S7-300 as a DP master
Change the configuration of the IM 151-7 CPU as follows:
Sequence 1 2
Action Start the Hardware Configuration program for the IM 151-7 CPU as described in step 4. In the Properties MPI/DP menu, select the interface type PROFIBUS.
Check the settings in the Properties New Subnet PROFIBUS window and confirm with OK.
5 6
Select the command Save and compile in the Station menu. Download the configuration to the IM 151-7 CPU by means of the MPI and close the Hardware Editor.
The hardware configuration is compiled and saved. The ET 200S now has the DP address 4; the Editor is closed.
2-12
Getting Started
Insert the new S7-300 station into the project as described in step 4, point 3.
3 4 5
In the SIMATIC Manager, click on the S7-300(1) station in the left-hand part of the window. Double-click on the Hardware symbol in the right-hand part of the window. If no catalog is shown in the right-hand part of the window, activate it by selecting the command Catalog in the View menu. In the catalog, navigate through SIMATIC 300 to Rack 300. Drag and drop a mounting rail into the top left-hand window.
The Hardware symbol appears in the right-hand part of the window. The Editor used to edit the hardware opens.
Insert the PS whose order number matches the Configuration example (may differ from your configuration): order number of your PS, at slot 1 as described in step 4. Repeat for the S7-300-CPU (slot 2), the S7-300-DI (slot 4) and the S7-300-DO (slot 5). Note:
2-13
Getting Started
Sequence 7
Action
Result
In the window that then appears, click on the Interconnect button. The Properties MPI/DP window appears.
2-14
Getting Started
Sequence 10
Action In the window from point 9, click on the Edit button and complete the form for line 1 as shown in the illustration. Then confirm with OK.
Result
Then click on the second line in the Properties MPI/DP window and complete the form for line 2 as shown in the illustration. Then confirm with OK.
11 12
Select the command Save and compile in the Station menu. Connect the PD to the MPI interface of the S7-300-CPU using a PD cable. Download the configuration to the CPU. Close the Hardware Editor.
The hardware configuration is compiled and saved. The hardware configuration is loaded. The Editor is closed.
2-15
Getting Started
2.9
9th step: Programming the IM 151-7 CPU and the S7-300 CPU
Action In the SIMATIC Manager, navigate to the block container of the ET 200S. Double-click on the OB1 symbol in the right-hand part of the window. Result The LAD/FBD/STL Editor used to edit the OB 1 block opens.
Sequence 1
In the SIMATIC Manager, navigate to the block container of the S7-300. Double-click on the OB1 symbol in the right-hand part of the window.
2-16
Getting Started
Sequence 4
Action
Result
How it Works: The status of the button connected to E1.1 of the S7-300 is checked and stored temporarily in the memory marker M13.0. The entire memory byte MB13 is transferred to the peripheral output byte PQB12. In step 8 Configuring the S7-300 (point 10) of the hardware configuration, you made settings to assign the area from PQW12 to PQW44 of the S7-300 CPU to the area from PIW128 to PIW160 of the IM 151-7 CPU. In the program of the IM, PIB128 is transferred into memory byte MB12. The memory marker M12.0 finally actuates the output A2.1.
2-17
Getting Started
This results in the following communication paths: S7-300 I1.1 M13.0 MB13 PQB12 PQW12 IM 151-7 CPU
PIW128 PIB128
A2.1 E1.0
A5.0
MB12 M12.1
PIW12 PIB12
PQB128 PQW128
2-18
Getting Started
2.10
10th step: Commissioning and test run of the IM 151-7 CPU and S7-300
Action In the SIMATIC Manager, navigate to the block container of the S7-300 and insert an empty organization block with the name OB 86 into the block container. This block ensures that the S7-300-CPU does not switch to STOP if a station of the IM 151-7 CPU fails/recovers. Generate OB 82 in the same way. Result
Sequence 1
Make sure that the mode selector of the S7 and IM is set to STOP Switch on the PS of the S7-300 and the PS of the ET 200S.
2-19
Getting Started
Sequence 5
Action
Result
Start the Set PD/PC Interface program as described under step 3, point 4. Change the configuration of the PD/PC interface as follows:
6 7
Confirm the settings with OK and close the Set PD/PC Interface program. Open the front panel of the S7-300-CPU. Connect the IM 151-7 CPU to the DP interface of the S7-300-CPU using a PROFIBUS-DP cable. Make sure that the terminating resistor is switched on at both connectors. Remove the connector of the PD cable from the MPI interface of the S7-300-CPU and connect it to the bus connector of the PROFIBUS-DP cable at the S7-300-CPU. Screw on the connector securely. Close the front panel of the S7-300-CPU if possible.
In the SIMATIC Manager, navigate to the block container of the ET 200S. Select the block container in the left-hand side of the window. In the PLC menu of the SIMATIC Manager, select the Load command to transfer the program and the hardware configuration to the IM 151-7 CPU. Confirm all windows that appear with Yes.
The program and configuration are downloaded from the PD to the IM 151-7 CPU.
2-20
Getting Started
Sequence 9
Action Set the mode selector on the IM 151-7 CPU to RUN. Set the mode selector on the S7-300-CPU to RUN.
Result The STOP LED of the IM goes out. The RUN LED starts to flash and then remains lit. The SF LED lights up. The STOP LED of the S7 goes out. The RUN LED starts to flash and then remains lit. The SF LED of the IM goes out. The LEDs of the S7-300 inputs E1.1 and E1.2 light up alternately. The LED of output 5.4 does not light up. The LEDs of inputs E1.1 and E1.2 light up simultaneously. The LED of output 5.4 lights up since the two buttons have been linked in the program by means of an AND function (= series connection) and assigned to output A5.4.
10
11
12
13 14
Actuate the switch which is connected to E1.0 of the ET 200S. Actuate the switch which is connected to E1.1 of the S7-300.
The LEDs of the IM input E1.0 and the S7-300 output A5.0 light up. The LEDs of the S7-300 input E1.1 and the IM output A2.1 light up.
2-21
Getting Started
Other manuals
For more information on getting started we also recommend: Getting Started: First Steps and Exercises With STEP 7 V5.x. All of these manuals can be downloaded free of charge from the Siemens homepage (Customer Support, Automation).
2-22
Addressing
Principles of Data Transfer Between the DP Master and the IM 151-7 CPU
This chapter contains information on the addressing of I/O modules and data transfer between the DP master and the IM 151-7 CPU. The following alternatives are available for addressing the I/O modules: S Slot-oriented address allocation: Slot-oriented address allocation is the default form of addressing, in which STEP 7 allocates a fixed module base address to each slot number. User-oriented address allocation: You can allocate each module any address within the available IM 151-7 CPU address area.
For information on the addressing of the IM 151-7 CPU on the PROFIBUS-DP, see Section 4.3.
Chapter Overview
In Section 3.1 3.2 3.3 3.4 Contents Slot-oriented addressing of the I/O Modules User-oriented addressing of the I/O Modules Data interchange with the DP Master Accessing the intermediate memory in the IM 151-7 CPU Page 3-2 3-4 3-5 3-7
3-1
Addressing
3.1
Direct communication 16 bytes per analog module or technology module 1 byte per digital module, Motor starter or 4 IQ SENSE
Figure 3-1
Slot Assignment
The figure below shows an ET 200S configuration with digital electronic modules, analog electronic modules, process-related modules and the slot assignment.
9 1Count 24V/100kHz
10 Termin. elem.
Slot
2DI 24 V DC
2DI 24 V DC
2AI RTD
2AO U
SSI
Figure 3-2
3-2
1SSI
Addressing
Address Assignment
Depending on the slot, 1 byte is reserved for digital I/Os and 16 bytes are reserved for analog I/Os in the address areas of the IM 151/7 CPU for each I/O module (maximum of 63). The table below indicates the default address assignment for analog and digital modules per slot. The address areas of the I/O modules are visible only to an IM 151-7 CPU in the ET 200S, not to the associated DP master. The DP master has no direct access to the I/O modules.
Table 3-1 Addresses of the ET 200S I/O modules Slot Number 1 2 3 4 IM 151-7 CPU* I
5 1
6 2
7 3
8 4
... ...
66 62
IM 151-7 CPU*
IM 151-7 CPU*
272 to 287
288 to 303
304 to 319
320 to 335
...
1248 to 1263
256
272
288
304
320
1248
The unassigned addresses in the range 64 to 127 are in the process image in default addressing and can be used any way you choose in the user program. If 2 bits in a byte are already occupied by a digital module, the remaining 6 bits cannot be used as you choose (e.g. the bits 1.4 to 1.7 in Figure 3-3). You can use the bytes in the address areas that are not used by modules in any way you choose in your user program. In the configuration in Figure 3-3, for example, bytes 2 and 3 can be used as you choose.
3-3
Addressing
1 to 3
IM 151-7 CPU
PM 4 DI 2 AI 2 AO 4 DO
Allocated addresses
256
1.0 to 1.3
Figure 3-3
3.2
The addresses 0 to 127 are in the process image. Assign the addresses in STEP 7. When you do this, you define the base address of the module, on which all the addresses of the module depend.
User-defined addressing
127
2047
Process image
Figure 3-4
Note Bit-specific addressing is not possible in user-defined address allocation, and compression of digital channels is therefore not supported. It is not possible to compress addresses.
3-4
Addressing
Advantages
Advantages of user-defined address allocation: S S Optimum utilization of the address areas available, since address gaps between the modules do not occur. When creating standard software, you can specify addresses that are independent of the configuration of the ET 200S station.
3.3
DP master
ET 200S as DP slave
IM 151-7 CPU I/O modules
Intermediate memory
PROFIBUS-DP Data transfer between the DP master and the ET 200S via an intermediate memory in the IM 151-7 CPU Data transfer between the IM 151-7 CPU and I/O modules Figure 3-5 Principles of data transfer between the DP master and the ET 200S with the IM 151-7 CPU
3-5
Addressing
Data consistency
You define data consistency as byte, word, or overall consistency per address area. Consistency can amount to up to 32 bytes/16 words per address area.
3-6
Addressing
3.4
Access dependent on data consistency 1-, 2- or 4-byte data consistency with load/transfer instructions
3-7
Addressing
When the IM 151-7 CPU is configured with STEP 7 for operation in the S5 or in non-Siemens systems, it is clear that only the logical addresses within the slave CPU are allocated. The addresses are then assigned in the master system using the specific configuration tool of the master system.
Mode
These address area parameters must be identical for the DP master and the IM 151-7 CPU
3-8
Addressing
Sample Program
Below you will see a sample program for data interchange between the DP master and the DP slave. You can find the addresses in Table 3-3. SFCs 14 and 15 are called by specifying the logical address in hexadecimal format.
Forward data to DP master L T MW PQW 6 136 Load memory word 6 and transfer to peripheral output word 136
61
Data preprocessing in the DP master: L + T 10 3 MB Load actual value 10 and add 3, transfer the result to memory byte 67.
67
Send the data (memory bytes 60 to 67) to the DP slave: CALL SFC 15 LADDR:= W#16#12C RECORD:= P#M60.0 Byte8 RET_VAL:=MW 22 Call system function 15: Write the data to the output address area as of address 300 (12C hexadecimal) with a length of 8 bytes as of memory byte 60.
3-9
Addressing
S5 DP master
If you use the IM 308C as a DP master and the IM 1517 CPU as an I slave, the following applies to the exchange of consistent data: You must program FB 192 in the IM 308C to enable the transfer of consistent data between the DP master and the I slave. The effect of FB 192 is that the data of the IM 1517 CPU is only output or read out continuously in a single block.
3-10
Introduction
You can integrate the ET 200S with the IM 151-7 CPU as a node in a PROFIBUS network. This chapter contains a description of a typical network configuration with the IM 151-7 CPU. It also tells you which functions can be executed via the PD or OP on the ET 200S and which options are available for direct connection. The available communication utilities can be found in Section 8.8.
Equidistance
As of STEP 7 V5.1 + SP4, you can parameterize bus cycles of the same length (equidistant) for PROFIBUS subnets with IM 151-7 CPU. You will find a detailed description of the functions in the Online Help for STEP 7.
DP master functionality
In combination with the DP master module, the IM 151-7 CPU can be used as a DP master. Further information can be found in Section 6.
Chapter overview
In Section 4.1 4.2 4.3 4.4 4.5 Contents ET 200S in the PROFIBUS network Network components PROFIBUS address Functions via the PD/OP Direct communication Page 4-2 4-6 4-8 4-9 4-12
More information
You will find more information on the structure of networks in the manual for the DP master.
4-1
4.1
0 3
ET 200S
OP 25**
ET 200X
* The ET 200S can be configured and programmed from this PD ** Operating and monitoring functions can be executed on the ET 200S 0 ... 7 PROFIBUS addresses of the nodes Figure 4-1 Example of a PROFIBUS network
Data transfer rates over 1.5 MBaud require an active connecting cable for the PD connection.
4-2
We recommend that you allocate a PROFIBUS address to the PD/OP in the same way as for other network nodes (see Figure 4-1).
Figure 4-2
4-3
Depending on the DP interface setting, the IM 151-7 CPU will behave in the following way:
Table 4-1 Behavior of the IM 151-7 CPU depending on the DP interface setting DP Interface of the IM 151-7 CPU Passive Transmission rate detection Testing and commissioning functions Bus cycle time Diagnosis via BF LED Routing (with plugged-in DM master module) No Yes Slow Fast See Section 7.4 Yes Active No Fast Slow
Maximum data transfer rate and cable length with a PD connecting cable
You can obtain a maximum data transfer rate of 1.5 Mbaud using the PD connecting cable. The cable length may not exceed 3 meters. The PD connecting cable should only be connected for an extended period of time during startup and service. Data transfer rates over 1.5 MBaud require an active connecting cable for the PD connection (order number: 6ES7 901-4BD00-0XA0).
4-4
ET 200S
PD Figure 4-3 The PD/OP accesses the ET 200S via the DP interface in the DP master
The PD is directly connected to the ET 200S (you dont add the ET 200S to the PROFIBUS network until later). Note: Depending on the DP interface (active/passive), a special setting is required in STEP 7 (see Section 4.4).
ET 200S
The PD can also be a direct DP node, although a spur line (e.g. PD connecting cable) is not permissible with a transmission rate greater than 1.5 Mbaud. This requires an active spur line.
4-5
4.2
Network components
To connect the ET 200S to the PROFIBUS-DP network, you need the following network components:
Table 4-2 Network components Purpose To set up the network Network components Cables (e.g. 2-core, shielded or 5-core, unprepared) Order numbers 6XV1 830-0AH10 (2-core) 6XV1 830-0BH10 (2-core with PE sheath) 6XV1 830-3CH10 (2-core, for festoon attachment) 6XV1 830-3BH10 (drum cable) 6XV1 830-3AH10 (direct-buried cable) 6ES7 194-1LY00-0AA0-Z (5-core with PVC sheath) 6ES7 194-1LY10-0AA0-Z (5-core; oil-resistant, can be dragged, conditionally resistant to welding; with PUR sheath) To connect the PD and the ET 200S on the PROFIBUS-DP network Bus connector without a PD socket (up to 12 Mbaud) 6ES7 972-0BA10-0XA0 (with a straight outgoing cable unit) 6ES7 972-0BA40-0XA0 (with a slanted outgoing cable unit) To make a dual connection for the PD and the DP master on the PROFIBUS-DP network, for example via a DP interface (see Figure 4-5) To connect the PD to the bus connector with the PD socket Bus connector with a PD socket (up to 12 Mbaud) 6ES7 972-0BB10-0XA0 (with a straight outgoing cable unit) 6ES7 972-0BB40-0XA0 (with a slanted outgoing cable unit) PD connecting cable (up to 1.5 Mbaud) 6ES7 901-4BD00-0XA0
4-6
PD connecting cable Bus connector with a PD socket PD Bus cable ET 200S Connector Bus cable Figure 4-5 Connecting the DP network
4-7
4.3
PROFIBUS address
Features
Use the PROFIBUS address to specify the address at which the IM 151-7 CPU is contacted on the PROFIBUS-DP.
Prerequisites
S S The permitted PROFIBUS-DP addresses are 1 to 125. Each address can be allocated only once on the PROFIBUS-DP.
Startup without DP configuration on the Micro Memory Card (MMC) (initial startup)
Following POWER ON, the coexistent interface on the IM 151-7 CPU powers up as an MPI interface with the address 2, HSA 31 and 187.5 kBaud. The I slave functionality of the IM 151-7 CPU is not yet available. All PD functions listed in Section 4.4 are possible with the interface. Several ET 200S units with IM 151-7 CPUs as I slaves on one PROFIBUS network must be commissioned step by step. After each individual IM 151-7 CPU has been switched on, STEP 7 must be used to transfer a configuration with DP address to the IM 151-7 CPU.
Note The bus parameters are retentive, i.e.bus parameters that have been configured (e.g. address, transmission rate) are retained S with POWER OFF
S if there is no longer a configuration on the IM 151-7 CPU (e.g. after SDBs have
been deleted or following POWER ON without MMC)
4-8
4.4
You will find a detailed description of the functions in the online help for STEP 7.
Running the IM 151-7 CPU as a passive I slave on the PD required settings in STEP 7
If you connect an IM 151-7 CPU directly to a PD, you must set the PD interface in STEP 7 to allow communication between the two partners. Proceed as follows: 1. In STEP 7, choose the Set PD/PC Interface tool (Start > STEP 7 > Set PD/PC Interface). 2. Set the interface of your PD to PROFIBUS. 3. Call the properties of the PROFIBUS network. 4. Set the properties so that the PD/PC is the only active master on the bus. If you subsequently configure a DP master for the network and want to go online, you should cancel these settings; additional security functions are thus activated against bus faults.
4-9
Caution The force values in the process-image input table can be overwritten by write commands (for example T IB x, = I x.y, copy with SFC, etc.) as well as by I/O read commands (L PIW x, for example) in the user program or by PD/OP write functions. Outputs preset with force values only return the force value provided the user program does not execute any write accesses to the outputs using I/O write commands (e.g. T PQB x) and provided no PD/OP functions write to these outputs. It is important to note that force values in the process-image input/output table cannot be overwritten by the user program or by PD/OP functions.
PIQ transfer
OS
PII transfer
PIQ transfer
OS
PII transfer
Forced value
Forced value
T PQW
4-10
Application example
Prerequisite: There is no direct I/O access in your user program. If, for example, an enable sensor (f) in your system is defective and it continually indicates a logical 0 to your user program, for example, via input 1.2, you can bridge this sensor by forcing the input to 1, ensuring that your system continues to operate.
Warning However, because the sensor is out of operation, you must monitor the functionality by different means to avoid injury to the operator and damage to the machine.
4-11
4.5
Direct communication
You can configure the IM 151-7 CPU as an intelligent slave with STEP 7 V5.1 for direct communication. Direct communication is a special communication relationship between PROFIBUS-DP nodes.
Principle
Direct communication is characterized by the fact that the PROFIBUS-DP nodes listen in to find out which data a DP slave is sending back to its DP master. Using this function, the eavesdropper (recipient) can directly access changes to the input data of remote DP slaves. During configuration in STEP 7, you set via the relevant I/O input addresses the address area of the recipient at which the required data of the sender is to be read.
Example Figure 4-7 gives you an example of the relationships you can configure for direct communication in STEP 7 with an IM 151-7 CPU. Other DP slaves can only be senders here.
PROFIBUS
DP slave 3
DP slave 5
4-12
4-13
4-14
Introduction
You can integrate the ET 200S with the IM 151-7 CPU as a node in an MPI network. This chapter contains a description of a typical network configuration with the IM 151-7 CPU. Section 4.4 describes which functions can be executed on the IM 151-7 CPU using a PD or OP. The available communication utilities can be found in Section 8.8. Information on clock synchronization via the MPI interface is found in the STEP 7 Online Help.
Chapter overview
In Section 5.1 5.2 ET 200S in the MPI network MPI address Contents Page 5-2 5-3
5-1
5.1
PD* 3 10
ET 200S 4
ET 200S
OP 25**
11
* The ET 200S can be configured and programmed from this PD ** Operating and monitoring functions can be executed on the ET 200S 3, 4, 10, 11 MPI addresses of the nodes Figure 5-1 Example of an MPI network
Transmission rates
In the MPI network, all MPI transmission rates are possible with the IM 151-7 CPU.
Network components
You configure an MPI network using the same network components as those used for a PROFIBUS-DP network (see Section 4.2).
Maximum data transfer rate and cable length with a PD connecting cable
You can obtain a maximum data transfer rate of 1.5 Mbaud using the PD connecting cable. The cable length may not exceed 3 meters. The PD connecting cable should only be connected for an extended period of time during startup and service. Data transfer rates over 1.5 MBaud require an active connecting cable for the PD connection (order number: 6ES7 901-4BD00-0XA0).
5-2
5.2
MPI address
Features
With the MPI address, you determine the address under which the IM 151-7 CPU is accessed in the MPI network.
Prerequisites
S S The permitted MPI addresses are 0 to 126. Each address can be allocated only once on the MPI network.
Startup without configuration on the Micro Memory Card (MMC) (initial startup)
Following POWER ON, the coexistent interface on the IM 151-7 CPU powers up as an MPI interface with the address 2, HSA 31 and 187.5 kBaud. All PD functions listed in Section 4.4 are possible with the interface.
Note The bus parameters are retentive, i.e. bus parameters that have been configured (e.g. address, transmission rate) are retained S with POWER OFF
S if there is no longer a configuration on the IM 151-7 CPU (e.g. after SDBs have
been deleted or following POWER ON without MMC)
5-3
5-4
DP Master Module
Introduction
In combination with the DP master module, you can operate the IM 151-7 CPU as a DP master. In this case, the IM 151-7 CPU can be S S integrated in a PROFIBUS network as an I slave or operated in stand-alone mode (MPI).
You will require STEP 7 of V5.2 + SP1 or higher to configure the DP master functionality. The following figure shows an example of a network structure in which the IM 151-7 CPU acts as a DP master.
PROFIBUS-DP (Subnet 1) IM 151-7 CPU integrated as an I slave
ET 200S
ET 200S
ET 200M
ET 200S
ET 200M
ET 200X
Figure 6-1
Example of the structure with the IM 151-7 CPU acting as the DP master
This chapter contains information on mounting the DP master module and on commissioning the IM 151-7 CPU as the DP master.
Chapter overview
In Section 6.1 6.2 Contents Mounting the DP master module Starting up the IM 151-7 CPU as a DP master Page 6-2 6-3
6-1
DP Master Module
6.1
Procedure
Step 1 2 3 4 5 Description The IM 151-7 CPU is installed on the mounting rail. Hang the DP master module onto the mounting rail to the right of the IM 151-7 CPU. Swivel the DP master module down until it engages. Slide the DP master module to the left until it engages audibly in the IM 151-7 CPU. If required, mount terminal modules for power/electronics modules and slide the corresponding modules into the TM.
IM 151-7 CPU
DP master module
4 2
BF
DP master interface
Figure 6-2
6-2
DP Master Module
6.2
Note In the HW configuration, you must hang the DP master module in the station window separately as a submodule (X2).
assign the IM 151-7 CPU a PROFIBUS address, assign the IM 151-7 CPU a master diagnosis address, integrate DP slaves in the DP master system. Is an IM 151-7 CPU a DP slave? If so, you will find this DP slave in the PROFIBUS-DP catalog as a pre-configured station. In the DP master, you assign a slave diagnosis address to this DP slave CPU. You have to couple the DP master with the DP slave CPU and define the address ranges for the data exchange with the DP slave CPU.
Commissioning
Commission the IM 151-7 CPU as a DP master in the PROFIBUS subnet as follows: 1. The DP master module is mounted as described in Chap. 6.1. 2. Switch the supply voltage on. 3. Load the configuration of the PROFIBUS subnet (preset configuration) created with STEP 7 into the IM 151-7 CPU with the PD. 4. Switch all DP slaves on. 5. Switch the IM 151-7 CPU from STOP to RUN.
6-3
DP Master Module
6-4
DP Master Module
Tip: Always program OB 82 and OB 86 when commissioning the CPU as a DP master. This will allow you to detect and evaluate the faults and interruptions during data transfer.
6-5
DP Master Module
Note The use of status and control via the DP master interface extends the DP cycle.
Equidistance
As of STEP 7 V5.2, with the IM 151-7 CPU and DP master module, you can parameterize bus cycles of the same length (equidistant) for PROFIBUS subnets. You will find a detailed description of the functions in the Online Help for STEP 7.
6-6
Diagnostic options
The ET 200S distributed I/O system is designed to make handling and commissioning as simple as possible. If a fault or an error should occur in spite of this, you can analyze it using the LEDs, the slave diagnosis and the diagnostic options in STEP 7.
Interrupt evaluation
To help you evaluate the interrupts of the ET 200S, we will examine the difference between these and the interrupts of the S7/M7 DP master and other DP masters.
Chapter overview
In Section 7.1 7.2 7.3 7.4 7.5 7.6 7.7 Configuring the IM 151-7 CPU Resetting the memory of the IM 151-7 CPU Commissioning and startup of the IM 151-7 CPU as an I slave Diagnostics using LEDs Diagnostics via diagnostic address with STEP 7 Slave diagnostics with IM 151-7 CPU used as an intelligent slave Diagnostic data of the electronic modules Contents Page 7-2 7-4 7-7 7-9 7-12 7-15 7-25
7-1
7.1
The IM 151-7 CPU is presented to the user in STEP 7 as an S7-300 module that is always created together with a rack in an S7-300 station. Similarly, the module can only be deleted with the rack! Expansion racks cannot be configured in an S7-300 station that contains an IM 151-7 CPU. The IM 151-7 CPU is positioned at slot 2 and receives an MPI/DP submodule. The first plug-in modules can be configured as of slot 4. The following configuration options are available:
Table 7-1 Configuration options
Configuration tool
STEP 7 (HWConfig) S Stand-alone (MPI) V5.1 or higher + SP4 S IM 151-7 CPU as S7 slave STEP 7 (HWConfig) IM 151-7 CPU with the DP V5.2 or higher + SP1 master module as the DP master
SIMATIC S5
COM PROFIBUS
Fully configured and programmed IM 151-7 CPU, integrated as a standard intelligent slave via GSD in COM PROFIBUS Fully configured and programmed IM 151-7 CPU, integrated as a standard intelligent slave via GSD in a non-Siemens tool
Non-Siemens systems
Non-Siemens tool
Note If you wish to operate the IM 151-7 CPU as a standard I slave via the GSD file, then you should not activate the commissioning/test mode checkbox in the DP interface properties when configuring this slave CPU in STEP 7. Information on configuring the DP master functionality is provided in Chapter 6.2.
7-2
Prerequisite
You have opened STEP 7 and are in the SIMATIC Manager of STEP 7.
7-3
7.2
The following are possible reasons for the MRES request: S S S The ET 200S is starting up for the first time. Inconsistent memory areas The memory module (MMC) has been replaced.
Resetting the memory with the mode selector Described in this chapter.
Resetting the memory of the IM 151-7 CPU with the mode selector
To reset the memory of the IM 151-7 CPU using the mode selector, proceed as follows (see also Figure 7-1): 1. Switch the mode selector to the STOP position. 2. Depress the mode selector in the MRES position. Hold the mode selector at this position until the STOP LED lights up for the second time (3 seconds) and then let it return to the STOP position. 3. Within 3 seconds, you must press the mode selector back to the MRES position and hold it in this position until the STOP LED flashes rapidly (at 2 Hz). When the IM 151-7 CPU has completed the memory reset, the STOP LED stops flashing and remains on. The IM 151-7 CPU has reset the memory.
7-4
STOP LED On
1st
Figure 7-1
2.
3.
Response of the CPU in the IM 151-7 CPU 1. The CPU deletes the entire user program in the working memory and the RAM load memory. 2. The CPU deletes the retentive data. 3. The CPU tests its own hardware. 4. If you have inserted a memory module (micro memory card = MMC), the CPU copies the relevant contents of the module to the working memory.
The CPU has the memory level 0. If a SIMATIC micro memory card is inserted, the user program is transferred back into the working memory. The contents of the diagnostic buffer and the runtime meter.
7-5
Note If the CPU cannot copy the contents of the memory module (MMC) and requests a memory reset: S S S Remove the MMC. Reset the CPU memory. Read out the diagnostic buffer.
You can read out the diagnostic buffer with the PD (see the STEP 7 Online Help).
7-6
7.3
7-7
The program is transferred from the PD/PC to the memory module (MMC). The memory module is then inserted in the IM 151-7 CPU and the memory reset request acknowledged.
Note Without configuration, a default start-up is possible if the power modules are switched on and all the modules are inserted.
Start-up
When the IM 151-7 CPU is switched to RUN mode, the following mutually independent operating mode transitions take place: S S S The CPU switches from STOP to RUN mode. The IM 151-7 CPU starts user data transfer with the DP master on the PROFIBUS-DP. When the DP master module is plugged in, the IM 151-7 CPU starts user data transfer with the DP slaves on the PROFIBUS-DP.
7-8
7.4
LEDs
The RUN, STOP, ON, BF, SF and FRCE LEDs of the IM 151-7 CPU display important information on the states to the user. The IM 151-7 CPU has the following 6 LEDs: S S SF LED (System Fault) for indicating the presence of a fault in the ET 200S BF LED (Bus Fault) for indicating faults on the PROFIBUS-DP On the IM 151-7 CPU: on the DP master module: S S S S Bus fault on slave strand Bus fault on master strand
ON LED for indicating that the ET 200S is connected to a power supply FRCE LED for indicating that a force request is active. RUN LED for indicating that the IM 151-7 CPU is in RUN mode STOP LED for indicating that the IM 151-7 CPU is in STOP mode
The meaning of the LEDs for CPU functionality is described in detail in Section 8.2. The BF LED on the DP master module indicates in the DP master mode that errors have occurred in the PROFIBUS-DP.
ON LED is off
If the ON LED is off, either no supply voltage or insufficient supply voltage is being applied to the electronic components/sensors of the ET 200S. The cause is likely to be a defective fuse or inadequate or nonexistent system voltage.
7-9
passive node Transmission rate detection No active node at bus, DP master does not exist or is switched off, or bus connection interrupted
SF is on due to station failure Flashing On Parameter assignment error; there is no data exchange
S Station failure of a
configured sender in direct data communication
Off
Off
7-10
The table 7-5 shows the LED states for DP master operation.
Table 7-5 LED display for PROFIBUS-DP (IM 151-7 CPU is a master) SF LED on IM 151-7 CPU On Description Cause Error handling
S Bus connection
interrupted
S Bus short-circuit
S There is no
data exchange
S A connected station
has failed
S Parameter
assignment error
S Configured address
areas of the actual configuration not identical to the target configuration
7-11
7.5
Diagnostic addresses
If you run the ET 200S with a DP master from the SIMATIC S7 range on the PROFIBUS-DP, diagnostic addresses are assigned in STEP 7 as follows:
ET 200S
PROFIBUS
Diagnostic address When configuring the DP master, you specify (in the associated project for the DP master) a diagnostic address for the ET 200S.
Diagnostic address During configuration of the ET 200S, STEP 7 sets the diagnostic address for slot 2 to 2045 by default for the ET 200S (in the associated project for the ET 200S). The ET 200S receives information on the status of the DP master by means of this diagnostic address.
The DP master receives information on the status of the ET 200S or on a bus interruption by means of this diagnostic address. Figure 7-2
7-12
Event identification
The table below indicates how the DP master or the IM 151-7 CPU of the ET 200S identifies changes in operating mode and interruptions in user data transfer.
Table 7-6 Responses to operating mode changes and interruptions in user data transfer in the DP master and the ET 200S with the IM 151-7 CPU as an I slave What happens ... Event Bus interruption (short-circuit, connector removed) in the DP master in the IM 151-7 CPU
7-13
S OB82_MDL_ADDR:=1022 S OB82_EV_CLASS:=B#16#39
(incoming event)
S OB82_MDL_DEFECT:=Module fault
Tip: This information is available in the diagnostic buffer of the CPU. In the user program, you should also program SFC 13 (DPNRM_DG) to read out the slave diagnosis. CPU: RUN STOP The IM 151-7 CPU calls OB 82 with information including the following:
S OB82_MDL_ADDR:=2045 S OB82_EV_CLASS:=B#16#39
(incoming event)
S OB82_MDL_DEFECT:=Module fault
Tip: This information is available in the diagnostic buffer of the CPU.
7-14
7.6
Station status 1 to 3
. . .
Module diagnostics (the length depends on the number of address areas configured for the intermediate memory1) Module status (station diagnosis)
. . .
Byte y to Byte z
. . .
Interrupt status (station diagnosis) (the length depends on the type of interrupt)
Exception: If the DP master is incorrectly configured, the DP slave interprets 35 configured address areas (46H in byte 6). Format of the slave diagnostic data
Figure 7-3
7-15
7.6.1
Station status 1 to 3
Definition
Station status 1 to 3 provides an overview of the status of a DP slave.
Station status 1
Table 7-8 Structure of station status 1 (byte 0)
Bit 0
Remedy
1 2
1: DP slave is not ready for data interchange. 1: The configuration data which the DP master sent to the DP slave do not correspond with the DP slaves actual configuration. 1: Diagnostic interrupt, generated by RUN-STOP transition of the CPU or by the SFB 75 0: Diagnostic interrupt, generated by STOP-RUN transition of the CPU or by the SFB 75
S Wait; the DP slave is still doing its run-up. S Correct station type or correct configuration
of the DP slave entered in the configuration software?
1: Function is not supported, for instance changing the DP address at the software level. 0: This bit is always 0. 1: DP slave type does not correspond to the software configuration. 1: DP slave was parameterized by a different DP master to the one that currently has access to it.
5 6
7-16
Station status 2
Table 7-9 Structure of station status 2 (byte 1)
Bit 0 1 2 3 4 5 6 7
Description 1: DP slave must be parameterized again and reconfigured. 1: A diagnostic message has arrived. The DP slave cannot continue operation until the error has been rectified (static diagnostic message). 1: This bit is always 1 when there is a DP slave with this DP address. 1: The watchdog monitor has been activated for this DP slave. 1: DP slave has received FREEZE control command. 1: DP slave has received SYNC control command. 0: The bit is always at 0. 1: DP slave is deactivated, that is to say, it has been removed from the scan cycle.
Station status 3
Table 7-10 Structure of station status 3 (byte 2)
Description
1: S More diagnostic messages have arrived than the DP slave can buffer.
S The DP master cannot enter all the diagnostic messages sent by the
DP slave in its diagnostic buffer.
7-17
7.6.2
Definition
The DP address of the DP master is stored in the master PROFIBUS address diagnostic byte: S S The master that parameterized the DP slave The master that has read and write access to the DP slave
Bit 0 to 7
Description DP address of the DP master that parameterized the DP slave and has read/write access to that DP slave. FFH: DP slave has not been parameterized by a DP master.
7.6.3
Manufacturer ID
Definition
The manufacturer identification contains a code specifying the DP slaves type.
Manufacturer ID
Table 7-12 Structure of the manufacturer identification (bytes 4 and 5)
Byte 4 80H
Byte 5 E2H
7-18
7.6.4
Module diagnostics
Definition
The module diagnosis indicates for which of the configured address areas of the intermediate memory an entry has been made.
Structure
The following figure shows the structure of the module diagnosis for the maximum number of configured address areas.
7 6 5 4 3 2 1 0 1 0 Bit no.
Byte 6
Length of the module diagnosis, including byte 6 (up to 6 bytes, depending on the number of configured address areas) Code for module diagnosis 7 6 5 4 3 2 1 0 Byte 7 Target configuration0actual configuration Target configuration0actual configuration and slave CPU in STOP Target configuration0actual configuration Entry for 1st configured address area Entry for 2nd configured address area Entry for 3rd configured address area Entry for 4th configured address area Entry for 5th configured address area 7 6 5 4 3 Byte 8 Entry for 6th to 13th configured address area 7 6 5 4 3 Byte 9 Entry for 14th to 21st configured address area 7 6 5 4 3 Byte 10 Entry for 22nd to 29th configured address area Bit no. 2 1 0 Entry for 30th configured address area Entry for 31st configured address area Entry for 32nd configured address area Figure 7-4 Structure of the module diagnosis for the IM 151-7 CPU 2 1 0 Bit no. 2 1 0 Bit no. 2 1 0 Bit no. Bit no.
Byte 11
7 6 5 4 3 0 0 0 0 0
7-19
7.6.5
Module status
Definition
The module status indicates the status of the configured address areas and expands on the module diagnosis as regards the configuration. The module status begins after the module diagnosis and comprises max. 13 bytes.
7-20
Structure
The module status of the IM 151-7 CPU is structured as follows:
7 6 5 4 3 2 1 0 Bit no. Byte x 0 0 Length of the module status, including byte x (max. 13 bytes) Code for the station diagnosis 7 6 5 4 3 2 1 Byte x+1 0 Bit no. Status type: Module status
1 0 0 0 0 0 1 0
2H = Module status Code for status message Byte x+2 Byte x+3 7 6 Byte x+4
0 0 0 0
0H 0H
Always 0 Always 0
Bit no.
Slot of the CPU 1st configured address area 7 6 5 4 3 2 1 0 Bit no. Byte x+5 2nd configured address area 3rd configured address area 4th configured address area 5th configured address area 7 6 5 4 3 2 1 0 Bit no. Byte x+6 6th configured address area 7th configured address area 8th configured address area 9th configured address area . . . 7 6 5 4 3 2 1 0 Bit no. Byte y-1
0 0
00B: Module ok; valid data 01B: Module fault; invalid data (module defective) 10B: Incorrect module; invalid data 11B: No module; invalid data
30th configured address area 31st configured address area 32nd configured address area Figure 7-5 Structure of the module status
7-21
7.6.6
Interrupt status
Definition
The interrupt status of the station diagnosis provides detailed information about a DP slave. The station diagnosis begins at byte y and can comprise max. 20 bytes.
Structure
The following figure shows the structure and content of the bytes for a configured address area of the intermediate memory.
7 6 5 4 3 2 1 0 Bit no. 0 0 Length of the interrupt status, including byte y (max. 20 bytes) Code for the station diagnosis Byte y+1 01H: Code for diagnostic interrupt 02H: Code for process interrupt 7 6 5 4 3 2 1 0 Bit no. Slot no.: 2 = CPU 4 ... 35 = No. of configured address area of intermediate memory 7 6 5 4 3 2 1 0 Bit no. 00 = No further information 0 0 0 0 0 0 on diagnostic status 01 = Incoming diagnosis (at least 1 fault exists) 10 = Outgoing diagnosis 11 = Outgoing diagnosis, but another fault exists
Byte y
Byte y+2
Byte y+3
. . .
Byte z Example of byte y+2: CPU = 02H 1st address area = 04H 2nd address area = 05H etc. Figure 7-6 Structure of the interrupt status
7-22
Structure of the interrupt data with process interrupt (from Byte y+4 onwards)
With the process interrupt (in byte y+1, code 02H stands for a process interrupt), the 4 byte interrupt information which you transfer in the intelligent slave with the SFC 7 DP_PRAL and SFB 75 SALRM when the process interrupt is generated for the master, is transferred from byte y+4 onwards.
Structure of the interrupt data when a diagnostic interrupt is generated by a mode change at the intelligent slave (from Byte y+4 onwards)
In the byte y+1, the code stands for diagnostic interrupt (01H). The diagnostic data contains the 16 byte status information for the CPU. The following figure shows the assignment of the first 4 bytes of the diagnostic data. The next 12 bytes are always 0. The content of these bytes corresponds to the content of data record 0 for diagnosis in STEP 7 (in this case not all bits are assigned).
7 6 5 4 3 2 1 0 Bit no. 0 0 0 0 0 0 0 0: IM 151-7 CPU ok 1: IM 151-7 CPU faulty 7 6 5 4 3 2 1 0 Bit no. Byte y+5 0 0 0 0 1 0 1 1
Byte y+4
Identifier for the address area of the intermediate memory (constant) 7 6 5 4 3 2 1 0 Bit no. 0 0 0 0 0 0 0 0: Operating mode RUN 1: Operating mode STOP 7 6 5 4 3 2 1 0 Bit no. 0 0 0 0 0 0 0 0 Byte y+4 to y+7 for the diagnostic interrupt (changed operating status of the intelligent slave)
Byte y+6
7-23
Structure of the interrupt data when a diagnostic interrupt is generated by the SFB 75 in the intelligent slave (from Byte y+4 onwards)
7 6 5 4 3 2 1 0 Bit no. Byte y+4 0 0: Module ok 1: Module fault Diagnostic data fixed by definition
7 6 5 4 3 2 1 0 Bit no. Byte y+5 7 6 5 4 3 2 1 0 Bit no. Byte y+6 7 6 5 4 3 2 1 0 Bit no. Byte y+7 . . . 7 6 5 4 3 2 1 0 Bit no. Byte y+19 Refer to the application description for the SFB 75 More detailed information can be found in the STEP 7 Online Help or in the Reference Manual, System Software for S7-300/400 System and Standard Functions
Figure 7-8
7-24
7.7
7.7.1
In this section
This section describes the structure of the diagnostic data in the system data. You must be familiar with this structure if you want to evaluate the diagnostic data of the electronic modules in the STEP 7 user program.
You can read out data record 0 and data record 1 using the SFC 59 RD_REC and SFB 52 RDREC.
7-25
B#16#20
Channel type Length diagn. information Number of channels Faulty channels (channel vector) Single fault, channel 0 Single fault, channel 1 Single fault, channel 2 Single fault, channel 3
Information block
Channel-specific diagnostics
Channel type Length diagn. information Number of channels Faulty channels (channel vector) Single fault, channel 0 Single fault, channel 1 Single fault, channel 2 Single fault, channel 3
Information block 1
Channel-specific diagnostics 1
These bytes only appear if the diagnosed module is a mixed module; bit 7 is then set in byte 4. Structure of the diagnostic data using a 4 channel mixed module as an example
Figure 7-9
The number of channel-specific diagnostic bytes depends on the number of channels in the module. However, at least channel 0 must exist. The minimum length of data record 1 is therefore 12 bytes. If, for example, you have a mixed module with 1 input channel and 2 output channels, the second information block begins at byte 12. In this example, the total length of the diagnostic data is 24 bytes.
7-26
7.7.2
Bytes 0 and 1
7 6 5 4 3 2 1 0 Byte 0 0 0 0 0 0 Module fault External fault Channel fault exists
7 6 5 4 3 2 1 0 Byte 1 0 0 0 1
Module class (see Table 7-13) Channel information available Figure 7-10 Bytes 0 and 1 of the diagnostic data
Module classes
The table below contains the identifiers for the module classes (bits 0 to 3 in byte 1).
Table 7-13 Identifiers of the module classes Identifier 0101 0110 1000 1001 1100 1101 Analog module CPU Function module Digital module (I/O with limited address area) CP PS Module class
Bytes 2 and 3
These bytes are not used.
7-27
Bytes 4 to 7
7 6 5 4 3 2 1 0 Byte 4
Channel type
B#16#7B: Input module B#16#7C: Output module B#16#7D: PM, FM, VA (motor starter)
Mixed module? 0: No 1: Yes; the diagnostic data for the inputs follows; the diagnostic data for the outputs is contained in bytes 12, 16, 20 or 24 onwards (depends on the channel number of the inputs) Byte 5 7 0 0 1 0 0 0 0 0 0 7 Byte 6 7 6 5 4 3 2 1 0 Byte 7 Channel vector Channel fault, channel 0 Channel fault, channel 1
... ... ... ... ...
Length of the diagnostic information per channel in bits (= always 32) Number of channels of same type in a module
Channel fault, channel 6 Channel fault, channel 7 Figure 7-11 Bytes 4 to 7 of the diagnostic data
7-28
7.7.3
Byte y
R = Bit is reserved
Short circuit Power supply too low (lower tolerance violation) Power supply too high (upper tolerance violation) Output stage overloaded Output stage overloaded and overheated Signal line interrupted or sensor power supply faulty Upper limit violation Byte y+1 7 6 5 4 3 2 1 0 R R R R R R Lower limit violation Fault, e.g.: hardware fault in module, sensor power supply faulty, contactor jammed, load voltage at output, etc. 7 6 5 4 3 2 1 0 Byte y+2 R Parameter assignment error Sensor or load voltage missing Fuse faulty (must be changed by the user) Ground fault Error on the reference channel Process interrupt lost Actuator warning; e.g.: speed or load current exceeded 7 6 5 4 3 2 1 0 R R R R Actuator shutdown; e.g.: safety shutdown, ground fault, thermistor has been triggered, etc. Condition for safety shutdown exists External fault; e.g.: fault at sensor/actuator, etc. Unclear fault: fault must be specified more precisely Figure 7-12 Single fault of a channel
Byte y+3
7-29
7.7.4
Example: ET 200S module: 2 AI U (6ES7 134-4FB00-0AB0) each with diagnostics for channel 0 and 1
The table below shows examples of diagnostic message evaluation for the specified module.
Byte number 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Value B#16#0D B#16#15 B#16#00 B#16#00 B#16#7B B#16#20 B#16#02 B#16#03 B#16#80 B#16#00 B#16#00 B#16#00 B#16#00 B#16#01 B#16#00 B#16#00
Description Module fault, external fault, channel fault exists Channel information exists; type class = analog module Unassigned Unassigned Input module, not a mixed module = 32 bit diagnostic information per channel (constant) The module has 2 channels Channel fault at channel 0 and channel 1 Channel fault, channel 0: upper limit violation Channel 0: no other fault Channel 0: no other fault Channel 0: no other fault Channel 1: no fault Channel fault, channel 1: lower limit violation Channel 1: no other fault Channel 1: no other fault
7-30
In this chapter
In this chapter you will find: S S Important features of the IM 151-7 CPU for the PROFIBUS-DP A list of the CPU functions of the IM 151-7 CPU that you can call with STEP 7, such as the integrated clock, blocks for the user program and parameters that can be set
Chapter overview
In Section 8.1 8.2 8.3 8.4 8.5 8.6 8.7 8.8 8.9 8.10 8.11 8.12 8.13 8.14 8.15 Data for the PROFIBUS-DP The mode selector and LEDs SIMATIC Micro Memory Card Memory concept Interfaces Clock S7 connections Communication Routing Data consistency Blocks Parameters Parameterization of the reference junction for the connection of thermocouples Removal and insertion of modules during operation Switching power modules off and on during operation Contents Page 8-2 8-4 8-6 8-12 8-26 8-28 8-29 8-34 8-38 8-41 8-42 8-44 8-46 8-48 8-51
8-1
8.1
You can download the DDB file from the Internet. You will find all the DDB files under Downloads on the SIMATIC Customer Support web site: http://www.ad.siemens.de/csi/gsd
Important features
If you do not have the DDB file to hand, the following table lists the most important features of the IM 151-7 CPU.
Table 8-1 Attributes from the device database (DDB) file Feature Manufacturer ID Supports FMS Supports 9.6 kbaud Supports 19.2 kbaud Supports 45.45 kbaud Supports 93.75 kbaud Supports 187.5 kbaud Supports 500 kbaud Supports 1.5 Mbaud Supports 3 Mbaud Supports 6 Mbaud Supports 12 Mbaud Supports the FREEZE control command Supports the SYNC control command Supports automatic transmission rate detection PROFIBUS address modifiable by software Length of user-specific parameter assignment data User-specific parameter assignment data DP code word to IEC 61784-1:2002 Ed1 CP 3/1 Ident_Number FMS_supp 9.6_supp 19.2_supp 45.45_supp 93.75_supp 187.5_supp 500_supp 1.5M_supp 3M_supp 6M_supp 12M_supp Freeze_Mode_supp Sync_Mode_supp Auto_Baud_supp Set_Slave_Add_supp User_Prm_Data_Len User_Prm_Data IM 151-7 CPU 80E2H No Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes No 3 bytes Yes
8-2
Table 8-1
Attributes from the device database (DDB) file, continued Feature DP code word to IEC 61784-1:2002 Ed1 CP 3/1 Min_Slave_Intervall Modular_Station Max_Module Max_Input_Len Max_Output_Len Max_Data_Len Unit_Diag_Bit Unit_Diag_Area Module, End_Module Channel_Diag Max_Diag_Data_Len IM 151-7 CPU 1(100ms) 1 35 244 244 488 Via ON LED Unassigned Yes No 39 bytes
Minimum interval between two slave list cycles Modular device Maximum number of modules Maximum number of inputs in bytes Maximum number of outputs in bytes Maximum combined number of inputs and outputs in bytes Central display of vendor-specific status and error messages Allocation of values in the station diagnostic field to texts Identifiers of all address areas for PROFIBUS Allocation of vendor-specific error types in channel-specific diagnostic field to texts Maximum length of the diagnostic data
8-3
8.2
Mode selector
The mode selector of the IM 151-7 CPU is designed as a 3-step toggle switch (see below):
Figure 8-1
Mode selector
S Be read out from the CPU using a PD (CPU PD) S Transferred to the CPU (PD CPU)
MRES Reset CPU memory Momentary-contact position of the mode selector for resetting the CPU memory. You must adhere to a specific sequence when resetting the CPU memory using the mode selector (see Section 7.2)
8-4
You can obtain information on the power supply of the CPU, on force requests and on general errors via 3 additional LEDs.
Table 8-3 LED ON (green) RUN (green) LEDs for CPU functionality Description Power on RUN mode Description Comes on when the supply voltage is applied to the CPU Shines continuously when the CPU is not processing the user program. Flashes at 2 Hz during CPU start-up:
S For at least 3 secs, but the CPU start-up can also be shorter. S During the CPU start-up the STOP LED also lights up; when
the STOP LED goes off, the outputs are enabled. Flashes at 0.5 Hz when the CPU has reached a breakpoint you have set. At the same time the STOP LED comes on. STOP (yellow) STOP mode Comes on when the CPU
S is not processing a user program. S Has reached a breakpoint you have set At the same time the
RUN LED flashes at 0.5 Hz Flashes at 0.5Hz, when the CPU requests a memory reset (see Section 7.2). FRCE (yellow) SF (red) Force request active Group error Lights up when a force request is active. Lights up in the event of
S S S S S S S
Programming errors Parameter assignment errors Calculation errors Timing errors I/O errors Hardware errors Firmware errors
To determine the exact nature of the error/fault, you have to use a PD and read out the contents of the diagnostic buffer.
8-5
8.3
Note On one MMC you can store either user and configuration data or the operating system.
Copy protection
The MMC has an internal serial number for the purpose of providing MMC copy protection at the user level. You can read out this serial number from the SZL parts list, 011CH Index 8, using the SFC 51 RDSYSST. For example, you can program a STOP command in a know-how protected block for the event that the set and actual serial number of the MMC do not match. More detailed information can be found in the SZL parts list in the instructions list or in the System and Standard Functions manual.
Features
The SIMATIC micro memory card ensures zero maintenance and retentivity for the IM 151-7 CPU. More detailed information can be found in Section 8.4. Caution The module content of a SIMATIC micro memory card can be corrupted if the card is removed while a write operation is being performed. The MMC must then be erased at the PD or formatted in the IM 151-7 CPU. Never remove the MMC in RUN mode; it should only be removed when the IM 151-7 CPU is in the POWER OFF or STOP mode and only if the PD is not currently performing a write access operation. If in the STOP mode you are not sure whether or not the PD is currently performing a write access operation (e.g. loading/erasing a block), unplug the communication connections beforehand.
8-6
Caution To prevent data loss, never exceed the maximum number of erase/write operations.
The MMCs with a 4 MByte and 8 MByte memory are required for a firmware update.
8-7
The content of the MMC has been designated as invalid. The Load User Program operation has been interrupted by POWER OFF (see Special Measure). The Promming operation has been interrupted by POWER OFF (see Special Measure). A fault has occurred during evaluation of the module content prior to a memory reset. A fault has occurred during formatting, or formatting could not be performed.
If one of the above-described faults has occurred, the CPU also requests another memory reset after a memory reset has been performed. The content of the card is retained until the special measure has been completed, unless the Load User Program or Promming operations are interrupted by POWER OFF. Description of the special measure: When the IM 151-7 CPU requests a memory reset (the STOP LED flashes slowly), format it by operating the selector switch as follows: 1. Set the selector switch to the MRES position and hold it there (approx. 9 seconds) until the STOP LED remains lit (stops flashing). 2. Within the next 3 seconds you must release the selector switch and move it back to the MRES position. The STOP LED flashes during the formatting procedure. Make sure that you perform the steps in the specified time, otherwise the MMC will not be formatted and will reassume the Memory Reset status. The MMC is only formatted if a formatting condition (see above) exists and not e.g. when a memory reset is requested after a module is changed. In this case, switching to MRES only results in a standard memory reset whereby the content of the module remains valid.
8-8
IM 151-7 CPU
MMC
6ES7 9538Lx000AA0
SIEMENS SIMATIC
MEM
Figure 8-2
Position of the memory card slot for the MMC on the IM 151-7 CPU
If a new MMC is inserted in the memory card slot, the IM 151-7 CPU requests a memory reset.
8-9
Step 1st
Action required Transfer update files to a blank MMC using STEP 7 and your programming device (w 4 MB). -
2.
Deenergize the IM 151-7 CPU and insert the MMC with the FW update Switch the power on The IM 151-7 CPU automatically detects the MMC with the FW update and starts the FW update. All LEDs light up during the FW update. The STOP LED flashes after the FW update has been completed. In this way, the IM 151-7 CPU requests a memory reset.
3.
4.
Deenergize the IM 151-7 CPU and remove the MMC with the FW update Switch on the power supply again. The IM 151-7 CPU performs an automatic memory reset and is then ready for operation.
5.
8-10
Step 1st 2. 3.
Action required Insert a new micro memory card (w 4 MB) in the CPU Hold the mode selector in the MRES position. Switch the power off then on, and keep the mode selector in the MRES position until... Move the mode selector to STOP Move the mode selector briefly to MRES, then let it snap back to STOP
... STOP, RUN and FRCE LEDs start flashing The IM 151-7 CPU starts to back up the operating system on the MMC. All the LEDs light up during backup. The STOP LED flashes after the backup has been completed. In this way, the IM 151-7 CPU requests a memory reset.
4. 5.
6.
8-11
8.4
Memory concept
8.4.1
Organization
The memory of the IM 151-7 CPU can be divided into three areas:
MMC
Figure 8-3
Load memory
The load memory is installed on a SIMATIC micro memory card (MMC). It is used to record code and data blocks as well as system data (configuration, connections, module parameters, etc.). Blocks which are designated as non-process-related are recorded in the load memory. The complete configuration data for a project can also be stored on the MMC. Your program in the load memory (MMC) is always retentive. When downloaded, it is stored on the MMC such that it is unaffected by power failures and is not erased by memory resets.
Note The IM 151-7 CPU can only be operated with the MMC inserted.
8-12
Working memory
The working memory is integrated on the CPU and cannot be expanded. It is used to process the codes and data of the user program. Program processing is only performed at the working memory and system memory. The working memory of the CPU is retentive if the MMC is inserted. Your data in the working memory is saved on the MMC if the power supply is interrupted.
System memory
The system memory is integrated on the CPU and cannot be expanded. It contains S S S the address areas memory markers, timers and counters the process images of the inputs and outputs the local data
For memory markers, timers and counters, you can configure (Properties of the CPU, Retentivity tab) which parts are to be retentive and which parts are to be initialized with 0 when a complete restart (warm restart) is performed. The diagnostic buffer, MPI address (and transmission rate) as well as the run-time meter are generally stored in the retentive memory area on the CPU. Retentivity of the MPI address and transmission rate ensures that your CPU is still able to communicate following a power failure, a memory reset or the loss of communication parameters (by removing the MMC or erasing the communication parameters).
Retentivity
The IM 151-7 CPU has a retentive memory. The retentivity is provided on the MMC and CPU. The retentivity means that the content of the retentive memory is retained even following POWER OFF and a restart (warm restart).
8-13
Can be set in the DB properties using STEP 7 V5.2 + SP1 (see below) X X X X X X
Memory markers, timers and counters configured as retentive Diagnostic buffers, run-time meters MPI address, transmission rate x = retentive; = not retentive
X X
Table 8-8
In the event of a POWER OFF/ON or a CPU In the event of a POWER OFF/ON or a CPU restart (STOP RUN), the current values restart (STOP RUN), the current values of the DB are not retentive. The DB receives of the DB are retained. the initial values from the load memory. Prerequisite in STEP 7: Prerequisite in STEP 7:
8-14
8.4.2
Memory functions
Introduction
You use the memory functions to generate, modify or erase user programs and individual blocks. The memory functions also allow you to archive your own project data in order to ensure the retentivity of your data.
Programming device
MMC
6ES7 9538Lx000AA0
Load memory
Memory Card
Micro
SIMATIC
SIEMENS
Working memory
Code blocks
Code blocks
Data blocks
Data blocks
Comments Symbols
Figure 8-4
The program cannot be started until all of the blocks have been loaded.
Note The function is only permitted when the CPU is in STOP mode. The load memory remains empty if loading could not be completed owing to a power failure or invalid blocks.
8-15
Warning When blocks/a user program are overloaded, all of the data stored on the MMC under the same name is lost.
When a block has been downloaded, the content in the case of process-related blocks is transferred to the working memory and activated.
Erasing blocks
When a block is erased, it is deleted from the load memory. It is possible to erase data blocks from the user program (SFC 23 DEL_DB). If memory in the working memory has been occupied by this block, this memory is released.
Uploading
Unlike downloading, uploading involves loading individual blocks or a complete user program from the CPU to the PD/PC. In this case, the blocks have the same content as when last downloaded to the MMC. Process-related data blocks are the exception; they receive the current values. Uploading blocks or the user program from the CPU using STEP 7 does not have any effect on the memory assignment of the CPU.
8-16
Compression
Compression fills any gaps between memory objects which are formed by loading and erasing operations in the load and working memory. Contiguous areas of free memory are then available. Compression is possible when the CPU is in both the STOP and RUN mode.
Note The function is only permitted when the CPU is in STOP mode. The load memory remains empty if the function could not be completed owing to a power failure.
8-17
Caution The module content of a SIMATIC micro memory card can be corrupted if the card is removed while a write operation is being performed. The MMC must then be erased at the PD or formatted in the IM 151-7 CPU. Never remove the MMC in RUN mode; it should only be removed when the IM 151-7 CPU is in the POWER OFF or STOP mode and only if the PD is not currently performing a write access operation. If in the STOP mode you are not sure whether or not the PD is currently performing a write access operation (e.g. loading/erasing a block), unplug the communication connections beforehand.
Inserting: The MMC with the appropriate user program is inserted as follows: 1. Insert the MMC 2. The IM 151-7 CPU requests a memory reset 3. Acknowledge the memory reset If the IM 151-7 CPU requests a memory reset again owing to an incorrect MMC or an MMC with a firmware update being inserted, proceed as described in Section 8.3 under Special Measure. 4. Start the IM 151-7 CPU
Warning Make sure that the MMC to be inserted contains the user program appropriate for the IM 151-7 CPU (for the system). An incorrect user program can have serious effects on processing.
8-18
Memory reset
A memory reset restores defined conditions following removal/insertion of the micro memory card so that the IM 151-7 CPU can be restarted (warm restart). When the memory is reset, the memory administration system of the IM 151-7 CPU is reorganized. All blocks of the load memory are retained. All process-related blocks are transferred again from the load memory to the working memory; this initializes the data blocks in the working memory (they receive their initial values from the load memory again). The memory reset procedure and the special points associated with it are described in Section 7.2.
8-19
8.4.3
Address areas
Overview
The system memory of the IM 151-7 CPU id divided into address areas (see the table below). In your program, you use the appropriate operations to address the data directly in the respective address area.
Table 8-9 Address areas of the system memory Description At the beginning of each OB 1 cycle, the IM 151-7 CPU reads the inputs out of the input modules and stores the values in the process image of the inputs. During the cycle, the program calculates the values for the outputs and stores them in the process image of the outputs. At the end of the OB 1 cycle, the IM 151-7 CPU writes the calculated output values to the output modules. This area provides memory for intermediate results calculated in the program. Timers are available in this area. Counters are available in this area. This memory area records the temporary data of a code block (OB, FB, FC) during the period in which this block is being processed. See Section 8.4.4
Data blocks
The Instruction list tells you which address areas are possible with your CPU.
8-20
Writing the process image of the outputs to the electronic modules PIQ Reading the inputs from the electronic modules and updating the data in the process image of the inputs Processing the user program (OB 1 and all blocks called in the program)
PII
User program
CCP (OpSy)
Figure 8-5
Cycle time
8-21
Local data
The following are stored as local data: S S S S The temporary variables of code blocks The start information of the organization blocks Transfer parameters Intermediate results
Temporary variables When creating blocks, you can declare temporary variables (TEMP) which are only available while the block is being processed and are then overwritten again. This local data has a fixed length for each OB. The local data must be initialized before the first read access operation. Furthermore, each organization block requires 20 bytes for its start information. Local data is accessed faster than data in the DBs. The IM 151-7 CPU has memory for the temporary variables (local data) of blocks that have just been processed. This memory is divided equally between the priority classes. Each priority class has its own local data area.
Caution All temporary variables (TEMP) of an OB and its subordinate blocks are stored in the local data. The local data area could overflow if you use a large number of nesting levels for block processing. The IM 151-7 CPU changes to the STOP mode if you exceed the permitted quantity of local data in a priority class. Take into consideration the amount of local data required by the synchronous fault OBs. In each case, the local data requirement is assigned to the responsible priority class.
8-22
8.4.4
Recipes
A recipe is a collection of user data. A simple recipe concept can be realized using non-process-related data blocks. The recipes should have the same structure (length). There should be one DB for each recipe.
Working with the recipe data: S Calling the SFC 83 READ_DBL from the user program causes the data record of the current recipe to be read out of the DB in the load memory and into a process-related DB in the working memory. As a result, the working memory only has to accommodate the data from one data record. The user program can now access the data of the current recipe.
Load memory (MMC) Recipe 1 Recipe 2 : Recipe n SFC 84 WRIT_DBL SFC 83 READ_DBL Working memory (IM 151-7 CPU) Current recipe
Figure 8-6
Writing back a modified recipe: S Calling the SFC 84 WRIT_DBL from the user program writes new or modified data records of a recipe, which are created during program processing, back to the load memory. The data written to the load memory is not erased by a memory reset and is transferrable. If modified data records (recipes) are to be stored on the PD/PC, they can be uploaded and stored there as a complete block.
8-23
Archiving the measured values: S Calling the SFC 84 WRIT_DBL from the user program moves the measured values in the DB to the load memory before the data volume can exceed the memory capacity of the working memory.
Load memory (MMC) Measured values 1 Measured values 2 : Measured values n SFC 84 WRIT_DBL SFC 82 CREA_DBL Working memory (IM 151-7 CPU) Current measured values
Figure 8-7
Calling the SFC 82 CREA_DBL from the user program generates new (additional) DBs as non-process-related DBs in the load memory. These non-process-related DBs do not require space in the working memory.
Note If a DB with the same name already exists in the load memory and/or working memory, the SFC 82 is terminated and an error display is generated.
The data written to the load memory is not erased by a memory reset and is transferrable. Evaluating the measured values: S The measured value data blocks stored in the load memory can be uploaded and evaluated by other communication partners (e.g. PD, PC, ...).
8-24
MMC access
Note Active system functions SFC 82 to 84 (current access to the MMC) have a major influence on PD functions (e.g. status block, status variable, download block, upload block, open block). Their performance is typically 10 times lower (compared to non-active system functions).
To prevent data loss, never exceed the maximum number of erase/write operations of an MMC. Refer also to Section 8.3.
Caution The module content of a SIMATIC micro memory card can be corrupted if the card is removed while a write operation is being performed. The MMC must then be erased at the PD or formatted in the CPU. Never remove the MMC in RUN mode; it should only be removed when the CPU is in the POWER OFF or STOP mode and only if the PD is not currently performing a write access operation. If in the STOP mode you are not sure whether or not the PD is currently performing a write access operation (e.g. loading/erasing a block), unplug the communication connections beforehand.
8.4.5
8-25
8.5
Interfaces
The IM 151-7 CPU has a coexistent MPI/DP interface X1. The DP master module has a PROFIBUS-DP master interface X2. The interfaces are described below.
MPI interface
The MPI (Multi Point Interface) is the interface of the IM 151-7 CPU to a PD/OP and the interface allowing communication in an MPI network. The IM 151-7 CPU has an MPI interface which functions with RS 485. The typical (default) transmission rate is 187.5 kbaud. The IM 151-7 CPU supports all MPI transmission rates. The IM 151-7 CPU automatically sends its set bus parameters (e.g. the transmission rate) to the MPI interface. A programming device, for example, is thus supplied with the correct parameters and can automatically connect to an MPI subnetwork.
Note You can only connect PDs to the MPI subnetwork during operation. Other nodes (e.g. OP, TP, ...) should not be connected to the MPI subnetwork during operation, otherwise the transmitted data could be corrupted by interference noises or global data packets could be lost.
PROFIBUS-DP interface
The PROFIBUS-DP interface is mainly used to connect distributed I/Os. You use the PROFIBUS-DP to configure extended subnetworks. Transmission rates of up to 12 Mbaud are possible on the PROFIBUS. The IM 151-7 CPU has a PROFIBUS-DP interface. This can be configured to be active or passive. The IM 151-7 CPU as active station sends the set bus parameters (e.g. the transmission rate) to the PROFIBUS-DP interface. A programming device, for example, is thus supplied with the correct parameters and can automatically connect to a PROFIBUS subnetwork. The sending of bus parameters can be deactivated in the configuration settings.
8-26
DP master interface
The DP master interface on the DP master module is used to connect the distributed I/O (slaves). Transmission rates of up to 12 Mbaud are possible. The DP master interface can be configured to be a DP master or to be inactive. S S As a DP master the interface requires a configuration. Slaves can be operated when the configuration is loaded; PD/OP functions and routing are possible. The interface is always inactive when there is not configuration.
S S7-200
(only with 19.2 kbaud)
S PD/PC S OP/TP
S PD/PC S OP/TP
Further information
More detailed information on the individual connections can be found in the Communication with SIMATIC manual.
8-27
8.6
Clock
The IM 151-7 CPU has an integrated hardware clock.
Features
The table below indicates the features and functions of the clock. When you parameterize the CPU in STEP 7, you can also set functions such as synchronization via the MPI interface and correction factors (refer to the STEP 7 online help for information on how to do this).
Table 8-11 Features of the clock Features Type Manufacturer setting Backup Backup time Run-time meter IM 151-7 CPU Hardware clock DT#1994-01-01-00:00:00 By means of integrated capacitor Typ. 6 weeks (at ambient temperature of 40 C) 1
8-28
8.7
S7 connections
Introduction
If S7 modules communicate with each other, a so-called S7 connection is built up between the modules. This forms the communication route.
Each communication connection requires S7 connection resources on the CPU; these must exist for the duration of the specific connection. Therefore, a specific number of S7 connection resources is made available on each S7 CPU that are used by different communication utilities (PD/OP communication, S7 communication or S7 basic communication).
Each communications-capable module can become a connection point of an S7 connection. At the connection point, the established communication connection always occupies one S7 connection of the specific module.
8-29
Assigning S7 connections
The S7 connections on a communications-capable module can be assigned in various ways: Reserving connections during configuration S If, in STEP 7, a CPU is plugged in when the hardware is configured, S7 connections are automatically reserved on this CPU for both the PD and OP communication. For PD and OP communication and for S7 basic communication, the S7 connections can be reserved in STEP 7.
Assigning connections by programming For the S7 basic communication, the connection is established via the user program. The CPU operating system initiates the build up of the connection and the corresponding S7 connections are assigned. Assigning connections upon commissioning, testing and diagnosis S7 connections for the PD communication are assigned by means of an online function on the Engineering Station (PD/PC with STEP 7): S If an S7 connection was reserved in the CPU for PD communication when the hardware was configured, it is allocated to the Engineering Station, i.e. it is simply assigned. If all reserved S7 connections for PD communication have already been assigned and unreserved S7 connections are still fee, the operating system allocates a connection that is still free. If there are no longer any free connections, the Engineering Station cannot communicate online with the CPU.
Assigning connections for B&B utilities S7 connections for the OP communication are assigned by means of an online function on the B&B Station (OP/TP/... with ProTool): S If an S7 connection was reserved in the CPU for OP communication when the hardware was configured, it is allocated to the B&B Station, i.e. it is simply assigned. If all reserved S7 connections for OP communication have already been assigned and unreserved S7 connections are still fee, the operating system allocates a connection that is still free. If there are no longer any free connections, the B&B Station cannot communicate online with the CPU.
8-30
8-31
The CPUs make available 4 connections for routing from PD functions. These connections are additional to the S7 connections. This communication utility does not use S7 connections.
8-32
S Reserved for PD communication S Reserved for OP communication S Reserved for S7 basic communication S Free S7 connections
There remain 6 S7 connections for other communication utilities, such as S7 communication, OP communication, etc.
S S
8-33
8.8
Communication
The user interface can be very different (SFC, SFB, ...) and also depends on the used hardware (SIMATIC-CPU, PC, ...). The IM 151-7 CPU provides the following communication utilities:
Table 8-14 Communication utilities of the IM 151-7 CPU Communication utility PD communication OP communication S7 basic communication S7 communication Functionality Commissioning, testing, diagnostics Operating and monitoring Data exchange Data exchange S7 connection Set up by the PD as soon as the utility is used Set up by the OP when switched on Programmed by means of blocks (parameters at SFC) IM 151-7 CPU only as server; connection set up by the communication partner Does not require an S7 connection Set up by the PD as soon as the utility is used Via MPI x x x x Via DP x x x
Cyclic data exchange (e.g. memory markers) For example, testing and diagnosis across network boundaries
x x
PD communication
PD communication enables data exchange between engineering stations (e.g. PD, PC) and communications-capable SIMATIC modules. The utility is possible on MPI and PROFIBUS subnetworks. The transition between subnetworks is also supported. PD communication provides functions which are required for downloading programs and configuration data, for executing tests and evaluating diagnostic information. These functions are integrated in the operating system of the SIMATIC S7 modules. A CPU can maintain several online connections to one or more PDs simultaneously.
8-34
OP communication
OP communication enables data exchange between operator stations (e.g. OP, TP) and communications-capable SIMATIC modules. The utility is possible on MPI and PROFIBUS subnetworks. OP communication provides functions which are required for operation and monitoring. These functions are integrated in the operating system of the SIMATIC S7 modules. A CPU can maintain several connections to one or more OPs simultaneously.
S7 basic communication
S7 basic communication enables data exchange between S7-CPUs and communications-capable SIMATIC modules within an S7 station (acknowledged data exchange). Data is exchanged by means of non-configured S7 connections. The utility is possible on the MPI subnetwork or in the station of function modules (FM). S7 basic communication provides functions which are required for data exchange. These functions are integrated in the operating system of the IM 151-7 CPU. The user can use the utility via the System Function user interface (SFC).
S7 communication
The IM 151-7 CPU can only be a server in S7 communication. The connection is always set up by the communication partner. The utility is possible on MPI and PROFIBUS subnetworks. The utilities are processed by the operating system without an explicit user interface.
8-35
A GD packet could be lost if you do not observe these conditions. Reasons for this are: S S the performance of the smallest CPU in the GD circle global data is sent and received asynchronously by the sender and recipient
If in STEP 7 you set: Send After Each CPU Cycle and the CPU has a short CPU cycle (< 60 ms), the operating system could then overwrite a GD packet on the CPU which has not yet been sent. The loss of global data is indicated in the status field of the GD circle, provided that you have configured this option with STEP 7. Scan rate The scan rate indicates how many cycles the GD communication is divided into. You can set the scan rate when configuring the global data communication in STEP 7. If, for example, you select a scan rate of 7, global data communication only occurs every 7 cycles. This relieves the load on the CPU.
8-36
GD resources
The table below shows the GD resources of the IM 151-7 CPU.
Table 8-15 GD resources of the IM 151-7 CPU Parameters Number of GD circles per CPU Number of transmit GD packets per GD circle Number of transmit GD packets for all GD circles Number of receive GD packets per GD circle Number of receive GD packets for all GD circles Data length per GD packet Consistency Scan rate (default) Max. 4 Max. 1 Max. 4 Max. 1 Max. 4 Max. 22 bytes Max. 22 bytes 1 to 255 (8) IM 151-7 CPU
Routing
By means of an IM 151-7 CPU configured as a master and with STEP 7 as of V5.2 + Service Pack 1, you can reach S7 stations across different subnetworks (MPI interface / PROFIBUS-DP interface) using a PD/PC. For example, you can load user programs or a hardware configuration or perform testing and commissioning functions.
Note If you use the your CPU as an I slave, the routing function can only be used when the DP interface is active. Activate the Commissioning/Test Mode checkbox in the DP interface properties in STEP 7 (see Section 4.1). Detailed information can be found in the Programming with STEP 7 manual or directly in the STEP 7 Online Help.
8-37
8.9
Routing
Note If you use the your IM 151-7 CPU as an I slave, the routing function can only be used when the DP interface is active. Activate the Commissioning/Test Mode checkbox in the DP interface properties in STEP 7. Detailed information can be found in the Programming with STEP 7 manual or directly in the STEP 7 Online Help.
8-38
Gateway
The gateway from one subnetwork to one or more other subnetworks lies in a SIMATIC station that has interfaces to the respective subnetworks. Thus, in the diagram below, the CPU 31xC-2 DP acts as a router between subnetwork 1 and subnetwork 2.
Programming device
Figure 8-8
Routing gateway
Prerequisites
S S S The modules of the station are capable of routing (CPUs or CPs). The network configuration does not extend beyond the project boundaries. The modules have loaded in them the configuration information that contains the current knowledge on the entire network configuration of the project. Reason: All modules that participate in the gateway must contain information on which subnetworks can be reached along which routes (= routing information). S The PD/PC with which you wish to establish a connection via a gateway must be assigned in the network configuration to the network to which it is actually physically connected. The CPU must be configured as a master. If the CPU is configured as a slave, the Commissioning/Test Mode functionality must be activated in the DP interface properties for the DP slave in STEP 7.
S S
8-39
Actual configuration
Programming device
Configuring in STEP 7
Programming device
Figure 8-9
8-40
8.10
Data consistency
A data area is said to be consistent if it can be read/written by the operating system as a single block. The data that is transmitted together between devices should stem from one processing cycle and thus should form a unit, i.e. be consistent. If there is a programmed communication function in the user program, for example X-SEND/ X-RCV, that accesses shared data, the access to this data area itself can be coordinated using the BUSY parameter.
8-41
8.11
Blocks
This section provides an overview of the blocks that run in the IM 151-7 CPU. The operating system is designed for event-driven processing of the user program. The following tables show which organization blocks (OBs) the operating system automatically invokes in response to which events.
More information
You will find a detailed description of the blocks in the System and Standard Functions Reference Manual. There is an overview of all the STEP 7 documentation in the ET 200S Distributed I/O System manual.
All SFCs for the CPU are found in the Instruction list. All SFBs for the CPU are found in the Instruction list.
A maximum of 1024 blocks (number of FBs + FCs + DBs) can be loaded in each IM 151-7 CPU.
8-42
Note Note the following about OB 122: The CPU enters the value 0 in the following temporary variables of the variable declaration table in the local data of the OB: S Byte No. 3: OB122_BLK_TYPE (type of block in which the error occurred) S Byte No. 8 and 9: OB122_BLK_NUM (number of block in which the error occurred) S Byte No. 10 and 11: OB122_PRG_ADDR (address of block in which the error occurred)
8-43
8.12
Parameters
Parameterizable features
The properties and responses of the IM 151-7 CPU can be parameterized. You carry out this parameterization on different tabs in STEP 7.
S Type S Interval
Synchronization to MPI
S Type S Interval
Correction factor Retentivity Number of memory bytes starting with MB 0 Number of S7 timers starting with T 0 Number of S7 counters starting with C 0 Time-of-day interrupts OB 10 activation OB 10 execution
S S S S S S S S S
None Once Every minute Hourly Daily Weekly Monthly Last day of the month Annually
Year-month-day Hours:minutes
8-44
Table 8-17 Parameter blocks, settable parameters and their ranges for the IM 151-7 CPU, continue Parameter blocks Cyclic interrupts Cycle/clock memory Settable parameters Periodicity of the OB 35 (ms) Scan cycle monitoring time (ms) Cycle load from communication (%) OB85 call at I/O access error Range 1 to 60000 1 to 6000 10 to 50
S No call
Clock memory Memory byte Protection Level of protection Yes/no 0 to 255
Mode
S Test mode
Communication PD communication OP communication S7 basic communication Parameters Interference frequency suppression Bus length (see Note) Number of reference junctions 1 to 11 1 to 11 0 to 10 50 Hz / 60 Hz v1 m / u1 m 1
Note The configuration length of an ET 200S station must not exceed 2 meters.
8-45
8.13
Table 8-18 Parameterization of the reference junction CPU parameter Activation of the reference junction Slot Range Explanation
Activated/not activated You can enable the reference junction with this parameter. Only then can you continue to Example, see parameterize the reference junction. Figure 8-10 None/5 to 66 Example, see Figure 8-10 You can use this parameter to assign the RTD module slot to the reference junction. You can use this parameter to define the channel (0/1) for reference temperature measurement (determining the compensation value) for the assigned RTD module slot. Explanation
Channel number
Range
Resistance/temperatur If you use a channel of the RTD module for e measurement, e.g. reference junction parameterization, you must parameterize the measurement S RTD-4L Pt 100 type/measurement range for this channel as standard range RTD-4L Pt 100 climatic range. Range 1 Explanation This parameter allows you to assign the reference junction (1) that contains the reference temperature (compensation value). You can enable the use of the reference junction with this parameter.
None, RTD
8-46
Figure 8-10
Example of a parameterization dialog box for the CPU module parameters in STEP 7 V5.2 + SP1
Reference
You can find detailed information on the procedure, the connection system and an example of parameterization in the chapter entitled Analog Electronic Modules in the ET 200S Distributed I/O System manual.
8-47
8.14
Exceptions
The CPU itself must not be removed during operation and in an energized state.
8-48
8-49
The following activities only occur if the power module of the inserted module is switched off.
Table 8-21 Result of the preset/actual comparison in the case of parameterizable modules with the power module switched off Inserted module = configured module Inserted module 0 configured module
OB 83 is called with the corresponding diagnostic buffer entry (event ID 3861H). When the power module is switched on, the CPU reparameterizes the module. If parameter assignment is successful, the module is entered in the system status list as available. Direct access is again possible. When the power module is switched on, the CPU does not parameterize the module. The module remains entered in the system status list as unavailable. The SF LED on the module remains lit. Direct access is not possible.
8-50
8.15
What happens when power modules are switched off during operation
If the load power voltage to a power module is switched off during operation, the following activities take place: S If you enable diagnostics during parameter assignment for the power module, diagnostic interrupt OB 82 (diagnostic address of the power module) is called with the corresponding diagnostic buffer entry (event 3942H). The power module is entered as present but faulty in the system status list.
Switching off the load power supply has the following effects on the modules supplied by the power module: S S S S The SF LED on the modules lights up. The modules can continue to be accessed without an I/O access error occurring. The outputs of the modules are deenergized and inactive for the process. The inputs of digital modules and FM modules return 0; the inputs of analog modules return 7FFFH.
Switching on the load power supply has the following effects on modules supplied by the power module: S S The SF LED on the modules goes out. The modules regain their full functionality.
8-51
8-52
Introduction
In this chapter you will learn what make up the cycle and response times of the ET 200S with the IM 151-7 CPU. You can use the PD to read out the cycle time of your user program (see the STEP 7 user manual). The response time is more important for the process. In this chapter we will show you in detail how to calculate the response time.
Chapter overview
In Section 9.1 9.2 9.3 Cycle time Response time Interrupt response time Contents Page 9-2 9-5 9-8
Execution times
S S For the STEP 7 instructions that can be processed by the CPUs can be found in the Instruction list. For the SFCs/SFBs integrated in the CPUs can be found in the Instruction list.
9-1
9.1
Cycle time
The following figure shows the components that make up the cycle time:
Operating system Acyclic user program (e.g. OB 40/82) Interrupts PII Operating system Cyclic user program (OB 1) PIQ
Figure 9-1
9-2
Table 9-1
9-3
You can calculate the factor for your application approximately using the following rule of thumb for the IM 151-7 CPU: + = 1.1 0.005 x number of modules Multiplier for your user program
9-4
9.2
Response time
Factors
The response time depends on the cycle time and the following factors:
Remarks You can find the delay times in the technical specifications of the electronic modules in the ET 200S Distributed I/O System manual.
Range of fluctuation
The actual response time lies between a shortest and a longest response time. You must always reckon on the longest response time when configuring your system. The shortest and longest response times are considered below to let you get an idea of the width of fluctuation of the response time.
9-5
The status of the observed input changes immediately before reading in the PII. The change in the input signal is therefore taken account of in the PII.
The change in the input signal is processed by the user program here. The response of the user program to the input signal change is passed on to the outputs here.
Figure 9-2
Calculation
The (shortest) response time consists of the following: S S S S S 1 1 1 1 process image transfer time for the inputs + operating system processing time + program scanning time + process image transfer time for outputs +
This corresponds to the sum of the cycle time and the delay of the inputs and outputs.
9-6
While the PII is being read in, the status of the observed input changes. The change in the input signal is no longer taken into account in the PII.
The change in the input signal is taken account of in the PII here.
The change in the input signal is processed by the user program here. The response of the user program to the input signal change is passed on to the outputs here. Delay of the outputs + DP cycle time at the PROFIBUS-DP
Calculation
The (longest) response time consists of the following: S S S S S S 2 2 2 2 4 process image transfer time for the inputs + process image transfer time for the outputs + operating system processing time + program scanning time + run time of the DP slave frame (incl. processing in the DP master) +
This corresponds to the sum of 2x cycle time and delay of the inputs and outputs plus 4x DP cycle time.
9-7
9.3
Interrupt response times (without communication) for... Process interrupt, diagnostic interrupt
9-8
Technical Specifications
10
In this chapter
In this chapter you will find: S The technical specifications of the IM 151-7 CPU interface module
10-1
Technical Specifications
10.1
Order numbers
Interface module IM 151-7 CPU: DP master module: SIMATIC micro memory card (MMC): (see Section 8.3) 6ES7 151-7AA10-0AB0 6ES7 138-4HA00-0AB0 6ES7 953-8Lxx0-0AA0
Features
The IM 151-7 CPU interface module has the following features: S S S S S S S Intelligent slave with RS 485 interface to the PROFIBUS-DP Stand-alone operation (MPI) possible 48 kByte working memory, non-expandable, retentive with inserted MMC Plug-in load memory on the MMC, up to 8 MBytes Powerfail-proof storage of the user program and configuration via MMC Configurable with STEP 7, as of V5.1 + Service Pack 4 Maximum configuration of the local I/Os: 63 ET 200S modules Bus length of 2 meters In addition to the features listed above, the IM 151-7 CPU interface module with the DP master module has DP master functionality. Up to 32 DP slaves can be connected to the DP master interface. You will require STEP 7 of V5.2 + SP1 or higher to configure the system.
10-2
Technical Specifications
Description External 24 VDC supply Data line B Request To Send Data reference potential (from the station) Supply plus (from the station) External 24 VDC supply Data line A 24 VDC 24 VDC (to loop through) Masse Chassis ground (to loop through)
2 3 4 5
RS 485 interface
8 RxD/TxD-N 9
1 L+2L+ 1M 2M
1 L+ 2L+ 1M 2M
Table 10-2 Pin assignment of the DP master module View DP master module Signal name 1 2 3 RxD/TxD-P 6 7 8 9
1
Description Data line B Request To Send Data reference potential (from the station) Supply plus (from the station) Data line A
2 3 4 5
RS 485 interface
8 RxD/TxD-N 9
10-3
Technical Specifications
Backplane bus
Mode selector
ON
MMC
L+ M
Figure 10-1
10-4
Technical Specifications
Technical specifications
CPU and product version MLFB 6ES7 151-7AA10-0AB0 02 V2.1.0
No retentive timers 10 ms to 9990 s Yes Unlimited (limited only by the working memory) SFB
S Number S Type
Data areas and their retentive features Total retentive data area All (incl. memory markers, timers, counters) Memory markers 256 bytes Adjustable MB 0 to MB 15 8 (1 memory byte) Max. 511 (DB 0 reserved) Max. 16 kByte Max. 510 bytes
S STEP 7 as of
V5.2 + SP1 (for IM 151-7 CPU with the DP master module) Memory Working memory
S Retentivity S Preset
Clock memory Data blocks
S Integral S Expandable
Load memory:
S Size
Local data per priority class Blocks Total FBs
1024 (FBs + FCs + DBs) Max. 512 Max. 16 kBytes Max. 512 Max. 16 kBytes Max. 511 Max. 16 kBytes See Instruction list Max. 16 kByte 8 4
S Size
FCs
S Size
Min. 0.1 s Min. 0.2 s Min. 2 s Min. 6 s DBs
S Size
OBs
S Size
Nesting depth:
S Floating-point math
instructions
Timers, counters and their retentive features S7 counters 256 Adjustable From C 0 to C 7 0 to 999 Yes Unlimited (limited only by the working memory) SFB 256 Adjustable
Address areas (inputs/outputs) Total I/O address area Process image Digital channels Max. 2048 bytes/2048 bytes 128 bytes/128 bytes (not adjustable) Max. 16336/16336 248/248 Max. 1021/1021 124/124
S Number S Type
S7 timers
S Central
Analog channels
S Central
S Retentivity
10-5
Technical Specifications
Configuration rules
S Number
Monitor block Single sequence Breakpoint Diagnostic buffer
Max. 10 Yes Yes 2 Yes Max. 100 (not adjustable) Yes Yes Max. 4 Max. 4 Max. 4 Max. 22 bytes 22 bytes Yes Max. 76 bytes 76 bytes (XSEND/XRCV) 64 bytes (XPUT/XGET) as server
S S S S
Max. 63 I/O modules per station Station width <1 m or <2 m Max. 10 A per load group (power module) Master interface module, right, near the IM 151-7 CPU (X2 interface) Hardware clock Yes Typ. 6 weeks (at ambient temperature of 40 C) Deviation per dayt10 s 1 0 0 to 231 hours (when using the SFC 101) 1 hour Yes; must be restarted with every restart Yes No Master/slave Max. 12 (depending upon the configurations configured for PG/OP and S7 basis communication) ALARM_S, ALARM_SC, ALARM_SQ Max. 40
Time Clock
S Number of inputs
S Number of GD
packets Sender Receiver Number of which consistent
S Size of GD packets
S7 basic communication
S7 communication
Yes (server) Max. 180 bytes 64 bytes No No Max. 12 Max. 11 1 Max. 11 1 Max. 10 0 Max. 4
S Simultaneously
active Alarm_S blocks
Testing and commissioning functions Status/modify variables Yes Inputs, outputs, memory markers, DBs, timers, counters Max. 30 Max. 14 Yes Inputs, outputs
S PD communication
Reserved (default) Reserved (default)
S Variable
S OP communication
S S7 basic
communication Reserved (default)
S Variable
Routing
10-6
Technical Specifications
S Automatic
transmission rate search
Yes (only with passive interface) 244 I bytes/244 O bytes 32 with a maximum of 32 bytes each * No You can find the current device master file at http://www.ad.siem ens.de/csi_e/gsd.
S With the
IM 151-7 CPU as the DP master Interfaces On IM 151-7 CPU (X1) Type of interface Physical system Galvanically isolated Power supply to the interface (15 to 30 V DC) Functionality Integrated RS 485 interface RS 485 Yes Max. 80 mA
S Intermediate
memory Address areas
On the DP master module (X2) Type of interface External interface through the master module 6ES7138-4HA00-0AB0) RS 485 Yes No
Physical system Galvanically isolated Power supply to the interface (15 to 30 VDC) Functionality
S Number of
connections
12**
S Utilities:
PD/OP communication Routing Global data communication S7 basic communication S7 communication Yes Yes (with master module) Yes Yes Yes (only server) Max. 12 Mbaud
No DP master No
S Number of
connections
12**
S Utilities:
PD/OP communication Routing Global data communication S7 basic communication S7 communication Direct communication Clock synchronism SYNC/FREEZE Yes Yes No No Yes (only server) Yes Yes Yes
S Transmission rates
DP slave
S Number of
connections
12**
S Utilities:
PD/OP communication Routing Yes Yes (only with active interface and in the master operating mode) Yes Up to 12 Mbaud
Direct communication
S Transmission rates
10-7
Technical Specifications
Up to 12 Mbaud 32 Max. 2 kbytes I/ 2 kbytes O Max. 244 bytes I/ 244 bytes O STEP 7 (LAD, FBD, STL) See Instruction list 8 See Instruction list See Instruction list Yes
Galvanic isolation
Yes
S Between
PROFIBUS-DP and all other circuit components
Yes
Yes
S Between the
PROFIBUS-DP slave and PROFIBUS-DP master Permitted potential difference
Yes
S Between different
circuits 60 x 119.5 x 75 35 x 119.5 x 75 Approx. 200 g Approx. 100 g 24 VDC 20.4 to 28.8 V Yes * Yes 5 ms Insulation tested at Current consumption from supply voltage (1L+)
S Short-circuit
protection
S Voltage failure
buffering
Up to the maximum size of the intermediate memory ** Attention: 12 connections per CPU, not per interface.
10-8
11
If you download your existing user program for the IM 151-7 CPU (6ES7 151-7Ax00-0AB0) to an IM 151-7 CPU (6ES7 151-7AA10-0AB0), you may encounter the following problems:
Note If you use the SFC 56 WR_DPARM or SFC 57 PARM_MOD, you should always evaluate the BUSY bit of the SFCs.
11-1
SFC 13 DPNRM_DG This SFC always runs quasi-synchronously when called in OB 82. It always runs asynchronously on the IM 151-7 CPU (6ES7 151-7AA10-0AB0).
Note In the user program, all that should take place is that the task should be called in the OB 82. The evaluation of the data, which should take into account the BUSY bits and the acknowledgement in the RET_VAL, should take place in the cyclic program.
Tip: We recommend using the SFB 54 instead of the SFC 13 with the IM 151-7 CPU (6ES7 151-7AA10-0AB0).
SFC 20 BLKMOV
Previously this SFC could also be used to copy data from a non-process-related DB. The SFC 20 no longer has this functionality. The SFC 83 READ_DBL must now be used for this purpose.
SFC 54 RD_DPARM
This SFC is no longer available. The asynchronous SFC 102 RD_DPARA must be used instead.
11-2
Note Reading out the diagnosis with SFC 13 DPNRM_DG: The diagnostic address originally assigned still functions. Internally, STEP 7 assigns slot 0 to this address.
If you use the SFC 51 RDSYSST to read out, for example, module state information or rack/station state information, you must also take the changed meaning of the slots and the additional slot 0 into consideration.
11-3
Replacing an IM 151-7 CPU (6ES7 151-7Ax00-0AB0) with an IM 151-7 CPU (6ES7 151-7AA10-0AB0) in the configuration
If the user does not make any changes to the configuration, the functional settings in the configuration are set to default values if an IM 151-7 CPU (6ES7 151-7Ax00-0AB0) is replaced with an IM 151-7 CPU (6ES7 151-7AA10-0AB0). This has the following effect: S The IM 151-7 CPU (6ES7 151-7Ax00-0AB0) was set to No DP (i.e. stand-alone). the IM 151-7 CPU (6ES7 151-7AA10-0AB0) is set to MPI. The IM 151-7 CPU (6ES7 151-7Ax00-0AB0) was set to DP Slave. the IM 151-7 CPU (6ES7 151-7AA10-0AB0) is also set to DP Slave.
Information for replacement in HWConfig S S Marking and then replacing the IM 151-7 CPU does not function. Replacement is only possible after the rack has been selected.
PD/OP functions
In IM 151-7 CPU (6ES7 151-7Ax00-0AB0), PD/OP functions at the DP interface were only possible at an active interface. In IM 151-7 CPU (6ES7 151-7AA10-0AB0), these functions are possible at both passive and active interfaces. However, the performance at the passive interface is noticeably lower. In IM 151-7 CPU with a DP master module, the PD/OP functions are also available via the DP master interface.
11-4
11-5
11-6
12
In this chapter, you will find out the most important differences to two selected CPUs in the S7-300 SIMATIC family. We will also show you how to rewrite programs you have written for the S7-300-CPUs for the IM 151-7 CPU.
Chapter overview
In Section 12.1 12.2 Contents Differences to selected S7-300 CPUs Porting the user program Page 12-2 12-3
More information
You can find further information on how to create and structure programs in the STEP 7 manuals and online help.
12-1
12.1
Features
CPU 315-2 DP CPU 315-2 DP (modular) Hardware Yes, with battery Memory card 4 (as of 10/99: 12) Hardware
IM 151-7 CPU
(6ES7 151-7Ax00- (6ES7 151-7AA100AB0) 0AB0)
Software
Hardware con- Hardware con- Hardware figuration figuration configuration must match address setter 187.5 kbaud (MPI) 12 Mbaud (DP) 187.5 kbaud (MPI) 12 Mbaud (DP) Yes Yes Yes Yes (server) Yes As a DP master As a DP slave Stand-alone Yes No Yes (server) Yes (server) Yes As a DP slave Stand-alone 12 Mbaud (DP)
Hardware configuration
12 Mbaud (MPI/DP)
Communication: PD/OP Yes Global data comm. Yes S7 basic comm. Yes S7 comm. Yes (server) Direct communication Yes Range of uses with DP As a DP master As a DP slave Stand-alone Yes Yes Yes Yes (server) Yes As a DP slave Stand-alone As the DP master (with the DP master module) Free Less than 20 ms Yes
Free 0.4-1.3 ms
Free 0.3-1.2 ms No
12-2
12.2
Introduction
By porting we mean making available on a distributed basis a program that was previously used centrally on a master. Certain adjustments may be necessary to relocate an existing program partially or completely from a master to an intelligent slave. The resources required for porting sections of a user program to an intelligent slave depend on how the address assignment of inputs and outputs is stored in the FBs in the source program. The inputs and outputs can be used in the FCs in the source program in different ways. Addresses can be packed in the current ET 200S, which is not possible in the IM 151-7 CPU. See the description of IM 151-7 CPU addressing in Section 3.1.
O1.0 O1.1
Figure 12-1
12-3
O1.0 O1.1
Figure 12-2
Rewiring
The following blocks and address IDs can be rewired: S S S Inputs, outputs Memory markers, timers, counters Functions, function blocks
Proceed as follows to rewire the signals: 1. In SIMATIC Manager, select the Blocks folder, which contains the blocks with the packed addresses that you want to port to the IM 151-7 CPU. 2. Select the menu command Tools ! Rewire. 3. Enter the desired replacements in the displayed Rewiring dialog box in the table (old address ID/new address ID).
Table 12-2 Example : Replacements under Tools ! Rewire Old address ID 1 2 I 1.2 I 1.3 I 2.0 I 2.1 New address ID
12-4
4. Click OK. This starts rewiring. After rewiring, you can decide in a dialog box whether you want to look at the rewiring information file. The file contains the list of old and new address IDs. The various blocks are also listed together with the number of rewirings carried out in the block.
O1.0 O1.1
O1.0 O1.1
Figure 12-3
If you assign symbols to the inputs and outputs using the symbol table in STEP 7, you must change the symbol table to adjust the subprogram for use in the IM 151-7 CPU. See also the STEP 7 online help system.
12-5
12-6
Glossary
Address
An address is the designation for a certain address ID or address area (e.g. input I 12.1; memory word MW 25; data block DB 3).
AKKU
The accumulators are registers in the CPU that act as an intermediate memory for loading and transfer operations as well as comparison, calculation and conversion operations.
Automation System
An automation system is a programmable logic controller that consists of at least one CPU, various input and output modules and human-machine interfaces.
Backup Memory
The backup memory ensures that the memory areas of the CPU that do not have a buffer battery are buffered. A parameterizable number of times, counters, markers and data bytes is buffered.
Bus
A bus is the common transmission route to which all nodes are connected; has two defined ends. In the case of the ET 200S, the bus is a two-wire or fiber-optic cable.
Compression
The programming device online function Compress is used to align all valid blocks contiguously in the RAM of the CPU at the start of the user memory. This eliminates gaps that occur when blocks are deleted or corrected.
Glossary-1
Consistent Data
Data that belongs together with respect to its content and that must not be separated is referred to as consistent data. For example, the values from analog modules must always be handled consistently, i.e. the value of an analog module must not be corrupted by reading it out at two different points in time.
Counter
Counters are part of the system memory of the CPU. The content of the counter cells can be modified by STEP 7 instructions (e.g. count up/down).
CPU
Central processing unit of the S7 programmable controller with a control unit and arithmetic logic unit, memory, operating system and interface for a programming device.
Cross communication
See Direct communication
Cycle Time
The cycle time is the time taken by the CPU to scan the user program once.
Data Block
Data blocks (DB) are data areas in the user program that contain user data. There are global data blocks that can be accessed from all code blocks and there are instance data blocks that are assigned to a specific FB call.
Diagnosis
Diagnosis is the detection, localization, classification, display and further evaluation of errors, faults and messages. Diagnosis offers monitoring functions that are executed automatically while the system is running. This increases the availability of the systems by reducing maintenance and standstill periods.
Glossary-2
Glossary
Diagnostic buffer
The diagnostic buffer is a buffered memory area in the CPU in which diagnostic events are stored in the order of their occurrence.
Diagnostic interrupt
Diagnostics-capable modules use diagnostic interrupts to report system errors which they have detected to the central CPU. In SIMATIC S7/M7: When an error is detected or disappears (e.g. wire break), the ET 200S triggers a diagnostic interrupt, provided the interrupt is enabled. The CPU of the DP master interrupts the execution of the user program or lower-priority priority classes and processes the diagnostic interrupt block (OB 82). In SIMATIC S5: The diagnostic interrupt appears in the station diagnosis. Using cyclical querying of the diagnostic bits in the station diagnosis you can detect errors such as a wire break.
Direct Communication
Direct communication is a special communication relationship between PROFIBUS-DP nodes. Direct communication is characterized by the fact that the PROFIBUS-DP nodes listen in to find out which data a DP slave is sending back to its DP master.
The distributed I/O systems are connected to the DP master via PROFIBUS-DP.
DP Master
A master that behaves according to the IEC 61784-1:2002 Ed1 CP 3/1 standard is designated a DP master.
Glossary-3
DP Slave
A slave on the PROFIBUS bus system with the PROFIBUS-DP protocol that complies with IEC 61784-1:2002 Ed1 CP 3/1 is referred to as a DP slave.
DP Standard
The DP standard is the bus protocol of the ET 200 distributed I/O system based on IEC 61784-1:2002 Ed1 CP 3/1.
DPV1
DPV1 designates the functional expansion of the acyclic utilities (e.g. with new alarms) of the DP protocol. The DPV1 functionality is integrated in the IEC 61784-1:2002 Ed1 CP 3/1 standard.
Error message
An error message is one of the possible responses of the operating system to a runtime error. The other possible responses are: error response in the user program, STOP mode of the CPU.
Error Response
Response to a runtime error. The operating system can respond in the following ways: conversion of the programmable controller to STOP mode, call of an organization block in which the user can program a response, or display of the error.
Glossary-4
Glossary
ET 200
The ET 200 distributed I/O system with the PROFIBUS-DP protocol is a bus for connecting distributed I/O devices to a CPU or an appropriate DP master. ET 200 is characterized by a rapid response time, since only a small amount of data (bytes) is transmitted. ET 200 is based on IEC 61784-1:2002 Ed1 CP 3/1. The ET 200 works on the master/slave principle. Examples of DP masters are the IM 308-C master interface module and the CPU 315-2 DP. DP slaves can be the distributed I/O devices ET 200S, ET 200B, ET 200C, ET 200M, ET 200X, ET 200U, ET 200L or DP slaves from Siemens or other vendors.
FC Function FORCE
During commissioning, for example, the Force function allows certain outputs to be set to ON for any length of time, even if the logic operations of the user program are not fulfilled (e.g. because inputs are not wired).
FREEZE
FREEZE is a control command of the DP master to a group of DP slaves. After the FREEZE control command is received, the DP slave freezes the current state of the inputs and transmits it cyclically to the DP master. After each new FREEZE control command, the DP slave once again freezes the state of the inputs . The input data is transmitted cyclically again from the DP slave to the DP master only after the DP master has sent the UNFREEZE control command.
Function
A function (FC) is, according to IEC 61131-3, a code block without statistical data. A function allows the transmission of parameters in the user program. Thus, functions are ideal for programming frequently recurring complex functions, such as calculations.
Glossary-5
Intelligent DP Slave
The defining feature of an intelligent DP slave is that input/output data is not made available to the DP master by a real input/output of the DP slave directly, but by a preprocessing CPU (in this case the IM 151-7 CPU interface module).
Interrupt
The operating system of the CPU recognizes 10 different priority classes that control the processing of the user program. These runtime levels include interrupts, e.g. diagnostic interrupts. When an interrupt is triggered, the operating system automatically calls an assigned organization block in which the user can program the desired response (for example in an FB).
Interrupt, diagnostic Diagnostic interrupt Interrupt, process Process interrupt Load Memory
The load memory is part of the CPU. It contains objects generated by the programming device. It is implemented either as a plug-in memory card/micro memory card or a permanently integrated memory.
Marker
Markers are components of the system memory of the CPU for storing intermediate results. They can be access on the basis of bits, bytes, words or double words.
Masse
Ground is the total of all interconnected inactive components of a device that are not able to carry a dangerous contact voltage even in the even of a malfunction.
Master
When they are in possession of the token, masters can send data to and request data from other nodes (= active node). An example of a DP master is the CPU 315-2 DP.
Glossary-6
Glossary
Master System
All DP slaves that are assigned to a DP master for either reading or writing plus the DP master itself make up the master system.
MMC
Micro Memory Card Memory module for SIMATIC systems. Can be used as a load memory and portable data carrier.
MPI
The multipoint interface (MPI) is the programming device interface of the SIMATIC S7.
Nesting Depth
One block can be called from within another using block calls. The nesting depth is the number of code blocks called at the same time.
Node
A device that can send, receive or amplify data via the bus, such as a DP master, DP slave, RS 485 repeater or active star coupler.
Operating Mode
The SIMATIC S7 programmable controllers can detect the following operating modes: STOP, START, RUN.
Glossary-7
Organization block
Organization blocks (OBs) form the interface between the operating system of the CPU and the user program. The sequence in which the user program is processed is defined in the organization blocks.
Parameter
1. Variable of a STEP 7 code block 2. Variable to set the behavior of a module (one or more per module). Each module is delivered with a suitable default setting, which can be changed by configuring the parameters in STEP 7.
Process Image
The process image is part of the system memory of the CPU. The signal states of the inputs are written into the process input image at the start of the cyclic program. At the end of the cyclic program, the signal states in the process output image are transferred to the outputs.
Process Interrupt
The process image is part of the system memory of the CPU. The signal states of the inputs are written into the process input image at the start of the cyclic program. At the end of the cyclic program, the signal states in the process output image are transferred to the outputs.
Glossary-8
Glossary
PROFIBUS
Process Field Bus is a German process and field bus standard, defined in IEC 61784-1:2002 Ed1 CP 3/1. It specifies functional, electrical and mechanical characteristics of a bit serial field bus system. PROFIBUS is available with the protocols DP (the German abbreviation for distributed I/O), FMS (= field bus message specification), PA (= process automation) or TF (= technology (process-related) functions).
PROFIBUS Address
Each bus node must receive a PROFIBUS address to identify it uniquely on the PROFIBUS bus system. The PC/PD has the PROFIBUS address 0. The PROFIBUS addresses 1 to 125 are permissible for the ET 200S distributed I/O system.
Programming device
Programming devices are basically personal computers that are suitable for the industrial environment, compact and transportable. They are equipped with special hardware and software for SIMATIC programmable controllers.
Publisher
A sender in direct data communication See Direct Communication
Restart
When a CPU is started up (e.g. by switching the mode selector from STOP to RUN or by switching the power on), the organization block OB 100 (complete restart) is executed before cyclic program scanning (OB 1) commences. In the event of a restart, the process image of the inputs is read in and the STEP 7 user program is processed beginning with the first command in OB 1.
Glossary-9
Runtime Error
Error which occurs during processing of the user program on the programmable controller (i.e. not in the process).
Stand-alone operation
The device is operated on a stand-alone basis without data exchange to a superordinate master and without direct communication with other DP slaves. All the modules power up using default parameters and with the maximum configuration (32 slots, 64 bytes consistently).
START
The STARTUP mode is run through when the system goes from the STOP mode to the RUN mode. Can be triggered by the mode selector or after power on or an operator action on the programming device. In the case of the ET 200S a restart is carried out.
Start Event
Start events are defined events such as errors, times and interrupts. They cause the operating system to start an associated organization block (if programmed accordingly by the user). Start events are displayed in the header information of the associated OB. The user can respond to start events in the user program.
STEP 7
Programming language for developing user programs for SIMATIC S7 PLCs.
Subscriber
A recipient in direct communication See Direct Communication
Glossary-10
Glossary
SYNC
SYNC is a control command of the DP master to a group of DP slaves. By means of the SYNC control command, the DP master causes the DP slave to freeze the current statuses of the outputs . For the following frames, the DP slave stores the output data but the states of the outputs remain unchanged. After each new SYNC control command, the DP slave sets the outputs that it has saved as output data. The outputs are not cyclically updated again until the DP master sends the UNSYNC control command.
System diagnostics
System diagnostics is the detection, evaluation and notification of errors that occur within the automation system. Examples of such errors are program errors or module failures. System errors can be indicated by means of LED displays or in STEP 7.
System function
A system function (SFC) is a function integrated in the operating system of the CPU that can be called up in the STEP 7 user program as required.
System memory
The system memory is integrated in the central module and designed as a RAM. The system memory includes the address areas (for example timers, counters, memory markers, etc.) as well as the data areas (e.g. communication buffers) required internally by the operating system.
Times
Times are components of the system memory of the CPU. The contents of the imer cells are updated automatically by the operating system asynchronously to the user program. STEP 7 instructions are used to define the exact function of the timer cells (e.g. on-delay) and initiate their execution (e.g. start).
Token
Access right on bus
Total current
Sum of the currents of all output channels of a digital output module.
Glossary-11
Transmission rate
The transmission rate is the data transmission speed and specifies the number of transmitted bits per second (transmission rate = bit rate). In the case of the ET 200S, transmission rates of 9.6 kbaud to 12 Mbaud are possible.
User memory
The user memory contains the code and data blocks of the user program. The user memory can be integrated in the CPU or can be provided on plug-in memory cards (IM 151-7 CPU) or memory modules. However, the user program is always processed from the working memory of the CPU.
User program
SIMATIC differentiates between the operating system of the CPU and user programs. The latter are created in the various programming languages (ladder diagram and instruction list) using the STEP 7 programming software and are stored in code blocks. Data is stored in data blocks.
Working Memory
The working memory is random-access memory in the CPU that is accessed by the processor while the user program is executed.
Glossary-12
Index
A
Access, to the ET 200S from a PD/PC, 4-3 Address, Glossary-1 Address area data consistency, 3-6 for user data transfer, 3-5 of the expansion modules, 3-3 Address areas, 8-20 Address assignment, for analog and digital modules, 3-3 Addresses base address, 3-4 for diagnostics, 3-6 for user data transfer, 3-5 Addressing, 3-1 address allocation, 3-4 interface in STEP 7, 3-8 rules, 3-8 slot-oriented, 3-2 user-oriented, 3-4 AKKU, Glossary-1 Area of application, 1-2 Automation system, Glossary-1 Communication, 8-45 data consistency, 8-41 global data communication, 8-36 OP communication, 8-35 PD communication, 8-34 routing, 8-37 S7 basic communication, 8-35 S7 communication, 8-35 utilities of the CPUs, 8-34 Communication, direct, Glossary-3 Components, ET 200S, 1-5 Compression, 8-17, Glossary-1 Configuration, ET 200S stand-alone, 4-5 Configuration data, accepting, 8-45 Configuration software, 1-4 Configuring, 2-1, 2-2, 2-7, 2-12 IM 151-7 CPU, 7-2 Consistency, 3-6, 3-7 Consistent data, Glossary-2 Counter, Glossary-2 CPU, Glossary-2 operating system, Glossary-7 Cycle, 8-45 Cycle extension, through interrupts, 9-4 Cycle time, 9-2, Glossary-2 extending, 9-3 structure, 9-2 Cyclic interrupts, 8-45
B
Backup, memory, Glossary-1 Blocks downloading, 8-16 erasing, 8-16 of the IM 151-7 CPU, 8-42 uploading, 8-16 Bus, Glossary-1 Bus connector, 4-6
D
Data, consistent, Glossary-2 Data block, Glossary-2 Data consistency, 3-6, 3-7, 8-41 Data exchange, direct, 4-12 Data interchange, sample program, 3-9 Data transfer principles, 3-1 with the DP master, 3-5 DBs, 8-42 DDB (device database) file, 8-2 Default addressing, 3-2 Delay, of the inputs/outputs, 9-4 Device master file, Glossary-2
C
Cables, 4-6 Certifications, iv Changing, 2-1 Channel-specific faults, 7-29 Clock, 8-28, 8-44 Clock memory, 8-45 Commissioning, 2-1, 2-2, 2-6, 2-11, 2-19, 7-1, 7-7
Index-1
Diagnosis module, 7-19 station, 7-22 Diagnostic address, 3-6, 7-12, 7-14 Diagnostic buffer, Glossary-3 entry, 7-12 reading out, 7-5 Diagnostic data, 7-25 Diagnostic interrupt, 7-23, Glossary-3 Diagnostic interrupt response time, 9-8 Diagnostics, 7-1, 8-44 channel-specific, 7-29 system, Glossary-11 using LEDs, 7-9 Direct communication, 4-12, Glossary-3 Display, LED, 7-9 Distributed I/O device, Glossary-3 Downloading blocks, 8-16 user program, 8-15 DP diagnostic address, 3-6 DP master interface, 8-27 DP master module, 6-1 pin assignment, 10-3 DP slave, Glossary-4 intelligent, 7-2, Glossary-6 DP slave diagnosis, structure, 7-26 DP standard, Glossary-4 DP-Master, Glossary-3
Force, 8-5, Glossary-5 Formatting the MMC, 8-8 FRCE, LED, 8-5 FREEZE, Glossary-5 Function, FC, Glossary-5 Functions, via PD, 4-9
G
Gateway, 8-39 General technical specifications, 10-2 Global data communication, 8-36 Guide to the ET 200S manuals, 1-5 to the manual, vi
I
I slave, 7-7 IM 151 7 CPU, important features, 8-2 IM 151-7 CPU blocks, 8-42 configuring, 7-2 features, 1-4 mode selector, 8-4 parameters, 8-44 resetting the memory, 7-4 Inputs, delay time, 9-4 Installation, 2-1, 2-3 Integrated clock, 8-28 Intelligent DP slave, 7-2, Glossary-6 Interface, PROFIBUS-DP interface, 8-26 Interface module IM 151 7 CPU, technical specifications, 10-5 Interface module IM 151-7 CPU, 10-4 basic circuit diagram, 10-4 terminal assignment, 10-3 Interfaces DP master interface, 8-27 MPI interface, 8-26 which devices to which interface?, 8-27 Intermediate memory accessing in the user program, 3-7 in the IM 151-7 CPU, 3-5 Internode communication, see Direct communication, 4-12 Interrupt, Glossary-6 process, Glossary-8 Interrupts, cycle extension, 9-4
E
Erasing blocks, 8-16 Error handling via OB, Glossary-4 Error response, Glossary-4 ET 200, Glossary-5 ET 200S components, 1-5 manuals, 1-5 Event identification, in the DP master/DP slave, 7-13 Execution time, user program, 9-2
F
FBs, 8-42 FCs, 8-42 Features, 10-2 of the IM 151 7 CPU, 8-2 of the IM 151-7 CPU, 1-4
Index-2
Index
L
LED, 7-5 display, 7-9 FRCE, 8-5 indicator, 1-4 ON, 8-5 RUN, 8-5 SF, 8-5 STOP, 8-5 Load instruction, 3-7 Load memory, 8-12, Glossary-6 Local data, 8-22
M
Manual, purpose, iii Manual contents, brief overview, 1-7 Manual package, 1-7 Manuals guide, 1-5 other, vi Manufacturer ID, CPU 31x-2 as DP slave, 7-18 Master, Glossary-6 Master PROFIBUS address, 7-18 Master system, Glossary-7 Memory backup, Glossary-1 compression, 8-17 load, Glossary-6 system, Glossary-11 user, Glossary-12 working, Glossary-12 Memory areas load memory, 8-12 system memory, 8-13 working memory, 8-13 Memory functions compression, 8-17 downloading blocks, 8-16 downloading the user program, 8-15 erasing blocks, 8-16 memory reset, 8-19 promming, 8-17 RAM to ROM, 8-17 restart, 8-19 uploading blocks, 8-16 warm restart, 8-19 Memory reset, 8-19 internal CPU events, 7-5 with mode selector, 8-4 Micro Memory Card, 8-6, Glossary-7
MMC, Glossary-7 formatting, 8-8 module, 8-6 service live, 8-7 Mode RUN, 8-5 STOP, 8-5 Mode selector, 8-4 memory reset, 7-4 MRES, 8-4 RUN, 8-4 STOP, 8-4 Module classes, identifier, 7-27 Module diagnosis, 7-19 Module status, 7-20 MPI, 4-2, 5-2, Glossary-7 interface, 8-26 MPI network, structural principles, 5-2 MRES, mode selector, 8-4
N
Nesting depth, Glossary-7 Network, structure, 4-1 Network components, 4-6 Node, Glossary-7
O
OB, Glossary-8 start event, Glossary-10 OB 122, 7-13 OB 82, 7-8, 7-13 OB 86, 7-8, 7-13 OB priority, Glossary-7 OBs, of the CPU, 8-42 ON, LED, 8-5 Online functions, for the ET 200S, 4-9 OP communication, 8-35 Operating mode, Glossary-7 Operating mode changes, 7-13 Operating system of the CPU, Glossary-7 processing time, 9-3 Order number, network components, 4-6 Order numbers, IM 151-7 CPU, 10-2 Organization block, Glossary-8 Outputs, delay time, 9-4
Index-3
P
Parameter, Glossary-8 Parameter assignment frame, configuration, 8-46 Parameters, 8-45 IM 151-7 CPU, 8-44 PC connection to ET 200S, 4-5 prerequisites, 4-2, 5-2 PD, Glossary-9 communication, 8-34 connecting cable, 4-4, 4-6, 5-2 connection to ET 200S, 4-5 functions, 4-9 prerequisites, 4-2, 5-2 PLC, Glossary-9 Priority, OB, Glossary-7 Priority class, Glossary-8 Process image, Glossary-8 of the inputs and outputs, 8-21 Process image updating, processing time, 9-3 Process interrupt, 7-23, Glossary-8 Process interrupt handling, 9-8 Process interrupt response time, 9-8 Processing time operating system, 9-3 process image updating, 9-3 user program, 9-4 PROFIBUS address, 4-3, Glossary-9 PROFIBUS network network components, 4-6 structural principles, 4-2 PROFIBUS-DP, specifications, 8-2 PROFIBUS-DP interface, 8-26 Programming, 2-1, 2-2, 2-9, 2-16 Programming software, 1-4 Promming, 8-17 Publisher, Glossary-9
Rewiring, 12-4 Routing access to stations in another subnetwork, 8-38 application example, 8-40 gateway, 8-39 prerequisites, 8-39 Rules, for addressing, 3-8 RUN LED, 8-5 mode, 8-5 mode selector, 8-4 Runtime error, Glossary-10
S
S7 basic communication, 8-35 S7 communication, 8-35 S7 connections assignment, 8-30 distribution, 8-32 end point, 8-29 of the IM 151-7 CPU, 8-33 pass-through point, 8-29 sequence of assignment, 8-31 Scan cycle checkpoint, Glossary-10 Scope of validity, of the manual, iv Service life of an MMC, 8-7 SF, LED, 8-5 SFBs, 8-42 SFC DPRD_DAT, 3-7 SFC DPWR_DAT, 3-7 SFCs, 8-42 SIMATIC Micro Memory Card, 8-6 compatible MMCs, 8-7 SIMATIC micro memory card features, 8-6 removing/inserting, 8-18 Slave, Glossary-10 Slave diagnostics with IM 151-7 CPU used as an intelligent slave, 7-15 Slot assignment, ET-200S, 3-2 Slot-oriented addressing of the I/O modules, 3-2 Software clock, 8-28 Stand-alone operation, Glossary-10 Stand-alone operation of ET 200S, 4-5 of the ET 200S, 4-9 Standards, iv Start, Glossary-10 Start event, OB, Glossary-10 Start-up, of the IM 151-7 CPU, 7-8 Startup, 8-44
R
RAM to ROM, 8-17 Resetting the memory, of the IM 151-7 CPU, 7-4 Response time, 9-5 diagnostic interrupt, 9-8 longest, 9-7 process interrupt, 9-8 shortest, 9-6 Restart, 8-19, Glossary-9 Retentive memory, 8-13 retentive behavior of the memory objects, 8-14 Retentivity, 8-44
Index-4
Index
Station diagnosis, 7-22 Station status 1 to 3, 7-16 STEP 7, Glossary-10 addressing interface, 3-8 configuring the IM 151-7 CPU, 7-2 settings, 4-9 STOP LED, 8-5 mode, 8-5 mode selector, 8-4 Structure of the diagnostic frame, 7-15 of the MPI network, 5-2 of the PROFIBUS network, 4-2 Subscriber, Glossary-10 SYNC, Glossary-11 System data area, diagnostic data, 7-25 System diagnostics, Glossary-11 System function, SFC, Glossary-11 System memory, 8-13, 8-20, Glossary-11 address areas, 8-20 local data, 8-22 process image of the inputs and outputs, 8-21
T
Technical specifications general, 10-2 of the IM 151-7 CPU, 10-2 PROFIBUS-DP, 8-2 Test functions, 4-9 Test run, 2-1, 2-2, 2-10, 2-19 Time-of-day interrupts, 8-44 Times, Glossary-11 Token, Glossary-11 Transfer instruction, 3-7 Troubleshooting, 7-1
U
Upgrading, 2-11 Uploading, 8-16 User data transfer, to the DP master, 3-5 User memory, Glossary-12 User program, Glossary-12 downloading, 8-15 processing time, 9-4 uploading, 8-16 User program execution time, 9-2 User-oriented addressing of the I/O modules, 3-4
W
Warm restart, 8-19 Wiring, 2-1, 2-4 Working memory, 8-13, Glossary-12
Index-5
Index-6
Manual Basic Module BM 147 CPU, Version 05/2003 Manual Interface Module IM 151-7 CPU, Version 11/2003
This product information contains important information about the documentation mentioned above. It is to be regarded as a separate component. Its specifications and information have a higher binding nature than those of other manuals and catalogs in case of discrepancies.
BM 147-2
(6ES7 1472AA010XB0)
BM 147-2
(6ES7 1472AB010XB0)
IM 151-7
(6ES7 1517AA110AB0)
Working memory
Size Expandable
Blocks (FB, FC) FB
64 KB No
64 KB No
128 KB No
64 KB No