Page 1
Configuring the Ethernet CP with STEP 7 SIMATIC NET ___________________ SEND/RECEIVE interface in the user program ___________________ Configuring communications S7-300/400 - Industrial Ethernet / connections PROFINET ___________________ CP as PROFINET IO Configuring and commissioning S7 controller ___________________ Intelligent PROFINET IO...
Page 2
Note the following: WARNING Siemens products may only be used for the applications described in the catalog and in the relevant technical documentation. If products and components from other manufacturers are used, these must be recommended or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and maintenance are required to ensure that the products operate safely and without any problems.
This manual... ● ... supports you when commissioning your SIMATIC NET CP modules in an S7 station. ● ... supports you so that your applications can communicate successfully and effectively via the SIMATIC NET CPs. ● ... expands the description in the online documentation of the STEP 7 configuration software.
Page 4
This manual... New in this release Editorial revisions Note You should also read the history of this manual in the appendix in Chapter Document history (Page 241). Replaced documentation This manual replaces the manual release 10/2012. Abbreviations / short forms The following abbreviations or short forms for CP groups are used in this manual: ●...
You will find additional information on SIMATIC automation systems on the Quick Start CD and from the Customer Support Online services at: General information on SIMATIC NET (http://www.automation.siemens.com/net/index_00.htm) Product information and downloads (http://support.automation.siemens.com/WW/view/en) Configuring and commissioning S7 CPs for Industrial Ethernet Configuration Manual, 09/2013, C79000-G8976-C182-13...
Page 6
You will find the SIMATIC NET glossary here: ● SIMATIC NET Manual Collection The DVD ships with certain SIMATIC NET products. ● On the Internet under the following entry ID: 50305045 (http://support.automation.siemens.com/WW/view/en/50305045) Configuring and commissioning S7 CPs for Industrial Ethernet Configuration Manual, 09/2013, C79000-G8976-C182-13...
Table of contents This manual............................3 Communication via Ethernet CPs in S7 stations ..................13 Industrial Ethernet ........................13 Industrial Ethernet Security ......................14 SIMATIC S7 communication options with Ethernet CPs ............. 16 1.3.1 Types of communication ......................16 1.3.2 The communications services of the Ethernet CPs ..............
Page 8
Table of contents 3.3.2 "General" parameter group ......................44 3.3.3 Parameter / function "Module addresses" ................... 45 3.3.4 "Options / Settings" parameter group ..................46 3.3.5 "Time-of-day synchronization" parameter group - mode ............50 3.3.6 "IP access protection" parameter group ..................52 3.3.7 "IP configuration"...
Page 9
Further information on operation with PROFINET IO ..............120 6.4.1 Effects of multicast communication on RT communication ............120 Intelligent PROFINET IO device with S7-300 CP ................. 121 Principle of data exchange in IO device mode ................122 Configuration (STEP 7 V5.5) ..................... 123 7.2.1...
Page 10
Table of contents 9.2.1 Procedure ..........................147 9.2.2 File system - structure and features ..................148 Advanced CP as FTP server for the S7 CPU data ..............150 9.3.1 Procedure ..........................150 9.3.2 FTP commands on the FTP client .................... 151 9.3.3 File allocation table ........................
Page 11
Table of contents 12.3 Starting diagnostics ........................204 12.3.1 Online path: Establishing a connection to the CP..............204 12.3.2 Use as PC station - setting the gateway for "PC internal" ............209 12.3.3 Other ways of starting diagnostics (STEP 7 V5.5) ..............210 12.4 How to use diagnostics ......................
Page 12
Table of contents Configuring and commissioning S7 CPs for Industrial Ethernet Configuration Manual, 09/2013, C79000-G8976-C182-13...
Communication via Ethernet CPs in S7 stations The Ethernet CP for SIMATIC S7 provides a series of communications services for different tasks. This section explains the following topics: ● The types of communication possible with the Ethernet CP on Industrial Ethernet ●...
Communication via Ethernet CPs in S7 stations 1.2 Industrial Ethernet Security Allround 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 along with PROFINET / PROFIBUS and the ASInterface (ASi).
Page 15
Communication via Ethernet CPs in S7 stations 1.2 Industrial Ethernet Security You will find detailed information on the topic of Industrial Ethernet Security and configuration with the Security Configuration Tool in /16/ (Page 232). Configuring and commissioning S7 CPs for Industrial Ethernet Configuration Manual, 09/2013, C79000-G8976-C182-13...
Communication via Ethernet CPs in S7 stations 1.3 SIMATIC S7 communication options with Ethernet CPs SIMATIC S7 communication options with Ethernet CPs 1.3.1 Types of communication The Ethernet CP for SIMATIC S7 supports the following types of communication depending on the CP type: Possible types of communication / Interfaces / services / protocols mechanisms...
Page 17
Communication via Ethernet CPs in S7 stations 1.3 SIMATIC S7 communication options with Ethernet CPs Possible types of communication / Interfaces / services / protocols mechanisms Email communication With the protocols SMTP / ESMTP • Security functionality Firewall • • SNMPv3 •...
Page 18
Communication via Ethernet CPs in S7 stations 1.3 SIMATIC S7 communication options with Ethernet CPs ● 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 third-party devices.
Page 19
Communication via Ethernet CPs in S7 stations 1.3 SIMATIC S7 communication options with Ethernet CPs ● File management and file access with FTP The CPs with IT functionality provide additional functions for FTP services. You can use your S7 station both as an FTP client and address it in FTP server mode. –...
6) dependent on device type: For example, EX21 with CBA, EX30 without CBA 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-400 S5-115 - 155U/H PC station...
Communication via Ethernet CPs in S7 stations 1.4 PG/OP communication via Industrial Ethernet 1.3.3 Operation using a configured or programmed database Configuration and diagnostics The STEP 7 configuration software is required to connect and configure the Ethernet CP. With its special diagnostics and Web diagnostics, STEP 7 provides a wide range of diagnostics options for the various types of communication via Industrial Ethernet.
Page 22
Communication via Ethernet CPs in S7 stations 1.4 PG/OP communication via Industrial Ethernet ● local via Ethernet modules on the PG; ● remote via Ethernet modules on the PG and via routers. ● (the option of a PGPLC remote link with TeleService over a TS adapter is also shown) Figure 1-1 Configuration for PG/OP mode - local and remote Configuring and commissioning S7 CPs for Industrial Ethernet...
Communication via Ethernet CPs in S7 stations 1.4 PG/OP communication via Industrial Ethernet 1.4.1 PG communication with STEP 7 over Industrial Ethernet Requirements for PG communication PG communication is possible when the following requirements are met: ● An Ethernet CP is installed in the PG or engineering station or there is a modem/ISDN interface set up for remote access.
Ethernet CPs: ● up to 64 Kbytes for S7-400 ● up to 32 Kbytes for S7-300 The Ethernet CP acts as an "S7 communication relay" by forwarding the S7 functions via Industrial Ethernet.
Page 25
Communication via Ethernet CPs in S7 stations 1.5 S7 communication via Industrial Ethernet Nodes Two situations must be distinguished depending on the device type and plant configuration: ● Client and server functionality at both ends S7 connections can be operated between the following nodes with the entire functionality of S7 communication: –...
Page 26
Communication via Ethernet CPs in S7 stations 1.5 S7 communication via Industrial Ethernet Figure 1-3 PC/PG station communicates via a gateway with S7 station on an underlying PROFIBUS or Ethernet Configuring S7 connections Create S7 connections to use S7 communication for data exchange between two SIMATIC S7 stations.
Page 27
USEND SFB / FB9 URCV SFC / FC62 CONTROL (S7-400) / C_CNTRL (S7-300) you do not need to configure a connection on the server for S7300 Note Remember word boundaries Remember the following points regarding data consistency in your user program:...
Communication via Ethernet CPs in S7 stations 1.6 Open communications services (SEND/RECEIVE interface) S7 communication via routers (oneended 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 two subnets must be connected via a router such as the IE/PB Link.
Page 29
Communication via Ethernet CPs in S7 stations 1.6 Open communications services (SEND/RECEIVE interface) ISO transport connection ISO transport provides services for the reliable transfer of data on configured connections. Due to segmentation (packetoriented segmentation - the completeness of the message is detected) large amounts of data can be transmitted.
Communication via Ethernet CPs in S7 stations 1.7 FETCH/WRITE services (server) Nodes The SEND/RECEIVE interface allows programcontrolled communication on Industrial Ethernet between the SIMATIC S7 PLC and the following: ● SIMATIC S7 with an Ethernet CP ● SIMATIC S5 with an Ethernet CP ●...
Communication via Ethernet CPs in S7 stations 1.8 Networking stations with STEP 7 From the point of view of the SIMATIC S7 PLC, this is a passive communication function that simply needs to be configured, the communications partner initiates connection establishment.
Page 32
Communication via Ethernet CPs in S7 stations 1.8 Networking stations with STEP 7 Tools STEP 7 provides convenient tools for configuring and documenting networks graphically. Configuring networks is explained in the online help of STEP 7. Configuring and commissioning S7 CPs for Industrial Ethernet Configuration Manual, 09/2013, C79000-G8976-C182-13...
Characteristics of the Ethernet CPs Communications processors for S7300 The module was designed to match the components of the S7-300/C7300 programmable logic controller and has the following features: ● Compact modules (single or doublewidth) for simple installation on the S7 standard rail;...
Characteristics of the Ethernet CPs 2.2 Communications processors for S7400 Communications processors for S7400 The module was designed to match the components of the S7400 / S7400H automation system and has the following features: ● Singlewidth module for simple installation in the S7400 / S7400H rack ●...
Characteristics of the Ethernet CPs 2.3 Slot rules for SIMATIC S7300 Slot rules for SIMATIC S7300 2.3.1 Permitted slots In the SIMATIC S7300, there is no set slot assignment for the SIMATIC NET CPs. Slots 4 to 11 are permissible (1, 2 and 3 cannot be used for CPs). The SIMATIC NET CPs can be installed both in the central rack and in an expansion rack, linked to the central rack via an IM 360/IM 361 (Kbus connection).
Characteristics of the Ethernet CPs 2.4 Slot rules for SIMATIC S7400 A PG is required to download the configuration after replacing a module. If the CP supports the option of saving the configuration data on the CPU, it is also possible to replace a module without a PG (see CPspecific description).
Characteristics of the Ethernet CPs 2.4 Slot rules for SIMATIC S7400 There may be a further restriction resulting from the maximum current consumption depending on the power supply used. You should also note any requirements resulting from the interface types used (for example RJ45 or AUI). 2.4.3 Multicomputing The communication load can be distributed by installing several SIMATIC NET CPs (load...
Characteristics of the Ethernet CPs 2.4 Slot rules for SIMATIC S7400 2.4.5 Note on S7400 CPU: Connection resources Note that in the S7400 CPU, one S7 connection is reserved for a PG and a further one for an OP (HMI = Human Machine Interface). ●...
/1/ (Page 227). Installation and commissioning Configuration / programming with STEP 7 (S7-300 / S7-400) Mount the CP on the S7 standard rail (S7-300) or Configure the Ethernet CP with STEP 7 either by in the S7 rack (S7-400) configuring or programming.
Configuring the Ethernet CP with STEP 7 3.2 Configuring - follow the steps below 3.2.2 Networking Ethernet CP Procedure By installing and assigning the Ethernet CP in the rack of a SIMATIC station, you establish the logical connection between the Ethernet CP and the subnet. 1.
Page 41
Configuring the Ethernet CP with STEP 7 3.2 Configuring - follow the steps below 3. Network the CP according to the instructions in STEP 7. 4. Check the module name and the addresses and change them if necessary. The addresses are entered automatically by identifying the next free address. Note the following additional information: –...
"Options / Settings" parameter group (Page 46) Module access protection Options / settings Customize (protection level) Module replacement without a Options / settings Customize PG (S7-300) Ethernet profile for faulttolerant Options / settings Customize connections Sending keepalives for Options / settings PROFINET interface > Interface...
Page 43
Configuring the Ethernet CP with STEP 7 3.3 Setting further CP properties Parameter group / function STEP 7 V5.5 STEP 7 Professional Tabs in the "Object properties" Parameter group under dialog of the device "Properties > General" Activate time synchronization PROFINET interface >...
Configuring the Ethernet CP with STEP 7 3.3 Setting further CP properties Table 3- 2 Object properties of the interface (Ethernet/gigabit and PROFINET) Parameter group / function STEP 7 V5.5 STEP 7 Professional Tabs in the "Object Parameter group under properties"...
SIMATIC NET program blocks. Note Remember the following note regarding S7-300 stations: If you select the "Update OB1 process image cyclically" option in the CPU configuration, you will have to set the module start address outside the process image (start addresses in the "Addresses"...
Configuring the Ethernet CP with STEP 7 3.3 Setting further CP properties ● Inputs, outputs Assign a start address to the module. (Outputs only if the option "Address setting for LOCK/UNLOCK with FETCH/WRITE" is selected) ● "Address setting for LOCK/UNLOCK with FETCH/WRITE" option Select this option if you want to use the access coordination function with the FCs LOCK/UNLOCK in FETCH/WRITE mode.
Page 47
Module replacement without • data of the CP is stored on the CPU. If you replace the CP, the a PG (S7-300) configuration data for the CP is transferred automatically from the CPU to the CP when it starts up.
Page 48
Configuring the Ethernet CP with STEP 7 3.3 Setting further CP properties Option / input area Meaning / effect Here, you can set the interval at which keepalives are sent to the Sending keepalives for • partner of a communications connection. With this interval, you connections specify the latest time after which the failure of a communications partner will be detected.
Page 49
To connect TD/OPs and/or HMI devices, you can optimize the Multiplex OP connections / • connection resources in the S7-300 CPU by allowing up to 16 such Occupy internal CPU devices to communicate on a single CPU connection resource connection resource (multiplex mode).
Configuring the Ethernet CP with STEP 7 3.3 Setting further CP properties 3.3.5 "Time-of-day synchronization" parameter group - mode Method for time-of-day synchronization The CP provides the following methods for time-of-day synchronization and these are described below: ● SIMATIC mode ●...
Page 51
Configuring the Ethernet CP with STEP 7 3.3 Setting further CP properties ● NTP mode (NTP: Network Time Protocol) In NTP mode, the CP sends time queries (in client mode) at regular intervals to NTP servers on the subnet (LAN). Based on the replies from the server, the most reliable and most accurate time is calculated and the time of day on the station is synchronized.
Configuring the Ethernet CP with STEP 7 3.3 Setting further CP properties 3.3.6 "IP access protection" parameter group Function Using IP access protection gives you the opportunity of restricting communication over the CP of the local S7 station to partners with specific IP addresses. Partners you have not authorized therefore have no access to data of the S7 station using the IP protocol (S7 connections) via the CP configured in this way.
Page 53
Configuring the Ethernet CP with STEP 7 3.3 Setting further CP properties – Configured connections with an unspecified partner All partners on unspecified connections (with unconfigured IP addresses) are rejected. – Connections in PROFINET CBA will be treated as unspecified connections. You will need to enter the IP addresses of such connections explicitly in the IP access control list.
Page 54
Configuring the Ethernet CP with STEP 7 3.3 Setting further CP properties IP access protection enabled in the configuration - no further entry in the IP-ACL In this case the behavior depends on whether IP addresses were transferred to the IP access control list via HTTP.
Configuring the Ethernet CP with STEP 7 3.3 Setting further CP properties Enable security - effects If IP access protection is enabled for IP communication, when the security function is enabled, the firewall is activated automatically regardless of the entries. The IP-ACL entries created in STEP 7 are adopted with the corresponding rights as firewall rules.
Page 56
Configuring the Ethernet CP with STEP 7 3.3 Setting further CP properties The selection you make also decides whether communication connections are set up by the project engineering or via the interface in the user program (IP_CONFIG instruction). The following options are available: ●...
Configuring the Ethernet CP with STEP 7 3.3 Setting further CP properties 3.3.8 "User management" parameter group Meaning of user management In user management, you specify which users have which permissions when accessing the S7 station. In the alphabetical list, you will find the users that have already been entered under user name for which passwords have been stored.
Configuring the Ethernet CP with STEP 7 3.3 Setting further CP properties 3.3.10 "DNS configuration" parameter group Meaning When configuring an e-mail connection, the address of the e-mail server via which the e- mails are sent must be specified. This address can be specified in absolute or symbolic form. If you use a symbolic address, the absolute address is obtained by querying the DNS server you specify in the DNS configuration.
Page 59
Configuring the Ethernet CP with STEP 7 3.3 Setting further CP properties You can create the file allocation table as follows and transfer it to the CP: ● With an entry in the parameter group "Properties > FTP configuration" described here The file allocation table is then downloaded on the CP automatically along with the project engineering data.
Page 60
Configuring the Ethernet CP with STEP 7 3.3 Setting further CP properties ● Note on syntax: – The following applies to both areas: Relevant rows can be recognized by the "cpux" string (where x = characters "1-4"). This applies to both areas. Valid delimiters for the entries are "blanks".
Configuring the Ethernet CP with STEP 7 3.3 Setting further CP properties See also "Security" parameter group (STEP 7 V5.5) (Page 63) 3.3.12 Parameter group "SNMP" Industrial Ethernet CP contains an SNMP agent Industrial Ethernet CPs support the network management protocol SNMP as SNMP agents. Depending on the CP type it is possible to enable or disable the SNMP function.
Page 62
Configuring the Ethernet CP with STEP 7 3.3 Setting further CP properties Functional description of the automatic switchover All ports of the CP provide a 10/100 Mbps full duplex connection with autosensing and autonegotiation of the network settings. These functions run as follows after turning on the ●...
Configuring the Ethernet CP with STEP 7 3.3 Setting further CP properties 3.3.14 "PROFINET" parameter group "PROFINET" Tab Here, you specify the properties of the Ethernet CP for PROFINET IO and PROFINET CBA. Table 3- 4 Options / input area of the "PROFINET" parameter group Option / input area Meaning / effect Depending on the CP device type, you can select the possible...
Configuring the Ethernet CP with STEP 7 3.3 Setting further CP properties Security configuration The selectable parameters / options are explained below: ● Enable security As default, the buttons for security configuration are disabled in the individual tabs. To be able to make security settings, select the "Enable security"...
Page 65
Configuring the Ethernet CP with STEP 7 3.3 Setting further CP properties "Enable web server" option Enable this option in order to be granted access to the HTML pages on the CP. Port 80 of the CP is thereby enabled. Web server access is enabled by default.
Configuring the Ethernet CP with STEP 7 3.4 Sending entries for the IP access protection to the Advanced CP using HTTP/HTTPS Note Topology display in STEP 7 V5.5 To be able to use the full range of the topology display, the "Report system errors" function needs to be used.
Page 67
Configuring the Ethernet CP with STEP 7 3.4 Sending entries for the IP access protection to the Advanced CP using HTTP/HTTPS ● CP operation without enabled security - IP-ACL is effective Communications partners can send entries for the IP-ACL to the CP using HTTP. These communications partners must be entered in the IP-ACL during configuration with the "Modify"...
Page 68
Configuring the Ethernet CP with STEP 7 3.4 Sending entries for the IP access protection to the Advanced CP using HTTP/HTTPS Effects of transferring additional access rights The transfer has the following effects in the IP access control list of the addressed CP: ●...
Page 69
Configuring the Ethernet CP with STEP 7 3.4 Sending entries for the IP access protection to the Advanced CP using HTTP/HTTPS – Assignment of rights for an IP address range: 192.168.1.47-192.168.1.58 a – Deleting dynamically transferred entries: 0.0.0.0 – Comments: # this is a comment Configuration limits of the file <Accesslist>.txt The following can be entered:...
Configuring the Ethernet CP with STEP 7 3.5 Media redundancy ● HTTPS is enabled on the CP – With cURL version up to V7.23: curl -k -u <username>:<password> --url https://172.16.1.180/ACL --data-urlencode @AccessList.txt – Do not use cURL version V7.24. – With cURL version as of V7.25: curl -k --ssl-allow-beast -u <username>:<password>...
Page 71
Configuring the Ethernet CP with STEP 7 3.5 Media redundancy The two ring ports of a device are the ports that establish the connection to its two neighboring devices in the ring topology. The ring ports are selected and set in the configuration of the relevant device.
These include, for example, some of the Industrial Ethernet SCALANCE X switches, some of the communications processors (CPs) for SIMATIC S7 and PG/PC or non- Siemens devices that support this function. ● All devices must be interconnected via their ring ports.
Page 73
Configuring the Ethernet CP with STEP 7 3.5 Media redundancy Topology The following schematic shows a possible topology for devices in a ring with MRP. Figure 3-2 Example of a ring topology with the MRP media redundancy protocol The following rules apply to a ring topology with media redundancy using MRP: ●...
Role The choice of role depends on the following use cases. ● You want to use MRP in a ring topology only with Siemens devices and without monitoring diagnostic interrupts: Assign all devices to the "mrpdomain-1" domain and the role "Manager (Auto)".
Page 75
Configuring the Ethernet CP with STEP 7 3.5 Media redundancy ● You want to use MRP in a ring topology that also includes non-Siemens devices or you want to receive diagnostic interrupts relating to the MRP status from a device (see "Diagnostic interrupts"):...
Configuring the Ethernet CP with STEP 7 3.6 Assigning addresses the first time Diagnostic interrupts Enable the "Diagnostic interrupts" option, if you want diagnostic interrupts relating to the MRP status on the local CPU to be output. The following diagnostic interrupts can be generated: ●...
Page 77
Configuring the Ethernet CP with STEP 7 3.6 Assigning addresses the first time Variants and recommendation for the address assignment There are 3 ways of making this address assignment in STEP 7: ● Addressing by selecting the target system in the SIMATIC Manager This variant allows the address assignment without needing to create a STEP 7 project.
Configuring the Ethernet CP with STEP 7 3.6 Assigning addresses the first time 3.6.1 Addressing by selecting the target system Follow the steps below to assign an IP address the first time: 1. Use the STEP 7 function "Display Accessible Nodes" to display the nodes that can be reached via Industrial Ethernet.
Configuring the Ethernet CP with STEP 7 3.7 Downloading the configuration data to the target system Note In principle, the description applies equally to STEP 7 V5.5 and STEP 7 Professional. You will find further, more detailed information on the procedures in the online help in STEP 7.
Page 80
Configuring the Ethernet CP with STEP 7 3.7 Downloading the configuration data to the target system Note If you want to download the configuration data via the ISO interface for a CP with an unchanged, factory-set MAC address and have planned a different MAC address in the STEP 7 project, you will need to initiate the download in NetPro or HW Config;...
Page 81
Configuring the Ethernet CP with STEP 7 3.7 Downloading the configuration data to the target system Downloading the connection configuration To download configured connections, you will need to make a download in the connection configuration (NetPro). Note If you have assigned a new address to the Ethernet CP, you always need to download the connection configuration again.
Page 82
Configuring the Ethernet CP with STEP 7 3.7 Downloading the configuration data to the target system Configuring and commissioning S7 CPs for Industrial Ethernet Configuration Manual, 09/2013, C79000-G8976-C182-13...
Configuration and program examples are available for the SEND/RECEIVE interface described here: ● Program examples with the program blocks FC5 (AG_SEND) and FC6 (AG_RECV) for S7-300 can be found under the following entry ID: 17853532 (http://support.automation.siemens.com/WW/view/en/17853532) ● Program examples with the program blocks FC50 (AG_LSEND) and FC60 (AG_LRECV) for S7-400 can be found under the following entry ID: 18513371 (http://support.automation.siemens.com/WW/view/en/18513371)
Page 84
SEND/RECEIVE interface in the user program 4.1 How the SEND/RECEIVE interface works on the CPU The diagram below illustrates what happens: Using AG_SEND / AG_LSEND / AG_SSEND and AG_RECV / AG_LRECV / AG_SRECV, the user program instructs the Ethernet CP to send or receive data on the configured connection.
SEND/RECEIVE interface in the user program 4.2 Programming the SEND/RECEIVE interface Programming the SEND/RECEIVE interface Principle of job and data transfer With the program block calls, the user program initiates the transfer of the user data areas and monitors execution of the transfer by evaluating the condition codes of the FCs. Among other things, the following parameters are transferred during the call: ●...
Page 86
SEND/RECEIVE interface in the user program 4.2 Programming the SEND/RECEIVE interface Calling program blocks in the CPU program One possible sequence for the program blocks along with the organization and program blocks in the CPU cycle is shown below: The following situation can be recognized: ●...
SEND/RECEIVE interface in the user program 4.3 Data exchange S7 CPU − Ethernet CP ● The user program sends data via a connection using an AG_SEND call at any point, in other words event and program-driven. ● At any point in the CPU cycle, the user program accepts data received via a connection using an AG_RECV call.
SEND/RECEIVE interface in the user program 4.4 Additional information FC calls slower than the transfer time If a program block is called again before the data has been completely sent or received, the reaction on the interface of the program blocks is as follows: ●...
SEND/RECEIVE interface in the user program 4.4 Additional information Special Features ● Only use the following program block types for data transfer: – AG_SEND (FC 5), AG_LSEND (FC 50) oder AG_SSEND (FC 53) – AG_RECV (FC 6), AG_LRECV (FC 60) oder AG_SRECV (FC 63) ●...
Page 90
SEND/RECEIVE interface in the user program 4.4 Additional information Solution Note the following recommendations: ● Do not call communication program blocks cyclically in OB1! Call up communication time-controlled in a suitable time OB. The call interval of this OB should be significantly higher than the average cycle time of OB1. ●...
Configuring communications connections This section explains the following topics: ● General information on configuring communications connections; ● Configuring special properties with ISO transport, ISO-on-TCP, UDP and TCP connections; ● How you specify the communications partners exchanging data using UDP with the functions for connection configuration.
Configuring communications connections 5.1 Procedure and connection properties Procedure and connection properties Setting up connections and using them in the user program The following steps are necessary to operate connections in the SIMATIC S7 PLC with the Ethernet CP: Properties of the connection A communications connection allows program-controlled communication between two nodes on Industrial Ethernet with the following properties: ●...
Page 93
Configuring communications connections 5.1 Procedure and connection properties Note The term "connection" is also used here for UDP. The reason: During configuration (just as in TCP), the communication partners are assigned to each other and therefore logically "connected". In actual fact, with UDP there is no explicit connection establishment between communication partners.
Configuring communications connections 5.2 Connections to partners in other projects Requirements for configuring connections ● The Ethernet CP was configured in the S7 station with STEP 7 and networked with an Ethernet subnet. ● As a bus node, the Ethernet CP has an address. Note All stations not in the current STEP 7 project must be configured with substitute objects (for example as "SIMATIC S5"...
Page 95
Configuring communications connections 5.2 Connections to partners in other projects ● Declare readiness for communication - passive connection establishment The connection establishment is set to "passive" for this situation. The address setting for the ISO-on-TCP connection is then as follows: The remote IP address and the remote TSAP are empty because they are not relevant for the CP.
Configuring communications connections 5.3 Inconsistent connections - connections without assignment For further information, refer to the sections dealing with specific connections. Note To check how many connections are possible per Ethernet CP, please refer to the manual that ships with the CP /1/ (Page 227). If several CPs are installed in a station, there is an automatic switchover to the next CP if this limit is exceeded.
Page 97
Configuring communications connections 5.3 Inconsistent connections - connections without assignment Note CP replacement If a CP is replaced by a different CP then it must provide at least the same services and have at least the same version. This is the only way to ensure that the connections configured via the CP remain consistent and can be used.
Page 98
Configuring communications connections 5.3 Inconsistent connections - connections without assignment Action Consequence for the connections What you must do to restore the connection Delete a third-party station. The connections of the stations in the Reassign a third-party station (or even a local project to third-party stations remain station) to the connection again using the Edit >...
Configuring communications connections 5.4 Configuring ISO transport connection properties Configuring ISO transport connection properties 5.4.1 Specifying ISO transport addresses Address parameters An ISO connection is specified by the local and remote connection endpoint. ● Local addresses: Local MAC address and local TSAP (Transport Service Access Point) ●...
Configuring communications connections 5.4 Configuring ISO transport connection properties ● If you make your entries in hexadecimal, printable characters are displayed as an ASCII value (8 hexadecimal characters are visible). If you enter non-printable characters, the ASCII display changes to gray (ASCII input no longer possible) and the non-printable characters are displayed as a period.
Configuring communications connections 5.5 Configuring ISO-on-TCP connection properties Max. count Max. Count is the number of send attempts including the first modifiable send attempt (1 - 100, DEFAULT 5). Inactivity time The Inactivity Time specifies the time after which the connection modifiable is terminated if no further sign of life is received from the partner station (6 - 180 s, DEFAULT 30 s).
Page 102
Configuring communications connections 5.5 Configuring ISO-on-TCP connection properties The address parameters are configured with NCM S7 and saved in the CP database. Modifications and extensions to the Industrial Ethernet network topology do not therefore have any effect on the CPU user program. Note When you configure the Ethernet CP and the Ethernet destination station, the TSAPs of an ISO-on-TCP connection must cross match:...
Configuring communications connections 5.6 Configuring TCP connection properties Configuring TCP connection properties 5.6.1 Specifying TCP addresses Address parameters and connection types With TCP, the communication partners are addressed by the local and remote endpoints as follows: ● Local addresses: Local IP address and local port ●...
Page 104
Configuring communications connections 5.6 Configuring TCP connection properties Port addresses Application / note Fixed; must not be modified! 1..1023 Default assignment; should not be used (well- known ports) 1024...49151 Ports for application-specific protocols 2000...5000 Range used by the configuration tool in which a free port address is searched for and assigned.
Configuring communications connections 5.7 Configuring UDP connection properties Configuring UDP connection properties 5.7.1 Specifying UDP addresses Address parameters and connection types With UDP, the communication partners are addressed by the local and remote endpoints as follows: ● Local addresses: Local IP address and local port ●...
Page 106
Configuring communications connections 5.7 Configuring UDP connection properties Ports The ports or port addresses define the access point to the user program within the station / CPU. They must be unique within the station / CPU! The following table shows the range of values: Application / note Port addresses Fixed;...
Configuring communications connections 5.7 Configuring UDP connection properties 5.7.2 UDP with broadcast and multicast Application With UDP, the frames are received without acknowledgment because the UDP protocol has no provision for acknowledgments. This is intentional so that a higher speed at lower network load is achieved.
Page 108
Configuring communications connections 5.7 Configuring UDP connection properties For this reason, a communications module must accept broadcast frames and evaluate them in its software. A major disadvantage of this is that network performance sinks significantly if there are too many broadcast frames. The reason for this is that each individual module needs to process all the broadcast frames to find out whether a frame is intended for it.
Page 109
Configuring communications connections 5.7 Configuring UDP connection properties Note Within a multicast group, assign identical port addresses for the local port and the partner port. This is the only way that frames can be sent and also received by the CP within a multicast group! Note the following example of three nodes in the multicast group: IP addresses for IP multicast...
Configuring communications connections 5.7 Configuring UDP connection properties The following IP addresses address the same multicast group. ① IP address ② Resulting multicast address The resulting MAC addresses are: 01.00.5E.XX.XX.XX The filtering on the CP as described above ensures, however, clear identification of the addressed multicast group.
Configuring communications connections 5.8 FETCH/WRITE mode Amounts of data and configuration limits Refer to the manual supplied with the Ethernet CP /2/ for the number of UDP connections supported by the specific Ethernet CP. The number of connections per station can be increased by adding more CPs.
Page 112
(free connection for S7 functions) on the S7-300 CPU. CPU connection resources are also used, for example, by S7-300 CPs, in the FMS mode or by PGs and OPs. For more detailed information about the maximum number of connection resources, refer to /1/ (Page 227).
Page 113
Configuring communications connections 5.8 FETCH/WRITE mode System memory You can access the following address areas in the system memory on the SIMATIC S7 PLC using FETCH or WRITE: ● Data blocks (DB) (for DB access, note the following restriction: the highest DB number is 255) ●...
Page 114
Configuring communications connections 5.8 FETCH/WRITE mode Configuring and commissioning S7 CPs for Industrial Ethernet Configuration Manual, 09/2013, C79000-G8976-C182-13...
To access the field devices connected to PROFIBUS DP, there are gateways available that are used as PROFINET IO proxies (for example the IE/PB Link PN IO). With certain CPs for S7-300, you have the option of operating the CP additionally or alternatively as a PROFINET IO device.
CP as PROFINET IO controller 6.1 Project engineering 6.1.2 PROFINET IO with IRT communication (STEP 7 V5.5) Configuring IRT Use the following functions to configure IRT: ● PROFINET IO domain management With domain management, you manage the synchronization role, the names of the sync domain and other characteristics.
CP as PROFINET IO controller 6.2 IO controller mode with S7-300 Mode of the CP in PROFINET IO with IRT communication - simultaneous operation as IO device and IO controller If you use the CP for IRT communication (Isochronous Real Time), remember the following when you select the mode of the CP: ●...
CP as PROFINET IO controller 6.2 IO controller mode with S7-300 6.2.2 Reading and writing data records with program block PNIO_RW_REC When the CP is acting as PROFINET IO controller, acyclic data exchange is supported by writing and reading data records with the program block PNIO_RW_REC (FB52).
CP as PROFINET IO controller 6.3 IO controller mode with S7-400 IO controller mode with S7-400 6.3.1 Multicomputing mode - assigning the CP to the CPU (STEP 7 V5.5) If you use the CP in an S7 station with several CPUs (multicomputing) for PROFINET IO operation, you must assign the CP to a CPU in the configuration.
MC/BC frame lengths. See also You will find more detailed information on the influencing factors and possible solutions on the Internet under the following entry ID: 29104898 (http://support.automation.siemens.com/WW/view/en/29104898) Configuring and commissioning S7 CPs for Industrial Ethernet Configuration Manual, 09/2013, C79000-G8976-C182-13...
Intelligent PROFINET IO device with S7-300 CP "Intelligent" PROFINET IO device The CP can be configured so that the SIMATIC 300 station can be addressed as a PROFINET IO device. Due to the programmability of the SIMATIC 300 station, we speak of an "intelligent"...
Intelligent PROFINET IO device with S7-300 CP 7.1 Principle of data exchange in IO device mode Principle of data exchange in IO device mode Data exchange between controller and CP as I-Device The data exchange between PROFINET IO controller and intelligent PROFINET IO device is handled as follows: ●...
The configuration of the CP as an I-device includes the two following procedures in STEP 7: ● Enabling the CPU as a PROFINET IO device in the S7 station The CP is inserted in a SIMATIC S7-300 station and enabled for PROFINET IO device mode in the properties dialog.
If you want to use the CP as an IRT device, first to continue with the steps in section 7.2.3. 6. Download the configuration data to the S7-300 station. 7.2.3 Configuring the CP as an IO device with IRT communication The following steps are only necessary if you want to use the CP as a PROFINET IO device for IRT communication.
For information about the further configuration of the IO controller or the sync domain, refer to section PROFINET IO with IRT communication (STEP 7 V5.5) (Page 116). 8. Save the project and download the configuration data to the S7-300 station. Note As soon as a CP is coupled with a PROFINET IO device, only the settings on the IO controller are relevant for the IRT configuration.
Page 126
Intelligent PROFINET IO device with S7-300 CP 7.2 Configuration (STEP 7 V5.5) Note The IP address of the PROFINET IO device and the IP address of the PROFINET IO controller must be located in the same IP subnet. Requirement for configuration in STEP 7 ●...
Page 127
Intelligent PROFINET IO device with S7-300 CP 7.2 Configuration (STEP 7 V5.5) Figure 7-2 SIMATIC station with PROFINET IO system Step 2: Assigning the device name to the CP as a PROFINET IO device Continue with the configuration in HW Config as follows: 1.
STEP 7 Professional: ● Inserting the CP in the S7 station and enabling it as a PROFINET IO device The CP is inserted in a SIMATIC S7-300 station and enabled for PROFINET IO device mode in the "Properties" parameter group.
Intelligent PROFINET IO device with S7-300 CP 7.4 Programming 7.4.1 Interface for programming on the PROFINET IO device Process data transfer using FC11 and FC12 To exchange data using the STEP 7 user program, there are 2 program blocks available: ●...
Page 130
Intelligent PROFINET IO device with S7-300 CP 7.4 Programming Initialization The CP is configured by the PROFINET IO controller as a PROFINET IO device. For the configuration, the CP requires the following information in the user program each time it starts up: ●...
Each submodule of the shared device can also be assigned exclusively to one IO controller. The assignment of the individual submodules is made in the configuration. The function can be configured as of firmware version 3.0 of the S7-300 CPs, as of CPU version 5.3 and only in STEP 7 V5.5.
Page 132
Intelligent PROFINET IO device with S7-300 CP 7.6 Example of configuration and programming ① Input area Length 20 bytes • Made available in DB10 • Transferred with program block PNIO_SEND (FC11) • ② Output area Length 7 bytes • Made available in DB11 •...
Page 133
Intelligent PROFINET IO device with S7-300 CP 7.6 Example of configuration and programming Transferring the process inputs (DB10) to the I addresses using PNIO_SEND For the configured I addresses, you need to make data areas (for example in a DB) available on the PROFINET IO devices, in this example in a DB10 that has not only data areas for the process data but also for the status information IOCS.
Page 134
Intelligent PROFINET IO device with S7-300 CP 7.6 Example of configuration and programming Transferring the Q addresses to the process outputs (DB11) with PNIO_RECV For the configured Q addresses, you need to make data areas (for example in a DB) available on the PROFINET IO devices, in this example in a DB11 that has not only data areas for the process data but also for the status information IOPS.
Sending process messages by email This chapter contains instructions on the e-mail functions of the Advanced CP. The following topics are covered: ● What preparations need to be made? ● What options are there for sending e-mails from the Advanced CP? ●...
Sending process messages by email 8.1 Overview of the functions 8.1.1 Authentication and other features of the Advanced CP Features of the CP ● The Advanced CP operates as an email client. It supports the SMTP service (Simple Mail Transfer Protocol). ●...
Page 137
Sending process messages by email 8.1 Overview of the functions ● The CP uses authentication, the mail server does not If you use a CP that supports authentication and you want to work without authentication, do not store a user name or password in the e-mail data block (see section Sending an e- mail (Page 141)).
Sending process messages by email 8.2 Project engineering Project engineering 8.2.1 Options of mail server mode In principle there are three ways of operating the required mail server. The following table explains the advantages and special features: Table 8- 1 Options of mail server mode Mail server mode Advantage...
Sending process messages by email 8.3 Setting up an e-mail connection ● Programmed recipient address You specify the recipient address in the data block in the user program in which the email is prepared. Example: plant.control@provider.com Note Opening ports Make sure that the relevant ports of the communication partner of the CP are opened. Setting up an e-mail connection Emails can be sent from the automation system, but they cannot be received.
Page 140
Sending process messages by email 8.3 Setting up an e-mail connection How to configure an e-mail connection Follow the steps below to configure an e-mail connection in STEP 7: 1. Select the connection type, e-mail connection. The connection partner is initially unspecified.
Sending process messages by email 8.4 Sending an e-mail Sending an e-mail Procedure Proceed as follows to send an e-mail: 1. Make the e-mail data available in a data block. 2. Use the AG_SEND or AG_LSEND program block in the user program. Requirement You can send email if the email connection has been set up via the connection configuration.
Page 142
Sending process messages by email 8.4 Sending an e-mail Comments on the table ● Structure and syntax of the data in the email DB The structure suggested here with multiple STRINGs is one of several variants. Crucial are the entries in the column "Initial value" with the IDs contained therein (TO:, SUB:, CC:, FROM:, TXT:, BNY:) which must be used in the DB in precisely this notation to identify the mail content! All entries must end with a semicolon;...
Sending process messages by email 8.5 Testing the email function Testing the email function Purpose and options With email functionality, you make your automation system capable of sending specific upto- date information from the process at any time. To allow you to check that email is functioning correctly at any time, you can initiate a test mail.
Page 144
Sending process messages by email 8.5 Testing the email function Requesting a test mail using STEP 7 special diagnostics In the "Email" tab of special diagnostics, you can also specify and trigger a test mail. To do this, you require an online connection between your PC/PG and your S7 station. When sending a test mail using special diagnostics, authentication is supported if required by the mail server.
File management and file access with FTP/FTPS With its file transfer functions (FTP), the Advanced CP provides a useful tool for transferring files to and from your S7 station. Files can be transferred both from the PG/PC to the S7 station or initiated by the S7 station to an FTP server;...
Page 146
File management and file access with FTP/FTPS 9.2 Advanced CP as FTP server for the file system on the CP S7 station with an Advanced CP in the role of FTP server The server role can be divided into two distinct functions: ●...
File management and file access with FTP/FTPS 9.2 Advanced CP as FTP server for the file system on the CP Advanced CP as FTP server for the file system on the CP 9.2.1 Procedure The Advanced CP manages the predefined HTML system pages as well as the HTML pages you have created yourself in a special memory area.
File management and file access with FTP/FTPS 9.2 Advanced CP as FTP server for the file system on the CP 9.2.2 File system - structure and features Structure of the file system on the Advanced CP as shipped With access using an FTP tool, the file system of the Advanced CP appears as follows: Figure 9-1 The file system on the Advanced CP Memory areas and configuration limits...
Page 149
File management and file access with FTP/FTPS 9.2 Advanced CP as FTP server for the file system on the CP Files are protected by access rights Section "User management" parameter group (Page 57) explains how access rights are created when you configure the Advanced CP. The Advanced CP reacts to file access using FTP according to the access rights;...
File management and file access with FTP/FTPS 9.3 Advanced CP as FTP server for the S7 CPU data Note Automatic connection termination If the FTP connection to the FTP server of the Advanced CP is not used, the Advanced CP closes down the FTP connection automatically after some time.
File management and file access with FTP/FTPS 9.3 Advanced CP as FTP server for the S7 CPU data Further information For more detailed information on the structure of the file DB, refer to the documentation on the SIMATIC NET program blocks /10/ (Page 230). 9.3.2 FTP commands on the FTP client Example of access...
Page 152
File management and file access with FTP/FTPS 9.3 Advanced CP as FTP server for the S7 CPU data How typical FTP functions use the permitted FTP commands The following table shows which FTP commands can be executed to access file DBs on the CPU.
File management and file access with FTP/FTPS 9.3 Advanced CP as FTP server for the S7 CPU data 1. Identifies the addressed file DB based on the entry in the file allocation table. 2. Checks the bits in the file DB header (see /10/ (Page 230)); the write function is executed only when the following applies: LOCKED bit = 0 NEW bit = 0...
Page 154
File management and file access with FTP/FTPS 9.3 Advanced CP as FTP server for the S7 CPU data Notes on the syntax ● Relevant rows can be recognized by the "cpux" string (where x = characters "1−4"); this applies to both areas. Note Notation •...
Page 155
File management and file access with FTP/FTPS 9.3 Advanced CP as FTP server for the S7 CPU data How to create and manage the file allocation table The file file_db.txt is located in the file system of your Advanced CP in the folder /config. You can upload the file as originally shipped with your CP to your PG/PC and use it as a template for your application.
Page 156
File management and file access with FTP/FTPS 9.3 Advanced CP as FTP server for the S7 CPU data Example With the configured CPU directories, the file name is displayed. This can include the number of the corresponding file DB. Meaning of the flags of "cpu" folders with the dir command: ●...
File management and file access with FTP/FTPS 9.4 The Advanced CP as FTP client for S7 CPU data If a file DB does not physically exist but is configured in the file allocation table "file_db.txt", all the flags are reset in the display (display: − − − − − − − − − −) and the file size is indicated as 0 bytes.
Page 158
File management and file access with FTP/FTPS 9.4 The Advanced CP as FTP client for S7 CPU data Figure 9-2 How FTP data transmission works when using FC40...44 Figure 9-3 How FTP data transmission works when using FB40 Further information For more detailed information on the structure of the file DB and the program blocks for FTP, refer to the documentation on the SIMATIC NET program blocks /10/ (Page 230).
File management and file access with FTP/FTPS 9.4 The Advanced CP as FTP client for S7 CPU data 9.4.2 Setting up FTP connections Meaning To run an FTP job sequence between the S7 station acting as the FTP client and an FTP server, the Advanced CP must establish a connection to the S7 CPU.
File management and file access with FTP/FTPS 9.5 Program blocks for FTP services Program blocks for FTP services Using the program blocks Use the following program block in the user program for data transfer using FTP/FTPS: ● FTP_CMD (FB40) The program block FTP_CMD can be used for FTP/FTPS with the following module types: –...
S7-CP Advanced as Web server: HTML process control The Advanced CP provides you with the functionality of a Web server for access by means of a Web browser. For this purpose, the Advanced CP has a storage area for files. When supplied, the Advanced CP has HTML system files, S7 beans and other information in the file system.
S7-CP Advanced as Web server: HTML process control 10.2 Security when accessing process data ● Create applicationspecific applets and use the supplied S7 beans. ● Create Java source code; use applicationspecific applets, Java beans and the supplied S7 beans. You will find a detailed description in the manual on the S7 applets / beans /22/ (Page 234). Extended access and display options - The Java Beans concept The Java Beans concept allows you to create objects (Java components) and to link them simply to executable programs.
S7-CP Advanced as Web server: HTML process control 10.2 Security when accessing process data 10.2.1 Opening ports on the Advanced CP during configuration To be able to use the IT functions of the Advanced CP, the relevant ports of the CP must be enabled in the STEP 7 configuration.
S7-CP Advanced as Web server: HTML process control 10.2 Security when accessing process data TCP port (protocol) to be Function used Opening required for opened Access in direction 102 (S7) Configuration with STEP 7 via ISO-on- PC/PG -> CP 161 SNMP Network management PC/PG <->...
S7-CP Advanced as Web server: HTML process control 10.3 Accessing the Advanced CP via a Web browser 10.3 Accessing the Advanced CP via a Web browser How to access the Advanced CP via a Web browser The basis of communication via an intranet or the Internet is the Internet TCP/IP protocol that is implemented on the Advanced CP.
Page 166
URL (CP Advanced) ① -> "http://" protocol -> "http://" protocol ② Server name [:port] -> IP address -> "142.80.00.01" "www.ad.siemens.de" ③ [File directory] -> "/net" [File directory] -> "//" ④ File name -> "/page.html" Name of the HTML page -> "index.htm"...
Web diagnostics With Web diagnostics, the CP provides you with the option of querying and displaying the most important settings of a connected station. You can also call up the statuses of your network connections and communications partners from a HTTP client on a PG/PC. It is also possible to query the diagnostics buffer entries of the modules of the rack in which the CP is located.
Page 168
Web diagnostics 11.1 Requirements Note Station or device names configured in STEP 7 with special characters (for example umlauts ä, ü etc.) may not be correctly interpreted in Web diagnostics. Settings for access to diagnostics data Check the following settings that are necessary for access to the diagnostics data: ●...
Web diagnostics 11.2 Setup and operation ● Importing a certificate In your Web browser, you should import the certificate generated by the security CP. Otherwise, when you call up Web diagnostics, you will receive a warning about the absence of a security certificate. To do this, export the required certificate during security configuration of the CP using the certificate manager in STEP 7.
Page 170
Web diagnostics 11.2 Setup and operation Access using STEP 7 (STEP 7 V5.5) Follow the steps outlined below to start Web diagnostics: 1. Connect your PG/PC with the LAN to which the CP is connected. 2. Open the properties dialog of the CP 3.
Page 171
Web diagnostics 11.2 Setup and operation Layout of the diagnostics pages ① Title bar The title bar of each Web diagnostics page displays the STEP 7 station name of the S7 station in which the CP is located. ② Area for making settings Display language •...
Web diagnostics 11.3 Diagnostics pages of the CP ③ Navigation area The navigation area contains the links to the Web pages of Web diagnostics; known below as the diagnostics pages. The type of module is displayed in the header line of the navigation area (here: "SIMATIC S7 CP"). If security is enabled, the login name and the "Logout"...
Page 173
Web diagnostics 11.3 Diagnostics pages of the CP Parameters Function Module name Configured name of the module Module type Name of the module type Status Operating mode Current mode of the CP: • Starting (CP starts up) • RUN (CP in productive mode) •...
Web diagnostics 11.3 Diagnostics pages of the CP 11.3.2 Identification Here, you can see a variety of information on the CP for identification and maintenance. Parameter Function Identification Plant designation Plant designation of the CP if this was configured. Location identifier Location identifier of the CP if this was configured.
Web diagnostics 11.3 Diagnostics pages of the CP Parameter Function Date Date on which the event occurred. Note If there is no time-of-day/date synchronization, 01.01.1984 is taken as the default date for the module startup Event (language Display of the diagnostics buffer entry in plain language. switchover not The display is made in the language specified by the loaded text file.
Page 176
Web diagnostics 11.3 Diagnostics pages of the CP Overview page A higher-level table view displays the station racks and any existing subsystems (PROFINET IO system, DP Master system). Parameters Function Status Symbolic status display of the station rack or the subsystem. (display only when the topology display is enabled) For the meaning of these symbols, refer to the following table.
Page 177
Web diagnostics 11.3 Diagnostics pages of the CP Rack configuration / subsystem configuration The components configured in the station rack or in the subsystem are displayed here. Slots of the station as well as general data and the status of the devices are displayed. Note Display topology enabled / disabled The configurable "Topology display"...
Page 178
Web diagnostics 11.3 Diagnostics pages of the CP "Status" tab Shows the status and the LED status of the module Display area Function Left Status display of the relevant module: Green (OK, module in operation) • Red (a problem has occurred) •...
Web diagnostics 11.3 Diagnostics pages of the CP 11.3.5 Industrial Ethernet The "Industrial Ethernet" entry in the navigation panel provides information on the Ethernet interfaces. Interface setting If the device has several interfaces, the interface number (for example "Interface X1") is displayed in a drop-down list in the title bar.
Page 180
Web diagnostics 11.3 Diagnostics pages of the CP Parameters Function Mode Displays the current network properties (transmission speed and direction). Possible values: 10 Mbps half duplex • 10 Mbps full duplex • 100 Mbps half duplex • 100 Mbps full duplex •...
Web diagnostics 11.3 Diagnostics pages of the CP "TCP Connections" tab This page informs you about the status of TCP connections. Parameters Function Number Consecutive number of the TCP connection Local IP address IP address of the CP Local port Number of the port used for the TCP connection Partner IP address Partner IP address...
Page 182
Web diagnostics 11.3 Diagnostics pages of the CP Note: Connections can be configured by configuration in STEP 7 or by programming in the user program (program block IP_CONFIG). Note PROFINET IO When using PROFINET IO, UDP ports are open due to the system. "ISO Transport", "ISO-on-TCP", "TCP", "UDP", "SMTP"...
Web diagnostics 11.3 Diagnostics pages of the CP Sending a test e-mail in the "SMTP" tab The "SMTP" tab has a box at the bottom of the dialog with which you can send a test e-mail from the CP. The maximum total length of the message is 260 characters (sum of all characters entered in the rows "From", "To", "Subject"...
Page 184
Web diagnostics 11.3 Diagnostics pages of the CP ● configured connections ● system connections On the lower part of the page, information is displayed about the interfaces and statistical information about the connections. Calling up connection details Select a connection in the connection table. In the lower part of the page, you will then see the "Additional information"...
Web diagnostics 11.3 Diagnostics pages of the CP Parameters Meaning Connections currently in use Currently reached number of simultaneously established S7 connections. Denied connection establishment attempts Number of events recorded since the CP startup or since the counter was reset. Error due to lack of resources Note: The counter can be reset with STEP 7 special diagnostics.
Page 186
Web diagnostics 11.3 Diagnostics pages of the CP "Configured IP Addresses" tab Here, the IP addresses of the communication partners configured in STEP 7 are listed. The IP addresses (or address ranges) you entered in the IP access control list for authorization are also listed.
Web diagnostics 11.3 Diagnostics pages of the CP 11.3.10 Security The "Security" entry in the navigation panel provides information about the configured security functions. Note Security enabled - navigation panel "IP Access Protection" The navigation panel "Security" only exists if security is enabled. If security is disabled, you can obtain corresponding information from the "IP Access Protection"...
Page 188
Web diagnostics 11.3 Diagnostics pages of the CP ● Graphic view ● Table view ● Status overview (excluding topological correlations) The views and status overview can be printed. Before printing out, use the print preview of your browser. If necessary, correct the format. From the drop-down list in the header bar, select the display mode: ●...
The figure below shows the view of an expected topology and an actual topology in a STEP 7 project. This is an example of the configuration with an S7-300 CPU and interconnected PROFINET IO devices. The figure illustrates the possible status information in the graphic view.
Page 190
Web diagnostics 11.3 Diagnostics pages of the CP Table 11- 3 Meaning of the colored connections in the target/actual topology: Connection Meaning Target topology Actual topology green The current actual connection matches the configured target Connections detected connection. Mismatch between the current actual connection and the configured target connection (e.g., port interchanged).
Page 191
Web diagnostics 11.3 Diagnostics pages of the CP ② Configured but inaccessible PROFINET nodes Configured but inaccessible PROFINET nodes are indicated in pink color with red frame (e.g. device failure, cable disconnected) ③ Deactivated nodes All disabled configured PROFINET nodes are indicated in light gray. ④...
Web diagnostics 11.3 Diagnostics pages of the CP Views after changes to the configuration ● After having failed, this device remains at the same position in the "Target topology" view. This error state is indicated by means of a device header with red frame and a red wrench ●...
Page 193
Web diagnostics 11.3 Diagnostics pages of the CP Table 11- 4 Meaning of the icons indicating the status of the PROFINET nodes Symbol Meaning Configured and accessible PROFINET nodes Unconfigured and accessible PROFINET nodes Configured but inaccessible PROFINET nodes Nodes for which neighbor relations cannot be determined or for which the neighbor relationship could not be read out completely or only with errors Table 11- 5 Meaning of the icons indicating the module status of the PROFINET nodes...
Web diagnostics 11.3 Diagnostics pages of the CP 11.3.11.3 Topology - "Status overview" tab Meaning The "Status overview" tab provides a clear presentation of all PROFINET IO devices/PROFINET devices (without connection relations) on one page. A quick error diagnostics is possible based on the symbols that show the module statuses. For the meaning of the status symbols, refer to the tables in section Topology - "Table view"...
Web diagnostics 11.3 Diagnostics pages of the CP Requirement: The tab exists if the following conditions are met on the CP: ● Case a: Security disabled: – The "Firmware download via Web" option is selected; ● Case b: Security enabled: –...
If STEP 7 is installed, you will find the text files for specific languages on your PG/PC in the following directory: ...\Program files\Common files\Siemens\s7wmedb\data The files are stored there as "s7wmeldx.edb"; x = {a,b,c,d,e,j} (where a = German; b = English;...
Page 197
Web diagnostics 11.3 Diagnostics pages of the CP Requirement: A language file can be downloaded if the following conditions are met on the CP: ● Case a: Security disabled: – "Reload of language files for the diagnostics displays via Web" option is selected; ●...
Page 198
Web diagnostics 11.3 Diagnostics pages of the CP Configuring and commissioning S7 CPs for Industrial Ethernet Configuration Manual, 09/2013, C79000-G8976-C182-13...
STEP 7 special diagnostics The STEP 7 special diagnostics (special diagnostics / NCM S7 Diagnostics) described here provides dynamic information on the operating state of the communication functions of online CPs. This chapter provides a general overview of the individual diagnostic functions. The following checklist will help you to recognize several typical problems and their possible causes and shows how you can use the STEP 7 special diagnostics tool to remedy the situation.
STEP 7 special diagnostics 12.2 Functions 12.2 Functions Functions The following must be distinguished: ● General diagnostics and statistical functions ● Type and modedependent diagnostics functions General diagnostics and statistical functions Regardless of the configured mode of the Ethernet CP, the following diagnostics functions are possible: ●...
STEP 7 special diagnostics 12.2 Functions Startup (STEP 7 Professional) You start STEP 7 special diagnostics as follows after selecting a module in the network view: 1. Select the "Online" > "Online & Diagnostics" menu command. 2. Under the "Functions > Special diagnostics" entry, click the "Special diagnostics" button. 12.2.2 Setup and operation Structure...
STEP 7 special diagnostics 12.2 Functions Operation ● By selecting a diagnostics object in the navigation area with the mouse, you execute the diagnostics function. ● Using the menu bar and toolbar, you control the sequence of the diagnostics with context- sensitive menu commands.
Page 203
STEP 7 special diagnostics 12.2 Functions Menu Meaning Mode > *) With certain modules, it is possible to reset to the factory Reset to Factory Settings *) settings. When you reset to the factory settings, the retentive parameters are also deleted. Following this, the module only has the default MAC address (as supplied).
STEP 7 special diagnostics 12.3 Starting diagnostics Menu Meaning Options > Ping Check the reachability of a device or a device interface. Help >..You obtain help on the current diagnostics function. You can also obtain help with the F1 key. Remember that with some diagnostics functions, context- sensitive help is also available for individual output boxes.
Page 205
STEP 7 special diagnostics 12.3 Starting diagnostics Procedure In the "Online Path" dialog box, select the interface corresponding to your hardware configuration. Depending on the selected type of attachment, you will be prompted to enter address parameters. For details, refer to the following table; further information on setting gateways and examples can be found below.
Page 206
STEP 7 special diagnostics 12.3 Starting diagnostics Examples of setting the online path without a gateway Figure 12-1 CP requiring diagnostics can be reached directly Figure 12-2 The CP requiring diagnostics is accessible indirectly over another CP Attachment of the destination station using the device name With an Ind.Ethernet (MAC address) or Ind.Ethernet TCP/IP attachment, you can also specify the module you want to reach by selecting the device name: 1.
Page 207
STEP 7 special diagnostics 12.3 Starting diagnostics Using the gateway If the CP you are checking can only be accessed via a gateway, you will need to select this specifically and specify its node address on the local network. You also specify the S7 subnet ID of the destination network. The subnet ID is made up of two numbers separated by a hyphen: ●...
Page 208
STEP 7 special diagnostics 12.3 Starting diagnostics Figure 12-4 Example of the parameter settings for the online path with multiple gateways Example - case c: IP subnet gateway via an Advanced CP with 2 interfaces In the following situation, the CP to be diagnosed is in a different IP subnet from your PG/PC (but in the same S7 subnet).
STEP 7 special diagnostics 12.3 Starting diagnostics 1. Set the interface of your PG/PG to TCP/IP. 2. In the STEP 7 project for the network attachment of your PG/PC, enter the use of a default router. 3. As the address of the default router, enter the IP address of the interface of the Advanced CP that is accessible in your own subnet (in the figure 157.55.80.1).
STEP 7 special diagnostics 12.3 Starting diagnostics Note You do not need to make these settings for the gateway if you select one of the following options: • Start STEP 7 special diagnostics from the properties dialog of the CP. •...
STEP 7 special diagnostics 12.4 How to use diagnostics 12.4 How to use diagnostics Procedure To use diagnostics efficiently, particularly when working with the diagnostic tool for the first time, the following procedure can be recommended. 1. Use the sequence shown below as a basis for using diagnostics: 2.
STEP 7 special diagnostics 12.5 Starting diagnostics functions explicitly 12.5 Starting diagnostics functions explicitly The following table shows the diagnostics options that exist in the available functions. Table 12- 1 General diagnostics and statistical functions Diagnostics Diagnostics purpose Special features function / diagnostics object CP information...
STEP 7 special diagnostics 12.6 Checklist for "typical problems" in a system Table 12- 2 Modedependent functions Diagnostics Diagnostics purpose Special features function / diagnostics object To display and monitor the communication connections. You obtain an overview or detailed information in the contents area depending on the diagnostics object you select. Connections By doubleclicking the objects in the Overview of all connection types...
STEP 7 special diagnostics 12.6 Checklist for "typical problems" in a system 12.6.1 Checklist for general CP functions Table 12- 3 Checklist for typical problems when operating a CP in a system Problem Possible cause Identifying the cause and remedy The Ethernet CP will not Invalid configuration loaded on Yellow STOP LED and red SF LED lit continuously.
STEP 7 special diagnostics 12.7 Diagnostics messages from e-mail connections with authentication 12.7 Diagnostics messages from e-mail connections with authentication Some Advanced CPs can operate with authentication on an e-mail server (refer to the device manual and the section Authentication and other features of the Advanced CP (Page 136)). If the authentication is incorrect, the sending of the e-mail is aborted and a diagnostics message is entered in the diagnostics buffer of the CP.
Page 216
STEP 7 special diagnostics 12.7 Diagnostics messages from e-mail connections with authentication Table 12- 6 Diagnostics messages resulting from authentication errors: SMTP status SMTP Meaning status The mail server has accepted the request but is itself not yet active. A confirmation message is required.
Downloading firmware This section familiarizes you with the options available for supplying your module with up-to- date firmware versions. Depending on the module type, you have the following options for downloading the firmware: ● Firmware Loader ● Update center in Web diagnostics If the security function is enabled on modules that support security functions, new firmware versions can only be loaded using HTTPS access via the update center in the Web diagnostics.
Page 218
Downloading firmware 13.1 Loading using the Firmware Loader Note Security enabled If security is enabled on modules, it is not possible to load firmware using the Firmware Loader. Instead, we recommend that you load the firmware when necessary using the update center in Web diagnostics.
CAUTION Make sure that the load file you are using is intended as an update for the version of the firmware contained on your module. If you are in any doubt, contact your local Siemens advisor. Remember that interrupting the download can lead to an inconsistent state on the module! For more information, read the description of the relevant device in Part B of this manual.
Page 220
Display of the digital signature stored for the firmware version. The signature allows you to establish the genuineness of the firmware version being used. You can obtain information about the signature information stored by Siemens for this firmware as a comparison via the Internet in the firmware descriptions.
Page 221
Display of the digital signature stored for the firmware version. The signature allows you to establish the genuineness of the firmware version being used. You can obtain information about the signature information stored by Siemens for this firmware as a comparison via the Internet in the firmware descriptions.
Page 222
Downloading firmware 13.2 Loading from the Download Center Configuring and commissioning S7 CPs for Industrial Ethernet Configuration Manual, 09/2013, C79000-G8976-C182-13...
Connector pinout 24 VDC connector Terminal Function +24 V Ground RJ-45 jack for twisted pair Ethernet CPs with a single connection Pin no. Signal name Function TP- / Transmit + TD_N TP- / Transmit - TP- / Receive + RD_N TP- / Receive - The pin assignment of the RJ-45 jack corresponds to the IEEE802.3 twisted pair interface.
Connector pinout A.4 Connector for PROFIBUS Connector for PROFIBUS 9-pin D-sub female connector for PROFIBUS (used with IE/PB Link) Pin no. Signal name PROFIBUS name Used with RS-485 Protective earth RxD/TxD-P Data line B RTS (AG) Control A M5V2 Data reference potential P5V2 Supply plus...
Page 226
Connector pinout A.4 Connector for PROFIBUS Configuring and commissioning S7 CPs for Industrial Ethernet Configuration Manual, 09/2013, C79000-G8976-C182-13...
References Introduction to the documentation Where to find Siemens documentation ● You will find the article numbers for the Siemens products of relevance here in the following catalogs: – SIMATIC NET Industrial Communication / Industrial Identification, catalog IK PI – SIMATIC Products for Totally Integrated Automation and Micro Automation, catalog...
Page 228
References B.2 On configuring, commissioning and using the CP You will find the manuals for the individual CPs under the following entry IDs: CP 343-1 Lean (CX00): 19308657 (http://support.automation.siemens.com/WW/view/en/19308657) CP 343-1 Lean (CX10): 23643456 (http://support.automation.siemens.com/WW/view/en/23643456) CP 343-1 (EX21): 22259495 (http://support.automation.siemens.com/WW/view/en/22259495) CP 343-1 (EX30): 24485272 (http://support.automation.siemens.com/WW/view/en/24485272)
Page 229
SIMATIC NET S7 CPs for Industrial Ethernet Configuring and Commissioning Manual Part - General Application Configuration Manual Siemens AG (SIMATIC NET Manual Collection) On the Internet under the following entry ID: 30374198 (http://support.automation.siemens.com/WW/view/en/30374198) SIMATIC NET Version History/Current Downloads for the SIMATIC NET S7CPs...
Page 230
On configuration of PROFINET CBA (components and systems) SIMATIC Component Based Automation - configuring systems with SIMATIC iMap manual Siemens AG On the Internet under the following entry ID: 18404678 (http://support.automation.siemens.com/WW/view/en/18404678) Basic help in the engineering tool SIMATIC iMap (online help)
Page 231
On the Internet under the following entry ID: 18652056 (http://support.automation.siemens.com/WW/view/de/18652056) /13/ SIMATIC System and Standard Functions for S7-300/400 - Volume 1/2 Reference manual Siemens AG (Part of the STEP 7 documentation package STEP 7 Basic Knowledge) (Part of the online documentation in STEP 7) On the Internet under the following entry ID: 1214574 (http://support.automation.siemens.com/WW/view/de/1214574)
Page 232
On the Internet under the following entry ID: 56577508 (http://support.automation.siemens.com/WW/view/en/56577508) /17/ You will find further information on IT security and on data security in industrial communication on the following Internet pages of Siemens AG: (http://www.automation.siemens.com/mcms/industrial-communication/en/ie/industrial-ethernet-security) Configuring and commissioning S7 CPs for Industrial Ethernet Configuration Manual, 09/2013, C79000-G8976-C182-13...
Page 233
B.7 S7 CPs On installing and commissioning the CP S7 CPs On installing and commissioning the CP /18/ SIMATIC S7 Automation System S7-300 Siemens AG ● CPU 31xC and 31x Installation: Operating Instructions On the Internet under the following entry ID: 13008499 (http://support.automation.siemens.com/WW/view/en/13008499)
Page 234
References B.9 On the IT functions of the CPs /21/ SIMATIC From PROFIBUS DP to PROFINET IO Programming manual Siemens AG (SIMATIC NET Manual Collection) On the IT functions of the CPs /22/ S7Beans / Applets for IT-CPs programming aid...
Page 235
Manual for Triaxial Networks (SIMATIC NET Manual Collection) B.11 SIMATIC and STEP 7 basics /25/ CPU 31xC and CPU 31x: Technical Specifications Manual Siemens AG On the Internet under the following entry ID: 12996906 (http://support.automation.siemens.com/WW/view/en/12996906) /26/ Communication with SIMATIC System Manual Siemens AG On the Internet under the following entry ID: 25074283 (http://support.automation.siemens.com/WW/view/en/25074283)
Page 236
References B.11 SIMATIC and STEP 7 basics Configuring and commissioning S7 CPs for Industrial Ethernet Configuration Manual, 09/2013, C79000-G8976-C182-13...
Linking to other systems with FETCH/WRITE The FETCH and WRITE modes supported on ISO transport connections, TCP, and ISOon- TCP connections can be used with any other device to access the S7 system memory areas. To be able to use this type of access, for example for PC applications, you need to know the PDU structure of the jobs.
Page 238
Linking to other systems with FETCH/WRITE ID OP code =0x01 ID OP code =0x01 Length OP code =0x03 Length OP code =0x03 OP code =0x05 OP code =0x06 ORG field =0x03 Ack field =0x0F Length ORG field =0x08 Length ack field =0x03 ORG ID Error field...
Page 239
Linking to other systems with FETCH/WRITE PI/PQ address area ORG ID Source/dest. data Source/dest data Source/dest data from/to I/O modules. from/to counter cells from/to timer cells With source data input modules, with dest data output modules DBNR irrelevant irrelevant irrelevant Start address I/O byte no., from Number of the...
Page 240
Linking to other systems with FETCH/WRITE Configuring and commissioning S7 CPs for Industrial Ethernet Configuration Manual, 09/2013, C79000-G8976-C182-13...
Document history This section provides an overview of the previous releases of this manual. This was new in release 10/2012 (C79000-G8900-C182-12) ● Editorial adaptations to the currently available devices and the current versions of the configuration tools This was new in release 03/2012 (C79000-G8900-C182-11) ●...
Page 242
Document history Configuring and commissioning S7 CPs for Industrial Ethernet Configuration Manual, 09/2013, C79000-G8976-C182-13...
Properties, 92 Ethernet CP Connection and system diagnostics, 4 Commissioning: Procedure, 39 Connection resources Further CP properties, 42 S7-300, 36 Further CP properties:Time of day, 46 Connector pinout Hardware configuration, 40 15-pin D-sub female connector, 224 RJ-45 jack, 223 CP configuration data...
Page 244
HMI, 38 Module certificate, 174 HMI/monitoring devices, 24 Module replacement HTML pages, 162 S7-300, 35 HTML process control S7-400, 37 TCP port to be opened, 163 Module replacement - display of the Web pages, 167 HTML process control / Web diagnostics, 18...