Modbus function register address mapping configuration method for precision pump type equipment

By using a Modbus function register address mapping configuration method for precision pump equipment, the problems of low communication efficiency and poor real-time performance are solved, enabling efficient and real-time access to function registers and simplifying the development process of user control software and firmware.

CN120010917BActive Publication Date: 2026-02-27保定兰格恒流泵有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510086322.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-20
Publication Date
2026-02-27
Estimated Expiration
2045-01-20

AI Technical Summary

Technical Problem

Existing precision pump equipment using the Modbus protocol suffers from low communication efficiency, poor real-time performance, high complexity of user control software, and the need for extensive firmware customization.

Method used

The Modbus function register address mapping configuration method for precision pump equipment is adopted. By defining variable user operation register address segments and mapping configuration register address segments, continuous access to function registers is achieved. Dedicated configuration software is used for mapping configuration, and password verification is used to ensure the security of configuration information.

Benefits of technology

It improves the efficiency and real-time performance of communication control, reduces the complexity of user control software, reduces firmware customization, and enhances the efficiency of system function implementation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120010917B_ABST
    Figure CN120010917B_ABST
Patent Text Reader

Abstract

The application discloses a precision pump device Modbus function register address mapping configuration method, relates to the wireless communication technical field and comprises the following mapping configuration method: defining a variable user operation register address segment with the user operation base address as the start; defining a mapping configuration register address segment with the mapping configuration base as the start, and each function register of the precision pump corresponding to a mapping configuration address; the value in each mapping configuration register is used to indicate the position of the function register in the user operation register address segment relative to the user operation base address; the address redefinition mode of the application can be configured, the user can change the required address arrangement mode in real time according to the control demand through the configuration software, the complexity of system development is reduced, the development link and the communication link of both parties for customizing requirements are saved, the system function implementation efficiency is high, and the efficiency and real-time performance of the pump device for realizing communication control are also greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application relates to the technical field of wireless communication, in particular to a Modbus function register address mapping configuration method for precise pump equipment. BACKGROUND

[0002] In order to facilitate user control of a host remote control, a precise pump equipment such as a peristaltic pump, a syringe pump, a gear pump and a plunger pump generally uses a Modbus protocol as a communication protocol. In order to meet the use requirements of user diversity, the pump equipment is provided with multiple functions and multiple working modes. Multiple Modbus function registers are defined corresponding to the multiple functions and multiple working modes of the pump equipment.

[0003] In actual application, different users use part of the functions and part of the modes (for example, see the attached Figure 4 "User 1", "User 2" and the like) according to use requirements. Since the functions and modes required to be used by different users are different, multiple discontinuous function registers need to be accessed at the same time in application, and in this case, multiple control packets need to be split to complete the control. For example, as shown in the attached Figure 4 "User 1" uses FUN-1, FUN-4, FUN-5 and FUN-n function registers and needs to be split into three control packets to complete the control; "User 2" uses FUN-2, FUN-3, FUN-5, FUN-7 and FUN-n function registers and needs to be split into four control packets to complete the control. This causes the following disadvantages: 1. The addresses involved in use span multiple unused addresses, and multiple communication packets need to be used to complete the control in the control process, so that the communication efficiency is low and the real-time performance is poor. After being split into multiple packets, the writing order of the function registers is completed, and the update time is different and uncertain: taking "User 1" in the attached Figure 4 as an example, in order to realize the control of FUN-1, FUN-4, FUN-5 and FUN-n, multiple packet controls need to be split, for example, as shown in the attached Figure 5) disassembled into control package 1, control package 2, control package 3, sequentially sent, and a delay T1 and a delay T2 between the control packages are generated to make the real-time performance poor; if the effective time of the FUN-1 register is set as T0, the effective time of the FUN-4 and the FUN-5 is T0+T1, and the effective time of the FUN-n is T0+T1+T2, and taking the commonly used communication baud rate 9600bps as an example, the time difference between the first and the last effective time is T1+T2, and the difference is about 0.5S-1S. For the control registers that need to be sent at the same time, the time difference of about 1S is generated after being disassembled into multiple packages, and the time difference will cause a large precision error for the instructions that require control precision; for example, for the distribution type instructions, the control period is close to 1S, and the delay will cause the loss of control times, which belongs to the function failure state for the industrial customers; 2. Based on the existing scheme, when the demand of the same user changes, the type, quantity and sequence of the sent packages are different, and the control flow of the user control software also changes, and a great adjustment is required to realize; 3. In order to meet the requirements of the users who cannot accept the influence of the shortcomings 1 and 2, improve the communication efficiency and update the synchronization, the definition sequence of the function registers is changed, the function register address needs to be rearranged for each demand, different firmware models are formed to realize, and a large number of firmware program customization will be generated, which is not easy to develop and manage.

