Professional Documents
Culture Documents
SIEMENS
Ethernet (1) SIEMENS
PG 740
PG 740
• 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.
• 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.
• 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.
Group 1 Group 2
Unspecified
ISO connection
Ethernet (1)
• 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:
Group 1 Group 2
Specified
ISO connection
Ethernet (1)
• 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.
• 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:
Unspecified
ISO connection
Ethernet (1)
• 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.
Use the “Monitor and Modify Variables“ function to look at the condition codes of the
SEND and RECEIVE functions.
OB 1
BE
Specified
ISO connection
Ethernet (1)
• Send data as instructed on the following pages in both directions via the specified ISO connection
you have configured.
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.
OB 1 FC 10
BE
ACT I 0.1
DONE M 2.0
ERROR M 2.1
STATUS MW 20
BE
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
OB 1 FC 11
BE
NDR M 2.2
ERROR M 2.3
STATUS MW 22
LEN MW 24
BE
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
Ethernet (1) SIEMENS
PG 740
PG 740
• 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.
IP Address: 140.80.x.y
• 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.
Ethernet (1)
• 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:
Ethernet (1)
• 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.
• 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:
Unspecified
ISO connection
Ethernet (1)
• 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.
Use the “Monitor and Modify Variables“ function to look at the condition codes of the
SEND and RECEIVE functions.
OB 1
BE
Specified
ISO-on-TCP
connection
Ethernet (1)
• Send data as instructed on the following pages in both directions via the specified ISO-on-TCP
connection you have configured.
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.
OB 1 FC 10
BE
ACT I 0.1
DONE M 2.0
ERROR M 2.1
STATUS MW 20
BE
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
OB 1 FC 11
BE
NDR M 2.2
ERROR M 2.3
STATUS MW 22
LEN MW 24
BE
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