Siemens NCM S7 User Manual

Preface, Contents
SIMATIC NET NCM for Industrial Ethernet

Manual

for NCM S7 V5.2 and higher
Communication via Ethernet CPs in S7 Stations
Installing and Starting the Ethernet CP with STEP 7
SEND/RECEIVE interface
Programmed Communication Connections
Programming FCs (Functions) and FBs for S7 Ethernet CPs
NCM S7 Diagnostics
Firmware loader
1 2 3 4 5 6 7 8
Release 6/2003 C79000–G8976–C129–07
Appendix
References
Glossary Linking to Other Systems with
FETCH/WRITE
Document History Index
A B C D
Classification of Safety-Related Notices
This manual contains notices which you should observe to ensure your own perso­nal safety, as well as to protect the product and connected equipment. These noti­ces are highlighted in the manual by a warning triangle and are marked as follows according to the level of danger:
Danger
!
!
!
indicates that death or severe personal injury will result if proper precautions are not taken.
Warning
indicates that death or severe personal injury can result if proper precautions are not taken.
Caution
with warning triangle indicates that minor personal injury can result if proper pre­cautions are not taken.
Caution
without warning triangle indicates that damage to property can result if proper pre­cautions are not taken.
Notice
indicates that an undesirable result or status can occur if the relevant notice is ignored.
Note
highlights important information on the product, using the product, or part of the documentation that is of particular importance and that will be of benefit to the user.
2
SIMATIC NET NCM S7 for Industrial Ethernet
C79000–G8976–C129–07
Release 6/2003
Trademarks
SIMATICR, SIMATIC HMIR and SIMATIC NETR 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.
Safety Instructions Regarding your Product:
Before you use the product described here, read the safety instructions below thoroughly.
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 of Hardware Products
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 recommen­ded 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.
Before you use the supplied sample programs or programs you have written your­self, make certain that no injury to persons nor damage to equipment can result in your plant or process.
EU Directive: Do not start up until you have established that the machine on which you intend to run this component complies with the directive 89/392/EEC.
Correct Usage of Software Products
Note the following
Warning
!
This software may only be used for the applications described in the catalog or the technical description, and only in connection with software products, devices, or components from other manufacturers which have been approved or recommen­ded by Siemens.
Before you use the supplied sample programs or programs you have written your­self, make certain that no injury to persons nor damage to equipment can result in your plant or process.
SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003
C79000–G8976–C129–07
3
Prior to Startup
Before putting the product into operation, note the following warning:
Caution
Prior to startup you must observe the instructions in the relevant documentation. For ordering data of the documentation please refer to the catalogs or contact your local SIEMENS representative.
Disclaimer of LiabilityCopyright E Siemens AG 2001–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 Automation and Drives Industrial Communication Postfach 4848, D-90327 Nürnberg
4
Siemens Aktiengesellschaft G79000-G8976-C129-07
We have checked the contents of this manual for agreement with the hardwa­re and software described. Since deviations cannot be precluded entirely, w e cannot guarantee full agreement. However, the data in this manual are revie­wed regularly and any necessary corrections included in subsequent edi­tions. Suggestions for improvement are welcomed.
Subject to technical change.
SIMATIC NET NCM S7 for Industrial Ethernet
Release 6/2003
C79000–G8976–C129–07

This Manual on SIMATIC NET NCM S7 for Industrial Ethernet