[0004] In summary, the arrangement of the function register address at present is basically to define all the function registers, uniformly define the address arrangement, start from the user operation base address, and fix the address of each function register in the user operation address segment, and the following shortcomings exist: low communication efficiency, poor real-time performance, complex timing when the user writes the control software, and the control interface will change with the demand, and a large number of customized special demands of the users will be generated. SUMMARY

[0005] In order to solve the defects in the prior art, the present application provides a precision pump device Modbus function register address mapping configuration method.

[0006] In order to solve the above technical problems, the present application provides the following technical scheme:

[0007] The precision pump device Modbus function register address mapping configuration method of the present application comprises the following mapping configuration method:

[0008] Start from the user operation base address to define a variable user operation register address segment;

[0009] Start from the mapping configuration base to define a mapping configuration register address segment, and each function register of the precision pump corresponds to a mapping configuration address;

[0010] The value in each mapping configuration register is used to point to the function register, and the position of the user operation register address segment relative to the user operation base address.

[0011] As a preferred technical solution of the present application, when locating the user operation register address segment, the method further comprises:

[0012] Using the special configuration software, the mapping configuration address segment register is written according to the function requirement, and a non-repeated mapping offset address is written into the mapping configuration register corresponding to each necessary function register.

[0013] As a preferred technical solution of the present application, after the mapping configuration address segment register is written, the method further comprises:

[0014] All the written contents are stored in the mapping configuration storage, and after power-on, all the mapping configuration address segment information is restored to the last setting state.

[0015] As a preferred technical solution of the present application, running the user control software on the user control host to access the device further comprises:

[0016] According to the re-mapped register sequence, the device accesses the product function module according to the re-mapped register sequence and responds to the instruction.

[0017] As a preferred technical solution of the present application, the built-in algorithm structure of the special configuration software comprises: a visual control function register list of the precision pump product, the user determines the combination of continuous access according to the function to be implemented, and arranges the registers in the list in a "what you see is what you get" manner by moving the position of the registers in the list through dragging.

[0018] As a preferred technical solution of the present application, after the registers in the list are arranged, encrypted data is generated, and the encrypted data is uniformly issued to the precision pump. After the confirmation feedback of the precision pump is obtained, the configuration step is completed.

[0019] As a preferred technical solution of the present application, the programming encryption algorithm of the mapping configuration register is that the data is written with a password check, and is only written and stored in the mapping configuration storage EEPROM when the password check succeeds through the password generated by the special configuration software.

[0020] As a preferred technical solution of the present application, the two continuous parts of the user operation address segment and the mapping configuration address segment constitute a register definition table, and the register definition table is a definition list of all the accessible registers in the device.

[0021] As a preferred technical scheme of the present application, the user operation address section contains all the register addresses accessible by the user, and is started from the user operation base address, and the definition of each register is determined by the actual configuration content of the user operation address section.

[0022] As a preferred technical scheme of the present application, the mapping configuration address section contains the registers configured for each function register, and is started from the mapping configuration base address, and defines the mapping configuration register address section, and each function register of the precision pump corresponds to a mapping configuration address, and the value in each mapping configuration register is used to indicate the function register relative to the position of the user operation base address in the user operation register address section.

[0023] The present application has the following beneficial effects:

[0024] 1. The precision pump device Modbus function register address mapping configuration method can be sorted according to the needs of each user, and the registers that need to be operated simultaneously are defined as continuous user operation addresses or segmented continuous user operation addresses, and are configured into continuous segments, so that a control package can be used to issue an instruction, and the real-time performance is ensured; the complexity of the user control software is reduced, and there is no need to additionally disassemble multiple control packages to issue instructions in time sequence; when the user needs to adjust the definition order of the function register addresses, the mapping configuration can be directly changed to achieve the adjustment, thereby greatly reducing the user customization of the firmware and effectively improving the application range of the firmware.

[0025] 2. The precision pump device Modbus function register address mapping configuration method can be configured in the address redefinition mode, the user can use the configuration software to change the address arrangement mode in real time according to the control needs, thereby reducing the complexity of system development; the development link and the communication link of both parties for customization needs are eliminated, the system function implementation efficiency is high; and the communication control efficiency and real-time performance of the pump device are also greatly improved. BRIEF DESCRIPTION OF DRAWINGS

[0026] The accompanying drawings are included to provide a further understanding of the present application, and constitute a part of the specification, and are used together with embodiments of the present application to explain the present application, and do not constitute a limitation on the present application. In the drawings:

[0027] Figure 1 is a general flowchart of the precision pump device Modbus function register address mapping configuration method of the present application;

[0028] Figure 2 is a structural block diagram of the precision pump device Modbus function register address mapping configuration method of the present application;

[0029] Figure 3is the mapping configuration scheme application diagram of the mapping configuration method of the Modbus function register address of the precision pump device of the present application;

[0030] Figure 4 is the current application diagram of the mapping configuration scheme of the mapping configuration method of the Modbus function register address of the precision pump device of the present application;

[0031] Figure 5 is the timing diagram of the split multi-packet control of the mapping configuration method of the Modbus function register address of the precision pump device of the present application. DETAILED DESCRIPTION

[0032] The preferred embodiments of the present application are described below in conjunction with the accompanying drawings, and it should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application.

[0033] Embodiment: As shown in Figure 1 , Figure 2 and Figure 3 , the mapping configuration method of the Modbus function register address of the precision pump device of the present application comprises the following mapping configuration method:

[0034] Starting with the user operation base address, a variable user operation register address segment is defined; starting with the mapping configuration base, a mapping configuration register address segment is defined, with each function register of the precision pump corresponding to a mapping configuration address; the value in each mapping configuration register is used to guide the function register. Within the user operation register address segment, the position relative to the user operation base address can be sorted according to the needs of each user. Registers that need to be operated simultaneously are defined as continuous or segmented continuous user operation addresses and configured into continuous segments. This allows a single control packet to issue instructions, ensuring corresponding real-time performance. The complexity of the user control software is reduced, eliminating the need to additionally disassemble multiple control packets and issue instructions in different timing sequences. When users have requirements to adjust the order of function register address definitions, they can directly change the mapping configuration to achieve this, greatly reducing user customization in firmware and effectively improving the application scope of the firmware. The method further includes the following steps when locating the user operation register address segment: using the dedicated configuration software, according to functional requirements, writing registers for the mapped configuration address segment; writing non-repeating mapped offset addresses to the mapped configuration registers corresponding to each necessary functional register; the dedicated configuration software has the function of automatically judging duplicate addresses, which can avoid duplication during setting; after writing the registers for the mapped configuration address segment, the method further includes: storing all the written content in the mapped configuration storage; after power-on, all mapped configuration address segment information is restored to the last setting state; running the user control software on the user control host to access the device further includes: accessing the device according to the remapped register order; the device responds to instructions according to the remapped register order, connects to the product function module, and achieves control functionality. The configurable address redefinition method allows users to change the address arrangement to the required manner in real time according to control needs through the configuration software, reducing the complexity of system development; eliminating the development and communication stages between customized requirements, resulting in high system function implementation efficiency; and significantly improving the efficiency and real-time performance of communication control for pump-type equipment.

[0035] The built-in algorithm structure of the dedicated configuration software includes: a visual list of control function registers for the precision pump product. The user determines the combination of registers that need to be accessed continuously according to the functions to be implemented. The registers in the list are moved by dragging and dropping to arrange them in a "what you see is what you get" manner. After the registers in the list are arranged, encrypted data is generated and uniformly sent to the precision pump. After receiving confirmation feedback from the precision pump, the configuration step is completed.

[0036] The programming encryption algorithm of the mapping configuration register is as follows: when writing data, a password verification is carried out. Data is only written and stored in the mapping configuration storage EEPROM when the password generated by the dedicated configuration software is successfully verified. This can prevent accidental writing on the bus and ensure that the configuration information is not damaged by accident.

[0037] The two continuous parts of the user operation address section and the mapping configuration address section constitute a register definition table, which is a list of definitions of all accessible registers in the device.

[0038] The user operation address section contains all the register addresses accessible to the user, starting from the user operation base address, and the definition of each register is determined by the actual configuration content of the user operation address section.

[0039] The mapping configuration address section contains registers configured for each function register, starting from the mapping configuration base address, defining the mapping configuration register address section, and each function register of the precision pump corresponds to a mapping configuration address. The value in each mapping configuration register is used to indicate the function register in the user operation register address section relative to the user operation base address.

[0040] Example 1: Consistent with the "User 1" requirements in Appendix Figure 4 , the user uses FUN-1, FUN-4, FUN-5, and FUN-n function registers; as shown in Appendix Figure 3 , CFG-1 points to address 1, CFG-4 points to address 2, CFG-5 points to address 3, and CFG-5 points to address 4; after remapping, the first, second, third, and fourth consecutive addresses starting from the user operation register base address correspond to FUN-1, FUN-4, FUN-5, and FUN-n function registers, respectively.

