Вы находитесь на странице: 1из 56

Configuring Connections

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.1

Contents Page

Possible Connection Configurations.......................................................................................... 2


Communication Connections..................................................................................................... 3
Functions of the Ethernet CP..................................................................................................... 4
Action to be Taken ............................................................................................................. 5
Functions Available for Configuring Connections...................................................................... 6
Creating New Connections........................................................................................................ 7
Properties - ISO Transport Connections ................................................................................... 13
Properties - ISO-on-TCP Connections ..................................................................................... 30
Properties - TCP Connections ................................................................................................... 39
Properties - UDP Connections .................................................................................................. 46
Free UDP Connection................................................................................................................ 54
Route ......................................................................................................................................... 55
Changing the Connection Partner.............................................................................................. 56

Siemens AG Page 1 Configuring Connections


Training Center
Possible Connection Configurations
S7-400 Ethernet CP S7-300 Ethernet CP S7-400 Ethernet CP

Subnet 1

Ethernet CP WAN
LAN

* TCP/IP only

PG/PC with Ethernet CP SIMATIC S5

Subnet 2

S7-400 Ethernet CP

Other station with


Ethernet connection

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.2

Connections Connections between the communication partners shown in the diagram


within a Project above are possible within a project.
Connections with communication partners outside a project are configured in the
same way as connections with “Other Stations” or with SIMATIC S5.

Siemens AG Page 2 Configuring Connections


Training Center
Communication Connections

SIMATIC S7 station Ethernet node


with Ethernet CP

Send Communication Receive


connection
Receive Send

Ethernet node

Send Communication Receive


connection
Receive Send

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.3

Properties of a A communication connection permits program-controlled communication


Connection with the following properties between two nodes on the Industrial Ethernet:

• 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.

ISO Transport, ISO-on-TCP and TCP

• up to 8192 bytes

UDP

• up to 2048 bytes

Siemens AG Page 3 Configuring Connections


Training Center
Functions of the Ethernet CP
The Ethernet CP performs the following functions for handling data transfer
via a connection:

• 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.

The connection is established automatically as soon as the partner is accessible.

For free UDP connections it also performs the following functions:


• Receiving
Enters the partner addresses (sender addresses) in the job header
• Sending
Evaluates the job header and addresses the partner

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.4

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.

As a network node, the Ethernet CP must have an address.

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.

Siemens AG Page 4 Configuring Connections


Training Center
Action to be Taken

Create connections Generate the connections Program the SEND/


and configure the for any "Other Stations" or RECEIVE interface in
connection properties "SIMATIC S5" stations the user program and
with the appropriate download it to the
configuring tool. SIMATIC S7

Download the connection configuration to the CP

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.5

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.

When programming, you must use the configured connection numbers.

Siemens AG Page 5 Configuring Connections


Training Center
Functions Available for Configuring Connections

• Open
• Save
• Save and Compile
• Print
• Upload
• Insert Network Connection
• Change Connection Partner
• Insert Connection
• Catalog ON/OFF
• Help

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.6

Siemens AG Page 6 Configuring Connections


Training Center
Creating New Connections (1)
1st
method

2nd
method

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.7

Procedure You can display the connection configuration table in two ways:

1st Method 1. Open your CPU in the SIMATIC Manager


2. Select the Connections object
3. Double-click the object or select the menu options
Edit > Open Object

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.

For a SIMATIC S7 station the end point of a connection is always a CPU. A


connection table showing the connection partner and the type of connection
defined is created for each CPU.

Siemens AG Page 7 Configuring Connections


Training Center
Creating New Connections (2)

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.8

New Connection To create a new connection, proceed as follows:

1. Choose the menu options Insert > New Connection

Result: The dialog shown above appears 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.

Siemens AG Page 8 Configuring Connections


Training Center
Creating New Connections (3)

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.9

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.

Siemens AG Page 9 Configuring Connections


Training Center
Creating New Connections (4)

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.10

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.

Connections to stations of these types are generated as partially unspecified


connections. This means that the entries for the remote TSAP or port are
missing.
The details of these connections must be specified in the Properties dialog.

Siemens AG Page 10 Configuring Connections


Training Center
Creating New Connections (5)

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.11

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:

- Passive connection establishment


Connection establishment must be set to passive.
When setting the addresses, e.g. for an ISO-on-TCP connection, you set the
remote IP address to 0.0.0.0 and leave the remote TSAP blank, that is neither of
these addresses is relevant for the CP.
A connection can then be established with any partner that addresses the CP
using its correct IP address and TSAP.
Partial specification is also possible, that is the CP can communicate with a
partner which has either the specified IP address or the specified TSAP.