...supports you when using the communication services provided by the SIMATIC NET communications processors (Industrial Ethernet CPs) for communication on SIMATIC NET with Industrial Ethernet in the management and cell areas.
The documentation on your S7 CPs and NCM S7 is in several parts that fit together as shown below:
S S7-CP
– selecting – installing – commissioning – performance data
S S7-CP and STEP 7 / NCM S7
– familiarization – testing interfaces – commissioning
Manual
Primer
S7-CP
for
S7-300 / S7-400
STEP 7 NCM S7
S Communication services
with STEP 7 / NCM S7
– programming – configuring – downloading /
commissioning
– diagnostics
SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003
C79000–G8976–C129–07
NCM S7 Manual
5
This Manual on SIMATIC NET NCM S7 for Industrial Ethernet
Audience
This manual is intended for personnel responsible for installing and programming STEP 7 programs and for service personnel.
Scope of this Manual
This manual applies to version 5.2 and higher of the NCM S7 configuration software for Industrial Ethernet and to version 5.2 and higher of the STEP 7 software.
This manual also includes specially marked passages that apply specifically to and require version 5.2 SP1 of the NCM S7 for Industrial Ethernet configuration software and version 5.2 SP1 of the STEP 7 software.
These include new functions for IP configuration: S IP access protection
Using IP access protection gives you the opportunity of restricting access to the local S7 station to partners with specific IP addresses.
S Configuring connections from the user program
In some situations, it is an advantage to set up communication connections not over the configuration interface of STEP 7 but program-controlled by specific applications.
As of STEP 7 V5.2 SP1, a function block is available for these applications that allows flexible transfer of data blocks with configuration data to an Ethernet CP.
The description of the configuration for FETCH / WRITE services has been extended.
Notice
Please note that the availability of new functions depends on the type of CP you are using. You can check which functions your module supports in the description in the Properties dialog in STEP 7 and in the catalog in HW Config.
The manual contains more detailed information /1/.
6
SIMATIC NET NCM S7 for Industrial Ethernet
C79000–G8976–C129–07
Release 6/2003
Symbols Used in this Manual
Unless indicated otherwise, the functions described in this manual assume the use of STEP 7. This symbol is used to indicate functions that require a specific version of STEP 7 or higher, for example Version V5.2.
This symbol appears in the margin to draw your attention to useful tips.
This symbol indicates recommended documentation.
Where you see this symbol, you should also refer to additional information in the basic help system of STEP 7.
This Manual on SIMATIC NET NCM S7 for Industrial Ethernet
F1
Conventions
This symbol indicates where detailed context-sensitive help is available. You can display these help texts with the F1 key or by clicking on the “Help” button in the relevant dialog.
References to other manuals and documentation are indicated by numbers in slashes /.../. These numbers refer to the titles of manuals listed in the References section of the Appendix.
SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003
C79000–G8976–C129–07
7
This Manual on SIMATIC NET NCM S7 for Industrial Ethernet
You will find additional information in the following sources:
This manual is also part of the NCM S7 for Industrial Ethernet documentation package. These documents are also on the Manual Collection CD supplied with every S7 CP and they are also available on the Internet. The following table provides you with an overview.
Title Content
S7-CPs for Industrial Ethernet
Manual This is available on the Internet at:
The manual S7 CPs for Industrial Ethernet contains information on the characteristics of the CPs and instructions on installation and connections.
S General Section: http://www4.ad.siemens.de/view/cs/de/8777865 S CP 343-1: http://www4.ad.siemens.de/view/cs/de/8777308 S CP 343-1 PN: http://www4.ad.siemens.de/view/cs/de/8776538 S CP 343-1 IT: http://www4.ad.siemens.de/view/cs/de/8776544 S CP 443-1: http://www4.ad.siemens.de/view/cs/de/8776219 S CP 443-1 IT: http://www4.ad.siemens.de/view/cs/de/8776322
NCM S7 for Industrial Ethernet
Primer
Based on simple examples, the primer introduces you to the methods of connecting and networking SIMATIC S7 stations with CPs on Industrial Ethernet. It shows you how the communications calls are entered in the user program to allow you to use the services via the SEND/RECEIVE interface.
Y ou will learn how simple it is to create a configuration for standard applications using STEP 7 and the NCM S7 optional package.
The examples described here can also be found in the project folder for sample programs after you have installed STEP 7 and the NCM S7 for Industrial Ethernet option!
NCM S7 for Industrial Ethernet
Manual
IT-CP Manual
Advanced PC Configuration
Commissioning PC Stations
Manual
8
This is available on the Internet at:
http://www4.ad.siemens.de/view/cs/de/1172503
The manual is intended as a guide and reference work for configuring and programming an Industrial Ethernet CP.
This is available on the Internet at:
http://www4.ad.siemens.de/view/cs/de/1172423
The manual is intended as a guide and source of reference when working with the IT-CP. In addition to the functions provided by an Ethernet CP, the IT-CP also provides functions for Internet technology.
This is available on the Internet at:
http://www4.ad.siemens.de/view/cs/de/1172744
Advanced PC Configuration is the new tool with which you can commission a PC station as part of an industrial communication network.
The manual supports you and helps you to make efficient use of communications with your PC applications in conjunction with the SIMATIC NET modules. It explains the steps involved in configuration with NCM S7.
This is available on the Internet at:
http://www4.ad.siemens.de/view/cs/13542666
SIMATIC NET NCM S7 for Industrial Ethernet
C79000–G8976–C129–07
Release 6/2003
This Manual on SIMATIC NET NCM S7 for Industrial Ethernet
Quick Start CD: Samples covering all aspects of communication
The Quick Start CD that can be ordered separately is a treasure-trove of sample programs and configurations.
You can order this directly over the Internet at:
http://www4.ad.siemens.de/view/cs/de/574211
Additional Information on SIMATIC S7 and STEP 7
The following documentation contains additional information about the STEP 7 standard software of the SIMATIC programmable controllers and can be obtained from your local Siemens office.
Topic Document
Basic information for technical personnel using the STEP 7 standard software for control tasks with S7-300/400 programmable controllers.
STEP 7 basics with
S Configuring hardware with STEP 7 S Programming with STEP 7 S Manual for converting from S5 to S7 S Primer for a fast start
The reference works describing the programming languages LAD/FBD and STL as well as the standard and system functions in addition to the STEP 7 basic knowledge.
STEP 7 reference manuals with
S Manuals for LAD/FBD/STL S Standard and system functions for S7-300/400
You will also find information on SIMATIC programmable controllers on the Quick Start CD and from the Customer Support Online services at:
http://www.siemens.de/simatic-net General information
or
http://www.ad.siemens.de/csi/net Product information and downloads
SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003
C79000–G8976–C129–07
9
This Manual on SIMATIC NET NCM S7 for Industrial Ethernet
Access to Online Help of STEP 7 and NCM S7
With the online help, you can obtain the following information: S You can display the contents of the STEP 7 basic help system with the menu
command Help –> Contents.
S Context-sensitive help on the selected object using the Help –> Context-Sensitive
F1
Help menu command, the F1 function key or the question mark in the toolbar.
You can then access further information relating to the current topic. S Glossary for all STEP 7 applications by clicking the “Glossary” button. Please note that each STEP 7 application has its own contents and
context-sensitive help.
-
10
SIMATIC NET NCM S7 for Industrial Ethernet
C79000–G8976–C129–07
Release 6/2003

Contents

1 Communication via Ethernet CPs in S7 Stations 15. . . . . . . . . . . . . . . . . . . . . . . . . .
1.1 Industrial Ethernet 16. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.2 SIMATIC S7 Communication with S7 Ethernet CPs 17. . . . . . . . . . . . . . . . . .
1.3 PG/OP Communication via Industrial Ethernet 21. . . . . . . . . . . . . . . . . . . . . .
1.3.1 PG Communication with STEP 7 over Industrial Ethernet 23. . . . . . . . . . . . .
1.3.2 OP Operation: Connecting Operator Interface Devices via
Industrial Ethernet 24. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.4 S7 Communication on Industrial Ethernet 25. . . . . . . . . . . . . . . . . . . . . . . . . . .
1.5 S5-compatible Communication (SEND/RECEIVE Interface) ) 29. . . . . . . . . .
1.6 FETCH/WRITE Services (Server) 32. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.7 Networking Stations with STEP 7 33. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.7.1 Network/Project Variant: One Subnet – One Project 35. . . . . . . . . . . . . . . . . .
1.7.2 Network/Project Variant: SIMATIC S5 and Non-SIMATIC
Devices on the Subnet 36. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.7.3 Network/Project Variant: Two or More Subnets – One Project 37. . . . . . . . .
1.7.4 Network/Project Variant: One Subnet – More Than One (Sub)Project 38. . .
1.7.5 Network/Project Variant: Several Subnets in Several (Sub) Projects 41. . . .
1.7.6 Network/Project Variant: Connections between Subnets (TCP/IP) 43. . . . . .
2 Installing and Starting the Ethernet CP with STEP 7 45. . . . . . . . . . . . . . . . . . . . . . .
2.1 General Information About the NCM S7 for Industrial Ethernet Option 46. .
2.2 Procedure 47. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.2.1 Creating an Industrial Ethernet Subnet 48. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.2.2 Entering an Ethernet CP in the Hardware Configuration 51. . . . . . . . . . . . . .
2.2.3 Displaying the Network Attachments of a Station 55. . . . . . . . . . . . . . . . . . . .
2.2.4 Setting Further CP Properties 57. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.2.5 “Substitute Objects” in the STEP 7 Project 65. . . . . . . . . . . . . . . . . . . . . . . . . .
2.2.6 Configuring Communication Services 68. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.3 Assigning Addresses for the First Time (Applies to Latest CPs) 69. . . . . . . .
2.3.1 Addressing by Selecting the Target System in the SIMATIC Manager 70. . .
2.3.2 Addressing using the Properties Dialog in HW Config or NetPro 73. . . . . . .
2.4 Downloading the Configuration Data to the Target System 74. . . . . . . . . . . .
3 SEND/RECEIVE Interface in the User Program 77. . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.1 How the SEND/RECEIVE Interface Works on the CPU 78. . . . . . . . . . . . . . .
3.2 Programming the SEND/RECEIVE Interface 79. . . . . . . . . . . . . . . . . . . . . . . .
3.3 Data Exchange S7 CPU <–> Ethernet CP 82. . . . . . . . . . . . . . . . . . . . . . . . . .
3.4 Additional Information 84. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.4.1 Programming Data Transfer on TCP Connections 84. . . . . . . . . . . . . . . . . . .
3.4.2 Recommendations for Use with a High Communications Load 85. . . . . . . . .
SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003
C79000–G8976–C129–07
11
Contents
4 Configuring Communication Connections 87. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1 Procedure 88. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2 Possible Connection Configurations 89. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3 Connections 91. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.1 New Connection 94. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.2 Connections to Partners in Other Projects 96. . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.3 Further Functions 99. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.4 Connections Without Assignment 100. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.4 Configuring ISO Transport Connections 103. . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.4.1 Specifying the Local Connection Endpoint 104. . . . . . . . . . . . . . . . . . . . . . . . . .
4.4.2 Specifying ISO Transport Addresses 106. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.4.3 Specifying ISO Transport Dynamic Properties 109. . . . . . . . . . . . . . . . . . . . . . .
4.4.4 Checking ISO Transport Connection Properties 111. . . . . . . . . . . . . . . . . . . . .
4.5 Configuring ISO-on-TCP Connections Properties 112. . . . . . . . . . . . . . . . . . . .
4.5.1 Specifying the Local Connection Endpoint 113. . . . . . . . . . . . . . . . . . . . . . . . . .
4.5.2 Specifying ISO-on-TCP Addresses 115. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.5.3 Checking ISO-on-TCP Connection Properties 118. . . . . . . . . . . . . . . . . . . . . . .
4.6 Configuring TCP Connection Properties 119. . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.6.1 Specifying the Local Connection Endpoint 120. . . . . . . . . . . . . . . . . . . . . . . . . .
4.6.2 Specifying TCP Addresses 123. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.6.3 Checking TCP Connection Properties 126. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.7 Configuring UDP Connection Properties 127. . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.7.1 Specifying the Local Connection Endpoint 128. . . . . . . . . . . . . . . . . . . . . . . . . .
4.7.2 Specifying UDP Addresses 130. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.7.3 UDP with Broadcast and Multicast 133. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.7.4 Checking the Properties of a UDP Connection 137. . . . . . . . . . . . . . . . . . . . . . .
4.7.5 Free UDP Connection 138. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.8 FETCH/WRITE Mode 139. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.9 Routing to Distribute Load 143. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5 Programmed Communication Connections 145. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.1 Overview 146. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.2 Procedure 148. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.3 Configuration Data Block 149. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.4 Parameter Field for System Data
(CP Networking) 150. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.5 Parameter Fields for Connection Types 152. . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.5.1 Parameter Field for TCP Connection 153. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.5.2 Parameter Field for a UDP Connection 154. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.5.3 Parameter Field for an ISO-on-TCP Connection 155. . . . . . . . . . . . . . . . . . . . .
5.5.4 Parameter Field for an E-Mail Connection 156. . . . . . . . . . . . . . . . . . . . . . . . . .
5.5.5 Parameter field for FTP connection 158. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.6 Subfield types 159. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SIMATIC NET NCM S7 for Industrial Ethernet
12
Release 6/2003
C79000–G8976–C129–07
Contents
6 Programming FCs (Functions) and FBs for S7 Ethernet CPs 163. . . . . . . . . . . . . . .
6.1 General Notes on FCs / FBs 164. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.2 Setting Parameters for FC Calls 167. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.2.1 Parameters for CP and Connection Assignment (input parameters) 167. . . .
6.2.2 Parameters for Specifying a CPU Data Area (input parameters) 169. . . . . . .
6.2.3 Status Information (output parameters) 169. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.3 FCs for the SEND/RECEIVE Interface 170. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.3.1 FC5 AG_SEND / FC50 AG_LSEND 174. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.3.2 FC6 AG_RECV / FC60 AG_LRECV 184. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.4 FCs for Access Coordination with FETCH/WRITE 191. . . . . . . . . . . . . . . . . . .
6.4.1 FC7 AG_LOCK 193. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.4.2 FC8 AG_UNLOCK 195. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.5 FB55 IP_CONFIG for Programmed Communication Connections 197. . . . . .
6.6 Numeric Data / Resource Requirements of the FCs 203. . . . . . . . . . . . . . . . . .
7 NCM S7 Diagnostics 205. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7.1 Overview 206. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7.2 Functions of NCM S7 Diagnostics 207. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7.2.1 Installing and Starting NCM S7 Diagnostics 208. . . . . . . . . . . . . . . . . . . . . . . . .
7.2.2 General Menu Commands 210. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7.3 Starting Diagnostics 212. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7.3.1 Establishing a Connection to the Ethernet CP 212. . . . . . . . . . . . . . . . . . . . . . .
7.3.2 Starting Diagnostics from the CP Properties Dialog 212. . . . . . . . . . . . . . . . . .
7.3.3 Starting Diagnostics from the Windows Start Menu 213. . . . . . . . . . . . . . . . . .
7.3.4 Using a Gateway 215. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7.3.5 Using the PC Station – Setting a Gateway with “PC internal” 217. . . . . . . . . .
7.3.6 Other Ways of Starting Diagnostics 218. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7.4 How to Use Diagnostics 219. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7.5 Starting Diagnostic Functions Explicitly 220. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7.6 Checklist for “Typical Problems” in a System 222. . . . . . . . . . . . . . . . . . . . . . . .
7.6.1 Checklist for General CP Functions 223. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7.6.2 Communication Connections Checklist 224. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8 Firmware Loader 225. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8.1 Application 226. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8.2 Loading Firmware 227. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003
C79000–G8976–C129–07
13
Contents
A References 229. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B Glossary 233. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B.1 General Section 234. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B.2 Industrial Ethernet 238. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B.3 PROFInet 240. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
C Linking to Other Systems with FETCH/WRITE 243. . . . . . . . . . . . . . . . . . . . . . . . . . . .
D Document History 249. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Index 251. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
14
SIMATIC NET NCM S7 for Industrial Ethernet
C79000–G8976–C129–07
Release 6/2003

Communication via Ethernet CPs in S7 Stations

The Ethernet CP for SIMATIC S7 provides a series of communications services for different tasks.
This chapter explains the following:
S The types of communication possible with the Ethernet CP on Industrial
S The tasks handled by the Ethernet CP for the various services S How to create the conditions for your communications requirements
You will find further information in the following sources:
S When installing the Ethernet CP, please refer to the instructions in the manual
S For the functions and use of the STEP 7 configuration software, some of which
1
Ethernet
/1/ supplied with the Ethernet CP. This also contains further information about the performance of the Ethernet CP .
is used to configure the CP (such as hardware configuration), please refer to /6/ and /8/.
S For using, structuring and handling Industrial Ethernet, you will find detailed
information in /11/.
S For a general introduction to local area networks with TCP/IP refer to /16/ and
/17/.
SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003
C79000–G8976–C129–07
15
Communication via Ethernet CPs in S7 Stations

1.1 Industrial Ethernet

Definition
Within the open, heterogeneous SIMATIC NET communication system, Industrial Ethernet is the network for the management and cell level. Physically, Industrial Ethernet is an electrical network that uses a shielded coaxial cable or twisted pair, or an optical network with fiber-optic cables.
Industrial Ethernet is defined by the international standard IEEE 802.3 (see /11/).
All-Round Communication in the Industrial Sector
Industrial Ethernet is integrated in the SIMATIC NET concept that allows comprehensive networking of the management, cell and field levels in conjunction with PROFIBUS and the AS-interface (AS-i).
Figure 1-1 Industrial Ethernet in the SIMATIC NET Concept
Network Access
Industrial Ethernet is accessed using the CSMA/CD (Carrier Sense Multiple Access with Collision Detection) network access technique specified in IEEE 802.3.
Industrial
Ethernet
(IEEE 802.3)
PROFIBUS (EN 50170 Vol. 2 PROFIBUS)
AS-Interface
(AS-i, Actuator-Sensor Interface)
16
SIMATIC NET NCM S7 for Industrial Ethernet
C79000–G8976–C129–07
Release 6/2003
Communication via Ethernet CPs in S7 Stations

