You are on page 1of 18

Exercises

SIMATIC NET Industrial Ethernet


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

Siemens AG Page 1 KO-7KETHER


Training Center Exercises
Exercise 1
Configuring the PLC
Time-of-Day Synchronization via Industrial Ethernet

Group 1 S7-400/1 S7-400/2 Group 2


S7-300/1 S7-300/2

MPI CP (ISO) MPI CP (ISO)

SIEMENS
Ethernet (1) SIEMENS

PG 740
PG 740

SIMATIC NET Industrial Ethernet


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

• Create a project for your PLC with an Ethernet CP for the ISO protocol (see slide) and configure
the hardware provided.
You can choose your own names for the project and other items.
Save the project in the directory E:\COURSES\7KETHER.
Include a dummy object in your project to represent the PLC of the partner group.
Activate memory byte 100 as a clock memory
For S7-400 stations:
Do not assign the S7-400 CPU to a PROFIBUS subnet.
Define one station in the entire network as clock master. All the other stations are to act as clock
slaves and set their system time to the time received from the clock master.

• For the Ethernet CP:

 MAC Address: H 080006017xy0

where x = 3 for S7-300


x = 4 for S7-400

and y = No of the station

• Carry out a memory reset on your system.

• Download the configuration to your PLC via the MPI connection. Make sure that both the CPU and
the Ethernet CP are in RUN mode when you have finished downloading.

• Test the synchronization of the time-of-day via the network.

Siemens AG Page 2 KO-7KETHER


Training Center Exercises
Exercise 2
Identifying the Ethernet CP and
Ascertaining the Operating Mode

SIMATIC NET Industrial Ethernet


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

• Use the NCM S7 Ethernet Diagnostics to identify the CP (CP Information) and ascertain the
operating mode.

• Start the NCM Ethernet Diagnostics by both of the possible methods in turn.

• Use the NCM S7 Ethernet Diagnostics to switch the CP to Stop mode and back to Run again.

• Carry out a memory reset on the CP using the NCM S7 Ethernet Diagnostics.

• Download the configuration for the CP again (CP configuration only) and switch the CP to Run
mode.

Siemens AG Page 3 KO-7KETHER


Training Center Exercises
Exercise 3
Configuring an Unspecified ISO Transport Connection

Group 1 Group 2
Unspecified
ISO connection

Ethernet (1)

SIMATIC NET Industrial Ethernet


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

• Configure an unspecified ISO transport connection to your partner PLC


Confer with your partner to choose a name for the connection, decide which partner is to initiate
connection establishment, and choose the TSAP addresses.

 The TSAP addresses must, however, be 8 bytes long.

• Download the connection table to the PLC and start up the connection.

• Use both of the following tools to check whether the connection has been established:

 NCM S7 Ethernet Diagnostics (Connection Properties)

 SCOPE for Industrial Ethernet diagnostics software


(if available in the course room)

Siemens AG Page 4 KO-7KETHER


Training Center Exercises
Exercise 4
Configuring a Specified ISO Transport Connection

Group 1 Group 2
Specified
ISO connection

Ethernet (1)

SIMATIC NET Industrial Ethernet


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

• Configure another connection to your partner PLC, this time a specified ISO Transport connection.
Confer with your partner to choose a name for the connection and decide which partner is to
initiate connection establishment.

 Use the TSAP addresses generated by the system

• Download the connection table to the PLC and start up the connection.

• Use both of the following tools to check whether the connection has been established:

 NCM S7 Ethernet Diagnostics (Connection Properties)

 SCOPE for Industrial Ethernet diagnostics software


(if available in the course room)

Siemens AG Page 5 KO-7KETHER


Training Center Exercises
Exercise 5
Transmitting Data via the Unspecified ISO Connection (1)

Group 1 Data transmission Group 2

Unspecified
ISO connection

Ethernet (1)

SIMATIC NET Industrial Ethernet


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

• Send the clock memory byte to your partner station via the unspecified ISO connection you have
configured. The station on the left sends the clock memory byte to the station on the right and
vice-versa.
At the receiving end, pass the information received to a digital output module for display.

• Check that the data has been transmitted correctly

 Carry out a visual check

 Use the NCM S7 Ethernet Diagnostics

 Use the “Monitor and Modify Variables“ function to look at the condition codes of the
SEND and RECEIVE functions.

Siemens AG Page 6 KO-7KETHER


Training Center Exercises
Exercise 5
Transmitting Data via the Unspecified ISO Connection (2)

OB 1

FC „AG_SEND“ ACT I 0.0


DONE M 1.0
. ERROR M 1.1
. STATUS MW 10
.
.
FC „AG_RECV
NDR M 1.2
ERROR M 1.3
STATUS MW 12
LEN MW 14

BE

SIMATIC NET Industrial Ethernet


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

Siemens AG Page 7 KO-7KETHER


Training Center Exercises
Exercise 6
Transmitting Data via the Specified ISO Connection (1)

Group 1 Data transmission Group 2

Specified
ISO connection

Ethernet (1)

SIMATIC NET Industrial Ethernet


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

• Send data as instructed on the following pages in both directions via the specified ISO connection
you have configured.

• Check that the data has been transmitted correctly

 Use the NCM S7 Ethernet Diagnostics

 Use the “Monitor and Modify Variables“ function to look at the condition codes of the
SEND and RECEIVE functions and some of the data sent and received.

Siemens AG Page 8 KO-7KETHER


Training Center Exercises
Exercise 6
Transmitting Data via the Specified ISO Connection (2)
 Sending end

OB 1 FC 10

Call FC10 FC “AG_SEND”

BE

ACT I 0.1
DONE M 2.0
ERROR M 2.1
STATUS MW 20

BE

SIMATIC NET Industrial Ethernet


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

Transmit four data bytes from data block DB 10, starting with data word 0, to your
partner via the specified ISO connection.
Supply data word 0 with input byte 1 before making the transmission.

Sender
Receiver

DB 10

Siemens AG Page 9 KO-7KETHER


Training Center Exercises
Exercise 6
Transmitting Data via the Specified ISO Connection (3)
 Receiving end

OB 1 FC 11

Call FC11 FC “AG_RECV”

BE

NDR M 2.2
ERROR M 2.3
STATUS MW 22
LEN MW 24
BE

SIMATIC NET Industrial Ethernet


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

Receive the data transmitted by your partner via the specified ISO connection in
data block DB 11, starting from data word 0.
Output data byte 0 of DB 11 to the next free output byte.

Sender
Receiver

DB 11

Siemens AG Page 10 KO-7KETHER


Training Center Exercises
Exercise 7
Configuring the PLC
Time-of-Day Synchronization via Industrial Ethernet

Group 1 S7-400/1 S7-400/2 Group 2


S7-300/1 S7-300/2

MPI CP (ISO-on-TCP) MPI CP (ISO-on-TCP)

SIEMENS
Ethernet (1) SIEMENS

PG 740
PG 740

SIMATIC NET Industrial Ethernet


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

• Create a project for your PLC with an Ethernet CP for the ISO-on-TCP protocol (see slide) and
configure the hardware provided.
You can choose your own names for the project and other items.
Save the project in the directory E:\COURSES\7KETHER.
Include a dummy object in your project to represent the PLC of the partner group.
Activate memory byte 100 as a clock memory
For S7-400 stations:
Do not assign the S7-400 CPU to a PROFIBUS subnet.
Define one station in the entire network as clock master. All the other stations are to act as clock
slaves and set their system time to the time received from the clock master.

• For the Ethernet CP:

 MAC Address: H 080006017xy0

 IP Address: 140.80.x.y

where x = 3 for S7-300


x = 4 for S7-400

and y = No of the station

• Carry out a memory reset on your system.

• Download the configuration to your PLC via the MPI connection. Make sure that both the CPU and
the Ethernet CP are in RUN mode when you have finished downloading.

• Test the synchronization of the time-of-day via the network.

Siemens AG Page 11 KO-7KETHER


Training Center Exercises
Exercise 8
Configuring an Unspecified ISO-on-TCP Transport
Connection
Unspecified
ISO-on-TCP connection
Group 1 Group 2

Ethernet (1)

SIMATIC NET Industrial Ethernet


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

• Configure an unspecified ISO-on-TCP connection to your partner PLC


Confer with your partner to choose a name for the connection, decide which partner is to initiate
connection establishment, and choose the TSAP addresses.

 The TSAP addresses must, however, be 8 bytes long.

• Download the connection table to the PLC and start up the connection.

• Use both of the following tools to check whether the connection has been established:

 NCM S7 Ethernet Diagnostics (Connection Properties)

 SCOPE for Industrial Ethernet diagnostics software


(if available in the course room)

Siemens AG Page 12 KO-7KETHER


Training Center Exercises
Exercise 9
Configuring a Specified ISO-on-TCP Transport
Connection
Specified
ISO-on-TCP connection
Group 1 Group 2

Ethernet (1)

SIMATIC NET Industrial Ethernet


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

• Configure another connection to your partner PLC, this time a specified ISO-on-TCP connection.
Confer with your partner to choose a name for the connection and decide which partner is to
initiate connection establishment.

 Use the TSAP addresses generated by the system

• Download the connection table to the PLC and start up the connection.

• Use both of the following tools to check whether the connection has been established:

 NCM S7 Ethernet Diagnostics (Connection Properties)

 SCOPE for Industrial Ethernet diagnostics software


(if available in the course room)

Siemens AG Page 13 KO-7KETHER


Training Center Exercises
Exercise 10
Transmitting Data via the Unspecified ISO-on-TCP
Connection (1)

Group 1 Data transmission Group 2

Unspecified
ISO connection

Ethernet (1)

SIMATIC NET Industrial Ethernet


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

• Send the clock memory byte to your partner station via the unspecified ISO-on-TCP connection
you have configured. The station on the left sends the clock memory byte to the station on the
right and vice-versa.
At the receiving end, pass the information received to a digital output module for display.

• Check that the data has been transmitted correctly

 Carry out a visual check

 Use the NCM S7 Ethernet Diagnostics

 Use the “Monitor and Modify Variables“ function to look at the condition codes of the
SEND and RECEIVE functions.

Siemens AG Page 14 KO-7KETHER


Training Center Exercises
Exercise 10
Transmitting Data via the Unspecified ISO-on-TCP
Connection (2)

OB 1

FC „AG_SEND“ ACT I 0.0


DONE M 1.0
. ERROR M 1.1
. STATUS MW 10
.
.
FC „AG_RECV
NDR M 1.2
ERROR M 1.3
STATUS MW 12
LEN MW 14

BE

SIMATIC NET Industrial Ethernet


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

Siemens AG Page 15 KO-7KETHER


Training Center Exercises
Exercise 11
Transmitting Data via the Specified ISO-on-TCP
Connection (1)

Group 1 Data transmission Group 2

Specified
ISO-on-TCP
connection
Ethernet (1)

SIMATIC NET Industrial Ethernet


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

• Send data as instructed on the following pages in both directions via the specified ISO-on-TCP
connection you have configured.

• Check that the data has been transmitted correctly

 Use the NCM S7 Ethernet Diagnostics

 Use the “Monitor and Modify Variables“ function to look at the condition codes of the
SEND and RECEIVE functions and some of the data sent and received.

Siemens AG Page 16 KO-7KETHER


Training Center Exercises
Exercise 11
Transmitting Data via the Specified ISO-on-TCP
Connection (2)
 Sending end

OB 1 FC 10

Call FC10 FC “AG_SEND”

BE

ACT I 0.1
DONE M 2.0
ERROR M 2.1
STATUS MW 20

BE

SIMATIC NET Industrial Ethernet


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

Transmit four data bytes from data block DB 10, starting with data word 0, to your
partner via the specified ISO-on-TCP connection.
Supply data word 0 with input byte 1 before making the transmission.

Sender
Receiver

DB 10

Siemens AG Page 17 KO-7KETHER


Training Center Exercises
Exercise 11
Transmitting Data via the Specified ISO-on-TCP
Connection (3)
 Receiving end

OB 1 FC 11

Call FC11 FC “AG_RECV”

BE

NDR M 2.2
ERROR M 2.3
STATUS MW 22
LEN MW 24
BE

SIMATIC NET Industrial Ethernet


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

Receive the data transmitted by your partner via the specified ISO-on-TCP
connection in data block DB 11, starting from data word 0.
Output data byte 0 of DB 11 to the next free output byte.

Sender
Receiver

DB 11

Siemens AG Page 18 KO-7KETHER


Training Center Exercises

You might also like