S7-200-与S7300的以太网通讯.doc

上传人(卖家):淡淡的紫竹语嫣 文档编号:1107971 上传时间:2021-02-22 格式:DOC 页数:12 大小:809.50KB
下载 相关 举报
S7-200-与S7300的以太网通讯.doc_第1页
第1页 / 共12页
S7-200-与S7300的以太网通讯.doc_第2页
第2页 / 共12页
S7-200-与S7300的以太网通讯.doc_第3页
第3页 / 共12页
S7-200-与S7300的以太网通讯.doc_第4页
第4页 / 共12页
S7-200-与S7300的以太网通讯.doc_第5页
第5页 / 共12页
点击查看更多>>
资源描述

1、Entry ID: 17369594 Date: 10/16/2003 QUESTION:QUESTION: How do I configure an S7 connection for data communication between an S7-200 and an S7-300 via Ethernet? ANSWER:ANSWER: The configuration of an S7 connection between an S7-200 and an S7-300 via Ethernet has to be done on the one hand in STEP 7 M

2、icro/WIN with the Ethernet Wizard for the S7- 200 and on the other in NetPro for the S7-300. For the Ethernet communication between the two stations you need communication processors and CPUs that support S7 communication. In this entry we have explained all the settings required for the S7-200 and

3、the S7-300 using a sample configuration with CPU 226, CP243-1, CPU 315-2DP and CP343-1. Configuration of the CP243Configuration of the CP243- -1 using the Ethernet Wizard of STEP 7 Micro/WIN1 using the Ethernet Wizard of STEP 7 Micro/WIN 1. Open STEP 7 Micro/WIN and then start the Ethernet Wizard vi

4、a Tools Ethernet Wizard. Fig. 1: Starting the Ethernet Wizard 2. In the first step of the Wizard is a description of the Ethernet Wizard. Click on Next to start the configuration process. Fig. 2: Description of the Ethernet Wizard 3. In the window that is displayed you are informed that your STEP 7

5、Micro/WIN project must be compiled and be in Symbolic Addressing mode. Acknowledge the message with Yes. Fig. 3: Compiling the project and enabling the Symbolic Addressing mode 4. If you are connected with the CP243-1 in your S7-200 station, you can determine the module position of the CP243-1 autom

6、atically via the Read Modules button. You can also enter the module position manually. Click on Next. Fig. 4: Determining the module position 5. Define a unique IP address for the CP243-1 and specify the associated subnetwork mask. Acknowledge the settings with Next. Fig. 5: Defining the IP address

7、and subnetwork mask for the CP243-1 6. In our example we need an S7 connection for communication to the S7-300. So, for Number of connections to configure for this module you enter 1. Click on Next. Fig. 6: Number of S7 connections 7. The dialog for configuring the S7 connection opens. The S7 connec

8、tion can be configured as a client or server connection. In our example we have used a client connection for the data transfer, i.e. the S7 connection is set up actively by the CP243-1. Enter the TSAP for connection identification between the two stations. The first part of the TSAP (xx.) is taken f

9、rom 10 + connection number, and the second part (.xx) of the TSAP is taken from the rack number and the slot of the CP343-1. In our example the TSAP is 10.07, i.e. the connection number = 0, the rack number = 0 and the slot of the CP = 7. Enter the IP address of the CP343-1. Specify a symbolic name

10、for the connection. Click on the Data Transfers button to define a new data transfer for this connection. Fig. 7: Connection configuration 8. In order to read data from the S7-300 you select Read data from the remote server connection. Enter the number of data bytes to be read from the server and sp

11、ecify where this data is located in the S7-300. Define a storage area in the S7-200 for the data read. Assign a symbolic name for the data transfer. Acknowledge the settings with OK. Fig. 8: Configuring the data transfer 9. Since the configuration of the CP243-1 module may no longer be changed, you

12、select the setting with CRC protection. You can specify the Keep Alive Interval with the default time. Click on Next. Fig. 9: CRC protection and Keep Alive Interval 10. Select a free address area for storing the configuration. Fig. 10: Selecting a storage area for the configuration 11. Close the Eth

13、ernet Wizard with Finish. The Ethernet Wizard generates the project components required. Fig. 11: Closing the Ethernet Wizard 12. In the main program (MAIN (OB1) you add the call of the ETH0_CTRL (communication setup) and the call of the ETH0_XFR (read data packages). The parameters Chan_ID and Data

14、 of the ETH0_XFR block can be selected with a right-click. Fig. 12: Adding the program code in the main program 13. Save the configuration and load it in the S7 200. Configuring an unspecified S7 connection in NetProConfiguring an unspecified S7 connection in NetPro 1. Open your STEP 7 project with

15、the configured SIMATIC S7-300 station and switch to NetPro via Options Configure Network. Fig. 13: Starting NetPro 2. Mark the CPU in the SIMATIC S7-300 station and create a connection via Insert New Connection. Fig. 14: Inserting a new connection 3. Select an unspecified S7 connection as connection

16、 type. Fig. 15: Creating an unspecified S7 connection 4. The Properties Dialog for the S7 connection opens. Remove the check mark for Establish an active connection, because the connection is set up by the S7-200. For the partner address you enter the IP address of the S7-200. Then click on Address

17、Details. Fig. 16: Properties of the S7 connection 5. The partner TSAP settings must match the local settings in Fig. 7. However, the local TSAP is calculated differently than for the S7-200. Local TSAP = 10 + Connection Number . Rack Number + Slot of the CPU. The correct TSAP in this mask is therefo

18、re 10.02. Fig. 17: Specification of the address details 6. Save and compile the configuration. Then download the complete S7-300 station from NetPro. 7. Switch to the block folder. Create DB11 with a sufficient data length, because this contains the data for the communication (Fig. 8). Download this also into the controller. 8. Configuration is now completed. You can now monitor the Receive data area (here: VB1000) online via the status table in STEP 7 Micro/WIN and check whether a data transfer is being made.

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 办公、行业 > 电子与机械类
版权提示 | 免责声明

1,本文(S7-200-与S7300的以太网通讯.doc)为本站会员(淡淡的紫竹语嫣)主动上传,163文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
2,用户下载本文档,所消耗的文币(积分)将全额增加到上传者的账号。
3, 若此文所含内容侵犯了您的版权或隐私,请立即通知163文库(发送邮件至3464097650@qq.com或直接QQ联系客服),我们立即给予删除!


侵权处理QQ:3464097650--上传资料QQ:3464097650

【声明】本站为“文档C2C交易模式”,即用户上传的文档直接卖给(下载)用户,本站只是网络空间服务平台,本站所有原创文档下载所得归上传人所有,如您发现上传作品侵犯了您的版权,请立刻联系我们并提供证据,我们将在3个工作日内予以改正。


163文库-Www.163Wenku.Com |网站地图|