Modbus device access method and system

An access method and access system technology, applied in the access method and system field of Modbus equipment, can solve the problems of complicated code maintenance and heavy development workload, and achieve convenient deployment, simplified access work, and reduced code maintenance Effect

CN103139025BActive Publication Date: 2016-12-14VERTIV CORP
3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Publication Date
2016-12-14

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention relates to a method for accessing Modbus devices, comprising the following steps: presetting configuration files containing data configuration information and protocol configuration information; intelligent devices collect dynamic libraries to read and parse the configuration files, and analyze the configuration files to obtain data configuration information Stored in the internal variables of the smart device collection dynamic library; when the Modbus device is connected, extract the data configuration information from the internal variables of the smart device collection dynamic library according to the operation instructions, and communicate with the Modbus device. The invention also provides an access system of Modbus equipment. The invention can reduce the development workload and reduce the complexity of code maintenance.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the field of power environment monitoring, in particular to a Modbus device access method and system. Background technique

[0002] A basic function of power environment monitoring is to access various smart devices in a protocol manner and implement management functions on this basis. The Modbus protocol is a device access protocol widely used in the industrial field, and access to devices based on the Modbus protocol has also become a common requirement for power environment monitoring systems.

[0003] The current mainstream method is to develop a collection dynamic library for each specific device, implement Modbus protocol analysis through this dynamic library, and send the analyzed data to the upper system through the internal interface of the monitoring system. This method requires the development of a dynamic library for each device, which requires a large development workload and complicated code maintenance. Conten...

Examples

Embodiment Construction

[0037] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0038] refer to figure 1 , in the embodiment of the present invention, the access method of Modbus equipment comprises the following steps:

[0039] Step S10, preset a configuration file containing data configuration information and protocol configuration information; specifically, the configuration file can be preset and saved by engineering personnel, and the protocol configuration information is used to define the communication method, for example, what kind of The data frame format is used for data interaction; the data configuration information is used to define the specific meaning of the data in the data frame. The data configuration information may exist in the form of a data table, which may specifically include a grouping information table, a data table describing collection functions, a data table describi...