CN116661865B - Register management method, device, terminal equipment and storage medium - Google Patents

Register management method, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN116661865B
CN116661865B CN202310922212.4A CN202310922212A CN116661865B CN 116661865 B CN116661865 B CN 116661865B CN 202310922212 A CN202310922212 A CN 202310922212A CN 116661865 B CN116661865 B CN 116661865B
Authority
CN
China
Prior art keywords
register
equipment
information
rtu
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310922212.4A
Other languages
Chinese (zh)
Other versions
CN116661865A (en
Inventor
陈恒
陈桂耀
肖存峰
吴宗泽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Rongan Networks Technology Co ltd
Shenzhen University
Original Assignee
Shenzhen Rongan Networks Technology Co ltd
Shenzhen University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Rongan Networks Technology Co ltd, Shenzhen University filed Critical Shenzhen Rongan Networks Technology Co ltd
Priority to CN202310922212.4A priority Critical patent/CN116661865B/en
Publication of CN116661865A publication Critical patent/CN116661865A/en
Application granted granted Critical
Publication of CN116661865B publication Critical patent/CN116661865B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30098Register arrangements
    • G06F9/3012Organisation of register space, e.g. banked or distributed register file
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30098Register arrangements
    • G06F9/3012Organisation of register space, e.g. banked or distributed register file
    • G06F9/3013Organisation of register space, e.g. banked or distributed register file according to data content, e.g. floating-point registers, address registers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application discloses a register management method, a device, a terminal device and a storage medium, wherein the register management method comprises the following steps: acquiring preconfigured equipment information; distributing an internal register of a remote control unit RTU according to the equipment information; and importing the values of the device registers into the allocated internal registers according to the device information. The application solves the problems of complex software operation and multiple steps existing in the configuration of the register by external software, and ensures that the address management of the RTU register is more convenient.

Description

Register management method, device, terminal equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a register management method, a device, a terminal device, and a storage medium.
Background
The remote control unit (RTU) is a durable on-site intelligent processor, which supports communication between the SCADA control center and the on-site devices, and is an independent data acquisition and control unit. In order to establish a connection of a field device to an RTU, a device register address mapping is typically required. The mapping method commonly used by the equipment in the market at present needs to configure a register through external software, and a point table is imported to correspond to the register, so that the problems of complex software operation and multiple steps exist, and operation and maintenance personnel are required to be trained to use the mapping method.
Therefore, there is a need for a solution for convenient management of RTU register addresses.
Disclosure of Invention
The application mainly aims to provide a register management method, a device, terminal equipment and a storage medium, which aim to solve the problems of complex software operation and multiple steps existing in the configuration of registers by external software, so that the RTU register address management is more convenient.
To achieve the above object, the present application provides a register management method, including:
acquiring preconfigured equipment information;
distributing an internal register of a remote control unit RTU according to the equipment information;
and importing the values of the device registers into the allocated internal registers according to the device information.
Optionally, the step of allocating an internal register of the remote control unit RTU according to the device information comprises:
sequencing the device registers according to the device import sequence;
the internal registers are allocated according to a base external address and a device register start address data length.
Optionally, the step of importing a value of a device register into the allocated internal register according to the device information includes:
transmitting the device information to the RTU;
reading the value of the equipment register according to the equipment information training;
the value of the device register is imported into the allocated internal register.
Optionally, the step of importing the value of the device register into the allocated internal register comprises:
matching an internal register of a preset type according to the data type of the value of the equipment register;
and importing the value of the equipment register into the internal register of the preset type.
Optionally, after the step of reading the value of the device register according to the device information rotation, the method further includes:
if the value of the device register is read correctly, executing the steps of: importing the value of the device register into the allocated internal register;
if the value of the equipment register is read in error, skipping over the current equipment register, reading the value of the next equipment register, and importing the value of the next equipment register into an internal register corresponding to the next equipment register.
Optionally, before the step of acquiring the preconfigured device information, the method further includes:
determining a register management mode;
if the register management mode is the external device import RTU management mode, executing the steps: acquiring preconfigured equipment information;
if the register management mode is an RTU local register management mode, acquiring hardware configuration information, wherein the hardware configuration information is obtained by configuring local hardware equipment of the RTU;
distributing and planning an internal register of the hardware of the RTU according to the hardware configuration information;
and importing the value of the local hardware equipment into the internal register of the local hardware planned to the RTU according to the hardware configuration information.
Optionally, before the step of determining the register management mode, the method further includes:
acquiring the equipment information or the hardware configuration information configured through a Web interface;
and generating a table from the equipment information or the hardware configuration information and importing the table into a database.
The embodiment of the application also provides a register management device, which comprises:
the acquisition module is used for acquiring preconfigured equipment information;
the distribution module is used for distributing the internal register of the remote control unit RTU according to the equipment information;
and the importing module is used for importing the values of the equipment registers into the allocated internal registers according to the equipment information.
The embodiment of the application also provides a terminal device, which comprises a memory, a processor and a register management program stored on the memory and capable of running on the processor, wherein the register management program realizes the steps of the register management method when being executed by the processor.
The embodiment of the application also provides a computer readable storage medium, wherein a register management program is stored on the computer readable storage medium, and the register management program realizes the steps of the register management method when being executed by a processor.
The register management method, the device, the terminal equipment and the storage medium provided by the embodiment of the application acquire the preconfigured equipment information; distributing an internal register of a remote control unit RTU according to the equipment information; and importing the values of the equipment registers into the allocated internal registers according to the equipment information, and configuring the equipment information according to actual requirements to automatically generate the mapping relation between the external equipment and the internal registers of the RTU so that the equipment can be quickly accessed into the RTU. Based on the scheme of the application, the problems of complex software operation and multiple steps existing in the configuration of the register by external software are solved, so that the RTU register address management is more convenient.
Drawings
FIG. 1 is a schematic diagram of functional modules of a terminal device to which a register management apparatus of the present application belongs;
FIG. 2 is a flowchart of a register management method according to a first exemplary embodiment of the present application;
FIG. 3 is a flowchart of a third exemplary embodiment of a register management method according to the present application;
FIG. 4 is a flowchart of a fourth exemplary embodiment of a register management method according to the present application;
FIG. 5 is a code diagram of database table creation according to an embodiment of the register management method of the present application.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
Aiming at the problems of a plurality of steps and complex operation of register address mapping of common RTU equipment, the main solution of the embodiment of the application is as follows: acquiring preconfigured equipment information; distributing an internal register of a remote control unit RTU according to the equipment information; and importing the values of the equipment registers into the allocated internal registers according to the equipment information, and configuring the equipment information according to actual requirements to automatically generate the mapping relation between the external equipment and the internal registers of the RTU so that the equipment can be quickly accessed into the RTU. Based on the scheme of the application, the problems of complex software operation and multiple steps existing in the configuration of the register by external software are solved, so that the RTU register address management is more convenient.
Specifically, referring to fig. 1, fig. 1 is a schematic diagram of functional modules of a terminal device to which the register management apparatus of the present application belongs. The register management device may be a device independent of the terminal device, capable of information acquisition, register allocation and data reading, which may be carried on the terminal device in the form of hardware or software. The terminal equipment can be an intelligent mobile terminal with a data processing function such as a mobile phone and a tablet personal computer, and can also be a fixed terminal equipment or a server with a data processing function.
In this embodiment, the terminal device to which the register management apparatus belongs includes at least an output module 110, a processor 120, a memory 130, and a communication module 140.
The memory 130 stores an operating system and a register management program, and the register management device may store information such as an acquired pre-configured device information, an internal register allocated according to the device information, a value of the read device register, a result of ordering the device registers according to a device import sequence, and a base external address and a register address of the device register in the memory 130; the output module 110 may be a display screen or the like. The communication module 140 may include a WIFI module, a mobile communication module, a bluetooth module, and the like, and communicates with an external device or a server through the communication module 140.
Wherein the register manager in memory 130, when executed by the processor, performs the steps of:
acquiring preconfigured equipment information;
distributing an internal register of a remote control unit RTU according to the equipment information;
and importing the values of the device registers into the allocated internal registers according to the device information.
Further, the register manager in the memory 130, when executed by the processor, also performs the steps of:
sequencing the device registers according to the device import sequence;
the internal registers are allocated according to a base external address and a device register start address data length.
Further, the register manager in the memory 130, when executed by the processor, also performs the steps of:
transmitting the device information to the RTU;
reading the value of the equipment register according to the equipment information training;
the value of the device register is imported into the allocated internal register.
Further, the register manager in the memory 130, when executed by the processor, also performs the steps of:
matching an internal register of a preset type according to the data type of the value of the equipment register;
and importing the value of the equipment register into the internal register of the preset type.
Further, the register manager in the memory 130, when executed by the processor, also performs the steps of:
if the value of the device register is read correctly, executing the steps of: importing the value of the device register into the allocated internal register;
if the value of the equipment register is read in error, skipping over the current equipment register, reading the value of the next equipment register, and importing the value of the next equipment register into an internal register corresponding to the next equipment register.
Further, the register manager in the memory 130, when executed by the processor, also performs the steps of:
determining a register management mode;
if the register management mode is the external device import RTU management mode, executing the steps: acquiring preconfigured equipment information;
if the register management mode is an RTU local register management mode, acquiring hardware configuration information, wherein the hardware configuration information is obtained by configuring local hardware equipment of the RTU;
distributing and planning an internal register of the hardware of the RTU according to the hardware configuration information;
and importing the value of the local hardware equipment into the internal register of the local hardware planned to the RTU according to the hardware configuration information.
Further, the register manager in the memory 130, when executed by the processor, also performs the steps of:
acquiring the equipment information or the hardware configuration information configured through a Web interface;
and generating a table from the equipment information or the hardware configuration information and importing the table into a database.
The embodiment obtains the preconfigured equipment information through the scheme; distributing an internal register of a remote control unit RTU according to the equipment information; and importing the values of the equipment registers into the allocated internal registers according to the equipment information, and configuring the equipment information according to actual requirements to automatically generate the mapping relation between the external equipment and the internal registers of the RTU so that the equipment can be quickly accessed into the RTU. Based on the scheme of the application, the problems of complex software operation and multiple steps existing in the configuration of the register by external software are solved, so that the RTU register address management is more convenient.
The method embodiment of the application is proposed based on the above-mentioned terminal equipment architecture but not limited to the above-mentioned architecture.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first exemplary embodiment of a register management method according to the present application. The register management method comprises the following steps:
step S101, obtaining preconfigured equipment information;
step S102, an internal register of a remote control unit RTU is allocated according to the equipment information;
step S103, importing the value of the device register into the allocated internal register according to the device information.
The execution subject of the method of this embodiment may be a register management device, or may be a register management terminal device or a server, and this embodiment uses the register management device as an example, where the register management device may be integrated on a terminal device such as a smart phone or a tablet computer having a data processing function.
Specifically, in the present embodiment, preconfigured device information is obtained, where the device information refers to device information of an external device that needs to establish contact with the remote control unit RTU, and may include, but is not limited to, a device name, a device type, and a device register start address data length. Optionally, the configuration mode of the device information can be configured through the constructed interactive interface according to the actual situation. And then, distributing the internal register of the remote control unit RTU according to the acquired preconfigured equipment information, so as to form the mapping relation between the external equipment and the internal register of the RTU. And then, according to the preconfigured equipment information training, reading the value of a register of the external equipment, and importing the read value of the equipment register into an allocated RTU internal register for Modbus master equipment such as a SCADA system or a Mapper driver.
The embodiment obtains the preconfigured equipment information through the scheme; distributing an internal register of a remote control unit RTU according to the equipment information; and importing the values of the equipment registers into the allocated internal registers according to the equipment information, and configuring the equipment information according to actual requirements to automatically generate the mapping relation between the external equipment and the internal registers of the RTU so that the equipment can be quickly accessed into the RTU. Based on the scheme of the application, the problems of complex software operation and multiple steps existing in the configuration of the register by external software are solved, so that the RTU register address management is more convenient.
Further, based on the embodiment shown in fig. 2, in this embodiment, the step S102, allocating the internal register of the remote control unit RTU according to the device information may include:
step S121, sorting the device registers according to the device import sequence;
step S122, the internal register is allocated according to the basic external address and the initial address data length of the device register.
Specifically, in this embodiment, the device information may further include a device import order, the device registers are ordered according to the device import order, and then, the RTU internal registers are allocated to the device registers according to the start address data length and the base external address of each ordered device register.
Illustratively, assuming that the first device register has a start address data length oneLen and the second device register has a start address data length twoLen, when the RTU internal registers are allocated, the first device register address is translated to expand the oneLen length on the base external address and the second device register address is translated to re-expand the twoLen length on the base of the first device register address when the device register address to be input is translated to the RTU internal register address.
Alternatively, the device registers may be of the type including, but not limited to, coil registers, discrete magnitude input registers, save registers, and the like, including save register reads and save register writes.
Optionally, when the device register is a save register, the step of allocating an internal register of the remote control unit RTU according to the device information may further include:
if the storage register of the external equipment has no writing requirement, filling the address of the storage register into the read of the storage register, and then converting the address into an IW register of an RTU input word register%;
if the save register of the external device needs to be written, the save register address is filled into the save register write, and then converted into the RTU output word register% QW register.
According to the scheme of the embodiment, the device registers can be sequentially arranged, and the mapping relation between the external device and the RTU internal registers is realized through the register allocation scheme, so that internal and external addresses are more regular.
Further, as an embodiment, the step S103 may be implemented by importing the value of the device register into the allocated internal register according to the device information, which may include:
step S131, transmitting the device information to the RTU;
step S132, reading the value of the equipment register according to the equipment information training;
step S133, importing the value of the device register into the allocated internal register.
Specifically, the pre-configured device information is transmitted to the inside of the RTU, and then according to the configured device information, the values of the device registers of the external device are read through the protocol in a training manner, and the read values of the device registers are imported into the allocated RTU internal registers.
More specifically, the step S133 may include:
step S1331, matching an internal register of a preset type according to the data type of the value of the equipment register;
step S1332, importing the value of the device register into the internal register of the preset type.
In this embodiment, the data type according to the value of the device register matches the internal register of the preset type, where the data type may include, but is not limited to, a digital input point DO type, a digital output point DI type, an analog output AO type, an analog input AI type, and the like; the predetermined type of internal registers may include, but are not limited to, an input word register (% IW register), an output word register (% QW register), a digital signal output register (% QX register), a digital signal output register (% IX register), and the like. The values of the device registers are then imported into the matching internal registers of the preset type.
Illustratively, if the data type is identified as a DO type or a DI type, the DO type or the DI type is indicated by an unsigned char, which is correspondingly imported into the matched% QX register or% IX register. Where unsigned char is eight bits, one bit may represent one DO or DI, so one% QX register or% IX register may represent eight bits DO or DI. If the data type is identified as the AO type or the AI type, the AO type or the AI type is expressed by an unsigned short, and is correspondingly imported into a matched% QW register or% IW register. Wherein, unsigned short is sixteen bits, the data range is 0-65535, and one unsigned short can represent one AO or AI. In other examples, the above configuration may be flexibly adjusted.
The embodiment obtains the preconfigured equipment information through the scheme; distributing an internal register of a remote control unit RTU according to the equipment information; and importing the values of the equipment registers into the allocated internal registers according to the equipment information, and configuring the equipment information according to actual requirements to automatically generate the mapping relation between the external equipment and the internal registers of the RTU so that the equipment can be quickly accessed into the RTU. Based on the scheme of the application, the problems of complex software operation and multiple steps existing in the configuration of the register by external software are solved, so that the RTU register address management is more convenient.
Further, referring to fig. 3, fig. 3 is a flowchart of a third exemplary embodiment of the register management method according to the present application, based on the above-mentioned embodiment, in this embodiment, after the device register values are read according to the device information rotation in the above-mentioned step S132, the register management method may further include:
if the value of the device register is read correctly, executing the steps of: importing the value of the device register into the allocated internal register;
if the value of the equipment register is read in error, skipping over the current equipment register, reading the value of the next equipment register, and importing the value of the next equipment register into an internal register corresponding to the next equipment register.
Specifically, the values of the equipment registers are read according to the equipment information training, and if the values of the equipment registers are read correctly, the read values of the equipment registers are imported into the distributed RTU internal registers.
Optionally, if the value of the device register is read in error, the currently read device register is skipped, that is, the value of the next device register is read after the offset according to the address length of the device register, and then the read value of the next device register is imported into the RTU internal register allocated corresponding to the next device register.
According to the scheme, the registers are allocated in sequence, the values of the device registers are read, the current register is skipped when errors are read, the next register is read continuously, and the RTU registers allocated by the next register are imported, so that when errors occur in the reading of the previous device registers, the reading of the following device registers can not be influenced. Furthermore, for the device register skipped by the reading error, the error correction can be realized more quickly and accurately by timely checking whether the configured device parameters are correct, whether the wiring is normal, and the like through error reporting prompt.
Referring to fig. 4, fig. 4 is a flowchart of a fourth exemplary embodiment of the register management method according to the present application, based on the above-mentioned embodiment, in this embodiment, before the step S101 of obtaining the preconfigured device information, the register management method may further include:
step S100, determining a register management mode.
The register management mode may include, but is not limited to, an external device import RTU management mode and an RTU home register management mode. The external equipment importing RTU management mode is used for importing external equipment into an internal register of the remote control unit RTU; the RTU home register management mode is used for realizing the purpose of importing hardware equipment of the RTU home into an internal register of the RTU.
Step S101, if the register management mode is the external device import RTU management mode, executing the steps of: and acquiring preconfigured equipment information.
Specifically, if the determined register management mode is the external device import RTU management mode, acquiring preconfigured device information; distributing an internal register of a remote control unit RTU according to the equipment information; and importing the values of the device registers into the allocated internal registers according to the device information.
In step S201, if the register management mode is the RTU home register management mode, hardware configuration information is obtained, where the hardware configuration information is obtained by configuring the home hardware device of the RTU.
Specifically, if the determined register management mode is the RTU local register management mode, hardware configuration information is obtained, wherein the hardware configuration information is obtained by configuring local hardware equipment of the RTU. In this embodiment, the configuration parameters may be adjusted according to different local hardware devices, so as to adapt to configuration of multiple hardware devices to obtain hardware configuration information.
Step S202, the internal register planned to the hardware of the RTU is allocated according to the hardware configuration information.
Specifically, the internal registers of the local hardware of the RTU are allocated and planned according to the obtained hardware configuration information, so that the mapping relation between the local hardware equipment and the internal registers of the RTU is formed.
And step S203, importing the value of the local hardware equipment into the internal register of the local hardware planned to the RTU according to the hardware configuration information.
Specifically, the values of the local hardware devices are read in a training mode according to the obtained hardware configuration information, and the read values of the local hardware devices are imported into an internal register planned to the local hardware of the RTU. Alternatively, the values of the local hardware device may include, but are not limited to, values of a hardware interface and other data (e.g., time, temperature, latitude and longitude, etc.).
Through the above scheme, this embodiment passes through two register management modes: the external equipment is imported into an RTU management mode and an RTU local register management mode, so that the external equipment and local hardware equipment can be quickly accessed, and the RTU is convenient to use; meanwhile, the hardware device register of the RTU and the external access device register are obviously distinguished, so that the problem can be easily positioned when the problem occurs.
Further, as an embodiment, before determining the register management mode in the step S100, the method may further include:
step S10, acquiring the equipment information or the hardware configuration information configured through a Web interface;
and S11, generating a table by the equipment information or the hardware configuration information and importing the table into a database.
In this embodiment, steps S10-S11 are performed before step S100, and in other embodiments, steps S10-S11 may be performed between step S100 and step S101, and steps S10-S11 may be performed between step S100 and step S102.
Specifically, after configuring device information of an external device or hardware configuration information of a local hardware device through a Web interface, the configured device information or hardware configuration information is acquired. Optionally, the Web interface is implemented by a mix of Python and HTML. And then generating a table from the acquired device information or hardware configuration information and importing the table into a database. Referring to fig. 5, fig. 5 is a code schematic diagram of database table creation according to an embodiment of the register management method of the present application.
Optionally, the automatic typesetting table can be displayed through the constructed Web interface, the RTU internal registers before and after distribution can be displayed, whether the logs of the reading equipment report errors or not can be checked, and the like.
According to the embodiment, the configuration of the equipment information is simpler and more convenient, the point table is automatically generated, the point table does not need to be imported from the outside and corresponds to the register, and the convenience of RTU register management is further improved.
In addition, an embodiment of the present application further provides a register management apparatus, where the register management apparatus includes:
the acquisition module is used for acquiring preconfigured equipment information;
the distribution module is used for distributing the internal register of the remote control unit RTU according to the equipment information;
and the importing module is used for importing the values of the equipment registers into the allocated internal registers according to the equipment information.
The principle and implementation process of register management are implemented in this embodiment, please refer to the above embodiments, and will not be described in detail here.
In addition, the embodiment of the application also provides a terminal device, which comprises a memory, a processor and a register management program stored on the memory and capable of running on the processor, wherein the register management program realizes the steps of the register management method when being executed by the processor.
Because the register management program is executed by the processor, all the technical schemes of all the embodiments are adopted, at least all the beneficial effects brought by all the technical schemes of all the embodiments are provided, and the description is omitted herein.
In addition, the embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a register management program, and the register management program realizes the steps of the register management method when being executed by a processor.
Because the register management program is executed by the processor, all the technical schemes of all the embodiments are adopted, at least all the beneficial effects brought by all the technical schemes of all the embodiments are provided, and the description is omitted herein.
Compared with the prior art, the register management method, the device, the terminal equipment and the storage medium provided by the embodiment of the application acquire the preconfigured equipment information; distributing an internal register of a remote control unit RTU according to the equipment information; and importing the values of the equipment registers into the allocated internal registers according to the equipment information, and configuring the equipment information according to actual requirements to automatically generate the mapping relation between the external equipment and the internal registers of the RTU so that the equipment can be quickly accessed into the RTU. Based on the scheme of the application, the problems of complex software operation and multiple steps existing in the configuration of the register by external software are solved, so that the RTU register address management is more convenient.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to perform the method of each embodiment of the present application.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the application, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (8)

1. A register management method, the register management method comprising:
acquiring preconfigured equipment information;
distributing an internal register of a remote control unit RTU according to the equipment information;
importing a value of a device register into the allocated internal register according to the device information;
wherein the step of importing a value of a device register into the allocated internal register according to the device information includes:
transmitting the device information to the RTU;
reading the value of the equipment register according to the equipment information training;
matching an internal register of a preset type according to the data type of the value of the equipment register;
and importing the value of the equipment register into the internal register of the preset type.
2. The register management method according to claim 1, wherein the step of allocating an internal register of the remote control unit RTU according to the device information includes:
sequencing the device registers according to the device import sequence;
the internal registers are allocated according to a base external address and a device register start address data length.
3. The register management method according to claim 1, wherein after the step of reading the values of the device registers on the basis of the device information rotation, further comprising:
if the value of the equipment register is correctly read, executing the steps of matching the internal register of a preset type according to the data type of the value of the equipment register and then;
if the value of the equipment register is read in error, skipping over the current equipment register, reading the value of the next equipment register, and importing the value of the next equipment register into an internal register corresponding to the next equipment register.
4. The register management method according to claim 1, wherein before the step of acquiring the pre-configured device information, further comprising:
determining a register management mode;
if the register management mode is the external device import RTU management mode, executing the steps: acquiring preconfigured equipment information;
if the register management mode is an RTU local register management mode, acquiring hardware configuration information, wherein the hardware configuration information is obtained by configuring local hardware equipment of the RTU;
distributing and planning an internal register of the hardware of the RTU according to the hardware configuration information;
and importing the value of the local hardware equipment into the internal register of the local hardware planned to the RTU according to the hardware configuration information.
5. The register management method according to claim 4, wherein before the step of determining the register management mode, further comprising:
acquiring the equipment information or the hardware configuration information configured through a Web interface;
and generating a table from the equipment information or the hardware configuration information and importing the table into a database.
6. A register management apparatus, characterized in that the register management apparatus comprises:
the acquisition module is used for acquiring preconfigured equipment information;
the distribution module is used for distributing the internal register of the remote control unit RTU according to the equipment information;
an importing module, configured to import a value of a device register into the allocated internal register according to the device information;
the importing module is further used for transmitting the equipment information to the RTU; reading the value of the equipment register according to the equipment information training; matching an internal register of a preset type according to the data type of the value of the equipment register; and importing the value of the equipment register into the internal register of the preset type.
7. A terminal device comprising a memory, a processor and a register management program stored on the memory and executable on the processor, the register management program implementing the steps of the register management method according to any of claims 1-5 when executed by the processor.
8. A computer readable storage medium, having stored thereon a register management program, which when executed by a processor, implements the steps of the register management method according to any of claims 1-5.
CN202310922212.4A 2023-07-26 2023-07-26 Register management method, device, terminal equipment and storage medium Active CN116661865B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310922212.4A CN116661865B (en) 2023-07-26 2023-07-26 Register management method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310922212.4A CN116661865B (en) 2023-07-26 2023-07-26 Register management method, device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116661865A CN116661865A (en) 2023-08-29
CN116661865B true CN116661865B (en) 2023-12-08

Family

ID=87724418

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310922212.4A Active CN116661865B (en) 2023-07-26 2023-07-26 Register management method, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116661865B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6266713B1 (en) * 1996-04-03 2001-07-24 General Electric Company Field upgradeable dynamic data exchanger server
CN109450756A (en) * 2018-10-18 2019-03-08 南京海桐环境科技有限公司 A kind of ModbusRTU signal procedure based on SIMATIC S7-200 SMART
CN212159924U (en) * 2020-04-26 2020-12-15 广东绿岛风空气系统股份有限公司 Portable RS485 communication tester
CN113300883A (en) * 2021-05-17 2021-08-24 科华数据股份有限公司 Protocol information generation method and device and terminal equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6950851B2 (en) * 2001-04-05 2005-09-27 Osburn Iii Douglas C System and method for communication for a supervisory control and data acquisition (SCADA) system
US10897398B2 (en) * 2019-02-04 2021-01-19 Saudi Arabian Oil Company Embedded dynamic configuration assignment for unprotected remote terminal unit (RTU)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6266713B1 (en) * 1996-04-03 2001-07-24 General Electric Company Field upgradeable dynamic data exchanger server
CN109450756A (en) * 2018-10-18 2019-03-08 南京海桐环境科技有限公司 A kind of ModbusRTU signal procedure based on SIMATIC S7-200 SMART
CN212159924U (en) * 2020-04-26 2020-12-15 广东绿岛风空气系统股份有限公司 Portable RS485 communication tester
CN113300883A (en) * 2021-05-17 2021-08-24 科华数据股份有限公司 Protocol information generation method and device and terminal equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于Modbus-RTU通讯方式在AI集群建筑中的设计与实现;高旸;《青海大学学报》;第38卷(第2期);第58-65页 *

Also Published As

Publication number Publication date
CN116661865A (en) 2023-08-29

Similar Documents

Publication Publication Date Title
US20060230066A1 (en) Using schemas to generate application specific business objects for use in an integration broker
US10754869B2 (en) Managing data format of data received from devices in an internet of things network
EP4176602A1 (en) Method and apparatus for updating gateway resource, and iot control platform
CN111342992B (en) Method and system for processing equipment information change record
CN110597714A (en) Kafka message testing method and device, computer equipment and storage medium
CN104077082A (en) Network voting data storage method and device
CN116661865B (en) Register management method, device, terminal equipment and storage medium
CN104750524A (en) Upgraded data package transmitting method and device and data package upgrading method and device
CN111367761B (en) Information management method, system and related components of universal server
EP0729253A2 (en) Method for deleting managed objects from network
US9232009B2 (en) Data integration apparatus for use in sensor network
CN108600296A (en) Merchant information processing method, device, electronic equipment and storage medium
KR20050009138A (en) Information transmitting apparatus and method, information receiving apparatus and method, information providing system
CN106709060A (en) Data sharing method and system
CN113704120A (en) Data transmission method, device, equipment and storage medium
CN112130817A (en) Multi-version interface implementation method, system, device and readable storage medium
US6993526B2 (en) Electronic catalog system, catalog data printing method, server, and computer readable recording media recording program used in server
CN113507464B (en) Data access method, device, equipment and storage medium based on virtual equipment
CN116483375A (en) File analysis method, device, equipment and medium
CN114064739B (en) Marking optimization method and device, electronic equipment and readable storage medium
CN116149561B (en) Tile data transmission method and device, electronic equipment and storage medium
CN117240932A (en) Identification information determining method and device, electronic equipment and storage medium
CN103080959A (en) Method for managing contents in network, and web server used thereto
EP4339871A1 (en) Internet of vehicles-based digital commodity processing method, apparatus, and medium
CN113163261B (en) Decryption pushing method, device, equipment and storage medium of encrypted video

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant