
{"ops":[{"insert":"前提条件 \nI)通过 CP5611 实现 PLC 系统与 WINCC6.0 通讯的前提条件是在安装有 WINCC 的计算机\n上安装 CP5611 通讯板卡。 \nII)使用 STEP7 编程软件能够通过 MPI 正常连接 PLC。 \n1.STEP 7 硬件组态 \nSTEP7 设置 MPI 通讯,具体步骤不在此详述,可参考如下图 1.1 示: \n"},{"attributes":{"class":"normal-img"},"insert":{"native-image":{"alt":"read-normal-img","url":"https://b1.sanwen.net/b_article/fa77eb5368532507ad3040795751be3c60cbf0e7.jpg","width":967,"height":697,"size":223228,"status":"loaded"}}},{"insert":"注意: \n1.新建一个 MPI 网络用来通讯,设置 MPI 网络的地址和波特率,且记住,在随后的设置中\n需要匹配。 \n2.安装 CP5611 通讯板卡 \n安装 CP5611,并安装驱动程序,具体 CP5611 的安装过程和注意事项可参考如下链接: \nhttp://support.automation.siemens.com/WW/view/en/26707026\n \n3.添加驱动程序和系统参数设置 \n打开 WINCC 工程在 Tag Management-->SIMATIC S7 PROTOCOL SUITE->MPI \n右键单击 MPI,在弹出菜单中点击 System Parameter,弹出 System Parameter-MPI 对话框,\n选择 Unit 标签,查看 Logic device name(逻辑设备名称)。默认安装后,逻辑设备名为\nMPI \n如图 1.3 所示:\n"},{"attributes":{"class":"normal-img"},"insert":{"native-image":{"alt":"read-normal-img","url":"https://b1.sanwen.net/b_article/f87f82abd7f203670539f594759c950fe9bbfea4.jpg","width":322,"height":275,"size":43935,"status":"loaded"}}},{"insert":"\n"},{"attributes":{"class":"normal-img"},"insert":{"native-image":{"alt":"read-normal-img","url":"https://b1.sanwen.net/b_article/19492677f85ab08cceb683b7e9e3d6e303823348.jpg","width":401,"height":395,"size":57670,"status":"loaded"}}},{"insert":"4.设置 Set PG/PC Interface \n进入操作系统下的控制面板,双击 Set PG/PC Interface 图标。在 Access Point of \nthe Application:的下拉列表中选择 MPI (WINCC),如图 1.4 所示,而后在 Interface \nParameter Assignment Used:的列表中,点击 CP5611(MPI),而后在 Access Point of the \nApplication:的下拉列表中显示:MPI (WINCC)Æ CP5611(MPI),如图 1.5 所示: \n"},{"attributes":{"class":"normal-img"},"insert":{"native-image":{"alt":"read-normal-img","url":"https://b1.sanwen.net/b_article/135ee90f7679af7db95ac0a485e57947511d3a79.jpg","width":380,"height":436,"size":65241,"status":"loaded"}}},{"insert":"\n"},{"attributes":{"class":"normal-img"},"insert":{"native-image":{"alt":"read-normal-img","url":"https://b1.sanwen.net/b_article/c189e38ed1494714aa4c720081f17eab667af182.jpg","width":380,"height":434,"size":84119,"status":"loaded"}}},{"insert":"设置 CP5611 的通讯参数,点击 Proerties….按钮,弹出 Properties-CP5611(MPI)属性对话\n框,设置参数,如图 1.6 所示: \n重要的参数如下所示: \nAddress: \nCP5611 的地址(MPI 地址必须唯一,建议设置为 0) \nTransmission Rate: \nMPI 网络的传输速率(默认为 187.5Kbps)您可以修改,但必须和实际连接 PLC 的 MPI 端\n口的传输速率相同) \nHighest Station Address: \nMPI 网络的最高站地址(必须和 PLC 的 MPI 网络参数设置相同)\n"},{"attributes":{"class":"normal-img"},"insert":{"native-image":{"alt":"read-normal-img","url":"https://b1.sanwen.net/b_article/a1d463005896477a9d677f650ae6416367f6dc91.jpg","width":345,"height":332,"size":54926,"status":"loaded"}}},{"insert":"诊断 MPI 网络,点击 Diagnostic…按钮,进入诊断对话框。如下图所示:Test 按钮点击\n后,显示 OK 表示 CP5611 工作正常。点击“Read”按钮后,将显示所有接入 MPI 网络中的设\n备的站地址,如果只能读到自己的站地址,此时,请查看 MPI 网络和硬件连接设置,只有成\n功读取到 CPU 的站点地址,才能进行以下的步骤,否则,不可能建立通讯。\n5.添加通道与连接设置 \n添加驱动连接,设置参数。打开 WINCC 工程在 Tag Management-->SIMATIC S7 PROTOCOL \nSUITE->MPI,右键单击 MPI,在下拉菜单中,点击 New Driver Connection,如图 1.7 所示,\n在弹出的 Connection properties 对话框中点击 Properties 按钮,弹出 Connection \nparameters-MPI 属性对话框,如图 1.8 所示: \n"},{"attributes":{"class":"normal-img"},"insert":{"native-image":{"alt":"read-normal-img","url":"https://b1.sanwen.net/b_article/d15d630fb4c250902b53ebc564b592379d4c6385.jpg","width":278,"height":273,"size":40818,"status":"loaded"}}},{"insert":"\n"},{"attributes":{"class":"normal-img"},"insert":{"native-image":{"alt":"read-normal-img","url":"https://b1.sanwen.net/b_article/6025b5d10c687d96c72863d1a2198858e03fa2bc.jpg","width":607,"height":598,"size":148795,"status":"loaded"}}},{"insert":"\n"},{"attributes":{"class":"normal-img"},"insert":{"native-image":{"alt":"read-normal-img","url":"https://b1.sanwen.net/b_article/a07ebca5d953283182f81ef266ddd17baec942ab.jpg","width":400,"height":404,"size":57980,"status":"loaded"}}},{"insert":"重要的参数如下所示: \nStation Address:MPI 端口地址 \nRack Number:CPU 所处机架号,除特殊复杂使用的情况下,一般填入 0 \nSlot Number:CPU 所处的槽号\n注意:如果您是 S7-300 的 PLC,那么该参数为 2,如果是 S7-400 的 PLC,那么要根据\nSTEP7 项目中的 Hardware 软件查看 PLC 插在第几号槽内,不能根据经验和物理安装位置来随便填写,可能的参数为 2、3、4(主要是依据电源的大小来决定)否则通讯不能建立。 \n6.连接测试与通讯诊断 \n通过 WINCC 工具中的通道诊断程序 WinCC Channel Diagnosis 即可测试通讯是否建立。\n注意:此时 PLC 必须处于运行状态,老版本的 PLC 必须处于 RUN-P 或者 RUN 状态,WINCC 必须激活运行,根据图 1.9 所示的位置,进入通道诊断工具,检测通讯是否成功建立。如图1.10 所示,绿色的“√”表示通讯已经成功建立。 \n"},{"attributes":{"class":"normal-img"},"insert":{"native-image":{"alt":"read-normal-img","url":"https://b1.sanwen.net/b_article/13ac1fcaf3049c06b1b92b664c7e88953b88a515.jpg","width":814,"height":468,"size":142520,"status":"loaded"}}},{"insert":"\n"},{"attributes":{"class":"normal-img"},"insert":{"native-image":{"alt":"read-normal-img","url":"https://b1.sanwen.net/b_article/4d84cb8bebe2a00d1c87e28ab0cfd9db9aa7782b.jpg","width":588,"height":368,"size":86443,"status":"loaded"}}},{"insert":"至此 WINCC 使用 CP5611 通讯卡通过 MPI 连接 PLC 的过程完毕。\n"}]}
标签: