Академический Документы
Профессиональный Документы
Культура Документы
Contents Page
Subnet 1
Ethernet CP WAN
LAN
* TCP/IP only
Subnet 2
S7-400 Ethernet CP
Ethernet node
• Data transfer is bidirectional, i.e. data can be sent and received at the
same time via the connection.
• The two nodes have equal rights, i.e. either node can initiate Send or
Receive activities as events demand.
• The address of the communication partner is specified by configuration
In the case of a "free UDP connection", the address is specified at the
FC interface in the user program.
Data Volume and For the number of communication connections supported by each Ethernet
Number of CP please refer to the chapter on the hardware of the Ethernet CP or to the
Connections product information supplied with the Ethernet CP. You can increase the number
of connections per station by adding more CPs.
The Ethernet CP can send and receive the following number of bytes per job and
connection.
• up to 8192 bytes
UDP
• up to 2048 bytes
• Receives data from the Ethernet and passes it on to the user data area in
the CPU.
• Accepts data from the user data area in the CPU and sends it via Ethernet.
Overview For S7 communication connections the Ethernet CP has the task of sending and
receiving data via Ethernet and exchanging data with the user program in the S7
CPU.
Requirements The Ethernet CP must be configured with the rest of the hardware, entered in the
hardware configuration and connected to the Ethernet subnet.
Note: All stations outside the project must be represented in the configuration by
dummy objects, e.g. “SIMATIC S5” or “Other Station”
or
you must select "Unspecified" as the type of partner when creating the
connection.
Overview of the The diagram shows the action to be taken in order to operate
Procedure connections in the SIMATIC S7 with the Ethernet CP.
Comment When configuring connections, you can usually adopt the default values.
• Open
• Save
• Save and Compile
• Print
• Upload
• Insert Network Connection
• Change Connection Partner
• Insert Connection
• Catalog ON/OFF
• Help
2nd
method
Procedure You can display the connection configuration table in two ways:
2nd Method In the Windows Start menu select Simatic > STEP7 > Network Configuration
to activate NETPRO.
1. In NETPRO select the CPU of the station from which the connection is to
be made.
2. Select the menu options Insert > Connection
Result: The connection table showing all the connections configured for the selected
CPU is displayed on the screen.
2. In the “Station” input field select the station to which you want to create a
connection.
3. In the “Module” input field select the CPU in the station to which you
want to create a connection.
4. In the “Type” input field select the type of connection you want to use, in
this case “ISO transport connection”.
When you confirm your entry with “Add”, the new connection is created and the
"New Connection" dialog box remains open. This enables you to create more
connections without having to open the dialog box again. The list of connections
is also updated at the same time. When you have created all the new
connections, you can close the dialog box by clicking the “OK” button.
Connection All the remote partners in the S7 project of the local station you have
Partner selected are displayed showing all their programmable modules (CPUs) for you
to make your selection. Select the programmable module to which you want to
create a connection.
With OK the connection is entered in the list, the dialog is closed and the display
in the main dialog updated.
With Cancel the dialog is closed and the connection is not entered in the list.
Connection
Partner To configure a connection to a station outside a project, e.g. to a non-Siemens
device, you can select a station of the type "Other Station", "SIMATIC S5" or
"PG/PC" as the connection partner.
Connection
Partner You configure connections with a device which is not yet known (e.g. diagnostics
device) as "(Unspecified)" connections. You can specify the details later in the
Properties dialog.
Connections of this type can be used in two ways:
• General
Block parameters for the connection and name of the ISO transport
connection
• Addresses
Information about local and remote addresses
• Dynamics
The relevant timers and counters
• Options
Allows you to set the operating mode to Send/Recv, FETCH or WRITE
• Overview
Overview of all the ISO transport connections configured for the selected
S7 station, together with the relevant parameters and the connection
status.
Apart from entering a connection in the connection table you can also change
certain properties of each connection configured.
In this dialog you can alter individual connection parameters for which the default
was entered in the New Connection dialog.
Calling the dialog Proceed as follows to obtain the dialog for the specific properties of a connection:
General Tab This tab page in the Properties dialog shows the block parameters for the
connection and the name of the ISO transport connection. The local ID is the
same as the ID in the connection table.
Connection
Endpoint
Name Suggested name. Can be changed by the user as required. You Modifiable
use this field to identify the partner in the case of unspecified
connections.
Via CP If there are several CPs of the same type in the station, which are Selectable
all connected to the same subnet, you can select the one you want
to use for the connection by clicking the Route button.
If no CP is assigned (e.g. because it has been deleted), “None”
appears here.
If there is only one CP in the station, selection with Route is not
possible. Read only
ID Entry of this block call parameter is mandatory in the FC call in the Read only
user program to identify the connection.
LADDR Entry of this block call parameter is mandatory in the FC call in the Read only
user program to identify the connection.
Remote Local
TSAP TSAP
ISO transport
Local connection Remote
TSAP TSAP
MAC MAC
address address
A B
Address Parameters A connection is defined by specifying its local and remote end points.
• Local addresses:
Local MAC address and local TSAP
(Transport Service Access Point)
• Remote addresses:
Remote MAC address and remote TSAP
The address parameters are assigned with NCM S7 and stored in the CP
database. This enables changes or extensions to the Ethernet network topology
to be made without affecting the user program in the CPU.
Note
When configuring the Ethernet CPs in the local and destination stations, the
TSAPs of an ISO transport connection must be reversed:
Remote TSAP (on CP in local station) = local TSAP (in destination station);
Local TSAP (on CP in local station) = remote TSAP (in destination station);
Addresses Tab The Addresses tab page gives suggested values for the relevant local and
remote addresses. In the case of connections with “non-S7 stations” you can set
the TSAPs individually.
TSAP Format ISO transport connections have a TSAP length of between 1 and 32 bytes. The
current length is automatically displayed on entry (visible display: 20 ASCII
characters). Both local and remote TSAPs can be entered either as a
hexadecimal value or as an ASCII string. If you enter in ASCII, the characters
you enter are also displayed in hexadecimal form. If you enter in hexadecimal,
printable characters are displayed as the ASCII equivalent. If you enter non-
printable characters, the ASCII display becomes gray (ASCII input not possible)
and the non-printable characters appear as a period.
Local and Remote The remote and local TSAPs can be identical because the connection is
TSAPs uniquely identified by the different MAC addresses. If you want to make more
than one connection between two stations, the TSAPs must be different.
Default TSAPs When you are configuring the local and remote TSAPs, default values are
proposed (e.g. “ISO-1” for the first connection between two partners). If more
connections are configured between the same partners, the default values are
automatically incremented (e.g. ISO-2 etc.).
For a new connection with a new partner, the default proposals start again at
ISO-1.
The dialog box above shows a case of this kind where the remote MAC address
and the remote TSAP are not specified.
If no further entries are made, this indicates that the CP is prepared to make a
connection with any communication partner.
Dynamics Tab The Dynamics tab page shows the relevant timers and counters of the
connection. You can adopt the defaults.
If necessary (e.g. connections with non-SIMATIC systems) you can adjust the
timers and counters individually and change the dynamic behavior of the
connection.
Connection
Establishment
Data Transfer
Max. Count The maximum count is the number of transmission attempts Modifiable
including the first attempt (1 - 100, default 5).
Inactivity Time The inactivity time specifies the interval after which the Modifiable
connection is to be cleared if no further sign of life is
received from the partner
(6 - 180 s, default 30 s).
Window Time The window time specifies the interval for sending sign-of- Read only
life frames. The window time is fixed at 1/3 of the inactivity
time for SIMATIC NET CPs (2 - 60 s, default 10 s). Sign-of-
life frames are sent in order to be able to check the connection
for transmission of frames even when there is no data traffic.
Operating Modes If the following operating modes are selected for the transport connection, the
system memory areas in the SIMATIC S7 can be accessed direct from a
SIMATIC S5 or non-SIMATIC station.
The connection can then only be used in this mode. It is no longer possible to
transmit or receive using the FCs AG_SEND/AG_LSEND and
AG_RECV/AG_LRECV.
Connections The FETCH and WRITE operating modes are supported by ISO and ISO-on-
TCP connections.
Note If you configure this operating mode for a SIMATIC S7-300, it takes up a
connection resource (free connection for S7 functions) of the S7-300 CPU.
DW62 DW42 G
FETCH reply frame
DATA
DW 63 (S5 HEADER, 16 bytes) AN AG 01 DW 43 0 1
Data up to 64 K
provided Error No. =0
FETCH Request/ To implement the FETCH function the CP 1430, for example,
Ackn. Frame generates an S5-specific header above layer 4.
Header length = 16 bytes
PLC 1 PLC 2
Data source Data destination
DB 13 DB 14
Data up to 64 K
WRITE Request/ To implement the WRITE function the CP 1430, for example,
Ackn. Frame generates an S5-specific header above layer 4.
Header length = 16 bytes
FETCH and WRITE can be used for accessing the following address
areas in the system memory of the SIMATIC S7
Overview Tab The overview shows all the ISO transport connections in this station configured
so far together with their parameters (cannot be changed).
Parameter Description
Conn. Name Connection name entered. This identifies the ISO transport connection.
Remote Address Remote MAC address of the connection on the Ethernet subnet.
Local TSAP Local connection end point (Transport Service Access Point).
• General
Block parameters for the connection and name of the ISO-on-TCP
connection
• Addresses
Information about local and remote addresses
• Options
Allows you to set the operating mode to Send/Recv, FETCH or WRITE
• Overview
Overview of all the ISO-on-TCP connections configured for the selected
S7 station, together with the relevant parameters and the connection
status.
Apart from entering a connection in the connection table you can also change
individual connection parameters of each connection configured for which the
default was entered in the New Connection dialog.
Calling the Dialog Proceed as follows to obtain the dialog for the specific properties of a connection:
General Tab This tab page in the Properties dialog shows the block parameters for the
connection and the name of the ISO-on-TCP connection. The local ID is the
same as the ID in the connection table.
Connection
Endpoint
Name Suggested name, plus connection number suffix. Can be changed Modifiable
by the user as required (max. 24 characters).
Via CP If there are several CPs of the same type in the station, which are Selectable
all connected to the same subnet, you can select the one you want
to use for the connection by clicking the Route button.
If no CP is assigned (e.g. because it has been deleted), “None”
appears here.
If there is only one CP in the station, selection with Route is
not possible. Read only
ID Entry of this block call parameter is mandatory in the FC call in the Read only
user program to identify the connection.
LADDR Entry of this block call parameter is mandatory in the FC call in the Read only
user program to identify the connection.
Remote Local
TSAP TSAP
ISO-on-TCP
Local connection Remote
TSAP TSAP
IP IP
address address
A B
Address parameters A connection is defined by specifying its local and remote end points.
• Local addresses:
Local IP address and local TSAP
(Transport Service Access Point)
• Remote addresses:
Remote IP address and remote TSAP
The address parameters are assigned with NCM S7 and stored in the CP
database. This enables changes or extensions to the Ethernet network topology
to be made without affecting the user program in the CPU.
Note
When configuring the Ethernet CP and the Ethernet destination station, the
TSAPs of an ISO-on-TCP connection must be reversed:
Remote TSAP (in Ethernet CP) = local TSAP (in destination station)
Local TSAP (in Ethernet CP) = remote TSAP (in destination station)
Addresses Tab The Addresses tab page gives suggested values for the relevant local and
remote addresses. You can set the TSAPs individually.
TSAP Format ISO-on-TCP connections have a TSAP length of between 1 and 32 bytes. The
current length is automatically displayed on entry (visible display: 20 ASCII
characters). Both local and remote TSAPs can be entered either as a
hexadecimal value or as an ASCII string. If you enter in ASCII, the characters
you enter are also displayed in hexadecimal form. If you enter in hexadecimal,
printable characters are displayed as the ASCII equivalent (8 hexadecimal
characters visible). If you enter non-printable characters, the ASCII display
becomes gray (ASCII input not possible) and the non-printable characters appear
as a period.
Local and Remote The remote and local TSAPs can be identical because the connection is
TSAPs uniquely identified by the different IP addresses. If you want to make more than
one connection between two stations, the TSAPs must be different.
Default TSAPs For configuring the local and remote TSAPs, there is a default value "TCP-1" for
the first connection between the two partners (this can be changed). For another
connection between the same partners, the default value "TCP-2" is proposed.
For a new connection with a new partner, TCP-1 is proposed again.
Operating Modes If the following operating modes are selected for the ISO-on-TCP connection, the
system memory areas in the SIMATIC S7 can be accessed direct from a
SIMATIC S5 or non-SIMATIC station.
The connection can then only be used in this mode. It is no longer possible to
transmit or receive using the FCs AG_SEND/AG_LSEND and
AG_RECV/AG_LRECV.
Connections The FETCH and WRITE operating modes are supported by ISO and ISO-on-
TCP connections.
Note If you configure this operating mode for a SIMATIC S7-300, it takes up a
connection resource (free connection for S7 functions) of the S7-300 CPU.
Overview Tab The overview shows all the ISO-on-TCP connections in this station configured
so far, together with their parameters (cannot be changed).
Parameter Description
Conn. Name Connection name entered. This identifies the ISO-on-TCP connection.
R/S Rack/slot of the local CP used for the connection. (Hardware configuration)
• General
Block parameters for the connection and name of the TCP connection
• Addresses
Information about local and remote addresses
• Overview
Overview of all the TCP connections configured for the selected S7
station, together with the relevant parameters and the connection status.
Apart from entering a connection in the connection table you can also change
individual connection parameters of each connection configured for which the
default was entered in the New Connection dialog.
Calling the Dialog Proceed as follows to obtain the dialog for the specific properties of a connection:
General Tab This tab page in the Properties dialog shows the block parameters for the
connection and the name of the TCP connection. The local ID is the same as the
ID in the connection table.
Connection
Endpoint
Name Suggested name, plus connection number suffix. Can be changed Modifiable
by the user as required (max. 24 characters).
Via CP If there are several CPs of the same type in the station, which are Selectable
all connected to the same subnet, you can select the one you want
to use for the connection by clicking the Route button.
If no CP is assigned (e.g. because it has been deleted), “None”
appears here.
If there is only one CP in the station, selection with Route is
not possible. Read only
ID Entry of this block call parameter is mandatory in the FC call in the Read only
user program to identify the connection.
LADDR Entry of this block call parameter is mandatory in the FC call in the Read only
user program to identify the connection.
Remote Local
port port
TCP
Local connection Remote
port port
IP IP
address address
A B
Address Parameters A connection is defined by specifying its local and remote end points.
• Local addresses:
Local IP address and local port
• Remote addresses:
Remote IP address and remote port
The address parameters are assigned with NCM S7 and stored in the CP
database. This enables changes or extensions to the Ethernet network topology
to be made without affecting the user program in the CPU.
Specified
TCP Connection The connection partner and its addresses are specified
Unspecified
TCP connection "Unspecified" is entered for the connection partner
One or both of the remote address parameters are missing
Addresses Tab The Addresses tab page gives suggested values for the relevant local and
remote addresses. You can set the ports individually.
The port numbers must be unique within each station/CPU
Port Numbers
1......1024 These should not be used because the well-known ports have numbers in this
range
From 2000....5000 Range used by NCM in which a free port address is located and assigned for
each connection.
You can also select a particular port address within this range.
Overview Tab The overview shows all the TCP connections in this station configured so far,
together with their parameters (cannot be changed).
Parameter Description
Conn. Name Connection name entered. This identifies the TCP connection.
R/S Rack/slot of the local CP used for the connection. (Hardware configuration)
Local PORT
Remote PORT
• General
Block parameters for the connection and name of the UDP connection
• Addresses
Information about local and remote addresses
• Options
Operating mode (setting cannot be changed)
• Overview
Overview of all the UDP connections configured for the selected S7
station, together with the relevant parameters and the connection status.
Apart from entering a connection in the connection table you can also change
individual connection parameters of each connection configured for which the
default was entered in the New Connection dialog.
Calling the Dialog Proceed as follows to obtain the dialog for the specific properties of a connection:
General Tab This tab page in the Properties dialog shows the block parameters for the
connection and the name of the UDP connection. The local ID is the same as the
ID in the connection table.
Connection
Endpoint
Name Suggested name, plus connection number suffix. Can be changed Modifiable
by the user as required (max. 24 characters).
Via CP If there are several CPs of the same type in the station, which are Selectable
all connected to the same subnet, you can select the one you want
to use for the connection by clicking the Route button.
If no CP is assigned (e.g. because it has been deleted), “None”
appears here.
If there is only one CP in the station, selection with Route is
not possible. Read only
Block
Parameters
ID Entry of this block call parameter is mandatory in the FC call in the Read only
user program to identify the connection.
LADDR Entry of this block call parameter is mandatory in the FC call in the Read only
user program to identify the connection.
Remote Local
port port
UDP
Local connection Remote
port port
IP IP
address address
A B
Address Parameters A connection is defined by specifying its local and remote end points.
• Local addresses:
Local IP address and local port
• Remote addresses:
Remote IP address and remote port
The address parameters are assigned with NCM S7 and stored in the CP
database. This enables changes or extensions to the Ethernet network topology
to be made without affecting the user program in the CPU.
Specified
UDP Connection The connection partner and its addresses are specified
Unspecified
UDP connection "Unspecified" is entered for the connection partner
One or both of the remote address parameters are missing
Addresses Tab The Addresses tab page gives suggested values for the relevant local and
remote addresses. You can set the ports individually.
The port numbers must be unique within each station/CPU
Port Numbers
1......1024 These should not be used because the well-known ports have numbers in this
range
From 2000....5000 Range used by NCM in which a free port address is located and assigned for
each connection.
You can also select a particular port address within this range.
Unspecified
Connection
Free For this type of connection the address of the connection partner is left
UDP Connection open at the configuring stage. The communication partners are specified by
entering the address parameters in the communication job in the user program.
This enables up to 126 nodes to be accessed via one configured free
(unspecified) UDP connection, provided these nodes support UDP connections.
You configure a free UDP connection by checking the option "Address
assignment in block". You cannot then make entries in the input fields for the
partner IP address and partner port because the destination addresses are now
going to be specified in the user program.
Connection to an You can specify the partner IP address and partner port of any station as the
"Other Station" in destination station.
a Different Project The destination station can be either inside or outside the current STEP 7 project.
Overview Tab The overview shows all the UDP connections in this station configured so far,
together with their parameters (cannot be changed).
Parameter Description
Conn. Name Connection name entered. This identifies the UDP connection.
R/S Rack/slot of the local CP used for the connection. (Hardware configuration)
Local PORT
Remote PORT
SIMATIC S7 station
with Ethernet CP Ethernet node
(unspecified)
User data area
Job buffer
Send Receive
Job
Auftragspuffe
header r Unspecified
Auftragsheader UDP connection
User data Send
Receive
Nutzdaten
Data transfer is bidirectional, i.e. data can be sent and received at the same
time via the UDP connection
The local station is fixed in the configuration. The partner is entered in the
job header of the job buffer when an AG_SEND call in the user program is
executed. This enables any node in the network to be accessed.
The IP address and the port of the sender can be read from the job header
for the AG_RECV block.
Data Volume Up to 2042 bytes of user data can be transmitted in each job buffer.
The job header takes up another 6 bytes.
Route If there are several CPs of the same type in one station, which are connected to
the same subnet, you can select the one you want to use for the connection with
Route.
When you click the Route button on the "General" tab page, the dialog box
above appears.
Apart from creating new connections you can also change the connection partner
for any connection already configured.
Calling the Dialog To obtain the dialog for changing the connection partner, proceed as follows:
Partner In the same way as for creating new connections, all the stations in the S7
project are displayed for selection. Select the programmable module to which you
want to create the connection.
With OK the connection is entered in the list, the dialog is closed and the display
in the main dialog updated.
With Cancel the dialog is closed and the alteration is not entered in the list.