For the connection partner, select the "(unspecified)" type.
These connections must now be configured. To do so, you must first define in the
"Properties - S7 connection" mask (see Figure 7) whether your S7-300 or S7-400
system is to act as an active or passive participant. If your S7-300 or S7-400 system
is to communicate with an S7-200 system, also define whether your system is
to be operated as a client or server. If you would like to operate your S7-300 or S7-
400 system as a client, enable the "Active connection generation" entry. Your system
will be operated as a server if the entry is not enabled. Then make the settings
necessary to process your S7 connection with the TCP/IP protocol. To do so, select
the "TCP/IP" item. To establish the TCP/IP connection with your partner, also
specify the partner’s IP address.
Fig. 7. "Properties – S7 connection" dialog
Finally, in the "Address details" dialog, define the communication end points
("TSAPs") to be used. The TSAP of a connection in the S7-200 system is found in
the STEP 7 Micro/WIN 32 in the dialog in which you configured the inpidual connections,
under the "Local properties" entry. Enter the communication end point
specified there in the fields provided for the partner’s TSAP in the "Address details"
dialog. The communication end point assigned for the connection in your S7-300 or
S7-400 system is found in the same dialog under the "Local" entry in the "TSAP"
field. Enter the value specified there in STEP 7 Micro/WIN 32 in the dialog from
which you retrieved the communication end point used there. The value needs to
be entered in the "Remote properties" entry in the "TSAP" field in that dialog.
S7-300 system as client
If you would like to operate an S7-300 system as a client, i.e. if you have enabled
the "Active connection generation" item in the "Properties - S7 connection" dialog,
then you cannot directly use the TSAP specified in STEP 7 in the "Local" entry in
STEP 7 Micro/WIN 32 as a connection end point for your S7-300 system. You must
first transform this TSAP according to the following rules:
1st byte of TSAP:
Taken over from STEP 7, "Address details" dialog, "Local" entry, "TSAP" field.
2nd byte of TSAP:
Derived from the rack and position of your Ethernet communications processor in
your S7-300 system.
The number of the rack in which your Ethernet communications processor is inserted
in your S7-300 system is specified in the first 3 bits.
The remaining 5 bits contain the position of your Ethernet communications processor
in your S7-300 system.
These two values are found in the STEP 7 HWConfig program package.
Example:
A CP 343-1 is inserted in your S7-300 system in position 4 in rack 0. When you
configure a connection with STEP 7, a value of 10.02 is displayed as the local
TSAP. In STEP 7 Micro/WIN 32, you must use a TSAP of 10.04 for the communication
end point in the S7-300 system (1st byte (here: 10) is taken over, 2nd byte is
derived from the rack (here 0) and the position (here 4)).
Attention
The definitions for the communication end points ("TSAPs") in STEP7 and in
STEP 7 Micro/WIN 32 must be mutually compatible. No client services operated
from communication partners are allowed to a CP’s client connection. A clear client-
server connection is indispensable.
Free connections S7-200PLC组态英文文献和中文翻译(5):http://www.youerw.com/fanyi/lunwen_52459.html