From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.



我如何添加Allen Bradley SLC PLC 到NI的opc server



主要软件:
主要软件版本: 8.0
主要软件修正版本:
次要软件: N/A

问题: 我有一个Allen Bradley SLC的 PLC,需要如何将其接到 NI 的OPC server?

解答: 1. 通过Start»Programs»National Instruments»NI OPC Servers»NI OPC Servers.
   打开NI OPC Server。
2. 点击Click to add a Channel 创建一个新通道。


3. 为创建的通道指定一个名字并且点击 Next.

4. 为你的PLC选择合适的驱动 (针对AB SLC 5 系列选择DF1 驱动) 并且点击Next.


5. 配置串口通信的页面,如果你的设备需要特定的配置,就在这个页面做相应的更改。一般使用默认配置即可,点击Next
6. 在向导中点击通过后面的页面,根据你硬件的特殊需要更改相应的参数。 (这些参数也可以在后面修改)

7. 点选 Click to add device.


8. 将器件命名, 点击Next.

9. 在相应的器件模型下选择可用的PLC,并且选择next。如果没有正确的PLC就返回到第4步重新选择驱动。

10. 指定Device ID (不可以为0), 选择 Next.

11. 点击next通过以下的页面,直到Slot Configuration 页面. 这里可以为你的模型添加PLC.


12. 结束配置向导.

13. 在右边的表格中添加tag,添加相应的配置信息,点击OK。tag 地址和具体的PLC硬件有关,参考PLC的文档获取更多帮助。

15. 选择Tools»Launch OPC Click Client (或者点选 OPC hammer ico). 从这里可以看到tag的值在更新,以及相应的时间信息。


现在你已经在NI OPC Server中配置了tag,参考文档Developer Zone Tutorial: Connect Any LabVIEW to any PLC 学习如何在LabVIEW项目中将tag配置为变量。

注意: 这个文档是针对the Allen Bradley SLC5 /PLC 5 系列器件, 但是你可以使用相同的步骤来配置任何的PLC。注意在第4步的时候选择合适的驱动。

相关链接: Developer Zone Tutorial: Connect LabVIEW to Any PLC
KnowledgeBase 0LDD15EC: Allen-Bradley PLC Addressing
Developer Zone Video Overview: Connect LabVIEW to Any PLC using OPC


附件:





报告日期: 03/04/2009
最近更新: 08/30/2009
文档编号: 4V3GMEZD