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.



集成NI-DNET接口到基于PLC的设备网络中



硬件: Industrial Communications>>DeviceNet

问题: 我已经使用Allen-Bradley PLC作为DeviceNet master,我使用 RSLinx,RSNetworx和RSLogix来配置DeviceNet 器件。我如何可以将NI的PXI系统集成到我已有的网络中去?

解答: 你可以通过一下步骤将NI的PXI系统添加到你的网络中:
  1. NI-DNET interface 作为DeviceNet slave. NI interface 一般作为 DeviceNet master. 将该器件配置为slave mode可以通过修改参数DeviceMacId parameter在ncOpenDnetIO 函数中(打开 DeviceNet IO.vi) 或者 IntfMacId参数在ncOpenDnetIntf 中(打开 DeviceNet Interface.vi). 你可以使用下面的 Slave Device.vi.
  2. 为NI-DNET 接口导入 Electronic Data Sheet (EDS) 文件. DeviceNet 网络配置工具如RSNetworx, 需要导入EDS文件以识别为slave器件。在RSNetworx 中导入EDS文件的方法如下:
    1. 点击Tools»EDS Wizard... 打开Rockwell Software's EDS Wizard.
    2. 选择Register an EDS file 点击Next.
    3. 选择Register a single file, 点击 Browse... 选择相应的文件, 点击Next.
  3. 在RSNetworx浏览和选择slave。
    1. 如果RSNetworx已经离线, 选择Network»Online 上线.
    2. 点击菜单Network»Single Pass Browse 浏览网络. 你可以看到"NI-DNET Interface". (确保 slave VI 或者步骤1中的VI 已经运行。
    3. 右键点击slave 器件节点,选择菜单Properties... 来配置slave并且将I/O对应到PLC的内存中。
  4. 在slave VI中或者应用中将信号连接到 DeviceNet slave , 你可以使用 ncReadDnetIO (Read DeviceNet I/O.vi) 从PLC中获得信号 and 使用 ncWriteDnetIO (Write DeviceNet I/O.vi) 向PLC发送信号.

下面的附件中包括了LabVIEW下的范例Slave Device.vi 和适用于NI-DMET 1.5的EDS文件。该文件适用于NI-DNET 1.5以及以上版本。



相关链接: Products & Services: DeviceNet Interfaces


附件:


Nidnet1.5.eds - Nidnet1.5.edsSlave Device.vi - Slave Device.vi


报告日期: 05/19/2006
最近更新: 08/30/2009
文档编号: 3XI8G2BV