Thread Starter
主要软件:
主要软件版本: N/A
主要软件修正版本:
次要软件: N/A
问题:
我想让 LabVIEW 通过Modbus和我的设备通信。可能实现吗?如果可以,我该怎样去做?
解答:
相关链接:
Products & Services: NI Industrial Automation OPC Servers
Modbus Organization
Alliance Member Directory: BusVIEW
附件:
最近更新: 11/08/2006
文档编号:
Christian Grabe
Owning Palette: Modbus Slave VIs. Requires: DSC Module or Real-Time Module. Creates a serial or TCP Modbus slave instance. The Modbus slave instance you create includes a daemon. Daemon is a background process that responds to requests from Modbus master instances. You must manually select the polymorphic instance to use.
Hi everybody,
searching the internet for a Modbus-LabVIEW driver I hit a posted article here at control.com. Because of that I downloaded the Modbus Serial RTU Simulator by Conrad Braam, http://www.codeguru.com/network/mod_rssim.html, and Modbus.vi by Marten van Bree, http://www.air.nl/nlibrary/modbus_vi.html .
I downloaded the simulator to get used to Modbus.vi and to the Modbus protocol. I hooked up a dummy cable to the serial interface as is requested for the simulator to work. (DB9: 1,4,6 are looped; 2 and 3 are looped; 7 and 8 are looped)
But now I have some problems getting those two programs communicating. For example trying to write a single register the LabVIEW-VI is sending the correct string but no register is changed in the simulator and no response is sent by the simulator either. It seems as if nothing gets through to the simulator.
If I shut down the simulator and run the VI I get a response which is the same as the before-sent string. Of course, there's a loopback at the serial interface.
I'm pretty new with LabVIEW. One thing is, I don't know which slave
address to use in the VI. That might be a problem too. But because the simulator is desigend to simulate, I think, up to 60 devices every address between 0 and 59 is supposed to be working.
Thank you in advance
Christian
searching the internet for a Modbus-LabVIEW driver I hit a posted article here at control.com. Because of that I downloaded the Modbus Serial RTU Simulator by Conrad Braam, http://www.codeguru.com/network/mod_rssim.html, and Modbus.vi by Marten van Bree, http://www.air.nl/nlibrary/modbus_vi.html .
I downloaded the simulator to get used to Modbus.vi and to the Modbus protocol. I hooked up a dummy cable to the serial interface as is requested for the simulator to work. (DB9: 1,4,6 are looped; 2 and 3 are looped; 7 and 8 are looped)
But now I have some problems getting those two programs communicating. For example trying to write a single register the LabVIEW-VI is sending the correct string but no register is changed in the simulator and no response is sent by the simulator either. It seems as if nothing gets through to the simulator.
If I shut down the simulator and run the VI I get a response which is the same as the before-sent string. Of course, there's a loopback at the serial interface.
I'm pretty new with LabVIEW. One thing is, I don't know which slave
address to use in the VI. That might be a problem too. But because the simulator is desigend to simulate, I think, up to 60 devices every address between 0 and 59 is supposed to be working.
Thank you in advance
Christian
主要软件:
- National Instruments advertises a free native Modbus TCP/IP library that has been used successfully with our Modbus TCP compatable devices. Some of its features include. Works with standard serial and Ethernet ports; Facilitates Modbus TCP/IP and serial communication; Compatible with NI LabVIEW.
- This paper focuses on interfacing of high end Programmable Logic Controller with NI-LabVIEW using Modbus RTU protocol. The aim behind doing this is to develop a platform to enable real-time.
- Owning Palette: Modbus Slave VIs. Requires: DSC Module or Real-Time Module. Creates a serial or TCP Modbus slave instance. The Modbus slave instance you create includes a daemon. Daemon is a background process that responds to requests from Modbus master instances. You must manually select the polymorphic instance to use.
主要软件版本: N/A
主要软件修正版本:
N/A
次要软件: N/A
问题:
我想让 LabVIEW 通过Modbus和我的设备通信。可能实现吗?如果可以,我该怎样去做?
解答:
LabVIEW 8.0 和更高版本:
The LabVIEW 数据记录和监控 (DSC) 模块 LabVIEW 8.0 的 LabVIEW Real-Time (RT) 包括内置的通过Modbus I/O server支持的Modbus。Modbus I/O Server 可以让您非常容易得将 Modbus 寄存器值 和 共享变量连接到一起。 查看 Demo.
LabVIEW 7.1 及其之前版本:
- LabVIEW DSC Module
DSC Module 能够直接通过OPC Servers 来连接 LabVIEW DSC Module 和 Modbus 设备,例如Industrial Automation OPC Servers。
- LabVIEW RT
Modbus Rtu Example
Modbus 是一个串口通信协议,因此通过串口编程使得 LabVIEW 和 Modbus 设备通信是可能的。同样的规则也适用于基于 TCP/IP 协议的 Modbus TCP/IP。Modbus LabVIEW Library 允许在您的LabVIEW 或 LabVIEW RT 7.1 应用程序中直接实现 Modbus 通信。
如果您是在 Windows下使用 LabVIEW ,您也可以用DataSocket和 OPC Server通信,以实现和Modbus的对话。如果您不能访问OPC Server,带有OPC 接口的National Instruments Industrial Automation Servers提供了很多协议的OPC 接口,其中包括Modbus。参照
一个 National Instruments 联盟成员, Software Engineering Group (SEG), 提供BusVIEW(详见下面的链接),它为Windows和Mac OS平台下的LabVIEW提供直接的Modbus 支持。
examplescommopc.llb
中有例子阐明了使用DataSocket和OPC Server通信的编程思想。一个 National Instruments 联盟成员, Software Engineering Group (SEG), 提供BusVIEW(详见下面的链接),它为Windows和Mac OS平台下的LabVIEW提供直接的Modbus 支持。
相关链接:
Products & Services: NI Industrial Automation OPC Servers
Modbus Organization
Alliance Member Directory: BusVIEW
附件:
Labview Modbus Serial Example
报告日期:Labview Modbus Serial Example Diagram
11/07/2006最近更新: 11/08/2006
Labview Modbus Library
文档编号: