错误-1967353907 当使用Modbus I/O 服务器
主要软件:
主要软件版本: 8.6
主要软件修正版本: N/A
次要软件: LabVIEW Modules>>LabVIEW DSC Module
问题: 我使用一些共享变量创建了Modbus I/O服务器,这些共享变量与Modbus寄存器相关。当我尝试在LABVIEW中访问共享变量,我收到下面的错误信息: Error -1967353907 occurred at Shared Variable Write/Read in
.vi Possible reason(s): The Modbus I/O server failed to communicate with the Modbus slave device. Ensure that the Modbus slave device works properly.
解答: 当一个共享变量与Modbus寄存器绑定且共享变量的访问类型与Modbus寄存器本身访问类型不符时,会产生错误-1967353907。如果你右击共享变量,选择属性,你会看到下面的窗口中出现“访问类型”的选项框。
下方的表格列出了Modbus或Modbus从I/O服务器支持的数据类型。完整的表格可以再LABVIEW Help:使用 Modbus I/O 服务器(DSC模块或RT模块)。注意可以设定某个输出线圈和寄存器为只读或只写。
Coil/Register Numbers
|
Data Addresses
|
Type
|
Name
|
000001-065535
|
0000 to FFFF
|
Read-Write
|
Coils
|
100001-165535
|
0000 to FFFF
|
Read-Only
|
Discrete Inputs
|
300001-365535
|
0000 to FFFF
|
Read-Only
|
Input Registers
|
400001-465535
|
0000 to FFFF
|
Read-Write
|
Holding Registers
|
无论对Modbus服务器做任何修改,都必须停止和重启本地共享变量的引擎。
在LABVIEW8.6及以上版本,这个过程可以通过分布式系统管理器完成,点击Actions选项,选择Stop Local Shared Variable Engine。一旦这个停止,刷新页面时将不会看到任何过程。
现在,通过选择Start Local Shared Variable Engine重启共享变量引擎。
在LABVIEW8.5及更早版本,你可以使用NI变量管理器来停止或开启服务。当引擎被再次开启后,你应该右击Modbus 库Modbus library创建你的项目,选择部署所有Deploy All。
相关链接: LabVIEW Help: Using Modbus IO Servers (DSC Module or Real-Time Module) LabVIEW Help: Error Codes (DSC Module) LabVIEW Help: Troubleshooting Modbus I/O Servers (DSC Module)
附件:
报告日期: 11/21/2008
最近更新: 06/29/2014
文档编号: 4RK3SIBG
Other Support Options
Ask the NI Community
Collaborate with other users in our discussion forums
Request Support from an Engineer
A valid service agreement may be required, and support options vary by country.