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

上传人:紫*** 文档编号:4126682 上传时间:2021-02-15 格式:DOC 页数:12 大小:809.50KB
返回 下载 相关 举报
S7-200_与S7300的以太网通讯.doc_第1页
第1页 / 共12页
S7-200_与S7300的以太网通讯.doc_第2页
第2页 / 共12页
点击查看更多>>
资源描述

《S7-200_与S7300的以太网通讯.doc》由会员分享,可在线阅读,更多相关《S7-200_与S7300的以太网通讯.doc(12页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。

1、Entry ID:17369594Date:10/16/2003QUESTION:How do I configure an S7 connection for data communication between an S7-200 and an S7-300 via Ethernet? 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 Micro/WIN with the Ethe

2、rnet 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 the S7-300 using a sam

3、ple configuration with CPU 226, CP243-1, CPU 315-2DP and CP343-1. Configuration of the CP243-1 using the Ethernet Wizard of STEP 7 Micro/WIN 1. Open STEP 7 Micro/WIN and then start the Ethernet Wizard via Tools Ethernet Wizard.Fig. 1: Starting the Ethernet Wizard 2. In the first step of the Wizard i

4、s 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 Micro/WIN project must be compiled and be in Symbolic Addressing mode. Acknowledge the message with

5、 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 automatically via the Read Modules button. You can also enter the module position manually. Click on Next

6、.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 and subnetwork mask for the CP243-1 6. In our example we need an S7 connection for communication to th

7、e 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 connection can be configured as a client or server connection. In our example we have used a client connectio

8、n 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 from 10 + connection number, and the second part (.xx) of the TSAP is taken from the rack number and the

9、 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 for the connection.Click on the Data Transfers button to define a new data transfer for this connection.

10、 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 specify where this data is located in the S7-300. Define a storage area in the S7-200 for the data read. As

11、sign 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 select the setting with CRC protection. You can specify the Keep Alive Interval with the default time. Cli

12、ck 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 Ethernet Wizard with Finish. The Ethernet Wizard generates the project components required.Fig. 11: Closing the

13、 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 of the ETH0_XFR block can be selected with a right-click.Fig. 12: Adding the program code in the main progra

14、m 13. Save the configuration and load it in the S7 200.Configuring an unspecified S7 connection in NetPro 1. Open your STEP 7 project with 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 a

15、nd create a connection via Insert New Connection.Fig. 14: Inserting a new connection 3. Select an unspecified S7 connection as connection 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

16、, 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 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 differe

17、ntly than for the S7-200. Local TSAP = 10 + Connection Number . Rack Number + Slot of the CPU. The correct TSAP in this mask is therefore 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

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

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 技术资料 > 技术方案

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知得利文库网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号-8 |  经营许可证:黑B2-20190332号 |   黑公网安备:91230400333293403D

© 2020-2023 www.deliwenku.com 得利文库. All Rights Reserved 黑龙江转换宝科技有限公司 

黑龙江省互联网违法和不良信息举报
举报电话:0468-3380021 邮箱:hgswwxb@163.com