- Connection to a particular station in any project


When setting the addresses, e.g. for an ISO-on-TCP connection, you specify the
remote IP address and port of a partner station either inside or outside the
current STEP 7 project.
You can use this method for partner stations for which no dummy object has
been created in the current project.

Siemens AG Page 11 Configuring Connections


Training Center
Creating New Connections (6)

Connection Establishment MAC Address/ TSAP/ Act./Pass.


IP Address Port Connection
Establ.
From any partner Blank Blank Passive

From a particular partner Specified Blank Passive


via any TSAP
From any partner via a Blank Specified Passive
particular TSAP
To or from a particular Specified Specified Active/
partner Passive

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.12

The table shows the different types of unspecified connection.

Siemens AG Page 12 Configuring Connections


Training Center
Calling the Properties - ISO Transport Connection Dialog
The properties dialog is clearly divided into separate tab pages, each
containing a group of parameters that go together.

The following tabs are available for ISO transport connections:

• 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.

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.13

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:

1. Select the required connection in the connection table.

2. Double-click the relevant column in the connection table or choose the


menu options Edit > Object Properties

Result: The “Properties - ISO Transport Connection” dialog appears.

Siemens AG Page 13 Configuring Connections


Training Center
Properties - ISO Transport Connection
General Tab (1)

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.14

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.

Siemens AG Page 14 Configuring Connections


Training Center
Properties - ISO Transport Connection
General Tab (2)

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.15

Attribute Description Access

Connection
Endpoint

Local ID Identical to the value in the connection table Selectable

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

Active The default is active connection establishment. If the connection is Modifiable


Connection unspecified, it is established passively.
Establishment ON: Connection established actively (default)
OFF: Connection established by partner
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.

Siemens AG Page 15 Configuring Connections


Training Center
Address Parameters of ISO Transport Connections

Ethernet node Ethernet node


A B

Remote Local
TSAP TSAP
ISO transport
Local connection Remote
TSAP TSAP

MAC MAC
address address
A B

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.16

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);

Siemens AG Page 16 Configuring Connections


Training Center
Properties - ISO Transport Connection
Addresses Tab (1)

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.17

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.

Siemens AG Page 17 Configuring Connections


Training Center
Properties - ISO Transport Connection
Addresses Tab (2)

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.18

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.

Siemens AG Page 18 Configuring Connections


Training Center
Properties - ISO Transport Connection
Addresses Tab (3)

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.19

Unspecified If no remote station is specified, this signifies readiness to communicate with


connection any partner.
An unspecified connection must first be entered in the New Connection dialog.
Connection establishment is then passive and the remote address parameters
are missing, i.e. they are not relevant for the Ethernet CP. On establishment of a
connection, any partner that addresses the correct MAC address and the correct
TSAP is accepted.

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.

Siemens AG Page 19 Configuring Connections


Training Center
Properties - ISO Transport Connection
Dynamics Tab (1)

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.20

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.

Siemens AG Page 20 Configuring Connections


Training Center
Properties - ISO Transport Connection
Dynamics Tab (2)

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.21

Attribute Description Access

Connection
Establishment

Retransmission The retransmission time specifies the interval after which


Time an unsuccessful attempt at establishing a connection is to
be repeated (1 - 60 s, default 5 s)
- If connection establishment is active Modifiable
- If connection establishment is passive (-> irrelevant) Read only

Data Transfer

Retransmission This parameter specifies the interval after which an Modifiable


Time unsuccessful transmission attempt should be repeated
(100 - 30000 ms, default 1000 ms).

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.

Siemens AG Page 21 Configuring Connections


Training Center
Properties - ISO Transport Connection
Dynamics Tab (3)

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.22

The partner station sends a frame in response to a sign-of-life frame. Sign-of-life


frames are sent to the partner station at intervals specified by the window time. In
order to prevent connections from being cleared unnecessarily, the inactivity time
should be at least three times as long as the window time.

Siemens AG Page 22 Configuring Connections


Training Center
Properties - ISO Transport Connection
Options Tab (1)

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.23

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.

Connection establishment is passive (see setting on "General" tab page). This


means that the connection can only be established by the partner station
(SIMATIC S5 or non-SIMATIC station).

FETCH Direct read access to system memory areas in the SIMATIC S7

WRITE Direct write access to system memory areas in the SIMATIC S7

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.