1.2 SIMATIC S7 Communication with S7 Ethernet CPs

Types of Communication
The Ethernet CP for SIMATIC S7 supports the following types of communication depending on the CP type:
Ethernet CP
S7/M7-400
Possible types of communication
S PG/OP communication S S7 communication
S S5-compatible communication
S PROFInet communication
Ethernet CP
S7-300
Interfaces / Services / Protocols
with the protocols
– ISO – TCP/IP (RFC 1006)
with the SEND / RECEIVE interface and the protocols
– ISO Transport – ISO-on-TCP (TCP/IP with RFC 1006) – TCP – UDP – E-mail
with FETCH / WRITE services and the protocols
– ISO Transport – ISO-on-TCP – TCP
with the protocols
– TCP
S HTML process control with
web browser
S File management and file
access with FTP
S PG/OP communication
PG/OP communication is used to download programs and configuration data, to run tests and diagnostic functions, and to control and monitor a plant from OPs.
SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003
C79000–G8976–C129–07
with the protocols
– HTTP / IP protocol
with the protocols
– FTP / IP protocol
17
Communication via Ethernet CPs in S7 Stations
S S7 communication
S7 communication forms a simple and efficient interface between SIMATIC S7 stations and PGs/PCs using communication function blocks.
S S5-compatible communication with SEND/RECEIVE interface
Depending on the CP type, the SEND/RECEIVE interface allows program-controlled communication on a configured connection from a SIMATIC S7 PLC to another SIMATIC S7 PLC, to a SIMATIC S5 PLC, to PCs/PGs, and to any other station.
Depending on the CP type, the following communications services are available on the SEND/RECEIVE interface:
– ISO Transport
optimized for top performance at the self-contained manufacturing level
– TCP/IP for internetwork communication with
ISO-on-TCP connections (RFC 1006), TCP connections and UDP datagram service (including broadcast / multicast).
– Sending E-mail
The controller is capable of sending messages triggered by process events (refer to the IT-CP manual for details /5/).
S S5-compatible communication with FETCH/WRITE services (server)
The FETCH/WRITE services (server) allow direct access to the system memory areas on the SIMATIC S7 CPU from SIMATIC S5, SIMATIC PC stations, or from devices of other ranges.
Depending on the CP type, the following communications services are available for FETCH/WRITE access:
– ISO Transport
optimized for top performance at the self-contained manufacturing level
– TCP/IP for internetwork communication with
ISO-on-TCP connections (RFC 1006), TCP connections.
S PROFInet communication
PROFInet is a standard of the PROFIBUS Users organization defining a heterogeneous communications and engineering model.
An S7-300 station equipped with a CP capable of PROFInet can be interconnected as a PROFInet component in SIMATIC iMap.
TCP connections are used for the PROFInet communication.
18
For more detailed information on PROFInet, refer to /23/.
S HTML process control
With an IT-CP, use the supplied functions and HTML pages to query important system data using a Web browser (you should also refer to the instructions on the IT-CP /5/).
SIMATIC NET NCM S7 for Industrial Ethernet
C79000–G8976–C129–07
Release 6/2003
Communication via Ethernet CPs in S7 Stations
S File management and file access with FTP
The IT-CP (S7-400 / S7-300) provides additional functions for FTP services. You can use your S7 station both as an FTP client and as an FTP server (refer
to the manual of the IT-CP /5/). – S7 Station as FTP Client
You can transfer data blocks from or to a file server.
– S7 Station as FTP Server
Another station, for example, a PC transfers data blocks to or from the S7 station the file system on the IT-CP.
Possibilities for Communication between Device Types
The possible communication available with the types of communication listed above is shown in the following table:
S7-300
S7/M7-400
S7 communication SEND/RECEIVE
PROFInet
S7 communication SEND/RECEIVE
1) PC only as client
S7-300
S7-400
S7 communication SEND/RECEIVE SEND/RECEIVE
S7 communication SEND/RECEIVE
FTP services
S5-115 to -155U/H
FETCH/WRITE
SEND/RECEIVE FETCH/WRITE
PC station
PG/OP communication
S7 communication SEND/RECEIVE FETCH/WRITE
HTML process control
PROFInet FTP services
PG/OP communication
S7 communication SEND/RECEIVE FETCH/WRITE
HTML process control
FTP services
1)
1)
1)
1)
SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003
C79000–G8976–C129–07
19
Communication via Ethernet CPs in S7 Stations
Configuration and Diagnostics
To connect and configure the Ethernet CP, you require the STEP 7 configuration software and the SIMATIC NET NCM S7 for Industrial Ethernet option.
NCM S7 for Industrial Ethernet is installed as a STEP 7 option and is therefore integrated in STEP 7.
NCM S7 for Industrial Ethernet also provides a wide range of diagnostic functions for the various types of communication.
When configuring PROFInet communication, you also use the engineering tool SIMATIC iMap; for detailed information on SIMATIC iMap, refer to the manual Component based Automation – Configuring Plants with SIMATIC iMap /23/.
Programmed Connections
In some situations, it is an advantage to set up communication connections not over the configuration interface of STEP 7 but program-controlled by specific
V 5.2.1
applications. As of STEP 7 V5.2 SP1, a function block is available for these applications that
allows flexible transfer of data blocks with configuration data to an Ethernet CP.
20
SIMATIC NET NCM S7 for Industrial Ethernet
C79000–G8976–C129–07
Release 6/2003
Communication via Ethernet CPs in S7 Stations

