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
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Publication Date
- 2016-12-14
Smart Images
Figure 1 Figure 2 Figure 3
Abstract
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...