[0041] Example 2: Consistent with the "User 2" requirements in Appendix Figure 4 , the user uses FUN-2, FUN-3, FUN-5, FUN-7, and FUN-n function registers; as shown in Appendix Figure 3 , CFG-2 points to address 1, CFG-3 points to address 2, CFG-5 points to address 3, CFG-7 points to address 4, and CFG-n points to address 5; after remapping, the first, second, third, fourth, and fifth consecutive addresses starting from the user operation register base address correspond to FUN-2, FUN-3, FUN-5, FUN-7, and FUN-n function registers, respectively.

[0042] Through the above two example cases, it is known that when using the current fixed address arrangement, accessing the necessary register addresses requires splitting into 4 packets, with an estimated maximum consumption time of 1.5 seconds, and a delay of about 1 second for the first packet and the last packet. After using the mapping configuration scheme, accessing all register addresses only requires sending 1 packet, with an estimated consumption time of 0.2 seconds, and no delay between multiple packets, resulting in high communication efficiency and ensuring real-time performance.

[0043] In operation, the Modbus function register address mapping configuration method of the precision pump type equipment can be sorted according to the needs of each user, registers that need to be operated simultaneously are defined as continuous, segmented continuous user operation addresses, and are configured into a continuous segment, so that a control package can be used to issue an instruction, ensuring real-time performance; the complexity of user control software is reduced, and additional disassembly of multiple control packages is not required; when the user needs to adjust the order of the function register address, the mapping configuration can be directly changed to achieve the adjustment, greatly reducing user customization in firmware, effectively improving the application range of the firmware, and the address redefinition can be configured, so that the user can use the configuration software to change the address arrangement mode as needed according to the control needs, reducing the complexity of system development; the development and communication processes of both parties are eliminated, and the system function implementation efficiency is high; the efficiency and real-time performance of the pump type equipment in communication control are also greatly improved.

[0044] Finally, it should be noted that: the above only for the preferred embodiments of the present application, and not for limiting the present application, although the foregoing embodiments of the present application are described in detail, for those skilled in the art, it still can be modified, or part of the technical features of the equivalent replacement. Any modification, equivalent replacement, improvement, etc. within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for configuring Modbus function register address mapping in precision pump equipment, characterized in that, The method comprises the following mapping configuration method: A variable user operation register address segment is defined starting from a user operation base address, and the variable user operation register address segment contains all register addresses accessible by a user; A mapping configuration register address segment is defined starting from a mapping configuration base address, and each function register of the precision pump corresponds to a mapping configuration address; The value in each mapping configuration register is used to indicate the function register in the variable user operation register address segment relative to the position of the user operation base address.

2. The method of claim 1, wherein the method is configured to map the Modbus function register addresses of the precision pump class device. In defining the variable user operation register address segment, the method further comprises: Using a special configuration software, a register of the mapping configuration address segment is written according to the function requirement, and a non-repeated mapping offset address is written into the mapping configuration register corresponding to each function register.

3. The method of claim 2, wherein, After the register of the mapping configuration address segment is written, the method further comprises: All the written contents are stored in a mapping configuration storage, and after a next power-on, all the mapping configuration register address segment information is restored to the last setting state.

4. The method of claim 3, wherein, The user control software running on the user control host accesses the device, and the method further comprises: The device is accessed according to the register sequence after the re-mapping, the device responds to the instruction according to the register sequence after the re-mapping, and is connected to the product function module.

5. The method of claim 2, wherein, The built-in algorithm structure of the special configuration software comprises: a visual control function register list of the precision pump product, a user determines a combination of continuous access according to a function to be implemented, and the registers in the list are moved by dragging to arrange in a "what you see is what you get" manner.

6. The method of claim 5, wherein, After the registers in the list are arranged, encrypted data is generated, and the encrypted data is uniformly issued to the precision pump, and after a confirmation feedback of the precision pump is obtained, the configuration step is completed.

7. The method of claim 1, wherein, The programming encryption algorithm of the mapping configuration register is that the data is written with a password check, and is only written and stored in the mapping configuration storage EEPROM when the password check succeeds through the password generated by the special configuration software.

8. The method of claim 1, wherein, The two continuous parts of the variable user operation register address segment and the mapping configuration register address segment constitute a register definition table, and the register definition table is a definition list of all accessible registers in the device.

9. The method of claim 8, wherein, The definition of each register is determined by the actual configuration content of the variable user operation register address segment.

10. The method of claim 8, wherein, The mapping configuration register address segment contains registers configured for each function register, the mapping configuration register address segment starts from a mapping configuration base address, a mapping configuration register address segment is defined, each function register of the precision pump corresponds to a mapping configuration address, and the value in each mapping configuration register is used to indicate the function register in the variable user operation register address segment relative to the position of the user operation base address.

Citation Information

Patent Citations

  • Access control method for synchronous dynamic memory and synchronous dynamic memory controller

    CN101021819A

  • Modbus address remapping method used for electric quantity module

    CN104407983A