Siemens AG Page 23 Configuring Connections


Training Center
FETCH Request/Acknowledgement Frame (1)
FETCH
PLC 1 PLC 2
Data destination Data source
DB 16 DB 15

DW 60 FETCH request frame DW 40 A N

(S5 HEADER 16 bytes) DB15, DW40, 4 words


DW 61 DW 41 A

DW62 DW42 G
FETCH reply frame

DATA
DW 63 (S5 HEADER, 16 bytes) AN AG 01 DW 43 0 1

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.24

Siemens AG Page 24 Configuring Connections


Training Center
FETCH Request/Acknowledgement Frame (2)
FETCH Request Message Frame FETCH Acknowledgement Message Frame

0 System ID................................=„S“ 0 System ID................................=„S“


1 ................................................=„5“ 1 ................................................=„5“
2 ..Length header.......................=16D. 2 ..Length header.......................=16D.
3 ..ID OP code ...........................=01.. 3 ..ID OP code ...........................=01..
4 ..Length OP code ....................=03.. 4 ..OP code length .....................=03..
5 ..OP code ................................=05.. 5 ..OP code ................................=06..
6 ..ORG field ..............................=03.. 6 ..Ackn. field .............................=0FH..
7 ..Length ORG field ..................=08.. 7 ..Length ackn. field..................=03..
8 ORG ID ................................... 8 ..Error No. ...............................=No...
9 ..DBNR .................................... 9 ..Empty field ............................=FFH.
A Starting H A ..Length empty field.................=07
B address.........................L B
C Length ..........................H C
D .......... .....................................L D Free
E ..Empty field ............................=FFH. E
F Length empty field =02 F

Data up to 64 K
provided Error No. =0

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.25

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

Siemens AG Page 25 Configuring Connections


Training Center
Write Request / Acknowledgement Frame (1)
WRITE

PLC 1 PLC 2
Data source Data destination
DB 13 DB 14

A N WRITE request frame DW 30

(S5 HEADER, 16 bytes) DATA


DB14, DW30, 4 words AN AG 02
A DW 31

G WRITE acknowledgement frame DW32

(S5 HEADER, 16 bytes)


0 2 DW 33

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.26

Siemens AG Page 26 Configuring Connections


Training Center
Write Request / Acknowledgement Frame (2)

WRITE request message frame WRITE acknowledgement message frame

0 System ID................................=„S“ 0 System ID................................=„S“


1 ................................................=„5“ 1 ................................................=„5“
2 ..Length header.......................=16D. 2 ..Length header.......................=16D.
3 ..ID OP code ...........................=01.. 3 ..ID OP code ...........................=01..
4 ..Length OP code ....................=03.. 4 ..Length OP code ....................=03..
5 ..OP code ................................=03..
5 ..OP code ................................=04..
6 ..ORG field ..............................=03..
6 ..Ackn. field .............................=0FH..
7 ..Length ORG field ..................=08..
7 ..Length ackn. field..................=03..
8 ORG ID ...................................
9 ..DBNR ....................................
8 ..Error No. ...............................=No...
A Starting H 9 ..Empty field ............................=FFH.
B address.........................L A ..Length empty field.................=07
C Length ..........................H B
D .......... .....................................L C
E ..Empty field ............................=FFH. D Free
F Length empty field =02 E
F

Data up to 64 K

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.27

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

Siemens AG Page 27 Configuring Connections


Training Center
S7 Address Areas for the FETCH/WRITE Functions

FETCH and WRITE can be used for accessing the following address
areas in the system memory of the SIMATIC S7

S7 address area ORG ID


(Hex.)
Data block (DB) 01
Bit memory (M) 02
Process-image input table (I) 03
Process-image output table (Q) 04
Input I/O area (PI) 05
Output I/O area (PQ) 05
Counters (C) 06
Timers (T) 07

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.28

Siemens AG Page 28 Configuring Connections


Training Center
Properties - ISO Transport Connection
Overview Tab

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.29

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

Local ID ID of the ISO transport connection

Conn. Name Connection name entered. This identifies the ISO transport connection.

R/S Rack/slot of the local CP used for the connection.

Remote Address Remote MAC address of the connection on the Ethernet subnet.

Local TSAP Local connection end point (Transport Service Access Point).

Remote TSAP Remote connection end point.

Status Current configuration status of the connection.


“Connections without assignment” are indicated by “No local CP / No remote
CP” in the status column and an “!” at the end of the “local ID”.
(Example: 0002 A020!)
Connections currently being edited are also indicated by an “!” at the end of the
“local ID”.

