Sie sind auf Seite 1von 18

Exercises

SIMATIC NET

Industrial Ethernet

Siemens AG 1999. All rights reserved.

Siemens AG
Training Center

Date:
01.09.1999
File No.: 7KE_UE.1

Page 1

KO-7KETHER
Exercises

Exercise 1
Configuring the PLC
Time-of-Day Synchronization via Industrial Ethernet
Group 1

S7-400/1
S7-300/1

MPI

S7-400/2
S7-300/2

CP (ISO)

MPI

Ethernet (1)

SIEMENS

CP (ISO)

SIEMENS

PG 740

PG 740

SIMATIC NET

Group 2

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
Training Center

Page 2

KO-7KETHER
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
Training Center

Page 3

KO-7KETHER
Exercises

Exercise 3
Configuring an Unspecified ISO Transport Connection

Group 1

Unspecified
ISO connection

Group 2

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:

Siemens AG
Training Center

NCM S7 Ethernet Diagnostics (Connection Properties)

SCOPE for Industrial Ethernet diagnostics software


(if available in the course room)

Page 4

KO-7KETHER
Exercises

Exercise 4
Configuring a Specified ISO Transport Connection

Group 1

Specified
ISO connection

Group 2

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:

Siemens AG
Training Center

NCM S7 Ethernet Diagnostics (Connection Properties)

SCOPE for Industrial Ethernet diagnostics software


(if available in the course room)

Page 5

KO-7KETHER
Exercises

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

Data transmission

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

Siemens AG
Training Center

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.

Page 6

KO-7KETHER
Exercises

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

OB 1
FC AG_SEND
.
.
.
.
FC AG_RECV

ACT
DONE
ERROR
STATUS

I 0.0
M 1.0
M 1.1
MW 10

NDR
ERROR
STATUS
LEN

M 1.2
M 1.3
MW 12
MW 14

BE

SIMATIC NET

Industrial Ethernet

Siemens AG 1999. All rights reserved.

Siemens AG
Training Center

Date:
01.09.1999
File No.: 7KE_UE.7

Page 7

KO-7KETHER
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

Siemens AG
Training Center

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.

Page 8

KO-7KETHER
Exercises

Exercise 6
Transmitting Data via the Specified ISO Connection (2)


Sending end
FC 10

OB 1

FC AG_SEND

Call FC10

BE

ACT
DONE
ERROR
STATUS

I 0.1
M 2.0
M 2.1
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
Training Center

Page 9

KO-7KETHER
Exercises

Exercise 6
Transmitting Data via the Specified ISO Connection (3)


Receiving end
FC 11

OB 1

FC AG_RECV

Call FC11

BE

NDR
ERROR
STATUS
LEN

M 2.2
M 2.3
MW 22
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
Training Center

Page 10

KO-7KETHER
Exercises

Exercise 7
Configuring the PLC
Time-of-Day Synchronization via Industrial Ethernet
Group 1

S7-400/1
S7-300/1

S7-400/2
S7-300/2

CP (ISO-on-TCP)

MPI

MPI

Ethernet (1)

SIEMENS

CP (ISO-on-TCP)

SIEMENS

PG 740

PG 740

SIMATIC NET

Group 2

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
Training Center

Page 11

KO-7KETHER
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:

Siemens AG
Training Center

NCM S7 Ethernet Diagnostics (Connection Properties)

SCOPE for Industrial Ethernet diagnostics software


(if available in the course room)

Page 12

KO-7KETHER
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:

Siemens AG
Training Center

NCM S7 Ethernet Diagnostics (Connection Properties)

SCOPE for Industrial Ethernet diagnostics software


(if available in the course room)

Page 13

KO-7KETHER
Exercises

Exercise 10
Transmitting Data via the Unspecified ISO-on-TCP
Connection (1)
Data transmission

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

Siemens AG
Training Center

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.

Page 14

KO-7KETHER
Exercises

Exercise 10
Transmitting Data via the Unspecified ISO-on-TCP
Connection (2)
OB 1
FC AG_SEND
.
.
.
.
FC AG_RECV

ACT
DONE
ERROR
STATUS

I 0.0
M 1.0
M 1.1
MW 10

NDR
ERROR
STATUS
LEN

M 1.2
M 1.3
MW 12
MW 14

BE

SIMATIC NET

Industrial Ethernet

Siemens AG 1999. All rights reserved.

Siemens AG
Training Center

Date:
01.09.1999
File No.: 7KE_UE.15

Page 15

KO-7KETHER
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

Siemens AG
Training Center

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.

Page 16

KO-7KETHER
Exercises

Exercise 11
Transmitting Data via the Specified ISO-on-TCP
Connection (2)


Sending end
FC 10

OB 1

FC AG_SEND

Call FC10

BE

ACT
DONE
ERROR
STATUS

I 0.1
M 2.0
M 2.1
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
Training Center

Page 17

KO-7KETHER
Exercises

Exercise 11
Transmitting Data via the Specified ISO-on-TCP
Connection (3)


Receiving end
FC 11

OB 1

FC AG_RECV

Call FC11

BE

NDR
ERROR
STATUS
LEN

M 2.2
M 2.3
MW 22
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
Training Center

Page 18

KO-7KETHER
Exercises

Das könnte Ihnen auch gefallen