1.3 PG/OP Communication via Industrial Ethernet

Application
PG/OP communication provides functions that are already integrated in every SIMATIC S7/M7/C7 device.
A distinction must be made between the following two types of function: S PG communication
PG communication with STEP 7 PLCs on Industrial Ethernet means the following:
– You can use the complete range of functions of STEP 7 on Industrial
Ethernet.
– You can use programming, diagnostic, operating and monitoring functions on
all modules in the SIMATIC S7 PLC via Industrial Ethernet.
S OP Operation
PG/OP communication on Industrial Ethernet allows the operation and monitoring of all modules in a SIMATIC S7 PLC using operator interface systems (TD/OP).
The Ethernet CP acts as a “communications relay” that relays the PG/OP communication via Industrial Ethernet.
SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003
C79000–G8976–C129–07
21
Communication via Ethernet CPs in S7 Stations
Operator interface functions
Ethernet attachment
S7 – 400
Ethernet CP
OP
S7 – 300
PC with Ethernet CP
STEP 7 NCM S7
Create configuration data for every CP and download to the Ethernet CPs
Ethernet
Ethernet CP
S7 – 400
Modem / ISDN
WAN *
* only TCP/IP
Figure 1-2 Configuration for PG/OP Operation
22
Ethernet CP
SIMATIC NET NCM S7 for Industrial Ethernet
C79000–G8976–C129–07
Release 6/2003
Communication via Ethernet CPs in S7 Stations

1.3.1 PG Communication with STEP 7 over Industrial Ethernet

Requirements for PG Communication
PG communication is possible when the following requirements are met: S An Ethernet CP is installed in the PG or engineering station or there is a
modem/ISDN interface for remote access.
S The Ethernet CP must have an address (default MAC address or set the IP
address).
Networking the PG / Engineering Station
Depending on the configuration of the PG or Engineering Station, the following two situations are possible when using PG communication:
S PG / Engineering Station in the Configured Mode
If you select this configuration when you commission the PG / engineering station, the interfaces of the communication modules you are using are already known. The option in “Set PG/PC Interface” is automatically set to “PC-internal”.
Once you have downloaded this configuration to your PG / engineering station, you can exchange PG functions with the accessible nodes in the network with
STEP 7 without requiring any further settings. S PG / Engineering Station in PG Operation If your PG or engineering station is configured for this mode, you must specify the
interface on the PG or engineering station explicitly with “Set PG/PC Interface”. Follow the steps outlined below:
1. Open the “Set PG/PC Interface” dialog box in the Windows Control Panel.
2. Set the PG/PC interface according to the CPs available on your PG and
according to the bus attachment (interface parameter assignment used). For more detailed information on the topic of PG operation and engineering station,
refer to /4/.
SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003
C79000–G8976–C129–07
23
Communication via Ethernet CPs in S7 Stations