Siemens AG Page 29 Configuring Connections


Training Center
Calling the Properties - ISO-on-TCP Connection Dialog
The properties dialog is clearly divided into separate tab pages, each
containing a group of parameters that go together.

The following tabs are available for ISO-on-TCP connections:

• 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.

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.30

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:

1. Select the required connection in the connection table.

2. Double-click the relevant column in the connection table or choose the


menu options Edit > Object Properties

Result: The “Properties - ISO-on-TCP Connection” dialog appears.

Siemens AG Page 30 Configuring Connections


Training Center
Properties - ISO-on-TCP Connection
General Tab (1)

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.31

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.

Siemens AG Page 31 Configuring Connections


Training Center
Properties - ISO-on-TCP Connection
General Tab (2)

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.32

Attribute Description Access

Connection
Endpoint

Local ID Identical to the value in the connection list Selectable

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

Active The default is active connection establishment. If the connection is Modifiable


Connection unspecified, it is established passively.
Establishment ON: Connection established actively
OFF: Connection established by partner
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.

Siemens AG Page 32 Configuring Connections


Training Center
Address Parameters of ISO-on-TCP Connections

Ethernet node Ethernet node


A B

Remote Local
TSAP TSAP
ISO-on-TCP
Local connection Remote
TSAP TSAP

IP IP
address address
A B

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.33

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)

Siemens AG Page 33 Configuring Connections


Training Center
Properties - ISO-on-TCP Connection
Addresses Tab (1)

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.34

Addresses Tab The Addresses tab page gives suggested values for the relevant local and
remote addresses. You can set the TSAPs individually.

Siemens AG Page 34 Configuring Connections


Training Center
Properties - ISO-on-TCP Connection
Addresses Tab (2)

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.35

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.

Siemens AG Page 35 Configuring Connections


Training Center
Properties - ISO-on-TCP Connection
Addresses Tab (3)

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.36

Unspecified If no remote station is specified, this signifies readiness to communicate with


Connection any partner.
An unspecified connection must first be entered in the New Connection dialog.
Connection establishment is then passive and the remote address parameters
are missing, i.e. they are not relevant for the Ethernet CP. On establishment of a
connection, any partner that addresses the correct IP address and the correct
TSAP is accepted.

Siemens AG Page 36 Configuring Connections


Training Center
Properties - ISO-on-TCP Connection
Options Tab

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.37

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.

Connection establishment is passive (see setting on "General" tab page). This


means that the connection can only be established by the partner station
(SIMATIC S5 or non-SIMATIC station).

FETCH Direct read access to system memory areas in the SIMATIC S7

WRITE Direct write access to system memory areas in the SIMATIC S7

Connections The FETCH and WRITE operating modes are supported by ISO and ISO-on-
TCP connections.

Address Areas As for ISO 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.

Siemens AG Page 37 Configuring Connections


Training Center
Properties - ISO-on-TCP Connection
Overview Tab

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.38

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

Local ID ID of the ISO-on-TCP connection

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)

Remote address Remote IP address of the connection.

Local TSAP Local Transport Service Access Point.

Remote TSAP Remote Transport Service Access Point.

Status Current configuration status of the connection.


“Connections without assignment” are indicated by “No local CP / No remote
CP” in the status column and an “!” at the end of the “local ID”.
(Example: 0002 A000!)
Connections currently being edited are also indicated by an “!” at the end of the
“local ID”.

Siemens AG Page 38 Configuring Connections


Training Center
Calling the Properties - TCP Connection Dialog
The properties dialog is clearly divided into separate tab pages, each
containing a group of parameters that go together.

The following tabs are available for TCP connections:

• 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.

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.39

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:

1. Select the required connection in the connection table.

2. Double-click the relevant column in the connection table or choose the


menu options Edit > Object Properties

Result: The “Properties - TCP Connection” dialog appears.

Siemens AG Page 39 Configuring Connections


Training Center
Properties - TCP Connection
General Tab (1)

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.40

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.

Siemens AG Page 40 Configuring Connections


Training Center
Properties - TCP Connection
General Tab (2)

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.41

Attribute Description Access

Connection
Endpoint

Local ID Identical to the value in the connection list Selectable

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

Active The default is active connection establishment. If the connection is Modifiable


Connection unspecified, it is established passively.
Establishment ON: Connection established actively
OFF: Connection established by partner
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.

Siemens AG Page 41 Configuring Connections


Training Center
Address Parameters of TCP Connections

Ethernet node Ethernet node


A B

Remote Local
port port
TCP
Local connection Remote
port port

IP IP
address address
A B

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.42

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

Siemens AG Page 42 Configuring Connections


Training Center
Properties - TCP Connection
Addresses Tab (1)

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.43

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

0 Already assigned, must not be used

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.

> 5000 These port addresses are used by the system.

Siemens AG Page 43 Configuring Connections


Training Center
Properties - TCP Connection
Addresses Tab (2)

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.44

Unspecified If no remote station is specified, this signifies readiness to communicate with


Connection any partner.
An unspecified connection must first be entered in the New Connection dialog.
Connection establishment is then passive and the remote address parameters
are missing, i.e. they are not relevant for the Ethernet CP. On establishment of a
connection, any partner that addresses the correct IP address and the correct
port address is accepted.

Siemens AG Page 44 Configuring Connections


Training Center
Properties - TCP Connection
Overview Tab

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.45

Overview Tab The overview shows all the TCP connections in this station configured so far,
together with their parameters (cannot be changed).

Parameter Description

Local ID ID of the TCP connection

Conn. Name Connection name entered. This identifies the TCP connection.

R/S Rack/slot of the local CP used for the connection. (Hardware configuration)

Remote address Remote IP address of the connection.

Local PORT

Remote PORT

Status Current configuration status of the connection.


“Connections without assignment” are indicated by “No local CP / No remote
CP” in the status column and an “!” at the end of the “local ID”.
(Example: 0007 A020!)
Connections currently being edited are also indicated by an “!” at the end of the
“local ID”.

Siemens AG Page 45 Configuring Connections


Training Center
Calling the Properties - UDP Connection Dialog
The properties dialog is clearly divided into separate tab pages, each
containing a group of parameters that go together.

The following tabs are available for UDP connections:

• 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.

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.46

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:

1. Select the required connection in the connection table.

2. Double-click the relevant column in the connection table or choose the


menu options Edit > Object Properties

Result: The “Properties - UDP Connection” dialog appears.

Siemens AG Page 46 Configuring Connections


Training Center
Properties - UDP Connection
General Tab (1)

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.47

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.

Siemens AG Page 47 Configuring Connections


Training Center
Properties - UDP Connection
General Tab (2)

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.48

Attribute Description Access

Connection
Endpoint

Local ID Identical to the value in the connection list Selectable

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.

Siemens AG Page 48 Configuring Connections


Training Center
Address Parameters of UDP Connections

Ethernet node Ethernet node


A B

Remote Local
port port
UDP
Local connection Remote
port port

IP IP
address address
A B

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.49

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

Siemens AG Page 49 Configuring Connections


Training Center
Properties - UDP Connection
Addresses Tab (1)

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.50

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

0 Already assigned, must not be used

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.

> 5000 These port addresses are used by the system.

Siemens AG Page 50 Configuring Connections


Training Center
Properties - UDP Connection
Addresses Tab (2)

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.51

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.

Siemens AG Page 51 Configuring Connections


Training Center
Properties - UDP Connection
Options Tab

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.52

Operating Mode You cannot change this.

Siemens AG Page 52 Configuring Connections


Training Center
Properties - UDP Connection
Overview Tab

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.53

Overview Tab The overview shows all the UDP connections in this station configured so far,
together with their parameters (cannot be changed).

Parameter Description

Local ID ID of the UDP connection

Conn. Name Connection name entered. This identifies the UDP connection.

R/S Rack/slot of the local CP used for the connection. (Hardware configuration)

Remote address Remote IP address of the connection.

Local PORT

Remote PORT

Status Current configuration status of the connection.


“Connections without assignment” are indicated by “No local CP / No remote
CP” in the status column and an “!” at the end of the “local ID”.
(Example: 0002 A000!)
Connections currently being edited are also indicated by an “!” at the end of the
“local ID”.

Siemens AG Page 53 Configuring Connections


Training Center
Free UDP Connection

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

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.54

A free UDP connection permits program-controlled addressing of the


communication partner. Communication between two nodes features the
following properties:

 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.

Siemens AG Page 54 Configuring Connections


Training Center
Route

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.55

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.

Siemens AG Page 55 Configuring Connections


Training Center
Changing the Connection Partner

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7E_PISO.56

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:

1. Select the required connection in the connection table.

2. Choose the menu options Edit > Connection Partner...

Result: The screen shown above

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.

Siemens AG Page 56 Configuring Connections


Training Center

Вам также может понравиться