MN S7-Cps-Ie 76 PDF
MN S7-Cps-Ie 76 PDF
MN S7-Cps-Ie 76 PDF
This manual...
Communication via Ethernet
___________________
CPs in S7 stations 1
for Industrial Ethernet Characteristics of the
___________________
Ethernet CPs 2
___________________
Configuring the Ethernet CP
with STEP 7 3
SIMATIC NET
___________________
SEND/RECEIVE interface in
the user program 4
S7-300/400 - Industrial Ethernet / ___________________
Configuring communications
connections 5
PROFINET
___________________
CP as PROFINET IO
6
Configuring and commissioning S7 controller
___________________
Web diagnostics 11
___________________
STEP 7 special diagnostics 12
___________________
Downloading firmware 13
___________________
Connector pinout A
___________________
References B
___________________
Linking to other systems with
FETCH/WRITE C
___________________
Document history D
09/2013
C79000-G8976-C182-13
Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
indicates that minor personal injury can result if proper precautions are not taken.
NOTICE
indicates that property damage can result if proper precautions are not taken.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific
task in accordance with the relevant documentation, in particular its warning notices and safety instructions.
Qualified personnel are those who, based on their training and experience, are capable of identifying risks and
avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible
ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication
may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.
● ... 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. You should always read the instructions on the individual topics available there.
Audience
This manual is intended for commissioning engineers, programmers of STEP 7 programs
and service personnel.
Note
Note that the availability of the functions described here for the device type you are using
depends on the firmware version of the CP and the version of STEP 7. You can check which
functions your module supports in the description of the properties dialog for the module in
STEP 7.
Note
STEP 7
In this manual, the name STEP 7 is used for all the available versions of STEP 7.
This manual is valid for the following versions of the configuration software:
● STEP 7 V5.5 SP2 Hotfix 4
In addition to this, for CP modules with integrated Industrial Ethernet security
functionality: Security Configuration Tool (SCT) version V3.1
● STEP 7 Professional V12.0 SP1
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.
References /.../
References to other documentation are shown in slashes /.../. Based on these numbers, you
can find the title of the documentation in the references at the end of the manual.
See also
Web diagnostics (Page 167)
Downloading firmware (Page 217)
Industrial Ethernet Security (Page 14)
Industrial Ethernet
Industrial Ethernet is the network for the process control level and the cell level of the
vendor-independent SIMATIC NET open communications system. Physically, Industrial
Ethernet is an electrical network based on shielded, coaxial cable, twisted pair cable or an
optical network of fiber-optic cables (FO cable).
Industrial Ethernet is defined by the international standard IEEE 802.3 (see /10/).
Network access
Industrial Ethernet is accessed using the CSMA/CD (Carrier Sense Multiple Access with
Collision Detection) network access technique specified in IEEE 802.3.
You will find detailed information on the topic of Industrial Ethernet Security and
configuration with the Security Configuration Tool in /16/ (Page 232).
1) Where the term "FTPS" is used in this documentation, FTPS in the explicit mode is meant
(PTPES).
Types of communication
● PG/OP communication
PG/OP communication is used to download programs and configuration data, to run tests
and diagnostics functions, and to control and monitor a plant from OPs.
● S7 communication
S7 communication forms a simple and efficient interface between SIMATIC S7 stations
and PGs/PCs using communication function blocks.
● Open communications services (SEND/ RECEIVE)
Depending on the CP type, the SEND/RECEIVE interface allows programcontrolled
communication on a configured connection from a SIMATIC S7 PLC to another SIMATIC
S7 PLC, to a SIMATIC S5 PLC, to PCs/PGs, and to third-party stations.
Depending on the CP type, the following communications services are available on the
SEND/RECEIVE interface:
– ISO transport
Optimized for top performance at the selfcontained manufacturing level.
– IP-based services for internetwork communication
This includes:
ISOonTCP connections (RFC 1006), TCP connections and UDP datagram service
(including broadcast / multicast).
Security functionality
● Firewall
– IP firewall with stateful packet inspection (layer 3 and 4)
– Firewall also for Ethernet "non-IP" frames according to IEEE 802.3 (layer 2)
– Bandwidth limitation
– Global firewall rules
– All network nodes located in the internal network segment of a CP are protected by its
firewall.
● Communication made secure by IPsec tunnels
The CP x43-1 Adv. can be grouped together with other security modules during
configuration. IPsec tunnels are created between all security modules of a group (VPN).
All internal nodes of these security modules can communicate securely with each other
through these tunnels.
● SNMPv3
For secure transmission of network analysis information safe from eavesdropping.
● Logging via the Syslog server
To allow monitoring, events can be stored in log files that can be read out using the
configuration tool or can be sent automatically to a syslog server.
● HTML process control using HTTPS
For encrypted transmission of system data via a Web browser.
● File management and file access using FTP (explicit mode)
For encrypted transfer of files.
● Time-of-day synchronization and transfer using NTP (secure)
For secure time-of-day synchronization and transmission.
1) PC only as client
2) S7300 as PROFINET IO device or controller
S7-400 as a PROFINET IO controller
3) S7300 as PROFINET IO device and/or controller
Application
PG/OP communication provides functions that are already integrated in every SIMATIC
S7/M7/C7 device.
PG/OP communication distinguishes between the two function types:
● PG communication
PG communication with STEP 7 on Industrial Ethernet allows the complete range of
functions of STEP 7 on Industrial Ethernet. All modules in the SIMATIC S7 PLC are
available for:
– programming
– diagnostics
– operator control and monitoring
● OP mode
PG/OP communication on Industrial Ethernet allows the operator control and monitoring
of all modules in a SIMATIC S7 PLC using HMI and monitoring devices (TD/OP).
The Ethernet CP acts as a "communications relay" that relays the PG/OP communication via
Industrial Ethernet.
The following schematic illustrates how PG/OP communication can be used locally or
remotely:
Requirement
Operation allowing operator control/monitoring is possible when the following conditions are
met:
● The following are installed in the HMI/monitoring device:
– an Ethernet CP;
– SOFTNET S7 for Ind. Ethernet or software from the SIMATIC NET CD.
● The CPs in the S7 stations are supplied with a MAC/IP address (use the default MAC
address or set an IP address).
With CPs that have several independent interfaces, for example 1 PROFINET interface and
1 gigabit interface, you can connect your PG or engineering station to the gigabit interface
when networking the PROFINET interface with your plant. You can access the subnet of one
interface from the other interface.
Procedure
To be able to use S7 communication, address the required module in the SIMATIC S7 PLC
on your HMI/monitoring device.
For more detailed information on the OP mode, refer to /4/ (Page 229).
Application
S7 communication via Industrial Ethernet permits program-controlled communication using
program blocks for S7 communication via configured S7 connections. The amount of user
data per job is as follows for communication via 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. Depending on the configuration of the Ethernet CP, data transfer is on
the basis of the ISO transport or the ISOonTCP protocol (TCP/IP with RFC 1006).
From a user perspective, S7 communication via PROFIBUS and Industrial Ethernet is
identical.
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:
– between S7 stations S7300 and S7400;
– between S7 stations and PC/PG stations with an Ethernet CP.
● Client and server functionality at one end only (S7 connections configured at one end)
In the following situations, write and read functions can be implemented with PUT / GET
on S7 connections configured at one end:
– S7 communication over routers
PG/PC stations can access S7 stations connected to a different subnet or subnet type
(PROFIBUS / Ethernet). This is only possible if the subnets are connected via routers
(for example IE/PB Link); in this case, S7 stations are servers.
S7 communication is possible via a gateway.
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.
You will find more detailed information in the online help in STEP 7.
Note
S7 connections via routers are supported only within a STEP 7 project but not between
partners in different STEP 7 projects of a multiproject!
Note
Remember word boundaries
Remember the following points regarding data consistency in your user program:
In the CPU of the S7 station, the read or written information is taken from the S7 user
program into the operating system or copied from the operating system to the S7 user
program in blocks of 8 or 32 bytes (depending on the firmware version).
If information in the word or doubleword format is located across such boundaries, data
inconsistency may arise during transfer using S7 communication!
Application
Using the SEND/RECEIVE interface, your S7 user program has access to the open
communications services with configured connections.
Note
Due to compatibility with the S5S5 connections in SIMATIC S5, the previous name of the
open communications services was "S5-compatible communication".
Data transmission over a configured connection is suitable for the following types of data
transfer:
● the reliable transfer of related blocks of data between two Ethernet nodes using
– ISO transport connection (not for PROFINET CBA standard components).
– TCP or ISOonTCP connection;
● Datagram service / User Datagram Protocol
Simple unacknowledged transfer of related blocks of data between two Ethernet nodes
with UDP on IP.
The SEND/RECEIVE interface is also used for sending email.
IP (Internet Protocol)
The following methods are available for internetwork data transfer:
● ISO-on-TCP connection
ISOonTCP is intended for reliable, internetwork data transfer.
The ISOonTCP service corresponds to the TCP/IP standard (Transmission Control
Protocol/Internet Protocol) with the RFC 1006 extension according to layer 4 of the ISO
reference model (see /18/).
RFC 1006 extends the TCP protocol by allowing the transfer of blocks of data
("messages"). This requires that both partners support RFC 1006.
Transmission reliability is extremely high due to automatic repetition and additional field
check mechanisms. The communications partner confirms reception of data and the
sender receives a return value on the SEND/RECEIVE interface.
● TCP connection
When using the SEND/RECEIVE interface on TCP connections, the Ethernet CP
supports the socket interface (for example, Winsock.dll) to TCP/IP found on almost every
system (PC or other system).
TCP is intended for reliable internetwork data transfer.
The TCP service complies with the TCP/IP standard (Transmission Control
Protocol/Internet Protocol).
● UDP connection
UDP is intended for simple internetwork data transfer without confirmation.
If the connection is suitably configured, broadcast and multicast frames can also be sent
on UDP connections.
To avoid overload due to high broadcast load, the CP does not allow reception of UDP
broadcasts. As an alternative, use the multicast function over a UDP connection. This
allows you to register the CP as a node in a multicast group.
SEND/RECEIVE interface
Data transfer is triggered by the user program. The interface to the user program in the
SIMATIC S7 is formed by special SIMATIC S7 program blocks.
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
● PC/PG with an Ethernet CP
● Stations with Ethernet attachment
Figure 1-4 SIMATIC S7 PLC with possible communications partners on the SEND/RECEIVE
interface
Application
The FETCH/WRITE functionality on the SEND/RECEIVE interface provides further services
on configured transport connections.
The FETCH/WRITE interface is used primarily to connect SIMATIC S7 to SIMATIC S5 and
to other nonS7 stations (for example PCs).
● FETCH
The partner on the connection (SIMATIC S5 or nonS7 station) can read system data on
the SIMATIC S7 PLC.
● WRITE
The partner on the connection (SIMATIC S5 or nonS7 station) can write system data to
the SIMATIC S7 PLC.
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.
For further information, refer to the system documentation of the SIMATIC S5 PLC or the
nonS7 station you are using.
Connection types
To access a station with FETCH or WRITE functions, a connection with FETCH passive or
WRITE passive mode must be configured on the SIMATIC S7. The following connection
types are possible:
● ISO transport
● ISO-on-TCP
● TCP
SIMATIC S5
On the SIMATIC S5 station, the FETCH/WRITE services are configured and addresses by
the READ ACTIVE/PASSIVE and WRITE ACTIVE/PASSIVE service types.
See also
Linking to other systems with FETCH/WRITE (Page 237)
Configuring
To allow stations to communicate with each other the networks must be configured in the
STEP 7 projects.
Configuring a network or subnet involves the following:
1. You create one or more subnets of the required subnet type in the project;
2. You select the properties of the subnet. Normally the default settings are adequate;
3. You connect the station "logically" to the subnet;
4. You set up connections for communication.
Tools
STEP 7 provides convenient tools for configuring and documenting networks graphically.
Configuring networks is explained in the online help of STEP 7.
Legend:
1) LEDs
2) PROFINET interface: 2 x 8pin RJ45 jack
3) X = placeholder for hardware product version
Legend:
1 X = Placeholder for hardware version
2 CPLUG (at rear)
3 Firmware version
4 LEDs
5 Gigabit interface: 1 x 8pin RJ45 jack / security: External
6 PROFINET interface: 4 x 8pin RJ45 jack
7 Label with MAC addresses
Figure 2-1 Example of an S7-400 CP: CP 443-1 Advanced
2.3.2 Number of SIMATIC NET CPs being operated at the same time
The number of SIMATIC NET CPs that can be operated is not limited by the system (for
example S7300 CPU, slot rules etc.), but by the application (maximum cycle time of the
application). The following components must be added into the calculation of the cycle time
on top of the existing S7 user program:
● Execution time of the FCs:
For communication between the S7300 CPU and SIMATIC NET CPs, blocks (FCs/FBs)
are necessary. How often these blocks are called depends on the number of connections
or the number of SIMATIC NET CPs. Depending on the amount of data transferred, every
block call extends the time required by the user program.
● Data conversion:
It may also be necessary for the information to be converted before transfer or after
reception.
Please refer to the information in the relevant device manual.
2.3.3 Multicomputing
This functionality is not supported by the SIMATIC S7300.
Note
Removing and inserting the SIMATIC NET CPs for the SIMATIC S7300 while the power is
on is not permitted.
You should also remember that by removing a module from the rack, all modules on the
other side of it will be disconnected from the CPU.
Note
Depending on the CP type installed and the services being used, there may be other
restrictions (see CPspecific description in this manual).
2.4.2 Number of SIMATIC NET CPs being operated at the same time
The number of SIMATIC NET CPs that can be operated simultaneously is limited by the
specific characteristics of the CPU. The exact number can be found in the CPspecific section
of this manual.
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
balancing). If, however, you want to increase the number of available connection resources,
you can insert several CPUs in a rack (multicomputing). All S7400 CPUs in a rack can
communicate via one or more SIMATIC NET CPs.
The following communications services support multicomputing:
● ISO transport connections
● ISO-on-TCP connections
● S7 functions
● TCP connections
● UDP connections
● Email connections
Note
The figure below shows the basic procedure. Note the corresponding device-specific
instructions in "Installation and commissioning" in the description of your CP (manual Part B)
/1/ (Page 227).
3.2.1 Overview
The CP is managed in a STEP 7 project like every other module in SIMATIC S7. The
hardware is configured and the user software created and managed using STEP 7 (see also
/6/).
To configure a CP, follow the steps below (the dashed lines are options):
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. In your project, select the station you want to connect via the Ethernet CP.
2. Place the CP in the S7 station like any other module by selecting it from the hardware
catalog.
You can select CPs from the catalog based on a brief descriptive text and the order
number.
Result: The CP is assigned to the SIMATIC station.
Note
If you change the CP modules regularly in your plant, when using ISO services you
can avoid double assignment of MAC addresses by, for example, by following the
steps outlined below:
1. Enter the first 3 manufacturer-specific bytes of the printed MAC address in the
configuration.
2. For the last 3 bytes, enter application-specific IDs for your CP (in the example "ik",
"nm", "yx" with a range of values in each case from 0 to 255 decimal).
Example: 00:0E:8C:ik:nm:xy
– IP address
With CPs with an additional gigabit interface, the IP address of the PROFINET
interface must not be in the same IP subnet as the IP address of the gigabit interface.
Note
The "IP address" and "Subnet mask" input boxes have no significance for ISO
transport (option "IP protocol is used").
3.3.1 Overview
In addition to the network connection, you can also make other module-specific settings or
call up functions.
The following lists show you an overview of the additional parameters that can be set or
functions that can be called. With both product variants of STEP 7, you will receive
information about where these parameters or functions are available. The following sections
contain detailed information.
The parameters are assigned according to the following criteria:
● Object properties of the device
● Object properties of the interface (Ethernet/gigabit and PROFINET)
The following lists are structured accordingly
I&M data can be called using information functions, for example using the Web diagnostics
of the device.
Devices that can be used as PROFINET IO devices can also be assigned the identifications
by the PROFINET IO controller. This uses the "write data record" function (program block
PNIO_RW_REC). This is done using the maintenance data record "IM1" with index AFF1H. If
the plant designation and location designation are configured using STEP 7, it is not possible
to override them using data record I&M1 with index AFF1H.
The "Write data record" function is described in /10/ (Page 230) with the program blocks for
PROFINET IO.
Plant designation
Plant designation of the module. Here, enter an identifier for the module that is unique in
your plant.
Length: max. 32 characters
Location identifier
Location identifier of the module. Enter an identifier that indicates the location of the module
in your plant.
Length: max. 22 characters
Meaning
The I/O addresses parameter group shows the address at which the module can be
addressed by the user program. You can also set this address here. You require this
address when calling all 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" tab.
Example: If the process image selected for the CPU has a size of 1024 (0... 1023), an
address >= 1024 must be selected for the Ethernet CP.
Use
● 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.
This function uses process output via the backplane/P bus. As a result, the output
addresses can be set as soon as this option is selected.
Options tab
Depending on your CP type, you can make the following settings:
• File system (case-sensitive) On CPs with IT functions, activating this option allows you to
specify that the CP distinguishes between uppercase and
lowercase characters in the names of files for the RAM area.
All the UDP frames received by the CP are buffered until they
can be transferred to the CPU or the internal buffer overflows.
How it works
● SIMATIC mode
When the CP receives MMS time messages, its local time is synchronized provided that
the NTP mode was not configured (MMS = Manufacturing Message Specification).
The advantage of this mode is that it is generally more accurate than the NTP mode.
The time messages are received either from an S7-41x CPU or from the LAN.
You can choose whether or not the CP simply adopts the time or also forwards it. If a
different instance is set up to forward the time, do not select forwarding.
The two following situations are possible depending on where the time-of-day master is
located:
– Case a) Time messages come from the subnet (LAN) and are forwarded to the
station. In this case, the CPU's time synchronization must be configured as a slave.
– Case b) Time messages come from the station and are forwarded to the subnet
(LAN). In this case, a time-of-day synchronization of the CPU must be configured as
the master or another CP forwards time messages to the K bus.
If you have several CPs in your station, take into account the flow of time-of-day
messages depending on the time-of-day master. It is possible to transfer time-of-day
messages from one network to another network using the function described here. There
may, however, only be one time master in your station.
If there are several CPs that are connected to the same network in a station, only one of
these CPs may forward the time messages.
Note
During configuration, there is no consistency check relating to this option when
configuring several CPs.
Note
Note the following about timeofday synchronization in NTP mode:
If an NTP frame is detected by the CP as "not exact" (example: NTP server is not
synchronized externally), the CP does not synchronize itself and does not forward the
time on the communication bus (K bus). If this problem occurs, none of the NTP servers
is displayed as “NTP master" in the diagnostics; but rather all NTP servers are displayed
only as being "accessible".
The IP addresses of up to four NTP servers need to be configured. The update interval
defines the interval between the time queries (in seconds). The value of the interval
ranges between 10 seconds and one day.
In NTP mode, it is generally UTC (Universal Time Coordinated) that is transferred; this
corresponds to GMT (Greenwich Mean Time). The time offset from UTC can be set by
configuring the local time zone.
Note
No automatic changeover to daylight saving is defined in NTP. As a result, you may need
to implement this changeover using a program application.
Security enabled
In the extended NTP configuration, you can create and manage additional NTP servers
including those of the type NTP (secure).
Note
Ensuring a valid time of day
If you have enabled security, a valid time of day is extremely important. If you do not obtain
the time-of-day from the station (CPU), we therefore recommend that you use an NTP server
of the type NTP (secure).
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.
IP access protection relates to all messages handled by the IP protocol (TCP, ISO-on-TCP,
UDP, ICMP).
In this parameter group, you can activate or deactivate IP access protection and can enter
specific IP addresses in an IP access control list (IP-ACL).
With Advanced CPs, it is possible to send entries for the IP access control list to the CP
using HTTP (see section Sending entries for the IP access protection to the Advanced CP
using HTTP/HTTPS (Page 66)).
Blocked access attempts are registered on the CP and can be viewed with special
diagnostics in the "IP access protection" diagnostic object. If the CP has IT functionality, a
LOG file is also created in the file system of the CP that you can view with a WEB browser.
Note
Security enabled
As soon as you enable security, IP access protection is effective only on the interface to the
external network.
To achieve effective IP access protection within the local subnet when security is enabled,
you need to make special firewall settings.
following descriptions apply to the situation when security is disabled. You will find further
information relating to the situation when security is enabled at the end of the chapter.
Note
PING command - no dynamic adoption of the IP address
IP addresses accessed using a PING command are not entered dynamically in the IP
access control list.
Note
Locking IP communication
To block IP communication with HTTP (port 80) or FTP (port 20/21) with an advanced
CP, follow the steps below:
Disable the "Activate Web server" or "Activate FTP server" option. As default, both
functions are enabled.
Note
IP-ACL without entries when security is enabled
If you adopt an IP-ACL without entries, the firewall is enabled and it is no longer possible to
access the CP from external. To make CP available, configure suitable firewall rules in the
advanced mode of SCT.
Note
Behavior in the internal subnet
When you enable security, there are initially no access restrictions between communications
partners connected in the internal network.
The following therefore applies to internal subnets: Previously existing entries in the IP-ACL
that restricted communication to certain partners are not initially effective when security is
enabled.
When security is enabled, it is then possible to make detailed firewall settings for individual
nodes. With specified connections to external partners, firewall rules are automatically
created in SCT that allow connection establishment. With unspecified connections, you must
first configure the relevant firewall rules.
Meaning
You can decide the route and the method with which the IP address of the local interface is
obtained and assigned.
With the options available here, it is possible to assign IP addresses "dynamically" outside
the configuration.
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:
● Set IP address in the project
This is the default setting for PLCs. You specify the IP address when the device is
networked. The IP address CP is therefore fixed.
With this option, you must configure communications connections.
● Obtain an IP address from a DHCP server
If you select this option, the IP address is obtained from a DHCP server when the device
starts up.
The DHCP server is informed of the MAC address of the interface or the client ID that can
be entered in the configuration.
The client ID is a string with a maximum of 63 characters. Only the following characters
can be used:
– a-z, A-Z, 0-9, - (hyphen)
Requirements / restrictions:
If you select this option, it is initially not possible to create a fully specified connection in
the project because the local IP address is not known.
You therefore select "unspecified" with passive connection establishment as the
connection type.
● Set IP address in the user program
With this option, you specify that the IP address is set over the user program interface
(function block IP_CONFIG). This allows the IP address to be supplied dynamically during
operation.
In this use case, communications connections are set up only via the interface of the user
program. Connection configuration is no longer possible (relates to connections via: TCP,
ISO-on-TCP, UDP, ISO transport ).
● Set IP address using a different method
With this option, you specify that the IP address is set by other services outside the
configuration.
In this case, connection configuration is no longer possible (relates to connections via:
TCP, ISO-on-TCP, UDP, ISO transport ).
Note
Communications connections have already been configured
In the following situation, you receive the message that the configured connections no
longer work:
You have already configured communications connections via the interface configured
here and select a different setting from "Set IP address in the project".
Note
As default, no permissions whatsoever are assigned under the "Everybody" entry. For
service purposes, however, it is possible to assign permissions.
You should, however, remember that any permissions assigned to the "Everybody" user are
also available to every other user. If you do assign permissions for service purposes,
remember to cancel these again afterwards! Otherwise, you allow services to be executed
without authorization with every access.
If an access right is set for "Everybody" users, the corresponding check boxes are selected
and visible when you assign permissions to other users.
Security enabled
In security user management, you can create users, roles and rights (configuration- and
module-specific).
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.
Project engineering
● "Enable FTP server" option
Select this option if you want to allow FTP access to the S7 station via Port 20/21 of the
CP.
This must also be enabled if you want to use FTP access to file DBs on the CPU.
FTP server access via Port 20/21 is enabled by default.
● "Use FTP server for S7 CPU data" option
If you select this option, the file allocation table configured here is created on the CP
when you download the project engineering data and store it in the /config folder of the
file system of the CP.
An existing file_db.txt file is overwritten.
● "Allow access only via FTPS" option:
The option can be set when security is enabled and has the following effects: The files
are transferred encrypted.
Requirements:
– For the user, the rights "FTP: Read files (DBs) from the S7 CPU" or "FTP: Write files
(DBs) from the S7 CPU" must be activated.
– If the firewall is activated, the FTP/FTPS protocols must be allowed.
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.
● By creating a file_db.txt file directly.
You will need to download the file allocation table created in this way to the CP using an
FTP command.
The file allocation table file_db.txt is stored in the file system of the Ethernet CP in the /config
folder.
● 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".
All other characters are interpreted as comment characters and start a comment up to
the end of the row
Row length: maximum 256 characters
– The following applies to the file name of a file DB:
The file name begins with "cpuX" (where X=1, 2, 3, or 4);
"cpuX" must first be defined in the rack/slot assignment of the CPU;
Length: maximum 64 characters (including "cpuX");
Maximum of 100 entries;
Permitted characters: letters "A-Z,a-z"; digits "0-9", "_", "."
● Mixing entries
You can also mix the entries for rack/slot assignment of the CPU and DB assignment.
The DB assignment must, however, always come after the rack/slot assignment of the
relevant CPU.
You could therefore enter the example as follows:
cpu1 0 4
cpu1db20 20
cpu1db35 35
cpu2 0 4
cpu2_test.dat 5
The following entry is, however, not permitted and would be rejected with an error message:
cpu1bd20 20
cpu1db35 35
cpu1 0 4
Note
Remember the notation:
• Please note the capitalization (lower case for "cpu" and no leading blanks at the
beginning of the row). Otherwise the files will not be recognized.
• The tabulator is not permitted as separator.
See also
"Security" parameter group (STEP 7 V5.5) (Page 63)
SNMP configuration
Depending on the device type and the configuration, the following versions of SNMP are
supported:
● SNMPv1
All CPs support SNMPv1 if no security function is enabled.
● SNMPv3
With a suitable setting, CPs with a configurable security function support the SNMP
function SNMPv3
Security configuration
The module acts as an SNMPv3 agent only if SNMPv3 is selected for the SNMP
configuration. In the rights administration expanded for security, specify which users or roles
on the module have which access to SNMP data.
Further information
Read the manual of the relevant CP for further information; see /1/ (Page 227)
"PROFINET" Tab
Here, you specify the properties of the Ethernet CP for PROFINET IO and PROFINET CBA.
*) For CPs with configurable ports, set the "PROFINET IO controller" mode in the parameter
assignment of the interface slot.
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" check box.
Result:
– The security functions in the individual tabs become active.
– The " Edit > Security Configuration Tool" menu becomes active if, for example, you
create VPN groups or add modules that cannot be configured in STEP 7.
– The "Data migration for security-relevant project data" window opens in which you can
migrate existing access control lists, device users and settings for the time-of-day
synchronization to SCT.
● Start of security configuration
Click the "Run" button to open SCT in an overview mode. Make the security settings you
require.
● Reloading firewall rules
If you click the "Run" button, the reloadable data is generated and loaded on the CP
without causing a stop on the module.
Note
Loss of the security configuration
If you disable the "Enable security" check box again, all the security settings you have
made are lost and you will need to make them again if you enable the check box again.
The CP is no longer shown in SCT and is removed from the existing VPN groups. The
settings prior to activating security for access control lists, device users and time-of-day
synchronization are restored.
Further information
You will find detailed information in the manual /16/ (Page 232) on configuring the security
function
Meaning
The CP provides you with the functionality of a web server for access by means of a web
browser. Certain HTML pages with CP information and diagnostic functions are stored in a
memory area of the CP for this.
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.
This is automatically taken into account by STEP 7 and has no effect on the "Report System
Error" function of other devices in the S7 station.
This is only possible if you execute the function "Save and compile" in HW Config after
enabling the "Topology display" option. Due to the "Report system errors" function that is
enabled automatically, "Save and compile" then requires more time.
Note the language settings for display. You can configure the language settings in the
SIMATIC Manager (menu command "Options > Language for display devices"). During
compilation, you receive an error message if the language currently being used in STEP 7 is
not included in the languages installed on the project for the display devices.
Note
Online view – security enabled
The online view of the security configuration of the CP in STEP 7 displays the dynamically
updated firewall rules.
Note
A list transferred using HTTP is deleted if there is a loss of power on the CP (power OFF).
● Character coding
The character coding must comply with the following standard: ISO/IEC 8859 (ANSI X
3.4-1968)
● Access attribute
192.168.1.45 a
192.168.1.46 a r
– Comments:
# this is a comment
Host: 192.168.1.11\r\n
\r\n
192.168.1.55 a r m\r\n
The last line contains the actual entry for the IP-ACL according to the syntax and meaning of
the access attributes described above.
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. In STEP 7 and on the S7 Ethernet CP modules
themselves, the ring ports are indicated by an "R" after the port number.
Note
Before physically closing the ring, download the configuration of your STEP 7 project to the
individual devices.
3.5.2 MRP
The "MRP" method conforms to the Media Redundancy Protocol (MRP) specified in the
following standard:
IEC 62439-2 Edition 1.0 (2010-02) Industrial communication networks - High availability
automation networks Part 2: Media Redundancy Protocol (MRP)
The reconfiguration time after an interruption of the ring is a maximum of 0.2 seconds.
Requirements
Requirements for problem-free operation with the MRP media redundancy protocol are as
follows:
● MRP is supported in ring topologies with up to 50 devices. In topologies with X300 IE
switches, up to 100 nodes are supported.
Exceeding this number of devices can lead to a loss of data traffic.
● The ring in which you want to use MRP may only consist of devices that support this
function.
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.
● "MRP" must be activated on all devices in the ring (see section "MRP configuration
(Page 74)").
● The connection settings (transmission medium / duplex) must be set to full duplex and at
least 100 Mbps for all ring ports. Otherwise there may be a loss of data traffic.
– STEP 7: Set all the ports involved in the ring to "Automatic settings" in the "Options"
tab of the properties dialog.
– WBM: If you configure with Web Based Management, the ring ports are set
automatically to autonegotiation.
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:
● All the devices connected within the ring topology are members of the same redundancy
domain.
● One device in the ring is acting as redundancy manager.
● All other devices in the ring are redundancy clients.
Non MRP-compliant devices can be connected to the ring via a SCALANCE X switch or via
a PC with a CP 1616.
Prioritized startup
If you configure MRP in a ring, you cannot use the "prioritized startup" function in PROFINET
applications on the devices involved.
If you want to use the "prioritized startup" function, then disable MRP in the configuration.
In the STEP 7 configuration, set the role to "Not a node in the ring".
Configuration in STEP 7
To create the configuration in STEP 7, select the parameter group "Media redundancy" on
the PROFINET interface.
Set the following parameters for the MRP configuration of the device:
● Domain
● Role
● Ring port
● Diagnostic interrupts
These settings are described below.
Note
Prioritized startup
If you configure MRP in a ring, you cannot use the "prioritized startup" function in PROFINET
applications on the devices involved.
If you want to use the "prioritized startup" function, then disable MRP in the configuration.
In the STEP 7 configuration, set the role of the relevant device to "Not a node in the ring".
Domain
Leave the default entry "mrpdomain 1" from the factory settings in the "Domain" drop-down
list.
All devices configured in a ring with MRP must belong to the same redundancy domain. A
device cannot belong to more than one redundancy domain.
If you leave the setting for "Domain" as the factory set "mrpdomain-1", the defaults for "Role"
and "Ring ports" also remain active.
The MRP settings remain in effect following a restart of the device or following a power down
and hot restart.
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)".
The device that actually takes over the role of redundancy manager, is negotiated by
Siemens devices automatically.
● 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"):
– Assign precisely one device in the ring the role of "redundancy manager".
– For all other devices in the ring topology, select the role of "Client".
Note
To ensure problem-free operation when using a non-Siemens device as the
redundancy manager in the ring, make sure that you assign the fixed role of "Client" to
all other devices in the ring, before you close the ring. Otherwise, there may be
circulating data frames that will cause a failure in the network.
Note
Role after resetting to factory settings
Brand new Siemens devices and those reset to the factory settings have the MRP role
"Manager (Auto)" (CPs) or "Automatic Redundancy Detection" (SCALANCE X). If you are
operating a non-Siemens device as the redundancy manager in the ring, this may cause
loss of the data traffic.
NOTICE
Ring ports after resetting to factory settings
If you reset to the factory settings, the ring port settings are also reset.
• CPs adopt the "Manager (Auto)" MRP role.
• With switches, the redundancy method Automatic Redundancy Detection (ARD) is
activated.
If other ports were used previously as ring ports before resetting, with the appropriate
attachment, a previously correctly configured device can cause circulating frames and
therefore the failure of the data traffic.
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:
● Wiring or port error
Diagnostic interrupts are generated if the following errors occur at the ring ports:
– Connection abort on a ring port
– A neighbor of the ring port does not support MRP.
– A ring port is connected to a non-ring port.
– A ring port is connected to the ring port of another MRP domain.
● Interruption / return (redundancy manager only)
If the ring is interrupted and when the original configuration returns, diagnostic interrupts
are generated.
The occurrence of both interrupts within 0.2 seconds indicates an interruption in the ring.
Requirement
To be able to address the CP as described here, the CP must be available online; in other
words:
● The connection to the Ethernet LAN must be established; there must be no subnet
transition (router) in between.
● The Ethernet interface of your PG/PC must be available from within STEP 7.
Note
The options for assigning addresses as described here, are only possible with a module
that can be reached via a default MAC address; to allow this, the module must support
the PST function (Primary Setup Tool). For more information, refer to the relevant device
manual /1/ (Page 227).
With older CPs (CPs with a firmware version < V3) with an additional gigabit interface, the
PST tool can only be used on the PROFINET interface.
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. There, you will also find further information and alternative methods.
Follow the steps below to configure the IP address for a newly inserted CP:
1. Insert the required CP in the S7 station open in STEP 7.
2. Edit the MAC address and, if required, the IP parameters in the parameter group of the
Ethernet interface.
3. In the "Subnet" box, select the Ethernet subnet with which you want to connect the CP.
4. Save your project.
5. Using the appropriate STEP 7 function, start the network search function for accessible
modules.
With CPs that have multiple interfaces, only the PROFINET interface is displayed.
6. Select the CP with the matching MAC address from the available components.
The configured IP address is displayed.
7. Assign the CP the IP parameters adopted from the networking.
8. Then download the configuration data to the target system.
Result:
After downloading the configuration data, the CP can be accessed on Industrial Ethernet
using the IP address.
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. There, you will also find further information and alternative methods.
Note
With CPs that have two interfaces (gigabit interface), note the information in the manual
about the interface you can use to download the configuration data.
Connection type
You can download the configuration data to the S7 station in the following ways or using the
following connections:
● MPI connection
You can use this connection to download the configuration data or for the initial
assignment of a MAC/IP address (node initialization - for details on this, refer to the
manual /2/ in the section "Assigning addresses for the first time").
● Industrial Ethernet
Here, you use the PG mode of the Ethernet CP in the S7 station (see also the section
PG/OP communication via Industrial Ethernet (Page 21)).
Depending on the PG/PC interface of your engineering station, you can download the
configuration data via the TCP/IP interface or via the ISO interface of STEP 7 to the S7
station.
– If you download via the IP interface, the CP must first be supplied with an IP address;
see also the section Setting further CP properties (Page 42).
– If you download via the ISO interface, the default MAC address can be used. Please
note, however:
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;
only here are you requested to enter the current MAC address. The SIMATIC
Manager, in contrast, aborts the download if the target station is not accessible.
Procedure
To download the configuration data to the S7 station, follow the steps below:
1. Open the "Set PG/PC Interface" dialog box in the Windows Control Panel.
2. Set the PG/PC interface according to the CPs available on your PG and according to the
bus attachment (interface parameter assignment used).
You will find more detailed information in the integrated help.
3. Change the CPU to STOP mode (regardless of the type of connection - see above).
4. Select the "PLC > Download to Module" menu command
STEP 7 then guides you to the required result in dialog boxes. Note the extra information
in the "STEP 7 User Manual", section "Configuring and assigning parameters to modules"
in /6/;
Non-volatile storage of the configuration data (on CPs with data storage)
During the download, you can decide whether or not to download the entire configuration
data or only for selected modules. If you choose to download selectively, you will be
requested to start the download for each module. Select this procedure if you want the
configuration data to be stored in non-volatile storage on the Ethernet CP. To do this, select
the "Copy to ROM" button in the "Download" dialog for the CP.
Note
If you have assigned a new address to the Ethernet CP, you always need to download the
connection configuration again.
Note that you will need to make address adaptations even for the other stations or
"substitute objects".
Note
If the CP has been moved to a different slot by "dragging", the data of the connection
configuration is automatically updated. The data of the connection configuration nevertheless
needs to be downloaded again!
Program blocks
To handle communication via connections, the following program blocks of the type FC are
available:
● AG_SEND (FC 5) / AG_LSEND (FC 50) / AG_SSEND (FC 53)
The program block transfers the user data from the specified user data area for transfer
to the Ethernet CP.
● AG_RECV (FC 6) / AG_LRECV (FC 60) / AG_SRECV (FC 63)
The program block enters the received user data in the user data area specified in the
call.
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.
*)
- With older versions of AG_SEND / AG_RECV (up to V3.0), the data area is always restricted to a
maximum of 240 bytes.
- With the S7-400, the data area of AG_SEND / AG_RECV is always restricted to a maximum of 240
bytes.
**) S7-400 only
***) Only with the S7-400 with CPUs as of version V5.1 and the following CPs:
- CP 443-1 (as of 6GK7 443-1EX20.../ EX30)
- CP 443-1 Advanced (as of 6GK7 443-1GX20.../ GX30)
Note
Connection numbers (IDs) must be adopted in the programming from the
configuration.
To ensure correct parameter assignment for the block calls, STEP 7 provides the
option of adopting relevant parameters from the CP configuration automatically in the
LAD/STL/FBD editor. For more detailed information, refer to the online help in STEP
7.
● 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.
Note
The program blocks can also be called more than once in a cycle for a single
communication connection.
Note
Refer to the flow diagrams for the program blocks in /10/ (Page 230). These diagrams
show how you need to supply and handle the SEND/RECEIVE interface in the user
program for problem-free data exchange.
Consider the following information relating to the CPU cycle and the transfer time as
additional information.
Note
Note that if there are different processing speeds (sender faster than receiver), resource
bottlenecks can occur at the send and receive end.
If this is the case, the sender receives feedback from the program blocks (condition code
"No receive resources on the target station"). (Not with AG_SRECV)
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)
● Frame length
On TCP connections, there is no information in the protocol about the end of a message
or the start of a new message. This means that the receiving station needs to know how
many bytes belong to a message. The station transfers an ANY pointer with exactly this
length when AG_RECV / AG_LRECV is called.
Note: This does not apply to the AG_SRECV program block; AG-SRECV is always called
with the maximum length.
Example of an ANY pointer for receiving 100 bytes of data:
– P#DB100.DBX 0.0 Byte 100.
To receive data with a variable length, follow the steps below:
1. Include information in the frame before the actual user data indicating the length of the
user data.
2. First evaluate only the length information on the receiving station.
3. Fetch the corresponding amount of user data in a further receive job. To do this specify
an ANY pointer with a suitable length for fetching the actual user data.
Reason
To avoid an overload situation on the CPU you are using, note the following information
about the Ethernet CPs.
Check your application for the following recommendations, in particular if you replace a CP
with a new CP and encounter overload problems.
Known problems
● Very often, the program blocks for sending (AG_SEND / AG_LSEND / AG_SSEND) and
receiving (AG_RECV / AG_LRECV) are called cyclically in OB1. This leads to constant
communication between the CPU and CP. As a result, other types of communication
such as PG functions cannot be executed or only very slowly.
● HMI systems access data of the CPU too often using S7 functions. This slows down
communication in general and resource bottlenecks can occur if SEND/RECEIVE
program blocks are called cyclically by OB1.
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.
● Set a minimum cycle time that is higher than the average runtime of OB1. This frees
resources for communication on the CPU. This is, for example, a solution for existing
applications when communication already takes place cyclically in OB1.
● If necessary, reduce the time taken for communication processing on the CPU by
changing the parameter "Scan cycle load from communication" of the CPU.
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.
Note
All stations not in the current STEP 7 project must be configured with substitute objects
(for example as "SIMATIC S5" or "Other stations");
or
Use the "unspecified" partner type when you create the connection.
See also
/1/ (Page 227)
Unspecified connections
Connections to an as yet unknown device (for example a diagnostics unit) are configured as
"unspecified" connections. They can be specified later in the Properties dialog.
You can create an unspecified connection simply by selecting station "unspecified" for the
connection partner when you create the connection. The unspecified connection can be
used in various ways (explained below based on the example of an ISO-on-TCP connection;
ISO transport and TCP connections are analogous):
The free UDP connection is another variant. With this type of connection, the address of the
connection partner is left open during configuration. The communication nodes are identified
by address information in the communication job in the user program.
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. The connections can be routed in the Properties dialog of the connection.
Security enabled
To be able to establish the connection to unspecified nodes, you must first configure suitable
firewall rules in the advanced mode of SCT.
For specified connections, the firewall rules are created automatically.
Examples of and remedies for inconsistencies associated with typical configuration actions
Actions are explained below that can cause configured connections to lose their assignment
or be deleted.
Note
ID adaptation in the user program
Note that as opposed to the S7 connections, a CP-dependent ID is assigned to the
connections of the SEND/RECEIVE interface. Consequently the actions described below
may require customizing of the ID, which means that the interface must also be customized
in the user program.
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.
Table 5- 2 Actions for a CP interface that can cause changes in configured connections
Action Consequence for the connections What you must do to restore the connection
The CP (module) is moved to a The connections are retained. - no action required -
different location in the The connection IDs are automatically
hardware configuration (drag updated.
and drop)
Delete the CP (module) in the The connections remain intact in the After you have placed and networked a CP in
hardware configuration. connection table without assignment to the hardware configuration:
You receive the message: "CP a CP. In the "Overview" tab of the 1. Assign the CP to the connection in the
has n connections; the Properties dialog, the connections are properties dialog for the connection in the
assignment will be lost in the identified with "!". "Addresses" tab;
connection table".
or
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 >
without an assignment in the Connection partner function.
connection table. In the "Overview" tab
of the Properties dialog, the
connections are identified with "!".
Change the subnet assignment The connections that were assigned via Reassign the connections with the Edit >
of the CP. the CP remain without an assignment Connection partner function or in the properties
in the connection table. In the dialog of the relevant connection in the
"Overview" tab of the Properties dialog, "Addresses" tab.
the connections are identified with "!".
Note:
does not apply to connections if routers
are used.
Note
Unspecified connections are marked red
Unspecified connections are not necessarily inconsistent although they are marked in red in
the connection table.
Table 5- 3 Actions for a CP interface that can cause changes in configured connections
Action Consequence for the connections What you must do to restore the connection
Delete the CP (module in an The connections remain intact in the After you have placed and networked a CP in
S7 station). connection table without assignment to the hardware configuration:
a CP. 1. Assign the CP to the connection;
The assignment to the CPU / PC 2. Check the module start address LADDR
application remains. and customize if necessary in the user
program.
3. Customize the connection IDs in the user
program.
4. Reload the connection configuration into the
CP.
Delete device (station). All the connections to this device are Reconfigure the device and connections.
canceled in the project. Either reassign unspecified connections or
• Connections remain as unspecified delete them.
connections on the partner.
• Connections without a connection
partner are completely deleted.
Change the subnet assignment The connections that were assigned via Where necessary, reassign connections.
of the CP. the CP remain but may be inconsistent.
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)
● Remote addresses:
Remote MAC address and remote TSAP
Note
The TSAPs of an ISO transport connection must match up as follows:
Remote TSAP (on Ethernet CP) = local TSAP (in destination station);
Local TSAP (on Ethernet CP) = remote TSAP (in destination station);
Configuring addresses
STEP 7 displays proposed values for the relevant local and remote address information. If
necessary, you can set the TSAPs individually.
TSAP format
ISO transport connections have a TSAP length of 1 to 16 bytes. When you are entering
values, the current length is displayed automatically (visible display: 16 ASCII characters).
Local and remote TSAPs can be entered as hexadecimal values or as an ASCII string.
● If you enter the TSAP as an ASCII string, the characters are also displayed in
hexadecimal format.
● 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.
Note
Use at least 3 bytes to ensure unique addressing.
Default TSAPs
During configuration of the local and remote TSAPs, default values (modifiable) are
proposed (for example ISO-1 for the first connection between two partners). If new
connections are configured between the same partners, the default values are automatically
incremented (for example ISO-2 etc.). With a new connection to a new partner, the value
ISO-1 is used again.
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).
Window time The Window Time specifies the interval at which sign of life readonly
frames are sent. For SIMATIC NET CPs, the Window Time is
fixed at 1/3 of the Inactivity Time (2 - 60 s, DEFAULT 10 s). Sign
of life frames are sent to be able to check the connection with
frames during times when there is no data traffic.
Note
Window Time and Inactivity Time
Sign of life frames are replied to by the partner station with a frame. For this reason, they are
sent at the intervals of the Window Time. To avoid unwanted connection aborts, the Inactivity
Time should be at least three times as long as the Window Time.
Address parameters
A connection is specified by the local and remote connection endpoint.
● Local addresses:
Local IP address and local TSAP
(Transport Service Access Point)
● Remote addresses:
Remote IP address and remote TSAP
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:
Remote TSAP (in Ethernet CP) = local TSAP (in destination station);
Local TSAP (in Ethernet CP) = remote TSAP (in destination station);
Configuring addresses
STEP 7 displays proposed values for the relevant local and remote address information. If
necessary, you can set the TSAPs individually.
TSAP format
ISO-on-TCP connections have a TSAP length of 1 to 16 bytes. When you are entering
values, the current length is displayed automatically (visible display: 16 ASCII characters).
Local and remote TSAPs can be entered as hexadecimal values or as an ASCII string.
● If you enter the TSAP as an ASCII string, the characters are also displayed in
hexadecimal format.
● 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.
Note
Use at least 3 bytes to ensure unique addressing.
Default TSAPs
When configuring the local and remote TSAPs, there is a default value "TCP-1" for the first
connection between the two partners (can be changed). For a new connection between the
two partners, the default value "TCP-2" is proposed. With a new connection to a new
partner, the value TCP-1 is used again.
Depending on the required connection type, the remote address parameters are either
specified or left open during configuration.
● Specified TCP connection
You specified a destination station when you created the connection.
● Unspecified TCP connection
You entered "unspecified" for the connection partner when you created the connection.
Configuring addresses
STEP 7 displays proposed values for the relevant local and remote address information. If
necessary, you can set the ports individually.
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:
The following local port numbers are reserved. You should not use this in the connection
configuration.
Note
The term "connection" is also used here for UDP.
The reason:
During configuration (just as in TCP), the communications partners are assigned to each
other and therefore logically "connected". In actual fact, with UDP there is no explicit
connection establishment between communication partners.
Depending on the required connection type, the remote address parameters are either
specified or left open during configuration.
● Specified UDP connection
You specified a destination station when you created the connection.
Configuring broadcast or multicast provides you with a further option (see Section UDP
with broadcast and multicast (Page 107)).
● Unspecified UDP connection
You entered "unspecified" for the connection partner when you created the connection.
Configuring addresses
STEP 7 displays proposed values for the relevant local and remote address information. If
necessary, you can set the ports individually.
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:
The following local port numbers are reserved. Do not use this in the connection
configuration.
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. This has advantages particularly when using multicast. If, for
example, frames are sent to 100 partners, 100 acknowledgments (1 per partner) would
arrive at the same time at the sender.
When you select the connection partner, you have the following two extra options on UDP
connections:
● Connection to all broadcast nodes
If you select "broadcast / all broadcast nodes" as the partner, you specify that UDP
frames are sent to all reachable broadcast nodes.
Note
When using broadcast, you can only send with S7 CPs; reception is not possible (see
below)!
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.
To avoid these disadvantages, S7 CPs handle broadcast as follows:
● Following reception, the broadcast frames are filtered out with high priority by all Ethernet
CPs. This means that frames that cannot be interpreted are discarded immediately. Only
frames that can be interpreted, for example an ARP request, are forwarded via the LAN
controller and evaluated. This prevents a negative influence on the other connections by
broadcast frames.
● For the application, this means that the S7 CP cannot receive broadcast frames intended
for the transfer of user data. It is, however, possible for the module to send broadcast
frames within the network.
Note
The port used for multicast frames must be different from the port addresses of any UDP
connections that may have been configured.
If a configured UDP connection uses the same port address, the multicast frame of another
node that uses this port number may cause these connections to be terminated.
Note: Data is assigned to a configured connection based on the port number!
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 address
② Resulting multicast address
Program-controlled addressing
A free UDP connection allows program-controlled addressing of the communications partner.
Communication between two nodes on Industrial Ethernet has the following properties:
● Data transfer is bi-directional; in other words it is possible to send and receive on the
UDP connection at the same time.
● The local node is specified in the configuration. The remote node is entered in the job
header of the job buffer by the user program when it calls AG_SEND. This allows any
node on Ethernet/LAN/WAN to be reached.
● The IP address and the port of the sender can be read from the job header of AG_RECV.
For information on the structure of the job header, refer to "Program blocks for the
SEND/RECEIVE interface" in /10/ (Page 230).
FETCH/WRITE
The FETCH/WRITE services allow direct access to the system memory areas on the
SIMATIC S7 CPU from SIMATIC S5, SIMATIC PC stations, or from third-party devices:
● FETCH: Read data directly
● Write: Write data directly
Connection types
The FETCH/WRITE services can be configured and used in SIMATIC S7 on the following
connection types:
● ISO transport connections
● ISO-on-TCP connections
● TCP connections
Project engineering
The mode is configured in the "Options" tab of the properties dialog of the connection.
Depending on the station type, the following modes can be configured for the connection
endpoint of a station:
● SIMATIC S7 station:
– SEND / RECV
– SSEND / SRECV
– FETCH PASSIVE / WRITE PASSIVE
If you select the FETCH PASSIVE or WRITE PASSIVE mode for the ISO transport
connection, you can access the system areas on a SIMATIC S7 PLC from a SIMATIC S5
station or other third-party station (unspecified connection).
The connection can be used only for this mode. Sending or receiving using the FCs
AG_SEND/AG_LSEND/AG_SSEND or AG_RECV/AG_LRECV/AG_SRECV is then no
longer possible.
The connection is established passively; in other words, only the partner station
(SIMATIC S5 station, a PC station, or a non-SIMATIC station) can establish the
connection. The setting is made automatically in the "General" tab and cannot be
changed.
Note
With the S7-300 series, remember that this configuration uses one connection resource
(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).
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)
● Bit memory (M)
● Process input image (I)
● Process output image (Q)
● I/O area inputs (PIW, PID, PIB)
● I/O area outputs (PQW, PQD, PQB)
● Counters (C)
● Timers (T)
Coding Meaning
01H Hardware error
03H Object access is not permitted.
05H Invalid address (syntax ID, area, type, bit number)
06H Data type not supported.
07H Data type is not consistent.
0AH The object does not exist or the end of the area has been exceeded.
FFH Internal protocol error
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.
● Topology editor
The Topology editor supports the graphic interconnection of the devices involved in IRT
communication. On this basis, STEP 7 calculates the optimized flow of IRT
communication.
You can use these functions HW Config by selecting the menu command Edit > PROFINET
IO... > ...
Follow the procedure as described in the STEP 7 basic help in the section "Configuring IRT
Communication".
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:
● You can configure the CP as IRT controller and RT device or as IRT device and RT
controller at the same time.
● It is not possible to operate the CP as IRT controller and IRT device at the same time.
6.2.1 Programming
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).
FB52 supports both functions "write data record" and "Read data record". It can, however,
only be used for data transfer in one direction at any one time, either for "read data record"
or "write data record".
Note
Call sequence for PNIO_Alarm
If PNIO_Alarm has been called (at least) once in the user program, it must continue to be
called to acknowledge pending alarms. Alarms are pending when PNIO_RECV signals a
value not equal to "0" in the ADD_INFO parameter.
If PNIO_Alarm is no longer called after it has been called once or more in the user program,
alarms are not acknowledged. There is then no guarantee that the IO image will be updated
correctly. The can occur, for example, following a station return alarm.
The need for continued calling of PNIO_Alarm remains until the next restart on the module.
Note
Note the following points:
• CP slot in PROFINET IO mode
PROFINET IO operation is possible only with one CP located in the central rack.
• CPU "startup" configuration when using the IE/PB Link PN IO
If you use the IE/PB Link PN IO as a PROFINET IO device, select the option:
"Startup when expected/actual config. differ" for the CPU in the "Startup" parameter
group.
Otherwise your system will not start up automatically after power up or following a power
outage.
6.3.2 Programming
No special program blocks are required for the basic functions of the PROFINET IO mode.
For acyclic communication with the PROFINET IO devices using data records and for
special additional functions, the following program blocks are available on the CPU:
Meaning
RDREC (SFB 52) Read data record
WRREC (SFB 53) Write data record
RALRM (SFB 54) Receive alarm
RD_DPAR (SFB 81) Read predefined parameters
GEO_LOG (SFC 70) Identify the start address of a module
LOG_GEO (SFC 71) Identify the slot belonging to a logical address
For a detailed description of these program blocks, refer to the "System Software for S7-
300/400 System and Standard Functions" manual /13/ (Page 231).
Assignment of an initial value with consistent PROFINET IO user data > 32 bytes
If you have consistent PROFINET IO user data areas > 32 bytes, the system does not
assign initial values. You should therefore set the initial value for all PROFINET IO user data
areas > 32 bytes using the corresponding error OBs.
Note
Note the effects when PROFINET IO communication (RT frames) are used at the same time
as broadcast (BC) or multicast (MC) in an Industrial Ethernet subnet. In this case, RT frames
may be delayed by long BC frames or MC frames.
These frames can, for example, be generated by the program blocks AG_SEND or
AG_RECV.
With certain constellations, this can lead to a PROFINET RT communication abort. The
factors that influence this are the switch configurations ("switch depth"), the update time and
the 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)
Note
Transfer of the entire IO data area
In the CPU of the I-Device, the IO data area for input data and output data is always
transferred as a complete area into or out of the data areas (DB, bit memory) including any
gaps.
"Explicit" coupling of the PROFINET IO device in the PROFINET IO system and in the station
IO device coupling means the fixed assignment of an IO device configured with STEP 7 in a
PROFINET IO system to a module that is configured in an S7 station or in a PC station
(hardware-oriented assignment).
The consistency between the device names and IP addresses in the IO device and the
module in the station can be established by STEP 7 based on the "explicit" coupling and can
be checked during the consistency check.
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.
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.
If you make synchronization settings in the properties dialog of the CP, these are the settings
for its role as IO controller.
PROFINET IO controller
PROFINET IO controllers can be the following:
● Stations of the type SIMATIC 300 and SIMATIC 400
– CPU with integrated PROFINET IO controller (for example CPU 317-2 PN/DP)
– CPU with external PROFINET IO controller (for example CP 343-1).
● SIMATIC PC station
– For example with CP 1616
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.
Note
With the Advanced CP, you will need to select different versions depending on the
intended mode (RT or IRT communication).
Note
By selecting suitable network components and setting the network properties, make sure
that the PROFINET line can be operated at 100 Mbps full duplex without any gaps in
PROFINET IO mode.
Further information
The procedure is described in detail in the information system of STEP 7 Professional.
7.4 Programming
With the programming, you specify the sequence of the user program for the CPU and
therefore access to the IO data.
To write and read process data use program blocks PNIO_SEND (FC11) or PNIO_RECV
(FC12) in the user program.
How you use existing functions in your user program for I-device mode is described in the
following sections of this chapter.
Data consistency
The length information in the program block call must be identical to the total length of the
input or output data configured for this PROFINET IO device.
The entire input or output data area of the PROFINET IO controller is transferred completely
and therefore consistently between the CP and CPU.
Note
Data consistency only within the individual IO slots
You should, however, bear in mind that in terms of the "IO user data" within a PROFINET IO
system, data consistency can only be guaranteed within the individual IO slots. It does not
matter whether or not consistent data transfer between CPU and CP is guaranteed for the
program blocks described here.
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:
● Length of the input data (with a PNIO_SEND (FC11) call)
● Length of the output data (with a PNIO_RECV (FC12) call)
When the connection between the PROFINET IO controller and the PROFINET IO devices
of a PROFINET IO line is established, the total length of the input and output data is
checked. For each PROFINET IO device, the PROFINET IO controller checks the configured
total length of the input and output data. The total length is compared with the LEN
parameter of the PNIO_SEND and PNIO_RECV program blocks in the user program of the I-
device.
If there is a discrepancy in the length information for the input/output data, the relevant
program block is ended with an error.
During this initialization phase, the two program blocks must be called until PNIO_SEND sets
the DONE parameter to 1 and PNIO_RECV sets the NDR parameter to 1.
Note
Note that successful configuration by the PROFINET IO controller is possible only after local
initialization by the program block calls PNIO_SEND (FC11) for the input data and
PNIO_RECV (FC12) for the output data.
Note
During the initialization, the data of PNIO_SEND (FC11) is not evaluated and the data of
PNIO_RECV (FC12) is set to default values.
The PNIO_SEND and PNIO_RECV program blocks only transfer valid data with the
subsequent calls.
Watchdog
PNIO_SEND and PNIO_RECV each have their own watchdog. Depending on the average
CPU cycle time, the connection to the PROFINET IO controller is terminated if one of the two
program blocks is no longer called following the initialization phase.
① 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
Transferred with program block PNIO_RECV (FC11)
Figure 7-3 Configuration of an I-device - here based on the example of a CP 343-1 Lean
AWL Explanation
call fc 11 //PNIO_SEND block call
//(transfer inputs to the IO controller)
CPLADDR:= W#16#0100 //Module address from hardware configuration
CPLADDR:= W#16#0100 //IO controller mode (0) or IO device mode (1)
LEN := 20 //No. of log. I addresses to transf. in bytes
IOCS := P#DB10.DBX20.0 BYTE 3 //One status bit in DB10 per send data byte
DONE := M 70.0 //Address for return parameter DONE
ERROR := M 70.1 //Address for return parameter ERROR
STATUS := MW 72 //Address for return parameter STATUS
CHECK_IOCS := M 70.2 //Address for return parameter CHECK_IOCS
SEND := P#DB10.DBX0.0 BYTE 20 //Data area from DB10 to be transferred
//(20 bytes)
AWL Explanation
call fc 12 //PNIO_RECV block call
//(read outputs from IO controller)
CPLADDR:= W#16#0100 //Module address from hardware configuration
MODE: = 0 //IO device mode not both modes at same time
LEN := 7 //No. of log. Q addresses to transf. in bytes
IOPS := P#DB11.DBX7.0 BYTE 1 //One status bit in DB11 per receive data byte
NDR := M 74.0 //Address for return parameter NDR
ERROR := M 74.1 //Address for return parameter ERROR
STATUS := MW76 //Address for return parameter STATUS
CHECK_IOPS := M74.2 //Address for return parameter CHECK_IOPS
RECV := P#DB11.DBX0.0 BYTE 7 //Received data in DB11 (7 bytes)
ADD_INFO:= MW 26 //Diagnostic information
As usual with electronic mail, a message can be sent alone or with attachments. The form
you choose depends on the amount of data and the properties of the email recipient you are
using. It is sometimes necessary to send emails with attachments, for example to transfer
binarycoded information from the controller for evaluation.
Features of the CP
● The Advanced CP operates as an email client. It supports the SMTP service (Simple Mail
Transfer Protocol).
● As of device type CP 343-1 Advanced (GX30/GX31) and CP 443-1 Advanced
(GX20/GX30), ESMTP with authentication is supported.
● E-mails can be sent from the automation system, but they cannot be received.
To send an e-mail in the user program of the S7-CPU, use the send call of the
SEND/RECEIVE interface (program blocks AG_SEND / AG_LSEND).
● Mechanisms are available for sending test mails; refer to section Testing the email
function (Page 143)
Authentication
Advanced CPs that use ESMTP with authentication support the following authentication
methods:
● PLAIN
● LOGIN
● CRAM−MD5
● DIGEST−MD5
In terms of authentication for communication between the CP and mail server, the following
situations are possible:
● CP and mail server use authentication - with the same method
Once the CP has established a connection to the mail server, the mail server sends a list
of the authentication methods it supports. The CP searches through the received list for
the supported authentication method. The authentication methods are searched for in the
order shown above. The first method found in the list is then used. The CP informs the
mail server of this.
You enter the data required for authentication (user name and password) in the e-mail
data block (see section Sending an e-mail (Page 141)). The user name and password
correspond to the login data at the mail service provider.
If you do not specify a user name and password in the DB, there will be no
authentication.
● CP and mail server use authentication - with different methods
If the CP does not find a suitable authentication method, it aborts the transmission and
generates a diagnostics message (see section Diagnostics messages from e-mail
connections with authentication (Page 215)).
Procedure
Follow the basic steps below to send e-mails:
By configuring an email connection you allow establishment of a connection between the S7 CPU
and the Advanced CP for sending emails.
You can check the availability of the email The information to be sent by email including
function at any time by initiating a test mail on the address information is stored in a data
the Advanced CP. block (DB). The information is sent via the
user program using an FC
See section Testing the email function
AG_SEND/AG_LSEND.
(Page 143)
See section Sending an e-mail (Page 141)
(Use FC AG_SEND /AG_LSEND)
↓
↓
Receive e-mail on receiving device.
Note
Opening ports
Make sure that the relevant ports of the communication partner of the CP are opened.
Configuration overview
One email connection per CP must always be set up to send emails. This email connection
specifies the mail server that delivers all emails sent by the CP.
An email connection can be set up as follows:
● Connection configuration in STEP 7 (standard application)
This application is described below.
● User program with IP_CONFIG program block and configuration data block
This situation is described in detail in /10/ (Page 230).
Note
The PC interface must support the SMTP protocol
The e-mail connection via the OPC server is only created consistently when an interface with
SMTP protocol support is enabled on the PC station. Read the documentation of the module
your using.
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.
Use the specified ID to call AG_SEND/AG_LSEND in the connection configuration.
Data block
The entire email, meaning the address information and the message itself, will be set up in
any data block. The example in STL notation below shows the appropriate information for
the required DB structure.
STL Explanation
call fc 50 //AG_LSEND block call
ACT := M 10.0 //Bit for job trigger
ID := MW 12 //Connection ID (connection configuration)
LADDR := W#16#0100 //Module address 256Dec. in hardware
configuration
SEND := P#db99.dbx10.0 byte 278, //Address of the data block; DB length
LEN := MW 14 //Length of the data range to be sent
DONE := M 10.6 //Address for return parameter DONE
ERROR := M 10.7 //Address for return parameter ERROR
STATUS := MW 16 //Address for return parameter STATUS
Note
FTPS / FTPES
Where the term "FTPS" is used in this documentation, FTPS in the explicit mode is meant
(FTPES).
For a detailed description of the program blocks that you require for file transfer from your S7
station, refer to /10/ (Page 230).
Note
Opening ports
In FTP server mode, make sure that the relevant ports of the CP and the communication
partner of the CP are opened. For more details on this topic and on configured access rights
and security aspects, refer to section Security when accessing process data (Page 162).
Note
Files only in binary format
When using FTP, always transfer the files in binary format.
Range of functions
The FTP functions of the Advanced CP support both FTP client and FTP server functionality
on the S7 station.
S7 station with Advanced CP in the FTP client role for CPU data
The user program on the CPU can access the Advanced CP as an FTP client for the transfer
of data blocks from or to an FTP server.
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.
With FTP, you have standardized access to the files managed on the Advanced CP.
Note
User name "everybody"
Remember that using the "everybody" user name, access is possible without a password. As
default, the "everybody" user name, however, does not have any access rights.
Enable security
When you enable security on the CP, the "Authorized to access files on the S7 station with
FTP" access right is transformed to the corresponding multilevel settings of the CP. If
security is enabled, the CP supports individually selectable write / read permissions relating
to files on the CPU and CP.
Note
Upper and lower case in file names
Note that with several CP types, the file names in the file system described here are
case-sensitive.
With the Advanced CPs as of CP 343-1 Advanced (GX30) and CP 443-1 Advanced
(GX20), file names can be made case-sensitive in the "Options" tab in the configuration
dialog. In the default setting, they are not case-sensitive.
● MS DOS prompt
In the MS DOS prompt of Windows, you can establish an FTP connection and then execute
all the FTP commands supported by the Advanced CP.
The following example shows how you can find out which FTP commands are available
using the 'remote' command.
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.
See also
Security when accessing process data (Page 162)
9.3.1 Procedure
The functionality described here allows you to transfer data in the form of files to data blocks
or from data blocks of an S7 station using FTP commands. At the same time, the
conventional FTP commands for reading, writing and managing files can also be used.
To transfer data with FTP, create data blocks on the CPU of your S7 station; due to their
special structure, these are known here as file DBs.
When it receives an FTP command, the Advanced CP acting as FTP server queries a file
allocation table (file_db.txt) to find out how the data blocks used for file transfer in the S7
station will be mapped to files.
With the information in the file allocation table, it is possible to address data blocks in one or
more CPUs (up to 4) in an S7 station.
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).
Example of access
The following figure shows an example of a typical access sequence in the MS-DOS
window.
Note
You cannot use the FTP commands "rename", "append", "rnfr" and "rnto" with the file DBs.
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
WRITEACCESS bit = 1
3. Writes the file content to the user data area of the file DB on the CPU. At the beginning of
the write function, the LOCKED bit is set and reset when writing is completed.
4. When the write function is completed, the NEW bit is also set in the file DB header and
the current date entered in the DATE_TIME field.
5. The FTP server sends a message about the file transfer event to the FTP client.
Note
If you specify a file for the transfer that is not included in the file allocation table, the
requested file system operation is executed on the current folder.
Meaning
In the FTP server role, the Advanced CP requires information on how the data blocks used
in the S7 station for file transfer are mapped to files. You store this file assignment table in
the file_db.txt file in the file system of the Advanced CP.
Structure
The file allocation table has two areas in which the allocations are stored row-oriented
according to the scheme shown in the following example:
● Rack/slot assignment of the CPU
● DB assignment
Note
Notation
• Note the use of lower-case letters. Otherwise the files will not be recognized.
• Use a text editor that does not create invisible control characters or save the data in
the TXT mode so that no invisible control characters are stored.
Example
In the example shown here, the FTP command C:> PUT s7daten.txt cpu1db35 is used to
transfer the s7daten.txt file to DB35 (file DB) that must be located on CPU1.
If the syntax is incorrect, a message similar to the one shown below will be displayed:
"450 Requested action aborted - configuration file error in line 16"
If an error was reported, check your system configuration and repeat the transfer. You can
check your configuration with the following command:
ftp> dir cpux (where x = 1-4)
Note
Note the use of lower-case letters. Otherwise the files will not be recognized.
Example
With the configured CPU directories, the file name is displayed. This can include the number
of the corresponding file DB.
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.
Note
It is possible to change from one folder to another on the CPU. However, only the
commands listed table Table 9-1 FTP commands (Page 152) can be executed.
See also
FTP commands on the FTP client (Page 151)
9.4.1 Procedure
To transfer data with FTP, create data blocks (file DBs) on the CPU of your S7 station.
The user program sends FTP jobs that are executed by the Advanced CP as an FTP client.
In the user program, use the program block FTP_CMD (FB40); see also section Program
blocks for FTP services (Page 160).
The data is transferred on FTP connections. FTP connections are special TCP connections
that you configure in STEP 7.
In the job, among other things, you specify the IP address of the FTP server, the storage
location of the file on the FTP server and the file name along with access information.
The following schematics illustrate how the function works when using FC40...44 or FB40.
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).
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. This connection is
known as an FTP connection.
You can set up an FTP connection as follows:
● During connection configuration in STEP 7 (standard application)
This situation is described below.
● In the user program with FB CP_CONFIG and the configuration data block.
There are situations in which it is an advantage to set up the communication connections
not over the configuration interface of STEP 7 but rather program-controlled by specific
applications.
This use case is described in detail in Chapter 8 and in /5/.
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).
Note
CP file system - using security functions
Protect the CP from write access by unauthorized persons and the associated security
risks. We strongly advise that you make the relevant FTP functions available only to
authorized persons in the user administration. Information should be transferred using
FTPS/HTTPS.
Concept
With the S7 beans, the Advanced CP provides you with the means to implement an HTML
process control using individually created HTML pages.
Operating a firewall
The operation of an internal company network (Intranet) is normally protected against
external, uncontrolled access by a firewall. Operation with a firewall is possible if the IP
addresses set in the HTML pages can pass through the filter mechanism of the firewall.
Security enabled
With security enabled, the user administration allows further assignment of roles and rights.
There are system-defined roles that cannot be modified or you can create new user-defined
roles and assign rights to them.
Users that have already been set up are migrated to the expanded user administration when
the security function is enabled. In a migration dialog, you control how the existing entries
are adopted; you will find details in /16/ (Page 232)
Project engineering
In the STEP 7 configuration of the CP you can set scaled access rights for individual users
according to functions in the user administration (see section "User management" parameter
group (Page 57)).
When data on the CP is accessed, there is then a password query.
Note
Renewed logon following CP STOP/START
After changing the mode to STOP/START, it is necessary to log on again on the Web server.
Note
JDK 1.2.x, 1.3.x and 1.4.x are also supported. To use applets created specially for these
JDK versions with the Microsoft Internet Explorer, you do, however require a plug-in.
Other Web browsers may only meet these requirements with certain restrictions. With these
Web browsers, you also require a plugin component corresponding to the Java reference
implementation of a SUN Java Virtual Machine.
Special settings need to be made in the Web browser when the S7 beans are used. Refer to
the documentation of the S7 beans /22/ (Page 234) for more information on the requirements
listed above.
When shipped, the Advanced CP does not have an HTML page "index.htm". As a substitute,
you then reach the Web diagnostics of the CP with this URL.
When you access the Advanced CP using a Web browser, use the HTTP or HTTPS protocol
to address the Web server on the Advanced CP:
You inform the CP of the IP address during configuration with STEP 7 (see Section Setting
further CP properties (Page 42)). If you have an attachment from Industrial Ethernet to your
intranet or to the Internet, the CP can be contacted using the IP address in the intranet or
Internet.
A detailed description of the structure of the IP address and the options of creating subnets
or subnet masks is beyond the scope of this manual. You will find information on this in the
online help of STEP 7 and in the references in the appendix.
Note
Depending on the CP type
The diagnostics pages or parameters described below are not all available for every CP
type.
Depending on the CP type, you will find, for example, information on the device as
PROFINET IO controller or PROFINET IO device in the navigation panel under "PROFINET
IO". If the CP supports various PROFINET IO modes, this depends on the specific
configuration of the device.
Note
Module replacement - display of the Web pages
When replacing modules, they can be replaced by newer modules without adapting the
configuration data to the new module type.
In such situations, the newly used CP shows the Web pages that match the range of
functions of the replaced module in Web diagnostics.
The CP 443-1 Advanced (GX20), for example, does not support the firmware download
functionality via Web diagnostics. If you replace this CP with a CP 443-1 Advanced (GX30),
the update center will not be displayed although the new module type would support this
function. The full range of functions in Web diagnostics is only available after updating the
configuration data to the new CP type.
11.1 Requirements
Web browser
To access the HTML pages on the CP, you require a Web browser. The following Web
browsers are suitable for communication with the CP (other browsers also possible):
● Internet Explorer (recommended version: as of 8.0)
● Opera (recommended version: as of 9.2)
● Firefox (recommended version: 4.0 or higher
Note
Station or device names configured in STEP 7 with special characters (for example umlauts
ä, ü etc.) may not be correctly interpreted in Web diagnostics.
● 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. You import using the specific import functions of the
relevant Web browser.
● Access rights
When accessed, the CP requires a user name and password to be entered. The specified
user must be assigned relevant Web access rights in user administration.
See also
Scaled password protection with security (Page 164)
Security when accessing process data (Page 162)
① 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
Select the display language you require from the "Language" dropdown list at the top right. The following
languages are available:
– English
– German
– Français
– Español
– Italiano
• Automatic update
The icon is used to cyclically update Web diagnostics. If you click on the icon, the contents of the pages are
updated at the configured intervals (default every 30 seconds).
• Setting the print view
With the printer icon, you enable a print view of the content area.
③ 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" button are displayed.
④ Content area
Contains information, parameters and buttons for the function selected in the navigation area. With certain
functions or parameters, extra information is displayed in the lower section of the content area.
When necessary, further function groups can be selected using the individual tabs.
Note
The language file and language setting for Web diagnostics are independent of each other
The language file used for the diagnostics buffer texts is used regardless of the language
setting for Web diagnostics. The loaded language file is therefore valid for all selected
language settings.
Downloading the language file in the update center (Page 194)
Note
Displayed diagnostics pages and parameters - how this depends on the CP type
The diagnostics pages or parameters described below are not all available for every CP
type.
Depending on the CP type, you will find, for example, information on the device as
PROFINET IO controller and/or PROFINET IO device in the navigation panel under
"PROFINET IO". If the CP supports various PROFINET IO modes, this depends on the
specific configuration of the device.
Parameters Function
General
Station name Configured name of the station in which the CP is installed.
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)
• Stopping
• STOP
• Stopped with error
Module access protection
Protection level Name of the protection level configured in STEP 7
Cause Specifies the measure taken to set the protection level.
Meaning Description of the effects for the selected protection level.
Parameters Function
Customize
File system Displays the setting of "Match case (case sensitive)"
Flash file system ( / ) <--- directly selectable link to the flash file system
Total capacity Total capacity of the non-volatile flash memory area
Usable capacity Usable capacity of the non-volatile flash memory area
Free memory Free space in the flash file system
Number of Inodes Maximum number of storable files
Free Inodes Number of locations still free for files
Defective blocks of data Number of defective (unusable) blocks of data
Volatile RAM file system ( /ram <--- directly selectable link to the RAM file system)
Total capacity Total capacity of the volatile RAM memory area
Usable capacity Usable capacity of the volatile RAM memory area
Free memory Free space in the RAM file system
Number of Inodes Maximum number of storable files
Free Inodes Number of locations still free for files
In contrast to the flash area, the RAM can be written to and read from any number of times.
The data in the RAM is retained as long as the CP is supplied with power.
The RAM is intended to store data that changes during operation and needs to be recorded
(data recording services). The RAM is also suitable for temporary storage.
11.3.2 Identification
Here, you can see a variety of information on the CP for identification and maintenance.
Parameter Function
Identification
Plant designation 1) Plant designation of the CP if this was configured.
Location identifier 1) Location identifier of the CP if this was configured.
Serial number Serial number of the CP
Order number Order number of the CP
Version
Hardware Hardware version of the module
Firmware Version of the firmware currently running
Bootstrap Version of the bootloader currently being used
Module certificate
Version The information allows the module to be identified if service is required.
Copyright entry
Issuer
Date created
Re
Public key
Vendor certificate MD5
1) For more detailed information, see section "General" parameter group (Page 44).
Parameter Function
Events
Number Consecutive number of the entry
Time of day Time at which the event occurred.
Note
The time-of-day is obtained by the module according to the configured mechanisms for time-of-
day synchronization.
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. When the CP ships, the
possible) English language file is loaded as default.
The "Language switchover not possible" information indicates that the language file used for the
diagnostics buffer texts is not dependent on the language setting for Web diagnostics.
For information on downloading the language file, refer to the section Update center (Page 194).
For Advanced CPs, the downloading of the language file using FTP is also described.
Note: If text entries are missing for some events, reloading a language file may remedy the
situation.
Details with "number" The number identifies the entry in the list.
(information in an Depending on the module type, additional information about the diagnostics event can appear
additional tab at the here.
end of the table)
Note that there may be additional information on the entries. You can reach these additional help
texts via the display of the diagnostics buffer in STEP 7 special diagnostics.
Event ID
Event ID Event ID of the diagnostics buffer entry
Note
Module type
Depending on the module type used for Web diagnostics, the number and arrangement of
the parameters may differ from the following description. The meaning of the parameters is
unaffected.
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.
Name Name of the station rack or subsystem specified in the
configuration.
By clicking on the name, you go to the corresponding Web
page with the details of the configuration.
Comment Description of the station rack or subsystem entered in the
(display only when the topology display is enabled) configuration.
Note
Display topology enabled / disabled
The configurable "Topology display" option influences the displays described below.
• "Display topology" option enabled
The display is as described below with the additional "Status" and "Identification" tabs.
• "Display topology" option disabled
Web diagnostics has less information than when the topology display is enabled. The
display is adapted accordingly.
Parameters Function
Rack configuration (rack name, rack number)
Slot Slot of the individual modules in the rack
Status Status display of the relevant module:
• Green (OK, module in operation)
• Red (a problem has occurred)
• Yellow (module changed to STOP)
The "Status" tab contains further information.
Module name / name Name of the module specified in the configuration
Order number Order number of the module
I address Configured start address of the module for inputs
Q address Configured start address of the module for outputs
Topology
The two web pages, "Topology" and "Module information", are linked. A click on "Topology"
of the selected module automatically takes you to this module in the graphic view of the
target topology on the "Topology" Web page. The module appears in the visible area of the
"Topology" web page and the device head of the selected module flashes for a few seconds.
"Status" tab
Shows the status and the LED status of the module
"Identification" Tab
This tab only displays the following module parameters configured offline, no online data of
modules:
● Vendor
● Firmware version
● Device class
● Plant designation
● Location identifier
● Installation date
● Description
PROFINET IO systems
If the connected device is part of a PROFINET IO system, the mode (device/controller),
PROFINET device name, IP address and status information of the device is displayed.
With an IO controller, the connected IO devices are displayed.
With an IO device, the submodules with their status and the IO controller with its status are
displayed.
Note
Shared device
In the case of a shared device, both IO controllers are displayed.
In the table of the submodules, the "IO controller" column shows the IO controller to which
the submodule is assigned.
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.
Select the required interface from the drop-down list. The setting applies to the "Parameters"
and "Statistics" tabs of the "Industrial Ethernet" entry in the navigation panel.
"Parameter" tab
This page shows you the various parameters of the MAC address, the IP address and the
LAN attachments.
Parameters Function
Network attachment
MAC address Active MAC address of the CP
(active)
MAC address (set in MAC address set in the factory
the factory)
Device name PROFINET device name configured in STEP 7 (X1 or X2 interface)
IP parameters
IP address IP address of the CP (or of the interface)
Subnet mask Configured subnet mask
Default router IP address of a configured router
Router used IP address of the router used
IP settings How the IP address is assigned (for example, STEP 7, DHCP ...)
Physical properties
Port number Port number of the LAN interface
Link status Status of the LAN port:
• OK
• no link
• disabled
Setting Display of the individual network settings configured in STEP 7:
• Configured
• automatic (automatic setting / autonegotiation)
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
• 1 Gbps full duplex
• Mode when using media redundancy (for details, refer to "media redundancy" navigation)
Media redundancy Display of the role and with the manager, the ring status:
• Manager: Ring closed
• Manager: Ring open
• Client
"Statistics" tab
This page provides information about the number of sent or received frames since the
module was last restarted.
On CPs with integrated switches, the frames sent or received by the CP are displayed under
"Interface". In addition to this, the frames that only pass through the switch are displayed
under "Port number...".
Parameters Function
Data packets sent
CP interface: X2 Total number of frames sent error-free via all ports of the CP. These also include
unicast, multicast and broadcast frames and frames aborted due to collisions.
Port number: X2P1...X2Pn Number of frames sent error-free via the port. These also include unicast, multicast and
broadcast frames and frames aborted due to collisions.
In addition to the CP interface, the frames generated directly by the port or forwarded
due to the switch function are also recorded.
Received data packets
CP interface: X2 Total number of frames received error-free via all ports. These also include:
• Unicast, multicast and broadcast frames
• Frames denied due to checksum or alignment errors
• Frames denied due to lack of resources
Port number: X2P1...X2Pn Number of frames received error-free via the port. These also include:
• Unicast, multicast and broadcast frames
• Frames denied due to checksum or alignment errors
• Frames denied due to lack of resources
In addition to the CP interface, the frames that were forwarded by the port due to the
switch function are also recorded.
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
Partner port Number of the port on the partner used for the TCP connection
Status Connection status of the TCP connection, for example:
• LISTEN (waiting for connection)
• ESTABLISHED (existing connection)
• TIME WAIT (wait state prior to connection termination) and
• other interim statuses such as SYN SENT, SYN RECV, CLOSING etc.)
Parameters Function
Number Consecutive number of the UDP connection
Local IP address IP address of the CP
Local port Number of the port used for the UDP connection
Partner IP address Cannot be obtained with UDP. Therefore displayed with "*"
Partner port Cannot be obtained with UDP. Therefore displayed with "*"
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.
User If you configured your e-mail server with authentication, enter the user name
here.
Password If you configured your e-mail server with authentication, enter the password
here.
Note
Security enabled - required user rights
Sending a test e-mail requires the following user rights:
• Web: Send test mail
• Web: Access Web diagnostics and CP file system
See also
S7 communication (Page 183)
11.3.7 S7 communication
The "S7 communication" entry in the navigation panel shows connection tables with address
and status information in protocol-specific tabs.
From the drop-down list above the connection table, select the types of connection to be
displayed:
● configured connections
● system connections
On the lower part of the page, information is displayed about the interfaces and statistical
information about the connections.
Parameters Meaning
Gigabit Ethernet
S7 subnet name Configured name of the subnet on the gigabit interface.
S7 subnet ID Shows the subnet identification made up of the project
number and subnet number.
Standard Ethernet
S7 subnet name Configured name of the subnet on the PROFINET interface.
S7 subnet ID Shows the subnet identification made up of the project
number and subnet number.
Statistics of the S7 connections
Maximum connections used Highest number of simultaneously established S7
connections up to now.
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
Error due to lack of resources the counter was reset.
Note: The counter can be reset with STEP 7 special
diagnostics.
Parameters Function
Role • Manager
• Client
• disabled
Domain Name of the configured redundancy domain
Status Status of the ring on the redundancy manager:
• open
• closed
Link status <port> Px Status of the two ring ports of the CP:
Link status <port> Py • OK (the port is connected to a partner, the ring is not
closed)
• blocked (the ring port is disconnected from the second
ring port, in other words, the ring is closed)
• No link (the ports is not connected to a partner)
Note
Security enabled - navigation panel "Security"
The navigation panel "IP Access Protection" only exists if security is disabled. If security is
enabled, you can obtain corresponding information from the "Security" navigation panel.
Parameters Function
Configured IP addresses
IP address The IP addresses entered in the IP access control list
Rights The access right configured for the IP address:
• A (access) • Access to the station is authorized.
• M (modify) • Modifying the IP access control list by HTTP is
• R (routing) permitted.
• There is access to the subnet connected to the other
interface of the CP.
Sending entries for the IP access control list to the CP (Advanced CP) by HTTP
With Advanced CPs, it is possible to send entries for the IP access control list to the CP
using HTTP.
For the procedure, refer to the section Sending entries for the IP access protection to the
Advanced CP using HTTP/HTTPS (Page 66)
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" navigation panel.
Parameters Function
Project information
Author Name of the user who last loaded the configuration data.
Date created Date and time of the last configuration
Project name Initially configured name of the STEP 7 project.
Last changes
Entries exist here if changes have been made.
Author Name of the user who made the current change.
Date created Date and time of the change.
Project name Current name of the STEP 7 project.
Operating modes
Display of the current statuses of the individually listed security functions
Level 2 firewall Possible operating modes are:
Level 3 firewall • Not configured
Level 2 VPN • Configuration was adopted
Level 3 VPN • Error in configuration
Certificate
Signature check
User management
Logging
11.3.11 Topology
● 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:
● Display mode "Set topology"
● Display mode "Actual topology"
Note
Special feature
The configured target topology is always displayed in the following scenarios:
• When the "Topology" web page is called via the navigation bar
• When you change from the overview of PROFINET IO devices on the "Module
information" Web page to the "Topology" Web page by means of "Topology" link
If no target topology was configured, the actual topology is called by default.
Requirement
For error-free operation of the topology, the following conditions must be met:
● You completed the language settings.
● The topological interconnection of the ports is configured in the topology editor of STEP 7
● The project is compiled in STEP 7.
● "Report System Error" has been generated (occurs automatically when compiling in
STEP 7)
● The configuration has been loaded.
Note
PROFINET IO system - no display if the line is empty
If no PROFINET IO device is configured in the PROFINET IO system of the CP, there is
no display in the topology view. In this case, the display indicates a disabled topology
display.
Meaning
The Web page in the "Graphic view" tab shows the port interconnection of the components
in the PROFINET IO system.
Connection Meaning
Target topology Actual topology
green The current actual connection matches the configured target Connections detected
connection.
red Mismatch between the current actual connection and the -
configured target connection (e.g., port interchanged).
yellow Connection diagnostics not possible. Causes: -
• Malfunction of communication with a device (e.g. cable
was removed)
• Connection to a passive component
• Connection to devices/PROFINET devices on a different
IO controller or IO subsystem.
③ Deactivated nodes
All disabled configured PROFINET nodes are indicated in light gray.
④ Interchanged ports
Interchanged ports are highlighted in red color in the target topology view. The actual
topology view indicates the actually connected ports, while the target topology view displays
the configured target connections.
Note
Displaying faulty neighbor relationships
A firmware update of the affected component is required.
Meaning
The Web page in the "Table view" tab shows a detailed list of the PROFINET IO
components and their interconnection along with status information.
Parameters Function
Port
Status The column contains the following symbolic status displays
side-by-side:
1. Status of the PROFINET nodes
2. Module status of the PROFINET nodes
You will find an explanation of the symbols in the tables that
follow.
Name Name of the module specified in the configuration.
By clicking on the name you open the corresponding Web
page "Module information" with the details of the
configuration.
Module status / rack configuration (Page 175)
Module type Product name
Port List of the interfaces available on the module.
Partner port
Name Name of the partner module specified in the configuration.
Port Port used on the partner module
Table 11- 4 Meaning of the icons indicating the status of the PROFINET nodes
Symbol Meaning
Configured and accessible 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
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"
tab (Page 192)
Link between the "Topology Status overview" and "Module information" Web pages
The two web pages, "Topology" and "Module information", are linked. A click on the
displayed module in the status overview automatically takes you to this module on the
"Module information" Web page.
"Module status / rack configuration (Page 175)".
Note
CP with security function
With the security function enabled, the functions described below assume that the
following right is always set in the rights list alongside the other listed rights:
"Web: Access Web diagnostics and CP file system"
Meaning
The update center allows reloading, management and activation of firmware versions on the
CP. For a description, see section Loading from the Download Center (Page 219)
Requirement:
The tab exists if the "Firmware download via Web" option is selected on 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:
– The "Firmware download via Web" option is selected;
– The following right is also set in the rights list: "Web: Update firmware"
Note
Module access protection
Note the settings for the module access protection of the CP. Depending on the
current protection level, write access to the CP and therefore also the activation of the
reloaded firmware can be blocked.
Meaning
The update center allows the reloading of the file with additional entries for the IP access
control list.
Note
CP with security function
The behavior differs depending on whether security is enabled or disabled. Note the
following chapter reference.
You will find a description of the function and syntax of the file in the section Sending entries
for the IP access protection to the Advanced CP using HTTP/HTTPS (Page 66)
Requirement:
The tab exists if the following conditions are met on the CP:
● Case a: Security disabled:
– The "Enable access protection for IP communication" option is selected;
● Case b: Security enabled:
– The following right is also set in the rights list: "Web: Load diagnostics texts later".
Procedure
Follow the steps below to reload a file with entries for the access control list:
1. Click "Browse" to select the file.
2. Click the "Download" button.
Result:
The "Status" box provides information on the progress.
Meaning
Diagnostics buffer events can be output in Web diagnostics. The necessary text file is
available in English on the CP when it ships.
Language files
You can change the language of the diagnostics messages by writing the text file from your
STEP 7 installation to the file system of the CP. As soon as a text file is transferred to the file
system of the CP as described below, the CP uses this file instead of the default text file as
shipped.
Note
The language file and language setting for Web diagnostics are independent of each other
The language file used for the diagnostics buffer texts is used regardless of the language
setting for Web diagnostics. The loaded language file is therefore valid for all selected
language settings.
Note
Language setting for CPU and other module types (not CP)
Language settings made for a CPU and other module types in the STEP 7 configuration or in
other ways have no influence on the appearance of Web diagnostics via the CP as
described here. Only the currently loaded language file is used for all entries.
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; c = French; d = Spanish; e = Italian; j = Japanese)
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;
● Case b: Security enabled:
– "Reload of language files for the diagnostics displays via Web" option is enabled;
– The following right is also set in the rights list: "Web: Load diagnostics texts later".
Note
STEP 7 special diagnostics supports not only diagnostics for CPs (communications
modules) but also other module types such as the IE/PB Link. In the sections below, the
term CP is therefore synonymous with all modules with which you can run NCM S7
diagnostics functions.
12.1 Overview
12.2 Functions
Functions
The following must be distinguished:
● General diagnostics and statistical functions
● Type and modedependent diagnostics functions
Modedependent functions
Depending on the configured mode of the Ethernet CP, the following diagnostics functions
are possible:
● Diagnostics of ISO transport connections
● Diagnostics of ISOonTCP connections
● Diagnostics of TCP connections
● Diagnostics of UDP connections
● Diagnostics of email connections
● Diagnostics of TCP connections for PROFINET CBA
Installation
STEP 7 special diagnostics is integrated in STEP 7.
SCT online diagnostics is an integrated part of the Security Configuration Tool installed for
the security configuration.
Structure
STEP 7 special diagnostics is displayed as a separate application window in two parts with a
menu bar and toolbar:
① In the navigation area on the lefthand side, you will find the hierarchically arranged diagnostics objects.
You have an overview of the available diagnostics functions at all times. The object structure displayed in the
navigation area is adapted to the type of CP you are currently checking and the functions and connections
configured for the CP.
② In the Content Area, on the right-hand side, you will see the result of the diagnostics function you selected in the
navigation area.
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.
Overview
When running diagnostics, the following menu commands have general functions.
Depending on the context, other functions may be available; for more detailed information
refer to the individual diagnostics topics in the online help.
Menu Meaning
Diagnostics > Open Using these menu commands, you can open a connection
Online Connection... to a different module you want to check without having to
Diagnostics > Close close and restart the diagnostics tool. The current
Online Connection... diagnostics connection is closed.
If you want to use more than one diagnostics connection at
the same time, you can start special diagnostics more than
once.
Operating mode > *) You can control the module as follows:
• Stop module • Stop the module.
• Start module • You can start the module if the RUN/STOP selector is
set to RUN.
Mode > *) On certain modules, a module memory reset is possible.
Reset module memory *) This function must be confirmed before it is executed.
Following this memory reset, the CP retains the preset MAC
address and the retentive parameters. The CP is therefore
immediately ready for downloads.
The retentive parameters include:
• IP address and IP parameters
• Newly set MAC address
• LAN settings
Note:
On CPs with the security function, the VPN configuration is
deleted and the CP can no longer be reached via VPN.
Note:
This function has different effects depending on the CPU
version being used. The response also depends on whether
or not the CP is used with PROFINET functionality.
You will find further information as an FAQ on the Internet;
refer to the section This manual... (Page 3) and the manual
/1/ (Page 227) of the relevant CP.
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).
Operating Mode > *) With modules operating with a C-PLUG, you can reformat
Format C-PLUG for this Module *) the C-PLUG. The C-PLUG is supplied with module data of
the current module.
Configuration data is adopted for the specific device.
Diagnostic buffer > Control options for the "Diagnostics buffer" diagnostics
object
• Details on the Entry...
You will find details of the control functions in the online help
• Delete Entries
for the "Diagnostics buffer" diagnostics object.
• Filter Display >
– Set
– Enable
• Save...
• Save Cyclically...
View > Each time you activate this menu command, the displayed
Update diagnostics and status information is updated once.
View > With this menu command, you can toggle the automatic
Update cyclically on / off (cyclic) updating of the displayed diagnostics and status
information on and off.
You can set the interval between update points with the
menu command Options > Customize.
Options > Customize Here, you make the general settings for your diagnostics
session.
• Dialog update time
This sets the cycle time at which the diagnostics data is
updated in the content area during cyclic updating.
• Maximum size of the diagnostic buffer log file
See menu command Diagnostic Buffer > Save
Cyclically... for the "diagnostic buffer" diagnostics object
Options > Set PG/PC Interface You close the interface to the network on the PG/PC for the
diagnostics session.
Options > Assign Ethernet Address You open the "Edit Ethernet node" dialog. You can then, for
example, search the network for the accessible nodes.
The menu command is active if special diagnostics is in
"Offline" mode.
Options > Reset Counter On diagnostics pages with statistical information, you reset
the counters to "0".
The menu command is active if diagnostics pages contain
statistical information with counter values.
Options > Send E-mail You enable the sending of a test mail.
The menu command is active if the "E-mail" diagnostics
object is selected.
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.
To use these functions, position the cursor on the output
box and press the F1 key.
*) The functions are only executed if "Not locked" was configured for the module access
protection: Refer to the "Properties > Options" parameter group (not available for every CP).
Note
Re-establishing an aborted connection
If the connection to the module is terminated during the diagnostics session, the following
message is displayed: "The online connection was terminated".
You re-establish the connection to the module by acknowledging the displayed dialog box. If
possible, the connection is then re-established.
Requirements
First, establish a physical connection between the PG and the SIMATIC S7 station. You can
make this connection via one of the following:
● MPI
● PROFIBUS
● Industrial Ethernet (ISO protocol)
● Industrial Ethernet TCP/IP (IP protocol)
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.
Figure 12-3 Example of the parameter settings for the online path with one gateway
Figure 12-4 Example of the parameter settings for the online path with multiple gateways
In this case, the CP to be diagnosed is then not accessible if the interface is set to ISO on
your PG/PC. In this case, follow the steps below in HW Config:
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.
• When setting up your module, do not select the interface as PC internal (local) in "Set
PG/PC Interface".
Note
To operate several diagnostic connections at the same time, you can start STEP 7
special diagnostics more than once.
You can also start STEP 7 special diagnostics twice with an online connection to the
same CP; this can, for example, be useful if you want to monitor the diagnostic buffer at
the same time as running diagnostic functions on a connection.
Requirement: You have an online connection available via the LAN (ISO or TCP/IP) on
the one hand and an online connection via the communication (K) bus on the other
(alternatively via the CPU or via PG channel routing via a further CP).
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. Clarify your problem or task using the check list in Checklist for "typical problems" in a
system (Page 213) and select the diagnostic function based on the recommendation
there.
Note
The event messages in the circulating buffer of the CP are lost after cycling the power (on
S7 CPs) or after booting (on PC stations).
If necessary, you have the option of logging in a file if you want to review the history of the
event messages later.
You will find further information in the online help of the diagnostics object "Diagnostics
buffer"
Meaning
The following lists contain several typical problems and their possible causes and how you
can use the STEP 7 special diagnostics tool to remedy the situation.
The checklists deal with the following topics:
1. Checklist for general CP functions
2. Communications connection checklist
Note
In the column "Identifying the cause and remedy", you will see the diagnostics function
recommended for dealing with the problem shown in bold face.
Table 12- 4 Checklist for typical problems with ISO transport / ISOonTCP / UDP connections in a system
Table 12- 5 Diagnostics messages resulting from authentication errors: Error numbers
Table 12- 6 Diagnostics messages resulting from authentication errors: SMTP status
SMTP Meaning
status
1xx The mail server has accepted the request but is itself not yet active. A confirmation
message is required.
2xx Mail server executed request without error.
3xx The mail server understood the request but requires further information for processing.
4xx Mail server has detected a temporary error. If the request is repeated without being
modified, processing may possibly be completed.
5xx Mail server has detected a fatal error. The request cannot be processed.
Firmware
Here, firmware means the system programs in the SIMATIC NET modules.
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.
To load the firmware on the module using the Firmware Loader, the module must be in the
"security disabled" status. Where necessary, one of the following steps is therefore
necessary:
• Reset the module to the factory settings;
or
• Download the configuration data to the module without security enabled.
Installation
The firmware loader is available when you have installed STEP 7 on your PG/PC.
Load files
The firmware loader supports the following file types:
● <file>.FWL
A file form that contains extra information that can be displayed in the dialogs of the
firmware loader in addition to the actual firmware. Based on this information, the firmware
loader can check the firmware for compatibility with the device.
For detailed information, read the documentation, for example, the README file that ships
with the load file.
This information is displayed even after reading in the FWL file into the firmware loader.
User interface
Select the Next button and follow the instructions displayed in the dialog.
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.
For more detailed information on the various load options, refer to the integrated help.
Call
You can access the Update Center using the Web diagnostics of the CP.
Load files
The firmware download functions support the following file types:
● <file>.udp or <file>.fwl
A file form that contains extra information that can be displayed by the firmware download
functions in addition to the actual firmware. Based on this information, the firmware
download function can check the firmware for compatibility with the device.
For detailed information, read the documentation, for example, the README file that ships
with the load file.
Requirement:
The "Firmware" 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:
– The "Firmware download via Web" option is selected;
– The following right is also set in the rights list: "Web: Update firmware"
Note
Module access protection
Note the settings for the module access protection of the CP. Depending on the
current protection level, write access to the CP and therefore also the activation of the
reloaded firmware can be blocked.
Parameters Function
Firmware status
Activated firmware Version of the firmware currently being used.
• "Signature" button
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.
Activated on Date and time for activation of the firmware version currently being used.
Parameters Function
Deactivated firmware With CPs capable of storing 2 firmware versions, the version of the other firmware version in the
firmware memory is displayed here.
You activate/deactivate the firmware versions available in the firmware memory using the
functions described below.
• "Signature" button
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.
Bootstrap Version of the bootstrap loader currently being used
Activated on Date and time for activation of the bootloader version currently being used.
Firmware update
Download file Display of the selected firmware file
• "Browse" button / "Download" button
Here, select the firmware file to be loaded and activate the download.
The download progress is displayed.
Firmware transferred Version of the latest downloaded firmware; this is displayed on completion of the download.
• "Signature" button
Enable Select the required firmware version from the list box and click the "Activate" button.
• Deactivated firmware
The loaded firmware version is initially in a temporary memory. This firmware is activated with
the function used here. The firmware in the temporary memory is overwritten if you download
again.
The progress of the activation is displayed.
Once activation is completed, the "Restart" button appears.
Requirements:
• The firmware file must have a valid signature;
• The firmware file could be decrypted.
Terminal Function
L+ +24 V
M Ground
Gigabit interface
All four pairs of wires (P0, P1, P2, P3) can be operated with duplex.
9-pin D-sub female connector for PROFIBUS (used with IE/PB Link)
/1/
SIMATIC NET
S7 CPs for Industrial Ethernet
Manual Part B
manual
Siemens AG
(SIMATIC NET Manual Collection)
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)
CP 343-1 Advanced (GX21):
22261695 (http://support.automation.siemens.com/WW/view/en/22261695)
CP 343-1 Advanced (GX30):
28017299 (http://support.automation.siemens.com/WW/view/en/28017299)
CP 443-1 (EX11):
8776219 (http://support.automation.siemens.com/WW/view/en/8776219)
CP 443-1 (EX20):
26417141 (http://support.automation.siemens.com/WW/view/en/26417141)
CP 443-1 (EX30):
59187251 (http://support.automation.siemens.com/WW/view/en/59187251)
CP 443-1 IT:
8776322 (http://support.automation.siemens.com/WW/view/en/8776322)
CP 443-1 Advanced (EX40):
19308871 (http://support.automation.siemens.com/WW/view/en/19308871)
CP 443-1 Advanced (EX41):
23643789 (http://support.automation.siemens.com/WW/view/en/23643789)
CP 443-1 Advanced (GX20):
28011203 (http://support.automation.siemens.com/WW/view/en/28011203)
CP 443-1 Advanced (GX30):
59187252 (http://support.automation.siemens.com/WW/view/en/59187252)
IE/PB Link:
7851748 (http://support.automation.siemens.com/WW/view/en/7851748)
IE/PB Link PN IO:
19299692 (http://support.automation.siemens.com/WW/view/en/19299692)
IWLAN/PB Link PN IO:
21379908 (http://support.automation.siemens.com/WW/view/en/21379908)
/2/
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)
/3/
SIMATIC NET
Version History/Current Downloads for the SIMATIC NET S7CPs
History document
Siemens AG
(SIMATIC NET Manual Collection)
On the Internet under the following entry ID:
9836605 (http://support.automation.siemens.com/WW/view/en/9836605)
/4/
SIMATIC NET
Commissioning PC Stations - Manual and Quick Start
Configuration Manual
Siemens AG
(SIMATIC NET Manual Collection)
On the Internet under the following entry ID:
13542666 (http://support.automation.siemens.com/WW/view/en/13542666)
/5/
SIMATIC
Configuring Hardware and Connections with STEP 7
Siemens AG
Part of the documentation package "STEP 7 Basic Knowledge"
(Part of the online documentation in STEP 7)
/6/
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)
/7/
Basic help in the engineering tool SIMATIC iMap (online help)
Siemens AG
/8/
SIMATIC
Component Based Automation - configuring systems with SIMATIC iMap
Siemens AG
On the Internet under the following entry ID:
22762190 (http://support.automation.siemens.com/WW/view/en/22762190)
/9/
You will find more detailed information on SIMATIC iMap on the Internet under the following
entry ID:
10805413 (http://support.automation.siemens.com/WW/view/en/10805413)
/10/
SIMATIC NET
Program blocks for SIMATIC NET S7 CPs
Programming Manual
Siemens AG
(SIMATIC NET Manual Collection)
On the Internet under the following entry ID:
30564821 (http://support.automation.siemens.com/WW/view/en/30564821)
/11/
SIMATIC NET
Version History of the SIMATIC NET Function Blocks and Functions for SIMATIC S7
Reference Manual
Siemens AG
(SIMATIC NET Manual Collection)
On the Internet under the following entry ID:
9836605 (http://support.automation.siemens.com/WW/view/de/9836605)
/12/
SIMATIC
Programming with STEP 7
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:
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)
/14/
SIMATIC NET
Industrial Communication with PG/PC Volume 1 - Basics
System manual
Siemens AG
(SIMATIC NET Manual Collection)
On the Internet under the following entry ID:
42783968 (http://support.automation.siemens.com/WW/view/de/42783968)
SIMATIC NET
Industrial Communication with PG/PC Volume 2 - Interfaces
programming manual
Siemens AG
(SIMATIC NET Manual Collection)
On the Internet under the following entry ID:
42783660 (http://support.automation.siemens.com/WW/view/de/42783660)
/15/
Automatisieren mit STEP 7 in AWL und SCL (ISBN: 978-3-89578-280-0) /
Automating with STEP 7 in STL and SCL (ISBN: 978-3-89578-295-4)
User manual, programming manual
Berger, Hans
Publicis KommunikationsAgentur GmbH, GWA, 2006
/16/
SIMATIC NET Industrial Ethernet Security
Basics and Application
configuration manual
Siemens AG
(SIMATIC NET Manual Collection)
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)
/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)
● Module Data: Reference manual
On the Internet under the following entry ID:
8859629 (http://support.automation.siemens.com/WW/view/en/8859629)
/19/
SIMATIC S7
Automation System S7-400, M7-400
Siemens AG
● Installation: Installation manual
Entry ID:
1117849 (http://support.automation.siemens.com/WW/view/en/1117849)
● Module Data: Reference manual
Entry ID:
1117740 (http://support.automation.siemens.com/WW/view/en/1117740)
/20/
SIMATIC
PROFINET System Description
system manual
Siemens AG
(SIMATIC NET Manual Collection)
/21/
SIMATIC
From PROFIBUS DP to PROFINET IO
Programming manual
Siemens AG
(SIMATIC NET Manual Collection)
/22/
S7Beans / Applets for IT-CPs
programming aid
Siemens AG
(SIMATIC NET Manual Collection)
On the Internet under the following entry ID:
24843906 (http://support.automation.siemens.com/WW/view/en/24843906)
/28/
SIMATIC NET
Industrial Ethernet - Network Manual
system manual
Siemens AG
Entry ID:
27069465 (http://support.automation.siemens.com/WW/view/en/27069465)
/23/
SIMATIC NET
Twisted-Pair and Fiber-Optic Networks Manual
Siemens AG
(SIMATIC NET Manual Collection)
/24/
SIMATIC NET
Manual for Triaxial Networks
(SIMATIC NET Manual Collection)
/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)
/27/
Documentation package "STEP 7 Basic Knowledge"
● Working with STEP 7 Getting Started (ID: 18652511)
● Programming with STEP 7 (ID: 18652056)
● Configuring Hardware and Connections with STEP 7 (ID: 18652631)
● From S5 to S7, Converter Manual (ID: 1118413)
Siemens AG
Order number 6ES7 810-4CA08-8AW0
(part of the online documentation in STEP 7)
Parameter values
S7 address area DB M I A
ORG ID 01H 02H 03H 04H
Source/dest. Source/dest. Source/dest. Source/dest.
data from/to data from/to bit data from/to data from/to
data block in memory area process image process image
main memory of the inputs of the outputs
(PII) (PIQ)
DBNR DB, from which irrelevant irrelevant irrelevant
the source data
is taken or to
which the dest
data is
transferred
permitted range 1...255
Start address DW number Memory byte Input byte no. Output byte no.,
from which the no., from which from which the from which the
data is taken or the data is taken data is taken or data is taken or
written to or written to written to written to
permitted range 0...2047 All memory 0...127 0...127
bytes made
available by a
CPU.
Length Length of the Length of the Length of the Length of the
source/dest. source/dest. source/dest. source/dest.
data field in data field in data field in data field in
words bytes bytes bytes
permitted range Up to 8192 Up to 8192 1...128 1...128
bytes bytes
S7 PI/PQ C T
address area
ORG ID 05H 06H 07H
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 Number of the timer
which the data is counter cell from cell from which the
taken or written to which the data is data is taken or
taken or written to written to
permitted range 0...127 0...255 0...255
digital I/O 128...255
analog I/O
Quantity Length of the Length of the Length of the
source/dest. data source/dest. data source/dest. data
field in bytes field in words field in words
(counter cell = 1 (counter cell = 1
word) word)
C-PLUG, 203
CSMA/CD, 13
"
"IP access protection" tab, 52
D
"IP configuration" tab, 55
"Port parameters" tab, 61 Data espionage, 14
Data manipulation, 14
Data packets sent, 180
A Device name, 206
DHCP, 56
Access control lists, 64
Diagnostic buffer, 174
Activating Web server functionality, 168
Diagnostics
Actual topology, 188
Special diagnostics, 21
Address parameters
Web diagnostics, 21
Broadcast, 108
Dialog update time, 203
Unspecified UDP connection, 106
DNS configuration, 58
Advanced CP, 4
Downloading, 79
Amounts of data and configuration limits, 92
Downloading language files
Area for making settings, 171
Using FTP, 197
AS-Interface, 14
Via update center, 197
Downloads, 5
Dynamics properties, 100
B
Broadcast
with UDP, 107 E
E-mail
Sending, 141
C
Email communication,
Cell protection concept, 14 E-mail connection, 58
Client ID (with DHCP), 56 Configuring, 139
Commissioning, 39 E-mail DB, 142
Communications processors; structure E-mail function, 135
for S7300, E-mail server, 140
for S7400, Engineering station, 23
Configuration data Establishing a connection to the CP, 204
Downloading to the target system, 79 Ethernet
Connection Overview, 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 F
Save, 80
Factory settings, 203
CP file system - using security functions, 161
FETCH/WRITE
G M
Gateway, 207 Manual Collection, 5
Gigabit Ethernet, 184 Manual Part A, 4
Glossary, 6 Media redundancy, 180, 185
Memory reset, 202
Menu command, 202
H Module
Identify, 195
Hardware diagnostics, 199
Module access protection, 173, 195, 220
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
MPI, 205
HTML process control using HTTPS, 19
Multicast
HTML process control with Web browser, 16
with UDP, 107, 108
HTTPS, 66
Multicast circle, 108
Multicast group, 108
Multicomputing
I
S7-300, 35
Industrial Ethernet, 205 S7-400, 37
Overview, 13
Industrial Ethernet; user interface to,
IP (Internet Protocol), 29 N
IP access protection
NCM S7 Diagnostics,
IP access control list, 53
Network access, 14
IP addressing using DHCP, 95
IP configuration, 4
IP parameters, 179
IP-ACL (IP access control list), 52
O S
Online path, 204 S5S5 connections, 28
OP mode, 21 S7 beans, 161
OPC server S7 communication, 16
Using as SMTP server, 140 S7 communication via Ethernet, 24
Open communications services, 4, 16 S7 communications relay, 24
S7 connections
S7-400, 38
P SCT online diagnostics, 199
Security, 64, 66, 187
PC internal, 209
Enable security, 64
PG communication, 21
Reloading firewall rules, 64
in configured mode, 23
Security Configuration Tool, 14
in PG mode, 23
Security CP, 4
with STEP 7 via Ind. Ethernet, 23
Security functionality, 17
PG mode
SEND/RECEIVE interface, 29
with STEP 7 via Ethernet, 21
Data exchange, 83
PG/OP communication, 16
Overview, 28
PG/PC Interface, 24
User program, 85
Ports, 163
Sending a test e-mail in the "SMTP" tab, 183
Possibilities for communication between device
Shared device, 178
types, 20
SIMATIC NET, 14
PROFIBUS, 14, 205
SIMATIC NET glossary, 6
PROFINET CBA, 16
SIMATIC NET Manual Collection, 5
PROFINET communication, 18
Simultaneous operation
PROFINET IO
of CPs; S7-300,
Overview, 18
of CPs; S7-400,
PROFINET IO controller, 63, 115
Slots
PROFINET IO device
S7-300, 35
Intelligent, 121
S7-400, 36
PROFINET IO domain management, 116
SNMP, 61
PROFINET IO systems, 178
Configuration, 61
Program block versions, 5
SNMP agent, 61
Program blocks
SNMPv1, 61
AG_SEND / AG_RECV, 85
SNMPv3, 19, 61
AG-RECV, 83
Special diagnostics, 199
AG-SEND, 83
Overview, 199
Programmed communication connections, 21
Standard Ethernet, 184
Programmed connections and IP configuration, 4
Starting, 202
Protection level, 173
Statistics of the S7 connections, 184
STEP 7, 21
STEP 7 special diagnostics,
Q
Stopping, 202
Quick Start CD, 5 Sync domain, 116
System memory
Access using FETCH/WRITE, 113
R
Rack configuration / subsystem configuration, 177
T
RAM area, 148, 173
Received data packets, 180 Target topology, 188
TCP connection, 29
U
UDP, 28
UDP connection, 29
Addresses, 105
Unspecified connection, 94
Update cyclically, 203
User management, 57
Advanced, 61
V
Version history, 5
Volatile RAM file system ( /ram ), 173
W
Web diagnostics, 167
"Access control list" tab, 195
"Diagnostics messages" tab, 196
"Firmware" tab, 194
"ISO Transport", "ISO-on-TCP", "TCP", "UDP",
"SMTP" tabs, 182
Access using STEP 7 (STEP 7 Professional), 170
Access using STEP 7 (STEP 7 V5.5), 170
Content area, 172
Direct access using the Web browser, 169
Industrial Ethernet - "Parameters" tab, 179
Industrial Ethernet - "Statistics" tab, 180
Industrial Ethernet - "UDP Connections" tab, 181
IP Access protection - "Configured IP addresses"
tab, 186
IP access protection - "Times denied access"
tab, 186
Layout of the diagnostics pages, 171
Module status - "Identification" tab, 178
Module status - "Status" tab, 178
Navigation area, 172
S7 communication - "ISO Transport", "ISO-on-TCP"
tab, 184
Security enabled, 168