Page 4 - Prior to Startup
4 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 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 ple...
Page 6 - This Manual on SIMATIC NET NCM S7 for Industrial Ethernet; Audience; These include new functions for IP configuration:; Notice
This Manual on SIMATIC NET NCM S7 for Industrial Ethernet 6 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Audience This manual is intended for personnel responsible for installing and programmingSTEP 7 programs and for service personnel. Scope of this Manual This man...
Page 7 - Symbols Used in this Manual; This symbol indicates recommended documentation.; Conventions
This Manual on SIMATIC NET NCM S7 for Industrial Ethernet 7 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 Symbols Used in this Manual Unless indicated otherwise, the functions described in this manual assume the useof STEP 7. This symbol is used to indicate functions ...
Page 8 - You will find additional information in the following sources:; Title
This Manual on SIMATIC NET NCM S7 for Industrial Ethernet 8 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 You will find additional information in the following sources: This manual is also part of the NCM S7 for Industrial Ethernet documentationpackage. These documen...
Page 9 - Quick Start CD: Samples covering all aspects of communication; You can order this directly over the Internet at:; Additional Information on SIMATIC S7 and STEP 7; Topic; General information
This Manual on SIMATIC NET NCM S7 for Industrial Ethernet 9 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 Quick Start CD: Samples covering all aspects of communication The Quick Start CD that can be ordered separately is atreasure-trove of sample programs and configur...
Page 10 - Access to Online Help of STEP 7 and NCM S7; With the online help, you can obtain the following information:
This Manual on SIMATIC NET NCM S7 for Industrial Ethernet 10 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 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 he...
Page 11 - Contents; Communication via Ethernet CPs in S7 Stations
11 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 Contents 1 Communication via Ethernet CPs in S7 Stations 15 . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1 Industrial Ethernet 16 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...
Page 12 - Configuring Communication Connections
Contents 12 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 4 Configuring Communication Connections 87 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1 Procedure 88 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....
Page 13 - Programming FCs (Functions) and FBs for S7 Ethernet CPs
Contents 13 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 6 Programming FCs (Functions) and FBs for S7 Ethernet CPs 163 . . . . . . . . . . . . . . . 6.1 General Notes on FCs / FBs 164 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.2 Set...
Page 14 - References; General Section; Linking to Other Systems with FETCH/WRITE
Contents 14 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 A References 229 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B Glossary 233 . . . . . . . . . . . . . . . . . . . . . . . . . . . ....
Page 16 - Communication via Ethernet CPs in S7 Stations; Industrial Ethernet; Definition; Industrial; Network Access
Communication via Ethernet CPs in S7 Stations 16 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 1.1 Industrial Ethernet Definition Within the open, heterogeneous SIMATIC NET communication system, IndustrialEthernet is the network for the management and cell level. Phy...
Page 17 - SIMATIC S7 Communication with S7 Ethernet CPs; Types of Communication; S7 communication
Communication via Ethernet CPs in S7 Stations 17 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 1.2 SIMATIC S7 Communication with S7 Ethernet CPs Types of Communication The Ethernet CP for SIMATIC S7 supports the following types of communicationdepending on the CP type...
Page 18 - – ISO Transport; PROFInet communication; TCP connections are used for the PROFInet communication.; HTML process control
Communication via Ethernet CPs in S7 Stations 18 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 S S7 communication S7 communication forms a simple and efficient interface between SIMATIC S7stations and PGs/PCs using communication function blocks. S S5-compatible commu...
Page 19 - File management and file access with FTP; – S7 Station as FTP Client; Possibilities for Communication between Device Types
Communication via Ethernet CPs in S7 Stations 19 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 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 ...
Page 20 - Configuration and Diagnostics
Communication via Ethernet CPs in S7 Stations 20 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Configuration and Diagnostics To connect and configure the Ethernet CP, you require the STEP 7 configurationsoftware and the SIMATIC NET NCM S7 for Industrial Ethernet opti...
Page 21 - PG/OP Communication via Industrial Ethernet; Application; PG communication
Communication via Ethernet CPs in S7 Stations 21 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 1.3 PG/OP Communication via Industrial Ethernet Application PG/OP communication provides functions that are already integrated in everySIMATIC S7/M7/C7 device. A distinction...
Page 22 - Ethernet
Communication via Ethernet CPs in S7 Stations 22 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Ethernet S7 – 300 Create configuration data forevery CP and download to theEthernet CPs STEP 7NCM S7 S7 – 400 Ethernet CP Ethernet attachment * only TCP/IP S7 – 400 Etherne...
Page 23 - PG Communication with STEP 7 over Industrial Ethernet; Requirements for PG Communication; PG / Engineering Station in the Configured Mode
Communication via Ethernet CPs in S7 Stations 23 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 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 Ethe...
Page 24 - Requirements; The operator interface device has:; Procedure
Communication via Ethernet CPs in S7 Stations 24 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 1.3.2 OP Operation: Connecting Operator Interface Devices viaIndustrial Ethernet Requirements Operation allowing operator interface functions is possible when the following...
Page 25 - S7 Communication on Industrial Ethernet; Client and server functionality at both ends; – between S7 stations and PC/PG stations with an Ethernet CP.
Communication via Ethernet CPs in S7 Stations 25 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 1.4 S7 Communication on Industrial Ethernet Application S7 communication via Industrial Ethernet allows program-controlledcommunication using communication SFBs/FBs via conf...
Page 26 - – S7 communication over router
Communication via Ethernet CPs in S7 Stations 26 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 S Client and server functionality at one end only (S7 connectionsconfigured at one end) In the following situations, write and read functions can be implemented withPUT / G...
Page 27 - Configuring S7 Connections; Interface in the User Program of the S7 Station; Block Type
Communication via Ethernet CPs in S7 Stations 27 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 Configuring S7 Connections Create S7 connections to use S7 communication for data exchange between twoSIMATIC S7 stations. For more detailed information, refer to the STEP 7...
Page 28 - Notes on S7 Communication between PC/PG Station and S7 Station; – an Ethernet CP installed
Communication via Ethernet CPs in S7 Stations 28 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Notes on S7 Communication between PC/PG Station and S7 Station Applications in a PC/PG station communicate with the S7 station over an OPCinterface or SAPI-S7 interface for...
Page 29 - – ISO transport connection; ISO Transport Connection
Communication via Ethernet CPs in S7 Stations 29 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 1.5 S5-compatible Communication (SEND/RECEIVEInterface) 1 ) Application Using the SEND/RECEIVE interface, your S7 user program has access toS5-compatible communication with ...
Page 30 - TCP connection
Communication via Ethernet CPs in S7 Stations 30 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 IP (Internet Protocol) For internetwork data transmission, the following services are available withsuitable CPs such as the CP 443-1: S ISO-on-TCP connection ISO-on-TCP is...
Page 31 - Stations; SIMATIC S7 PLC with Ethernet CP
Communication via Ethernet CPs in S7 Stations 31 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 Stations The SEND/RECEIVE interface allows program-controlled communication onIndustrial Ethernet between the SIMATIC S7 PLC and the following: S SIMATIC S7 PLC with Etherne...
Page 32 - FETCH; Connection Types; ISO Transport; Coordinating Access Using the User Program
Communication via Ethernet CPs in S7 Stations 32 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 1.6 FETCH/WRITE Services (Server) Application In addition to the SEND/RECEIVE interface, the FETCH/WRITE functionalityprovides further services for S5-compatible communicat...
Page 33 - Networking Stations with STEP 7; Configuring; Configuring a network or subnet involves the following:; Networking in a Multiproject; STEP 7 as of Version V5.2 supports configuration in a multiproject.; Tools
Communication via Ethernet CPs in S7 Stations 33 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 1.7 Networking Stations with STEP 7 Configuring To allow stations to communicate with each other the networks must be configuredin the STEP 7 projects. Configuring a network...
Page 34 - Variants; Characteristics/Configuration
Communication via Ethernet CPs in S7 Stations 34 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Variants Before configuring networks with STEP 7, you should be aware of the variousconfigurations possible in the STEP 7 project. The following configurations aretypical f...
Page 35 - Network/Project Variant: One Subnet – One Project; Configuration of the System; View in a STEP 7 Project
Communication via Ethernet CPs in S7 Stations 35 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 1.7.1 Network/Project Variant: One Subnet – One Project Configuration of the System In the simplest case, your system consists of SIMATIC S7 stations connected byone subnet,...
Page 36 - SIMATIC S5
Communication via Ethernet CPs in S7 Stations 36 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 1.7.2 Network/Project Variant: SIMATIC S5 and Non-SIMATIC Deviceson the Subnet Configuration of the System In addition to SIMATIC S7 stations, SIMATIC S5 stations and non-S...
Page 37 - Network/Project Variant: Two or More Subnets – One Project; This representation illustrates the following:
Communication via Ethernet CPs in S7 Stations 37 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 1.7.3 Network/Project Variant: Two or More Subnets – One Project Configuration of the System Due to the different tasks of the stations or due to the extent of the system it...
Page 38 - The functions for multiprojects in STEP 7 allow the following:
Communication via Ethernet CPs in S7 Stations 38 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 1.7.4 Network/Project Variant: One Subnet – More Than One(Sub)Project Configuration of the System In complex networked systems, during configuration it is sometimes more ef...
Page 39 - Possibilities for stations outside the current project
Communication via Ethernet CPs in S7 Stations 39 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 In this case, agreement is necessary, for example, regarding the assignment ofconnection names because it will be far easier when synchronizing the projectsto bring connecti...
Page 40 - Merging Projects in the Multiproject:
Communication via Ethernet CPs in S7 Stations 40 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Use this variant when you want to operate projects separately due to thecomplexity. Stations of the type SIMATIC S5 function in just the same way asrepresentative objects. ...
Page 41 - Using (sub) projects in the “multiproject”; by configuring “Other stations / SIMATIC S5” in the other project.; Organization in a Multiproject
Communication via Ethernet CPs in S7 Stations 41 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 1.7.5 Network/Project Variant: Several Subnets in Several (Sub)Projects Configuration of the System If several network types need to be used and if these need to be managed ...
Page 45 - with integrated in STEP 7 by selecting Help
45 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 Installing and Starting the Ethernet CPwith STEP 7 To attach a SIMATIC station to Industrial Ethernet via the Ethernet CP, configurethe CP with the NCM S7 configuration software. The chapter explains thefollowing: S How...
Page 46 - Installing and Starting the Ethernet CP with STEP 7; Installation
Installing and Starting the Ethernet CP with STEP 7 46 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 2.1 General Information About the NCM S7 for IndustrialEthernet Option Installation Please follow the instructions in the README file when installing the NCM S7 forIn...
Page 48 - Creating an Industrial Ethernet Subnet; Aims; Follow the steps outlined below:; Subnet
Installing and Starting the Ethernet CP with STEP 7 48 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 2.2.1 Creating an Industrial Ethernet Subnet Aims To be able to attach the SIMATIC stations to a subnet, you create the subnet inyour project. This means that all the...
Page 49 - “Ethernet” and confirm with Edit
Installing and Starting the Ethernet CP with STEP 7 49 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 3. If you prefer a NetPro graphic network display, select the network object “Ethernet” and confirm with Edit " Open Object. Figure 2-2 Graphic Network Representat...
Page 50 - Preserving Consistency in Merged Subnets
Installing and Starting the Ethernet CP with STEP 7 50 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Notice Preserving Consistency in Merged Subnets After merging the subnets, you should check the consistency throughout the multi-project using the menu command Networ...
Page 51 - Entering an Ethernet CP in the Hardware Configuration; using an Ethernet CP.; Result: The CP is assigned to the SIMATIC station.; How to configure a module with STEP is described in detail in /6/.
Installing and Starting the Ethernet CP with STEP 7 51 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 2.2.2 Entering an Ethernet CP in the Hardware Configuration Procedure By installing and assigning the Ethernet CP in the rack of a SIMATIC station, youestablish the lo...
Page 52 - Subnet Attachment
Installing and Starting the Ethernet CP with STEP 7 52 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Subnet Attachment To allow you to activate the network attachment of the Ethernet CP, the SIMATICManager displays the following dialog:
Page 53 - next free address automatically.; Note; Select the required subnet type in the “Subnet” list box.
Installing and Starting the Ethernet CP with STEP 7 53 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 Note You can open the dialog for setting the interface at any time from the Propertiesdialog of the CP in the “General” tab. 1. If you have not yet created a subnet in...
Page 54 - With the latest Ethernet CPs, the situation is as follows:
Installing and Starting the Ethernet CP with STEP 7 54 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Setting Addresses in the Configuration and Addressing for the First Time The address settings described here are made on the CP only after you downloadthe configurati...
Page 55 - Displaying the Network Attachments of a Station; A graphic overview in NetPro; Graphic Overview in NetPro; Follow the steps below:
Installing and Starting the Ethernet CP with STEP 7 55 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 2.2.3 Displaying the Network Attachments of a Station Procedure You can easily get an overview of the network attachment configurations of aSIMATIC station in one of t...
Page 56 - Overview in Table Form; Select the Object Properties using the menu option Edit; or by double-clicking the station symbol.
Installing and Starting the Ethernet CP with STEP 7 56 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Overview in Table Form The table view in the Properties dialog of the station provides a detailed overviewof the components used for network attachment. Follow the st...
Page 57 - Setting Further CP Properties; Overview; Select the Ethernet CP in the hardware configuration.; Object Properties. Depending on your type of CP, the dialog; Tabs
Installing and Starting the Ethernet CP with STEP 7 57 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 2.2.4 Setting Further CP Properties Overview In addition to the network attachment, you can also make further settings for thespecific module or you can call functions...
Page 58 - Addresses Tab; Please note the following notes on S7-300 stations:; Options Tab; Depending on the CP type, you can make the following settings:; Option; Notes
Installing and Starting the Ethernet CP with STEP 7 58 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Addresses Tab The Addresses tab displays the address at which the module can be addressed bythe user program. You require this address when calling the FCs for transp...
Page 61 - Diagnostics Tab; In the “Diagnostics” tab, you can startNCM S7 Diagnostics.; Addressing Tab
Installing and Starting the Ethernet CP with STEP 7 61 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 Time-of-Day Synchronization Tab In this tab, you can make the settings for one of the two synchronization modesexplained below: S SIMATIC mode If the CP receives MMS t...
Page 62 - IP Access Protection Tab; As default, IP access protection is deactivated.; IP access protection for partners with specific IP addresses
Installing and Starting the Ethernet CP with STEP 7 62 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 IP Access Protection Tab Using IP access protection gives you the opportunity of restricting communicationover the CP of the local S7 station to partners with specifi...
Page 63 - IP Configuration Tab
Installing and Starting the Ethernet CP with STEP 7 63 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 IP Configuration Tab In this tab, you can decide the route and the method with which the IP address ofthe local S7 station is obtained and assigned. With the options a...
Page 65 - “Substitute Objects” in the STEP 7 Project; SIMATIC S5 stations
Installing and Starting the Ethernet CP with STEP 7 65 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 2.2.5 “Substitute Objects” in the STEP 7 Project Overview Communication connections can be configured fully when the communicationspartners are available in the curren...
Page 66 - Select the project in the SIMATIC Manager.; Select the menu command Insert; Attaching Non-S7 Stations to the Subnet; Select the required object in the project and select Edit; click the “New” button (for example “Other Station”.; Result: The New Interface – Type Selection dialog box is displayed.
Installing and Starting the Ethernet CP with STEP 7 66 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Procedure To enter a substitute object in the project, following the steps below: 1. Select the project in the SIMATIC Manager. 2. Select the menu command Insert "...
Page 68 - Configuring Communication Services; Setting Up Connections; Contents. Select the topic “Configuring Connections and Data
Installing and Starting the Ethernet CP with STEP 7 68 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 2.2.6 Configuring Communication Services Setting Up Connections You must set up connections for the connection-oriented services supported by theIndustrial Ethernet C...
Page 69 - Meaning of the Address Assignment – MAC Address and IP Address
Installing and Starting the Ethernet CP with STEP 7 69 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 2.3 Assigning Addresses for the First Time (Applies toLatest CPs) Meaning of the Address Assignment – MAC Address and IP Address The CP ships with a factory-set MAC ad...
Page 70 - The Ethernet port of your PG/PC must be accessible to STEP 7.; Follow the steps below to assign the IP address the first time:; Open the SIMATIC Manager; Select the menu command PLC
Installing and Starting the Ethernet CP with STEP 7 70 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Requirements Before you can use the addressing described here, the CP must be obtainableonline, which means: S An attachment to the Ethernet LAN must already exist; t...
Page 72 - Alternative Procedure; Use the menu command PLC; nodes that you can access over Industrial Ethernet.; Then select the menu command PLC
Installing and Starting the Ethernet CP with STEP 7 72 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Alternative Procedure You can also follow the steps outlined below in the SIMATIC Manager: 1. Use the menu command PLC " Display Accessible Nodes to display the n...
Page 73 - Addressing using the Properties Dialog in HW Config or NetPro; HW Config in an existing or newly created project.
Installing and Starting the Ethernet CP with STEP 7 73 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 2.3.2 Addressing using the Properties Dialog in HW Config or NetPro Follow the steps below to assign the IP address the first time: 1. Open the SIMATIC Manager. 2. Def...
Page 74 - Principle; MPI interface
Installing and Starting the Ethernet CP with STEP 7 74 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 2.4 Downloading the Configuration Data to the TargetSystem Principle The configuration data of the Ethernet CP are downloaded from the hardwareconfiguration. All the ...
Page 75 - Select the menu command PLC; Deactivating the MAC Address in the Configuration
Installing and Starting the Ethernet CP with STEP 7 75 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 Procedure To download the configuration data to the S7 station, follow the steps outlinedbelow: 1. Open the “Set PG/PC Interface” dialog box in the Windows Control Pan...
Page 76 - Relocating the CP in the Hardware Configuration
Installing and Starting the Ethernet CP with STEP 7 76 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Relocating the CP in the Hardware Configuration If you are using communication services with configured connections, theconnection IDs also identify the slot of the C...
Page 78 - SEND/RECEIVE Interface in the User Program; How the SEND/RECEIVE Interface Works on the CPU; Amounts of Data
SEND/RECEIVE Interface in the User Program 78 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 3.1 How the SEND/RECEIVE Interface Works on the CPU Functions (FCs) The following functions (FCs) are available for handling communication onconnections: S AG_SEND/AG_LSENDThi...
Page 79 - Programming the SEND/RECEIVE Interface; Principle of Job and Data Transfer
SEND/RECEIVE Interface in the User Program 79 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 3.2 Programming the SEND/RECEIVE Interface Principle of Job and Data Transfer The user program triggers the transfer of the user data areas with FC calls andmonitors the transf...
Page 80 - Calling FCs in the CPU Program; The following points are illustrated by the diagram:
SEND/RECEIVE Interface in the User Program 80 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Calling FCs in the CPU Program One possible sequence for FCs in conjunction with the organization and programblocks in the CPU cycle is illustrated in the following diagram. Ç...
Page 82 - The CPU cycle is faster than the transmission time.; FC Calls Faster than the Transmission Time
SEND/RECEIVE Interface in the User Program 82 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 3.3 Data Exchange S7 CPU <–> Ethernet CP The Ethernet CP processes the send and receive jobs independent of the CPUcycle and requires one transmission time. The interfac...
Page 83 - FC Calls Slower than the Transmission Time
SEND/RECEIVE Interface in the User Program 83 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 FC Calls Slower than the Transmission Time If a block is called again before the data were completely transferred or received,the procedure is as follows on the interface of th...
Page 84 - Additional Information; Programming Data Transfer on TCP Connections; Purpose of TCP Connections; Use only the following functions (FCs) for data transmission:
SEND/RECEIVE Interface in the User Program 84 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 3.4 Additional Information 3.4.1 Programming Data Transfer on TCP Connections Purpose of TCP Connections TCP connections should be used above all for connections to systems of...
Page 85 - Recommendations for Use with a High Communications Load; The recommendations below will help to avoid these situations:
SEND/RECEIVE Interface in the User Program 85 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 3.4.2 Recommendations for Use with a High Communications Load Overview The points below will help you to avoid overload situations on your CPU whenusing the Ethernet CPs. In pa...
Page 87 - Configuring Communication Connections; This chapter explains the following:
87 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 Configuring Communication Connections This chapter explains the following: S The general aspects of configuring communication connections S How to configure ISO transport connections, ISO-on-TCP and TCP connections S Ho...
Page 88 - Initial Situation; The steps described here assume the following:; Setting up Connections and Using Them in the User Program; Programming
Configuring Communication Connections 88 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 4.1 Procedure Initial Situation The steps described here assume the following: 1. You have created the local S7 station and the required partner stations in your STEP 7 projects (r...
Page 89 - Possible Connection Configurations
Configuring Communication Connections 89 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 4.2 Possible Connection Configurations Communication connections are possible between the communication partnersshown in the diagram below. The communication partners can be in the ...
Page 91 - Connections; Characteristics of a Connection; Exceptions to this are:
Configuring Communication Connections 91 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 4.3 Connections Characteristics of a Connection A communication connection allows program-controlled communication betweentwo nodes on Industrial Ethernet with the following charact...
Page 92 - Tasks of the Ethernet CP
Configuring Communication Connections 92 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Amounts of Data Refer to the manual /1/ supplied with the Ethernet CP for the number ofcommunication connections supported by the Ethernet CP. The number ofconnections per station ...
Page 93 - Requirements for Configuring Connections; As a bus node, the Ethernet CP has an address.; or
Configuring Communication Connections 93 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 Requirements for Configuring Connections The Ethernet CP was entered in the hardware configuration and connected to thesubnet. As a bus node, the Ethernet CP has an address. Notice ...
Page 94 - New Connection; establish the connection.
Configuring Communication Connections 94 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 4.3.1 New Connection Principle When you create new connections, you start from entered and networked stations.A connection is then configured starting from a station or CPU in the ...
Page 96 - Handling Connections in a Multiproject; Connections to Partners in Other Projects; This method is described in the section above.
Configuring Communication Connections 96 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Handling Connections in a Multiproject Interproject connections to a specified partner (for example, a CPU) are created inthe same way as connections within a project (identical pr...
Page 97 - Unspecified Connections; Connection to a specific station in any project
Configuring Communication Connections 97 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 In both projects, the same connection name must be configured in theproperties of the connection. The connection name is used as a textualreference when the projects are merged. Bas...
Page 98 - The following table lists the possible options.; Meaning for Connection
Configuring Communication Connections 98 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 The following table lists the possible options. Table 4-2 Meaning for Connection Establishment IP Address / MAC Address TSAP / Port Possible Connection Establishment by any partner...
Page 99 - Further Functions; Toolbar; Save; Print Function in the “Overview” Tab
Configuring Communication Connections 99 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 4.3.3 Further Functions Toolbar In the toolbar of the connection configuration dialog the following functions areavailable: Save To save the configured connection, select the Save f...
Page 100 - Connections Without Assignment
Configuring Communication Connections 100 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 4.3.4 Connections Without Assignment Overview This section explains the actions that can lead to a configured connection losing itsassignment to the CP or being deleted. Caution R...
Page 101 - Action; Connection
Configuring Communication Connections 101 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 Table 4-3 Actions That Can Cause Changes to Configured Connections, continued Action How to Establish the Connection Again Consequences for the Connections Deleting a remote statio...
Page 103 - Configuring ISO Transport Connections; Introduction; Select the required connection in the connection table.; Select the menu option Edit; The following tabs are available for ISO transport connections:
Configuring Communication Connections 103 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 4.4 Configuring ISO Transport Connections Introduction When you create a connection in the New dialog, you specify the connection typeand, as far as possible, the connection partne...
Page 104 - Specifying the Local Connection Endpoint; General Tab
Configuring Communication Connections 104 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 4.4.1 Specifying the Local Connection Endpoint General Tab This tab of the Properties dialog displays general connection parameters thatidentify the local connection endpoint. Fig...
Page 105 - Attributes; Connection Name (Reference) – Only in Multiproject
Configuring Communication Connections 105 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 Attributes Description Access Local Endpoint ID The entry is identical to the Local ID parameter in the connectiontable. Selectable Name When you create the connection, a name is p...
Page 106 - Specifying ISO Transport Addresses; Address Parameters; MAC; Sending and Receiving on One ISO Transport Connection; The TSAPs of an ISO transport connection must match as follows:
Configuring Communication Connections 106 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 4.4.2 Specifying ISO Transport Addresses Address Parameters An ISO transport connection is specified by the local and remote connectionendpoint. S Local addresses:Local MAC addres...
Page 108 - Default TSAPs
Configuring Communication Connections 108 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Default TSAPs When configuring the local and remote TSAPs, there is a default value “ISO-1” forthe first connection between the two partners (can be changed). For a newconnection ...
Page 109 - Specifying ISO Transport Dynamic Properties; Dynamics Tab; Data Transfer
Configuring Communication Connections 109 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 4.4.3 Specifying ISO Transport Dynamic Properties Dynamics Tab The Dynamics tab displays the relevant timers and counters of this connection.You can normally accept these default v...
Page 111 - Checking ISO Transport Connection Properties; Overview Tab; Parameter; You can set the column widths in the “Overview” tab individually.; Connection Overview with Multiple CPUs in an S7 Station
Configuring Communication Connections 111 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 4.4.4 Checking ISO Transport Connection Properties Overview Tab The Overview tab displays all previously configured ISO transport connections andtheir parameters for this station (...
Page 112 - Configuring ISO-on-TCP Connections Properties; The following tabs are available for ISO-on-TCP connections:
Configuring Communication Connections 112 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 4.5 Configuring ISO-on-TCP Connections Properties Introduction When you create a connection in the New dialog, you specify the connection typeand, as far as possible, the connecti...
Page 115 - IP; Sending and Receiving on One ISO-on-TCP Connection
Configuring Communication Connections 115 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 4.5.2 Specifying ISO-on-TCP Addresses Address Parameters A connection is specified by the local and remote connection endpoint. S Local addresses:Local IP address and local TSAP (T...
Page 118 - Checking ISO-on-TCP Connection Properties
Configuring Communication Connections 118 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 4.5.3 Checking ISO-on-TCP Connection Properties Overview Tab The overview shows all the configured ISO-on-TCP connections and theirparameters (cannot be modified here). You can ad...
Page 119 - Configuring TCP Connection Properties; The following tabs are available for TCP connections:
Configuring Communication Connections 119 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 4.6 Configuring TCP Connection Properties Introduction When you create a connection in the New dialog, you specify the connection typeand, as far as possible, the connection partne...
Page 123 - Specifying TCP Addresses; Address Parameters and Connection Types; Specified TCP connection
Configuring Communication Connections 123 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 4.6.2 Specifying TCP Addresses Address Parameters and Connection Types With TCP, the communication partners are addressed by the local and remoteendpoints as follows: S Local addre...
Page 124 - Addresses Tab – Specified TCP Connection; The following table shows the range of values:; Port Addresses
Configuring Communication Connections 124 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Addresses Tab – Specified TCP Connection The addresses tab displays proposed values for the relevant local and remoteaddress information. You can change the port settings individu...
Page 125 - Addresses Tab – Unspecified TCP Connection
Configuring Communication Connections 125 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 Addresses Tab – Unspecified TCP Connection If you select the partner type as “unspecified”, depending on your task, you canenter address information about the communication partner...
Page 126 - Checking TCP Connection Properties
Configuring Communication Connections 126 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 4.6.3 Checking TCP Connection Properties Overview Tab The overview shows all the previously configured TCP connections and theirparameters (cannot be modified here). You can adjus...
Page 127 - Configuring UDP Connection Properties; The following tabs are available for UDP connections:
Configuring Communication Connections 127 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 4.7 Configuring UDP Connection Properties Introduction When you create a connection in the New dialog, you specify the connection typeand, as far as possible, the connection partne...
Page 130 - Specifying UDP Addresses; Specified UDP connection
Configuring Communication Connections 130 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 4.7.2 Specifying UDP Addresses Address Parameters and Connection Types With UDP, the communication partners are addressed using the local and remoteendpoint, as follows. S Local a...
Page 131 - Addresses Tab – Specified UDP Connections
Configuring Communication Connections 131 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 Addresses Tab – Specified UDP Connections The addresses tab displays proposed values for the relevant local and remoteaddress information. You can make the settings for the ports i...
Page 132 - Addresses Tab – Unspecified UDP Connection; An unspecified UDP connection can be used in two ways:
Configuring Communication Connections 132 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Addresses Tab – Unspecified UDP Connection An unspecified UDP connection can be used in two ways: S Free UDP Connection To configure a free UDP connection, select the “Address ass...
Page 133 - UDP with Broadcast and Multicast; Connection to all Broadcast Nodes; Connection to all Multicast Nodes; When to Use Multicast instead of Broadcast?
Configuring Communication Connections 133 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 4.7.3 UDP with Broadcast and Multicast Application When you select the connection partner, you have the following two extra optionson UDP connections: S Connection to all Broadcast...
Page 134 - Why Does an S7-CP Prevent Reception on Broadcast Connections?; To avoid these disadvantages, S7-CPs handle broadcast as follows:
Configuring Communication Connections 134 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Why Does an S7-CP Prevent Reception on Broadcast Connections? It is often necessary for one station to send frames to a number of partner stations.It is important that the frames ...
Page 135 - Addresses Tab – Connection to all Broadcast Nodes
Configuring Communication Connections 135 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 Addresses Tab – Connection to all Broadcast Nodes If you select “all broadcast nodes” as the connection partner, you specify that UDPframes are sent to all obtainable broadcast nod...
Page 136 - Addresses Tab – Connection to all Multicast Nodes
Configuring Communication Connections 136 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Addresses Tab – Connection to all Multicast Nodes By selecting “all multicast nodes” as the connection partner, you specify that S sent UDP frames are delivered to all multicast n...
Page 137 - Checking the Properties of a UDP Connection; Rack/slot of the local CP via which the connection is established.
Configuring Communication Connections 137 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 4.7.4 Checking the Properties of a UDP Connection Overview Tab At the overview level, all the configured UDP connections and their parameters inthis station are displayed (cannot b...
Page 138 - Free UDP Connection; Program-Controlled Addressing
Configuring Communication Connections 138 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 4.7.5 Free UDP Connection Program-Controlled Addressing A free UDP connection allows program-controlled addressing of thecommunication partner. Communication between two nodes on ...
Page 139 - ISO transport connections; Configuration; SIMATIC S7 Station: FETCH PASSIVE / WRITE PASSIVE
Configuring Communication Connections 139 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 4.8 FETCH/WRITE Mode FETCH/WRITE The FETCH/WRITE services allow direct access to the system memory areas onthe SIMATIC S7 CPU from SIMATIC S5, SIMATIC PC stations, or from devices ...
Page 140 - SIMATIC PC Station: FETCH ACTIVE / WRITE ACTIVE
Configuring Communication Connections 140 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Figure 4-25 Configuring FETCH PASSIVE Based on the Example of an ISO Transport Connection The connection can then only be used for this mode; sending or receiving withthe FCs AG_S...
Page 141 - “S7 Addressing Mode” Option; S7 addressing mode: byte address; System Memory
Configuring Communication Connections 141 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 “S7 Addressing Mode” Option When you configure the FETCH ACTIVE / WRITE ACTIVE modes, you can selectthe addressing mode. This specifies how the addresses will be interpreted in the...
Page 142 - Messages in the Diagnostic Buffer
Configuring Communication Connections 142 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Messages in the Diagnostic Buffer As a result of FETCH/WRITE access, negative acknowledgments from the S7CPU are possible. This then leads to corresponding connection-oriented ent...
Page 143 - Routing to Distribute Load
Configuring Communication Connections 143 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 4.9 Routing to Distribute Load Routing to Distribute Load If more than one CP of the same type exists in a station and is connected to thesame subnet, the route can be selected . C...
Page 145 - Programmed Communication Connections; You will find further information in the following sources:
Programmed Communication Connections 145 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 Programmed Communication Connections In some situations, it is an advantage to set up communication connections notover the configuration interface of STEP 7 but program-controlled ...
Page 146 - Area of Application; Configuration Limits
Programmed Communication Connections 146 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 5.1 Overview Area of Application Communication connections can be freely configured controlled by the program. Interplay between Programming and Configuration Connections are eithe...
Page 147 - Special Features / Restrictions; Consistency check only with STEP 7
Programmed Communication Connections 147 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 Special Features / Restrictions S Consistency check only with STEP 7 The connection configuration in STEP 7 involves consistency checks that arenot possible or only possible with re...
Page 149 - Configuration Data Block; Meaning; The graphic below shows the following:
Programmed Communication Connections 149 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 5.3 Configuration Data Block Meaning The configuration data block (CONF_DB) contains all the connection data for anEthernet CP. The configuration data block is transferred to the CP...
Page 150 - Usable Subfields
Programmed Communication Connections 150 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 5.4 Parameter Field for System Data (CP Networking) Meaning Below, you can see the subfields that are relevant for networking the CP. Thesemust be specified in the parameter field ...
Page 151 - Example; Address
Programmed Communication Connections 151 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 Example Address Name Type Initial Value Comment 0.0 STRUCT +0.0 DB_TYP WORD W#16#1 Identifier +2.0 FIELD_1 STRUCT // Field 1 (here system data field) +0.0 Type INT 0 Type of data to...
Page 152 - Parameter Fields for Connection Types; General; Connection ID; Range of values for the connection ID:
Programmed Communication Connections 152 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 5.5 Parameter Fields for Connection Types General Below, you will see which values need to be entered in the parameter fields andwhich subfields are used for the various connection...
Page 153 - Parameter Field for TCP Connection; Structure
Programmed Communication Connections 153 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 5.5.1 Parameter Field for TCP Connection Structure Subfield 1 Subfield n Subfield 2 ID = connection ID Type = 1 No_of_subfields = n Freely assignable connection reference; must be s...
Page 154 - Parameter Field for a UDP Connection
Programmed Communication Connections 154 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 5.5.2 Parameter Field for a UDP Connection Structure Subfield 1 Subfield n Subfield 2 ID = connection ID Type = 2 No_of_subfields = n Freely assignable connection reference; must b...
Page 155 - Parameter Field for an ISO-on-TCP Connection
Programmed Communication Connections 155 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 5.5.3 Parameter Field for an ISO-on-TCP Connection Structure Subfield 1 Subfield n Subfield 2 ID = connection ID Type = 3 No_of_subfields = n Freely assignable connection reference;...
Page 156 - Parameter Field for an E-Mail Connection
Programmed Communication Connections 156 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 5.5.4 Parameter Field for an E-Mail Connection Meaning To send E-mails, you must always set up one E-mail connection per IT-CP. TheE-mail connection specifies the mail server, over...
Page 158 - Parameter field for FTP connection
Programmed Communication Connections 158 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 5.5.5 Parameter field for FTP connection Meaning To handle an FTP job sequence between the S7 station as FTP client and an FTPserver, the IT-CP must set up a connection to the S7-C...
Page 159 - Subfield types
Header Parameter Programmed Communication Connections 159 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 5.6 Subfield types Different parameters are required depending on the parameter field. Eachparameter is described by a subfield. Which subfields are required is exp...
Page 160 - Subfield
Programmed Communication Connections 160 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Table 5-7 , continued Subfield ID 1) Meaning of the Parameter Subfield length (in bytes) Subfield type 11 SUB_LOC_TSAP TSAP length+ 4 Local TSAP 12 SUB_REM_TSAP TSAP length+ 4 Remo...
Page 164 - Programming FCs (Functions) and FBs for S7 Ethernet CPs; General Notes on FCs / FBs; Block Library
Programming FCs (Functions) and FBs for S7 Ethernet CPs 164 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 6.1 General Notes on FCs / FBs Block Library The functions (FCs) and function blocks (FBs) described here are supplied with theSTEP 7 basic package unless indica...
Page 165 - Which Block Version Should I Use?
Programming FCs (Functions) and FBs for S7 Ethernet CPs 165 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 Communication Service / Functional Area Described in SIMATIC Manager Library Block Type Communication Service / Functional Area Described in SIMATIC_NET_CP Block ...
Page 167 - Setting Parameters for FC Calls; Parameters for CP and connection assignment (input parameters); Calling Communication Blocks for an S7-300; Caution
Programming FCs (Functions) and FBs for S7 Ethernet CPs 167 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 6.2 Setting Parameters for FC Calls Before describing the FCs in detail, a few general comments on calling and settingparameters for FCs will be useful in this po...
Page 168 - Setting Block Parameters Automatically; Select the block call and its block parameters; Response to Incorrect Addresses; Cause
Programming FCs (Functions) and FBs for S7 Ethernet CPs 168 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Setting Block Parameters Automatically 1) To ensure correct parameter settings for the block calls, The LAD/STL/FBD editorin STEP 7 provides you with the option ...
Page 169 - Parameters for Specifying a CPU Data Area (input parameters); Specifying the Data Area on the CPU; DONE or NDR; Evaluating Status Codes
Programming FCs (Functions) and FBs for S7 Ethernet CPs 169 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 6.2.2 Parameters for Specifying a CPU Data Area (input parameters) Specifying the Data Area on the CPU When you call an FC, you transfer the address and length of...
Page 170 - FCs for the SEND/RECEIVE Interface; FC; for sending data
Programming FCs (Functions) and FBs for S7 Ethernet CPs 170 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 6.3 FCs for the SEND/RECEIVE Interface Overview The following FCs are available for transferring data on the SEND/RECEIVEinterface: FC Can be used with 1) Meanin...
Page 171 - Specifying the Data Area on the CPU
Programming FCs (Functions) and FBs for S7 Ethernet CPs 171 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 Connection Ethernet CP CPU STEP 7userprogram receive send User data areas AG_RECV AG_SEND CPU STEP 7user program User data areas AG_RECV AG_SEND Ethernet CP send ...
Page 172 - Working without the Job Header
Programming FCs (Functions) and FBs for S7 Ethernet CPs 172 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Table 6-1 FC ISO Transport ISO-on-TCP TCP UDP AG_LSEND (S7-400) AG_SEND (S7-300) 8192 bytes 8192 bytes 8192 bytes 2048 bytes AG_LRECV (S7-400) AG_RECV (S7-300) 8...
Page 173 - Working with the Job Header; Free UDP connections require a job header in the user data area.
Programming FCs (Functions) and FBs for S7 Ethernet CPs 173 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 Working with the Job Header Free UDP connections require a job header in the user data area. The following schematic illustrates the structure of the job buffer a...
Page 174 - Meaning of the Block; Call interface in LAD representation
Programming FCs (Functions) and FBs for S7 Ethernet CPs 174 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 6.3.1 FC5 AG_SEND / FC50 AG_LSEND Meaning of the Block The FCs AG_SEND / AG_LSEND pass data to the Ethernet CP for transfer over aconfigured connection. The sele...
Page 175 - Please note the following special feature on TCP connections:; How the Block Works; Case a: Sequence with older CP types
Programming FCs (Functions) and FBs for S7 Ethernet CPs 175 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 Notice Please note the following special feature on TCP connections: With the S7-CPs for S7-400, you must use FC AG_LSEND on TCP connections! With the latest S7-C...
Page 176 - Time
Programming FCs (Functions) and FBs for S7 Ethernet CPs 176 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 S Case a: Sequence with older CP types The send job is executed as soon as the parameter ACT = 1 is passed. Following this, the parameter ACT = 0 must be passed ...
Page 178 - Explanation of the Formal Parameters
Programming FCs (Functions) and FBs for S7 Ethernet CPs 178 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Note In principle, it is possible to call the FC more than once within the CPU cycle tospeed up the handling of the job. Do not forget, however, that this increa...
Page 179 - Condition Codes
Programming FCs (Functions) and FBs for S7 Ethernet CPs 179 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 Parameter Remarks Possible Values Type Declara-tion LEN INPUT INT On ISOTransport andISO-on-TCP /TCP: 1 2 t 32767 Number of bytes to be sent from the data areawit...
Page 180 - For entries coded with 8Fxx; DONE
Programming FCs (Functions) and FBs for S7 Ethernet CPs 180 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Note For entries coded with 8Fxx H in STATUS, refer to the information in the STEP 7 Standard and System Functions reference manual. The chapter describing error...
Page 188 - Explanation of the Formal Parameters; tion
Programming FCs (Functions) and FBs for S7 Ethernet CPs 188 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Explanation of the Formal Parameters The following table explains all the formal parameters for the AG_RECV /AG_LRECV function. Parameter Declara- tion Type Poss...
Page 190 - NDR
Programming FCs (Functions) and FBs for S7 Ethernet CPs 190 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Table 6-3 AG_RECV / AG_LRECV Codes NDR Meaning STATUS ERROR 0 1 8304 H The connection is not established. The send job should only beattempted again after waitin...
Page 191 - FCs for Access Coordination with FETCH/WRITE; Caution when Configuring; in HW Config
Programming FCs (Functions) and FBs for S7 Ethernet CPs 191 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 6.4 FCs for Access Coordination with FETCH/WRITE Overview The following FCs are available for FETCH/WRITE function to coordinate access: FC can be used with: Mean...
Page 192 - Cycle n
Programming FCs (Functions) and FBs for S7 Ethernet CPs 192 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 User program(CPU cycle) Ethernet CP Communications Partner LOCKED = 0 LOCKED = 0 AG_LOCK AG_LOCK AG_LOCK LOCKED = 1 FETCH/WRITEaccess to DB xactive FETCH/WRITEac...
Page 193 - Representation of the AG_LOCK Function; Example in STL representation
Programming FCs (Functions) and FBs for S7 Ethernet CPs 193 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 6.4.1 FC7 AG_LOCK Meaning of the Block Using the AG_LOCK block the data exchange using FETCH or WRITE on theconnection selected with the parameter ID is disabled....
Page 195 - Representation of the AG_UNLOCK Function
Programming FCs (Functions) and FBs for S7 Ethernet CPs 195 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 6.4.2 FC8 AG_UNLOCK Meaning of the Block Using the AG_UNLOCK function, the external access to system areas on the S7CPU with FETCH or WRITE on the connection spec...
Page 198 - How It Works; Please refer to the sample program in the appendix.
Programming FCs (Functions) and FBs for S7 Ethernet CPs 198 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 How It Works The following diagram illustrates the normal sequence of connection configurationtriggered by an IP_CONFIG in the user program. The job executes as ...
Page 203 - Numeric Data / Resource Requirements of the FCs
Programming FCs (Functions) and FBs for S7 Ethernet CPs 203 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 6.6 Numeric Data / Resource Requirements of the FCs Notice Please note the version information of the blocks. Blocks with other versions havedifferent resource re...
Page 205 - NCM S7 Diagnostics; Further information is available from the following sources:
205 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 NCM S7 Diagnostics The NCM S7 Diagnostics described here provides dynamic information on theoperating state of the communication functions of online CPs. This chapter provides a general overview of the individual diagn...
Page 206 - Diagnostic Options in STEP 7; Hardware Diagnostics and Troubleshooting with STEP 7; What You Should Already Know
NCM S7 Diagnostics 206 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 7.1 Overview Diagnostic Options in STEP 7 STEP 7 provides you with a graded concept allowing you to query informationabout the status of your SIMATIC S7 components and functions and to sort outprobl...
Page 207 - Functions of NCM S7 Diagnostics; Functions
NCM S7 Diagnostics 207 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 7.2 Functions of NCM S7 Diagnostics Functions The diagnostic functions can be grouped as follows: S General diagnostic and statistical functions S Type and mode-dependent diagnostic functions General...
Page 208 - Installing and Starting NCM S7 Diagnostics; There are several ways in which you can start the diagnostic tool:; Alternative 1
NCM S7 Diagnostics 208 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 7.2.1 Installing and Starting NCM S7 Diagnostics Installation NCM S7 Diagnostics is an integrated component of the NCM S7 for IndustrialEthernet optional package. NCM S7 Ethernet Diagnostics is inst...
Page 210 - General Menu Commands; Menu
NCM S7 Diagnostics 210 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 7.2.2 General Menu Commands Overview When running diagnostic functions, the following menu commands have generalsignificance. Depending on the context, other functions may be available; for moredeta...
Page 212 - Starting Diagnostics; Establishing a Connection to the Ethernet CP; Starting Diagnostics from the CP Properties Dialog
NCM S7 Diagnostics 212 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 7.3 Starting Diagnostics 7.3.1 Establishing a Connection to the Ethernet CP Initial Situation Establish the physical connection between the PG and the SIMATIC S7 Station.There are two ways of doing ...
Page 213 - Starting Diagnostics from the Windows Start Menu; Open the Windows Start menu and select the command SIMATIC; your hardware configuration.; Attachment on
NCM S7 Diagnostics 213 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 7.3.3 Starting Diagnostics from the Windows Start Menu If there are no configuration data on your PG/PC, follow the steps outlined below tostart diagnostics with a connected CP: 1. Open the Windows S...
Page 214 - Examples of an Online Path without Gateway; Attachment of target; Network 2
NCM S7 Diagnostics 214 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Examples of an Online Path without Gateway Node address (MAC): 08-00-06-01-02-03 Rack / slot : 0/4 Attachment of target station: Industrial Ethernet S7 – 300 CPU CP PG/PC Figure 7-1 CP requiring dia...
Page 215 - Using a Gateway; You must also specify the S7 subnet ID of the destination network:; FIBUS address 9
NCM S7 Diagnostics 215 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 7.3.4 Using a Gateway Case a: One gateway If the CP you want to check with diagnostic functions can only be reached via agateway, you must select the device and specify its node address in the localn...
Page 216 - Case b: Several Gateways; Routing over the other gateways is done automatically.; PROFIBUS address 9
NCM S7 Diagnostics 216 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Case b: Several Gateways If the CP requiring diagnostics can only be reached over several gateways, youonly specify the first gateway. Routing over the other gateways is done automatically. Node add...
Page 217 - Using the PC Station – Setting a Gateway with “PC internal”; Select the following settings:; Node address: PROFIBUS; S7 subnet ID of target network:
NCM S7 Diagnostics 217 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 7.3.5 Using the PC Station – Setting a Gateway with “PC internal” There is a special situation when you use your PC/PG as a PC station and havetherefore set the interface to PC internal (local) in “S...
Page 218 - Other Ways of Starting Diagnostics; Starting in the properties dialog of the connections:; Activate Connection Status menu command to activate; Starting in the hardware configuration tool HW Config:; With the S7 station online, select the PLC
NCM S7 Diagnostics 218 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 7.3.6 Other Ways of Starting Diagnostics Starting in the properties dialog of the connections: 1. Select the PLC " Activate Connection Status menu command to activate online access. 2. Select th...
Page 219 - How to Use Diagnostics; Use the sequence shown below as a basis for using diagnostics:; If the CP is in the RUN mode; diagnostic function based on the recommendation there.
NCM S7 Diagnostics 219 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 7.4 How to Use Diagnostics Procedure To use diagnostics efficiently, particularly when working with the diagnostic tool forthe first time, the following procedure can be recommended. 1. Use the seque...
Page 220 - Starting Diagnostic Functions Explicitly; Diagnostic
NCM S7 Diagnostics 220 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 7.5 Starting Diagnostic Functions Explicitly The following table shows the diagnostic options that exist in the availablefunctions. Table 7-3 General Diagnostic and Statistical Functions Diagnostic ...
Page 222 - Checklist for “Typical Problems” in a System; The checklists deal with the following topics:
NCM S7 Diagnostics 222 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 7.6 Checklist for “Typical Problems” in a System Meaning The following lists contain several typical problems and their possible causes andhow you can use the NCM S7 Ethernet Diagnostics tool to rem...
Page 223 - Checklist for General CP Functions; Problem
NCM S7 Diagnostics 223 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 7.6.1 Checklist for General CP Functions Table 7-5 Checklist for Typical Problems When Operating a CP in a System Problem Possible Cause Identifying the Cause and Remedy The Ethernet CP will notchang...
Page 224 - Communication Connections Checklist; Check the user program.; Evaluate diagnostic buffer.
NCM S7 Diagnostics 224 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 7.6.2 Communication Connections Checklist Table 7-6 Checklist for Typical Problems with ISO Transport / ISO-on-TCP / UDP Connections Problem Possible Cause Identifying the Cause and Remedy No data t...
Page 225 - Firmware Loader
225 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 Firmware Loader This chapter will familiarize you with the uses and handling of the FirmwareLoader. The Firmware Loader allows you to download more recent firmware versions to theSIMATIC NET modules. For more detailed ...
Page 226 - Firmware; PROFIBUS modules; The Firmware Loader supports the following file types:; Working with the Firmware Loader
Firmware Loader 226 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 8.1 Application Firmware Here, firmware means the system programs in the SIMATIC NET modules. Uses of the Firmware Loader The Firmware Loader allows you to download more recent firmware versions to the...
Page 227 - Loading Firmware; Starting the Download; Open the Windows Start menu and select the menu command SIMATIC
Firmware Loader 227 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 8.2 Loading Firmware Starting the Download Open the Windows Start menu and select the menu command SIMATIC " STEP 7 " NCM S7 Industrial Ethernet " Firmware Loader. Select the Next button and...
Page 232 - For configuring PROFInet components and systems:; Order Numbers
References 232 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 /19/ RFC793 (TCP) /20/ RFC791 (IP) /21/ Berger, HansAutomation with STEP 7SIMATIC S7-300/400 Programmable Logic Controllers For configuring PROFInet components and systems: Basic help in the SIMATIC iMap en...
Page 233 - Glossary
233 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 Glossary B.1 General Section 234 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B.2 Industrial Ethernet 238 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....
Page 234 - Communications Processor. Module for communications tasks.
Glossary 234 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 B.1 General Section Baud rate –> transmission rate Broadcast A broadcast is like ”calling all stations”: Using one broadcast frame, you canreach all nodes that are prepared to accept broadcast frames. Bus ...
Page 236 - Services provided by a communication protocol.
Glossary 236 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Process image The process image is a special memory area in the programmable logic control-ler. At the start of the cyclic program, the signal states of the input modules aretransferred to the process input i...
Page 238 - Base address
Glossary 238 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 B.2 Industrial Ethernet Base address Logical address of a module in S7 systems. S For PROFIBUS The PROFIBUS base address is the address starting at which all addressesthat are calculated automatically in the ...
Page 239 - MAC address; see ISO transport connection; Subnet mask; A –> system consists of several –> subnets with unique subnet numbers.
Glossary 239 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 ISO Transport Connection Communication connection of the transport layer (with the CP/COM 143previously S5S5 connection). ISO transport connections allow program/event-controlled communication onIndustrial Eth...
Page 240 - UDP; Component based Automation
Glossary 240 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 TCP/IP TCP = Transport Connection Protocol; IP = Internet Protocol UDP User Datagram Protocol. User Datagram Protocol: datagram service for simpleinternetwork transmission without acknowledgment. B.3 PROFInet...
Page 244 - Linking to Other Systems with FETCH/WRITE; a) Structure of WRITE Frames
Linking to Other Systems with FETCH/WRITE 244 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 a) Structure of WRITE Frames The meaning and values of parameters shown without values in the following tablecan be found in the section “Parameter Values“. WRITE request fram...
Page 245 - a) Structure of FETCH Frames
Linking to Other Systems with FETCH/WRITE 245 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 a) Structure of FETCH Frames The meaning and values of parameters shown without values in the following tablecan be found in the section “Parameter Values“. FETCH request frame...
Page 246 - Parameter Values; S7 Address Area; DB
Linking to Other Systems with FETCH/WRITE 246 SIMATIC NET NCM S7 for Industrial Ethernet Release 6/2003 C79000–G8976–C129–07 Parameter Values S7 Address Area DB M I Q ORG ID 01 H 02 H 03 H 04 H Source/dest.data from/todata block inmain memory Source/dest.data from/toflag area Source/dest.data from/t...
Page 247 - Address Area
Linking to Other Systems with FETCH/WRITE 247 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 S7 Address Area PI/PQ C T ORG ID 05 H 06 H 07 H Source/dest.data from/to inI/O modules.With sourcedata inputmodules, withdest dataoutput modules Source/destdata from/tocounter ...
Page 249 - Document History; Multiprojects; New in Release 04 / up to STEP 7 V5.1 SP2
249 SIMATIC NET NCM S7 for Industrial EthernetRelease 6/2003 C79000–G8976–C129–07 Document History This section provides an overview of the previous releases of this manual and thefunctional expansions in STEP 7 and NCM S7. New in release 06 / STEP 7 V5.2 S S7 communication over routers (single-ende...
Page 254 - A&D Technical Support
A&D Technical Support Worldwide, available 24 hours a day: Beijing Nuernberg Johnson City Worldwide (Nuernberg) Technical Support 24 hours a day, 365 days a year Phone: +49 (0) 180 5050-222 Fax: +49 (0) 180 5050-223 E-Mail: [email protected] GMT: +1:00 Europe / Africa (Nuernberg) Authorizati...
Page 255 - Service & Support on the Internet; where you will find the following:
A&D Technical Support A&D Technical Support Service & Support on the Internet In addition to our documentation, we offer our Know-how online on the internet at: http://www.siemens.com/automation/service&support where you will find the following: • The newsletter, which constantly pro...