书签 分享 收藏 举报 版权申诉 / 12
上传文档赚钱

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

  • 上传人(卖家):淡淡的紫竹语嫣
  • 文档编号:1107971
  • 上传时间:2021-02-22
  • 格式:DOC
  • 页数:12
  • 大小:809.50KB
  • 【下载声明】
    1. 本站全部试题类文档,若标题没写含答案,则无答案;标题注明含答案的文档,主观题也可能无答案。请谨慎下单,一旦售出,不予退换。
    2. 本站全部PPT文档均不含视频和音频,PPT中出现的音频或视频标识(或文字)仅表示流程,实际无音频或视频文件。请谨慎下单,一旦售出,不予退换。
    3. 本页资料《S7-200-与S7300的以太网通讯.doc》由用户(淡淡的紫竹语嫣)主动上传,其收益全归该用户。163文库仅提供信息存储空间,仅对该用户上传内容的表现方式做保护处理,对上传内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知163文库(点击联系客服),我们立即给予删除!
    4. 请根据预览情况,自愿下载本文。本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
    5. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007及以上版本和PDF阅读器,压缩文件请下载最新的WinRAR软件解压。
    配套讲稿:

    如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。

    特殊限制:

    部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。

    关 键  词:
    S7 200 S7300 以太网 通讯
    资源描述:

    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.

    展开阅读全文
    提示  163文库所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
    关于本文
    本文标题:S7-200-与S7300的以太网通讯.doc
    链接地址:https://www.163wenku.com/p-1107971.html

    Copyright@ 2017-2037 Www.163WenKu.Com  网站版权所有  |  资源地图   
    IPC备案号:蜀ICP备2021032737号  | 川公网安备 51099002000191号


    侵权投诉QQ:3464097650  资料上传QQ:3464097650
       


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

    163文库