1.3.2 OP Operation: Connecting Operator Interface Devices via Industrial Ethernet

Requirements
Operation allowing operator interface functions is possible when the following conditions are met:
S The operator interface device has:
– an Ethernet CP installed – SOFTNET S7 for Ind. Ethernet or S7-1613/ WIN 95, WIN NT, MS-DOS,
Windows installed.
S The CPs in the S7 stations are supplied with a MAC/IP address (use the default
MAC address or set an IP address).
Procedure
To be able to use S7 communication, address the required module in the SIMATIC S7 PLC on your operator interface system.
For more detailed information, refer to the description of your operator interface system.
24
SIMATIC NET NCM S7 for Industrial Ethernet
C79000–G8976–C129–07
Release 6/2003
Communication via Ethernet CPs in S7 Stations

1.4 S7 Communication on Industrial Ethernet

Application
S7 communication via Industrial Ethernet allows program-controlled communication using communication SFBs/FBs via configured S7 connections. Per job, up to 64 Kbytes of user data can be transmitted.
The Ethernet CP acts as an “S7 communication relay” by passing on the S7 functions via Industrial Ethernet (see /8/). Depending on the configuration of the Ethernet CP, data transfer is on the basis of the ISO transport or the ISO-on-TCP protocol (TCP/IP with RFC 1006).
From the perspective of the user, S7 communication is identical over PROFIBUS and Industrial Ethernet.
Nodes
Two situations can occur depending on device type and plant configuration:
S Client and server functionality at both ends
S7 connections can be operated between the following nodes with the entire functionality of S7 communication:
– between S7 stations S7-300 and S7-400; – between S7 stations and PC/PG stations with an Ethernet CP.
S7 – 400
Ethernet
Ethernet CP
S7 – 300
Ethernet CP
PUT / GET BSEND / BRECV
WAN *
USEND / URECV
M7
* only TCP/IP
PC/PG with Ethernet CP
Figure 1-3 Nodes Communicating on S7 Connections over Industrial Ethernet
SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003
C79000–G8976–C129–07
S7 – 300 / 400
25
Communication via Ethernet CPs in S7 Stations
S Client and server functionality at one end only (S7 connections
configured at one end)
In the following situations, write and read functions can be implemented with PUT / GET:
– S7 communication over router
PG/PC stations can access S7 stations if the PG/PC stations are connected to a different subnet or subnet type (PROFIBUS / Ethernet) via routers (for example, an IE/PB Link); in this case, S7 stations are servers.
S7 communication is possible over a gateway.
Ethernet
S7 – 400
PROFIBUS
Ethernet CP
PC/PG Station
S7 – 300
PUT / GET
Ethernet
Ethernet CP
PC/PG Station
IE/PB Link
PUT / GET
Figure 1-4 PC/PG station communicates over a gateway with S7 stations on an underlying PROFIBUS
or Ethernet
For more detailed information on the features supported by your Ethernet CP, refer to the manual /1/.
26
SIMATIC NET NCM S7 for Industrial Ethernet
C79000–G8976–C129–07
Release 6/2003
Communication via Ethernet CPs in S7 Stations
Configuring S7 Connections
Create S7 connections to use S7 communication for data exchange between two SIMATIC S7 stations.
For more detailed information, refer to the STEP 7 Description /6/ /8/.
Notice
S7 connections via routers are supported only within a STEP 7 project but not between partners in different STEP 7 projects of a multiproject!
Interface in the User Program of the S7 Station
You use SFBs (for S7-400) and FBs (for S7-300) in the user program.
Block Type Client Server Described in
SFB / FB12 BSEND x STEP 7 SFB / FB13 BRCV x SFB / FB15 PUT x – SFB / FB14 GET x – SFB / FB8 USEND x – SFB / FB9 URCV x SFC / FC62 CONTROL (S7-400) /
C_CNTRL (S7-300)
x x
Documentation /9/
1)
1)
2)
1) you do not need to configure a connection on the server
2) for S7-300
Notice
Please remember the following points regarding data consistency in your user pro­gram:
In the CPU of the S7 station, the read or written information is taken from the S7 user program into the operating system or copied from the operating system to the S7 user program in blocks of 8 or 32 bytes (depending on the firmware version).
If information in the word or double-word format is located across such bounda­ries, data inconsistency may arise during transmission using S7 communication!
For more detailed information, refer to the STEP 7 documentation /9/.
SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003
C79000–G8976–C129–07
27
Communication via Ethernet CPs in S7 Stations
Notes on S7 Communication between PC/PG Station and S7 Station
Applications in a PC/PG station communicate with the S7 station over an OPC interface or SAPI-S7 interface for operator intervention, monitoring and control.
The S7 stations use the integrated communication SFBs/FBs (client and server functionality at both ends).
The following general requirements must be met by a PC/PG station for S7 communication:
S On the PC/PG:
– an Ethernet CP installed – there is an interface for S7 communication installed: SOFTNET S7 for Ind.
Ethernet or S7-1613/ WIN 95, WIN NT, MS-DOS, Windows.
S The CPs in the S7 stations are supplied with a MAC/IP address (use the default
MAC address or set an IP address).
To use S7 communication with the SIMATIC S7 PLC from a PC, address the
required CPU module in the SIMATIC S7 PLC that you want to communicate with in your PC application.
S7 Communication via Routers (one-sided Client and Server Functionality)
It is possible to reach the S7 station from an application (OPC server) of the PC/PG station that is attached to another subnet. The subnets must be connected over a router such as the IE/PB Link. An S7 station or a PC connected to both subnets can also serve as a router.
In this configuration, the S7 station can only be addressed by the PC/PG station as a communications server on S7 connections configured at one end.
The requirements for the configuration of the PC/PG station are identical to those for operation in the same subnet (see above); the CP in the PC/PG station must also have routing capability.
In this situation, configure a one-ended S7 connection to the PC/PG station in the other subnet for the PC/PG station in STEP 7 NetPro. You can then access data in the S7 station in your user program using the functions PUT (writing) and GET (reading).
28
SIMATIC NET NCM S7 for Industrial Ethernet
C79000–G8976–C129–07
Release 6/2003
Communication via Ethernet CPs in S7 Stations
1.5 S5-compatible Communication (SEND/RECEIVE
1
Interface)
Application
Using the SEND/RECEIVE interface, your S7 user program has access to S5-compatible communication with configured transport connections.
Data transmission on a configured transport connection is suitable for S the reliable transmission of related blocks of data between two Ethernet nodes
using – TCP (see /17//19//20/) with ISO-on-TCP connection (see /18/) or TCP
connection;
– ISO transport connection
S simple (unacknowldeged) transfer of related blocks of data (datagram service)
between two Ethernet nodes with UDP (User Datagram Protocol) on IP.
)
The SEND/RECEIVE interface is also suitable for sending E-mail (refer to the manual for the IT-CP /5/).
For TCP applications, there is an active network with IP protocol (see /20/).
ISO Transport Connection
ISO transport provides services for the reliable transfer of data on configured connections. Due to the segmentation of the data, large amounts of data can be transmitted.
Transmission reliability is extremely high due to automatic repetition and additional field check mechanisms. The communications partner confirms reception of data and the sender receives a return value on the SEND/RECEIVE interface.
ISO transport is operated only on Industrial Ethernet and is optimized for high-performance operation at the self-contained manufacturing level.
1The previous name of the SEND/RECEIVE interface was S5S5 connections
SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003
C79000–G8976–C129–07
29
Communication via Ethernet CPs in S7 Stations
IP (Internet Protocol)
For internetwork data transmission, the following services are available with suitable CPs such as the CP 443-1:
S ISO-on-TCP connection
ISO-on-TCP is intended for reliable, internetwork data transmission. The ISO-on-TCP service corresponds to the TCP/IP standard (Transmission
Control Protocol/Internet Protocol) with the RFC 1006 extension according to layer 4 of the ISO reference model (see /18/).
RFC 1006 extends the TCP protocol by allowing the transmission of blocks of data (“messages”) assuming that both partners support RFC 1006.
Transmission reliability is extremely high due to automatic repetition and additional field check mechanisms. The communications partner confirms reception of data and the sender receives a return value on the SEND/RECEIVE interface.
S TCP connection
When using the SEND/RECEIVE interface on TCP connections, the Ethernet CP supports the socket interface (for example, Winsock.dll) to TCP/IP found on almost every system (PC or other system).
TCP is intended for reliable internetwork data transmission. The TCP service complies with the TCP/IP standard (Transmission Control
Protocol/Internet Protocol; see /18/).
S UDP connection
UDP is intended for simple internetwork data transmission without confirmation. If the connection is suitably configured, broadcast and multicast frames can
also be sent on UDP connections. To avoid overload due to high broadcast load, the CP does not allow reception
of UDP broadcasts. As an alternative, use the multicast function over a UDP connection. This allows you to register the CP as a node in a multicast group.
SEND/RECEIVE Interface
Data transfer is triggered by the user program. The interface to the user program in the SIMATIC S7 is formed by special SIMATIC S7 blocks of the type FC (functions).
30
SIMATIC NET NCM S7 for Industrial Ethernet
C79000–G8976–C129–07
Release 6/2003
Loading...
+ 225 hidden pages