CN110989470B - Equipment configuration information generation method and device - Google Patents

Equipment configuration information generation method and device Download PDF

Info

Publication number
CN110989470B
CN110989470B CN201911368190.1A CN201911368190A CN110989470B CN 110989470 B CN110989470 B CN 110989470B CN 201911368190 A CN201911368190 A CN 201911368190A CN 110989470 B CN110989470 B CN 110989470B
Authority
CN
China
Prior art keywords
configuration information
field
equipment
information
device configuration
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
CN201911368190.1A
Other languages
Chinese (zh)
Other versions
CN110989470A (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.)
Xinao Shuneng Technology Co Ltd
Original Assignee
Xinao Shuneng Technology Co Ltd
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 Xinao Shuneng Technology Co Ltd filed Critical Xinao Shuneng Technology Co Ltd
Priority to CN201911368190.1A priority Critical patent/CN110989470B/en
Publication of CN110989470A publication Critical patent/CN110989470A/en
Application granted granted Critical
Publication of CN110989470B publication Critical patent/CN110989470B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0426Programming the control sequence
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/23Pc programming
    • G05B2219/23146Programmable, reconfigurable via microprocessor or coding switches

Abstract

The invention discloses a method and a device for generating equipment configuration information, a computer readable storage medium and electronic equipment, wherein the method comprises the following steps: acquiring a device identifier corresponding to at least one device; acquiring preset equipment configuration template information corresponding to the equipment; and generating target equipment configuration information according to the equipment identification corresponding to each equipment and preset equipment configuration template information. By the technical scheme of the invention, the generation efficiency of the equipment configuration information can be improved, and the error rate of the equipment configuration information can be reduced.

Description

Equipment configuration information generation method and device
Technical Field
The invention relates to the technical field of energy, in particular to a method and a device for generating equipment configuration information.
Background
A Programmable Logic Controller (PLC control system for short) is an electronic device designed for industrial production and operated by digital operation, and is a core part of industrial control, and generally needs to determine device configuration information and place the device configuration information in the PLC, so as to ensure the control of the PLC on devices.
At present, the report forms corresponding to a large number of devices are mainly sorted and analyzed manually by a configuration staff, so as to obtain device configuration information.
However, the above-described determination of the configuration information is inefficient and is prone to errors.
Disclosure of Invention
The invention provides a method and a device for generating equipment configuration information, a computer readable storage medium and electronic equipment, which can improve the generation efficiency of the equipment configuration information and reduce the error rate of the equipment configuration information.
In a first aspect, the present invention provides a method for generating device configuration information, including:
acquiring a device identifier corresponding to at least one device;
acquiring preset equipment configuration template information corresponding to the equipment;
and generating target equipment configuration information according to the equipment identification corresponding to each equipment and preset equipment configuration template information.
Preferably, the generating target device configuration information according to the device identifier and the preset device configuration template information respectively corresponding to each device includes:
for each device, filling the corresponding device identifier into at least one first field in the corresponding preset device configuration template information to obtain device configuration information;
and generating target equipment configuration information according to the equipment configuration information corresponding to each equipment.
Preferably, the generating device configuration information according to the device configuration information corresponding to each device includes:
merging the device configuration information corresponding to each device to obtain merged device configuration information;
sorting according to a second field in the merged device configuration information to obtain sorted device configuration information;
and generating target equipment configuration information according to the sequencing equipment configuration information.
Preferably, the generating target device configuration information according to the sorting device configuration information includes:
counting at least one third field in the sequencing equipment configuration information to obtain the statistical information of each third field;
and generating target equipment configuration information according to the statistical information of each third field and the sequencing equipment configuration information.
Preferably, the at least one first field comprises a meter identification field and/or a device identification field;
the second field comprises an instrument type field or an input and output type field;
the at least one third field includes a meter type field and/or an input-output type field.
Preferably, the target device configuration information further includes: a meter description field and/or a meter unit field, wherein the meter description field includes the device identification.
Preferably, the device identification comprises device information and/or system information.
In a second aspect, the present invention provides an apparatus for generating device configuration information, including:
the identification determining module is used for acquiring an equipment identification corresponding to at least one equipment;
the template determining module is used for acquiring preset equipment configuration template information corresponding to the equipment;
and the configuration determining module is used for generating target equipment configuration information according to the equipment identification corresponding to each equipment and preset equipment configuration template information.
In a third aspect, the invention provides a computer-readable storage medium comprising executable instructions which, when executed by a processor of an electronic device, cause the processor to perform the method according to any one of the first aspect.
In a fourth aspect, the present invention provides an electronic device, comprising a processor and a memory storing execution instructions, wherein when the processor executes the execution instructions stored in the memory, the processor performs the method according to any one of the first aspect.
The invention provides a device configuration information generation method, a device, a computer readable storage medium and an electronic device.
Further effects of the above-mentioned unconventional preferred modes will be described below in conjunction with specific embodiments.
Drawings
In order to more clearly illustrate the embodiments or the prior art solutions of the present invention, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments described in the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a schematic flowchart of a method for generating device configuration information according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another method for generating device configuration information according to an embodiment of the present invention;
fig. 3 is an interface schematic diagram of a reporting tool corresponding to the method for generating device configuration information according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus for generating device configuration information according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail and completely with reference to the following embodiments and accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a method for generating device configuration information, including the following steps:
step 101, acquiring a device identifier corresponding to at least one device;
102, acquiring preset equipment configuration template information corresponding to the equipment;
and 103, generating target equipment configuration information according to the equipment identification corresponding to each equipment and preset equipment configuration template information.
As shown in fig. 1, in the method, device identifiers corresponding to a plurality of devices are acquired, then preset device configuration template information corresponding to the devices is acquired, and then target device configuration information is generated according to the device identifiers corresponding to the devices and the preset device configuration template information, so that manual acquisition of the device configuration information is not required, the generation efficiency of the device configuration information can be improved, and the error rate of the device configuration information can be reduced.
In particular, the device identification is used to distinguish between different devices. Optionally, the device identifier includes device information and/or system information. The device information includes, but is not limited to, a device name, and a first device code, and the first device code is used for distinguishing devices. The system information comprises the name of the process system to which the equipment belongs and a second equipment code, and the second equipment code is used for distinguishing the equipment in different process systems. For example, a certain equipment is identified as "gas hot water boiler system-1 # gas hot water boiler-GWB 01", where 1 is a first equipment code that can distinguish between different gas hot water boilers, and GWB01 is a second equipment code that can distinguish between gas hot water boilers in different process systems.
Specifically, the device configuration template information is general information for describing a device, and includes a plurality of field names and field contents corresponding to each field name. Each device type corresponds to one device configuration template information, and when a plurality of devices belong to the same device type, the device configuration template information corresponding to the devices is the same. Alternatively, the preset device configuration template information may be a form file.
It should be noted that, the device specifically refers to a device including a plurality of meters, each meter is used for measuring relevant data of the device, for example, the data may be flow, temperature, pressure, resistance, current, voltage, and the like, and different devices have different functions, so that the devices include different meters, and therefore, each device type corresponds to one device configuration template information, and the device configuration template information includes information of a plurality of meters corresponding to the device type.
Alternatively, the device may be an energy device, including but not limited to a gas-fired hot water boiler, a steam-type waste heat boiler, a hot water-type waste heat boiler, a heat pump, an electric refrigerator, an oil-gas dual-purpose steam boiler, a water-storage cold tank, and the like. Obviously, the operation data of the equipment should be capable of being collected and uploaded, and the equipment can be intelligently controlled, that is, the equipment can be accessed to the programmable logic controller, and the programmable logic controller controls different equipment through the configuration information of the target equipment, so as to realize intelligent control of the equipment.
In an embodiment of the present invention, the generating target device configuration information according to the device identifier and the preset device configuration template information respectively corresponding to each device includes:
for each device, filling the corresponding device identifier into at least one first field in the corresponding preset device configuration template information to obtain device configuration information;
and generating target equipment configuration information according to the equipment configuration information corresponding to each equipment.
In this embodiment, for each device, the device identifier corresponding to the device is filled into a plurality of first fields in the preset device configuration template information corresponding to the device, so as to obtain device configuration information corresponding to the device, and target device configuration information is generated according to the device configuration information corresponding to each device, where the target device configuration information is based on the fixed device configuration template information and different device identifiers, so that the generation efficiency of the device configuration information is improved, and the error rate of the device configuration information is reduced.
Correspondingly, the preset equipment configuration template information is repeatedly utilized, so that the storage space of the electronic equipment can be saved, and the data processing efficiency is improved.
Specifically, the device configuration information corresponds to one device. Obviously, for a plurality of devices of the same type, each device corresponds to one device configuration information, considering that the device identifiers are different.
It should be noted that the preset device configuration template information includes, but is not limited to, a device identifier replacement word and/or a blank field of a device identifier to be filled in, and correspondingly, the first field is a field including the device identifier replacement word or a blank field of the device identifier to be filled in, and the blank field refers to a field whose field content is empty, and then the device identifier is filled in a plurality of first fields in the preset device configuration template information, specifically, the device identifier is replaced by the device identifier replacement word in the first field or the device identifier is filled in the blank field of the device identifier to be filled in. It should be noted that, for each first field in the preset device configuration template information, part of or all of the content in the device identifier may be filled in the first field.
Specifically, the first field specifically refers to a field in which the device identifier needs to be filled, and includes a field name and field contents corresponding to the field name, the field contents may be null, optionally, the plurality of first fields include a meter identifier field and/or a device identifier field, the meter identifier field indicates different meters in the device, and the device identifier field is used for indicating the device.
In an embodiment of the present invention, the generating device configuration information according to the device configuration information corresponding to each device includes:
merging the device configuration information corresponding to each device to obtain merged device configuration information;
sorting according to a second field in the merged device configuration information to obtain sorted device configuration information;
and generating target equipment configuration information according to the sequencing equipment configuration information.
In this embodiment, the device configuration information corresponding to each device is merged to integrate the device configuration information corresponding to each device, and the merged device configuration information is obtained, in consideration of that the merged device configuration information is not beneficial to reading by a configuration worker, so that the device configuration information can be sorted according to the second field in the merged device configuration information to obtain sorted device configuration information, and then, the target device configuration information can be generated according to the sorted device configuration information to obtain the target device configuration information, and the obtained target device configuration information improves the readability of the second field due to sorting of the second field, so that the reading and analysis of the configuration worker are facilitated, the configuration difficulty is reduced, and the configuration work efficiency is improved.
For example, assume that there are n pieces of device configuration information, and the n pieces of device configuration information are integrated together to obtain one piece of merged device configuration information.
It should be noted that the device configuration information, the sorting device configuration information, and the target device configuration information may be table files.
Specifically, the second field specifically refers to a first reference field for facilitating configuration personnel to know configuration information of the analysis device, and includes a field name and field content, and optionally, the second field includes a meter type field or an input/output type field. Here, the sorting device configuration information may be acquired for different second fields, that is, the number of the sorting device configuration information is multiple, the second fields corresponding to each sorting device configuration information are different, and the number of the sorting device configuration information is the same as the number of the second fields.
The field name included in the meter type field is the meter type, the field content is the content corresponding to the meter type, the field name included in the input/output type field is the input/output type, and the field content is the content corresponding to the input/output type. Here, the meter type needs to be determined by combining actual conditions of the device, including but not limited to an on-board Temperature transmitter, an on-board pressure transmitter, an external thermal resistor, an external pressure transmitter, an external flow meter, etc., where the input and output type specifically refers to an IO type, I is an input port of the programmable logic controller and is also an analog quantity, O is an input port of the programmable logic controller and is also a digital quantity, and the IO type includes but is not limited to an RTD (Resistance Temperature Detector, which means a Resistance Temperature Detector and is simply referred to as a thermal resistor), an AI (analog quantity signal input module), an AO (analog quantity signal output module), a DO (digital quantity signal output module), a DI (switching quantity input), etc.
The embodiment of the present invention does not set any limitation on the sorting manner of the field contents in the second field, for example, the second field may be sorted in an ascending manner according to 26 english letters. Obviously, the second field in the sorting device configuration information is a sorting field, where sorting according to the second field in the merging device configuration information specifically means sorting the row in which the field content in the second field is located according to the field content in the second field.
In an embodiment of the present invention, the generating target device configuration information according to the sorting device configuration information includes:
counting at least one third field in the sequencing equipment configuration information to obtain the statistical information of each third field;
and generating target equipment configuration information according to the statistical information of each third field and the sequencing equipment configuration information.
In this embodiment, a plurality of third fields in the configuration information of the sequencing device are counted to obtain the statistical information of each third field, so that the overall situation of the configuration information of the sequencing device can be known conveniently, and then, the configuration information of the target device can be generated according to the statistical information and the configuration information of the sequencing device, and the configuration information of the target device has a higher reference value due to the sequencing of the second fields and the counting of the third fields, so that the reading and analysis of configuration personnel are facilitated, the configuration difficulty is reduced, and the configuration work efficiency is improved.
It should be noted that, for each sorting device configuration information, the statistical information and the sorting device configuration information are integrated into one table, so as to obtain the target device configuration information. Obviously, the number of the target device configuration information and the sorting device configuration information is the same, and optionally, the statistical information contained in each target device configuration information is the same, but the second field of the sorting is different.
In particular, the third field refers specifically to a second reference field for facilitating configuration personnel to know the configuration information of the analysis device, including a field name and a field content, and optionally, the third field includes a meter type field and/or an input and output type field.
Obviously, counting the third field specifically means counting the field content of the third field to obtain the occurrence frequency of the same content.
Optionally, the target device configuration information includes merged device configuration information and statistical information of the plurality of third fields, and does not include sorted device configuration information.
In an embodiment of the present invention, the target device configuration information further includes: a meter description field and/or a meter unit field, wherein the meter description field includes the device identification.
Specifically, the target device configuration information further includes a meter description field and/or a meter unit field, so as to better understand the meter and facilitate the configurator to understand the device configuration information, where, in order to distinguish the same meter description field included in different devices, the meter description field includes all internal or partial contents of the device identifier.
The field name of the instrument description field is the instrument description, and the field content is the instrument description content. The field name of the meter unit field is the meter unit, and the content of the field is the unit content.
Fig. 2 shows another specific embodiment of the method for generating device configuration information according to the present invention. This embodiment will be disclosed and expanded in more detail on the basis of the embodiment shown in fig. 1. For ease of explanation and illustration, the present embodiments will be described in conjunction with the following detailed scenarios. It should be understood that the method described in this embodiment is also applicable in other relevant scenarios.
The specific scenario combined in this embodiment is as follows: the device configuration information of 3 gas-fired hot water boilers needs to be generated, and the data quantity of the preset device configuration template information is large, however, in this embodiment, for convenience of expression, only 5 meters in the gas-fired hot water boilers are listed, and certainly, the meters in an actual scene are large, and the preset device configuration template information corresponding to the gas-fired hot water boilers is shown in the following table 1:
Figure BDA0002338997710000091
TABLE 1
As shown in fig. 2, the method for generating the device configuration information for the gas-fired hot water boiler may specifically include the following steps:
step 201, acquiring a device identifier corresponding to at least one device and preset device configuration template information corresponding to the device.
Specifically, the device identifier may be a system name, a first device code # device name, and a second device code, and the preset device configuration template information corresponds to a worksheet tag, where the worksheet tag is used to specify the device name. For example, the operating table labels of table 1 above are gas-fired hot water boilers, and the three equipment identifications are "gas-fired hot water boiler system — 1# gas-fired hot water boiler — GWB 01", "gas-fired hot water boiler system — 1# gas-fired hot water boiler — GWB 02", "gas-fired hot water boiler system — 1# gas-fired hot water boiler — GWB 03", respectively.
Step 202, for each device, filling the corresponding device identifier into at least one first field in the corresponding preset device configuration template information to obtain device configuration information.
Here, the meter identification field in table 1 is a column in which the meter identification is located, there is a device identification replacement "NUM", the device identification field is a column in which the device identification is located, there is a blank cell in which the device identification is to be filled, and the meter description field is a column in which the meter description is located, where it is necessary to replace a device identification replacement word with a second device code in the device identification, fill the second device code in the device identification field, and add the first device code # device name in the device identification in the meter description field, where it is necessary to generate device configuration information corresponding to 3 gas-fired hot water boilers, respectively, that is, 3 device configuration information can be obtained. Each piece of equipment configuration information corresponds to an equipment identifier, and here, the equipment configuration information corresponding to the "gas hot water boiler system — 1# gas hot water boiler — GWB 01" is shown in table 2 below:
Figure BDA0002338997710000101
TABLE 2
Here, the device configuration information corresponding to "gas hot water boiler system 2# gas hot water boiler-GWB 02" and "gas hot water boiler system 3# gas hot water boiler-GWB 03" is similar to table 2, and only "GWB 01" and "1 # gas hot water boiler" need to be replaced correspondingly, and will not be described herein too much.
Step 203, merging the device configuration information corresponding to each device to obtain merged device configuration information.
Merging the device configuration information obtained in step 202, and based on table 2, the obtained merged device configuration information is shown in table 3 below:
Figure BDA0002338997710000111
TABLE 3
And 204, sequencing according to the second field in the merged device configuration information to obtain sequencing device configuration information.
The number of the second fields is the same as that of the sorting device configuration information, the second fields comprise input and output type fields and meter type fields, correspondingly, the number of the sorting device configuration information is two, one is the sorting device configuration information corresponding to the sorting of the input and output type fields, and the other is the sorting device configuration information corresponding to the sorting of the meter type fields.
For example, the second field is an input/output type field, the input/output type field is a column of the input/output type in table 3, the input/output type field in table 3 is sorted, and the obtained configuration information of the sorting device is shown in table 4 below:
Figure BDA0002338997710000121
Figure BDA0002338997710000131
TABLE 4
Step 205, counting at least one third field in the sequencing device configuration information to obtain statistical information of each third field.
For example, on the basis of table 4, assuming that the third field is a meter type field, the content of the statistical information is as shown in table 5 below:
Figure BDA0002338997710000132
TABLE 5
And step 206, generating target device configuration information according to the statistical information of each third field and the sequencing device configuration information.
Here, the ranking device configuration information and the respective statistical information are combined for each of the ranking device configuration information to generate target device configuration information. The embodiment of the invention does not limit the positions of the statistical information and the configuration information of the sequencing equipment, and optionally, when the configuration information of the target equipment is a table, the statistical information can be placed at the upper right part of the configuration information of the sequencing equipment, thereby being convenient to check.
Based on the device configuration information generation method, a reporting tool for generating the device configuration information can be developed, and the reporting tool is installed on the electronic device to run, so that the device configuration information is generated. For example, fig. 3 is an interface schematic diagram of a report tool, configured to generate target device configuration information, please refer to fig. 3, after a system where a gas-fired hot water boiler where a device is located is selected in a process system, the gas-fired hot water boiler is selected in the device, a name of the device is consistent with a working table tag or a device name corresponding to a preset device configuration template, then, 3 gas-fired hot water boilers are newly added through a newly added button, so as to obtain device identifiers "gas-fired hot water boiler system-1 # gas-fired hot water boiler-GWB 01", "gas-fired hot water boiler system-1 # gas-fired hot water boiler-GWB 02", "gas hot water boiler system-1 # gas-fired hot water boiler-GWB 03" respectively corresponding to the three gas-fired hot water boilers, if the device identifiers "gas-fired hot water boiler system-1 #, then, the equipment identifier to be modified is selected, the copy option button is clicked, the equipment identifier to be modified, the gas-fired hot water boiler system, the 1# gas-fired hot water boiler system, and the GWB01 can be copied into the rectangular frame at the lowest part, the modification option is clicked to modify the information in the frame, then, the generated report is clicked to obtain the target equipment configuration information, the content of the target equipment configuration information needs to be set, and the target equipment configuration information in any embodiment is generated.
Based on the same concept as the method embodiment of the present invention, referring to fig. 4, an embodiment of the present invention further provides an apparatus for generating device configuration information, including:
an identifier determining module 401, configured to obtain an apparatus identifier corresponding to at least one apparatus;
a template determining module 402, configured to obtain preset device configuration template information corresponding to the device;
the configuration determining module 403 is configured to generate target device configuration information according to the device identifier and the preset device configuration template information respectively corresponding to each device.
In an embodiment of the present invention, the configuration determining module 403 includes: a filling unit and a generating unit; wherein the content of the first and second substances,
the filling unit is configured to, for each device, fill the corresponding device identifier into at least one first field in the corresponding preset device configuration template information to obtain device configuration information;
and the generating unit is used for generating target equipment configuration information according to the equipment configuration information corresponding to each equipment.
In one embodiment of the present invention, the generating unit includes a merging subunit, a configuration determining subunit, and a generating subunit; wherein the content of the first and second substances,
the merging subunit is configured to merge the device configuration information corresponding to each device, and acquire merged device configuration information;
the configuration determining subunit is configured to perform sorting according to the second field in the merged device configuration information, and acquire sorted device configuration information;
and the generating subunit is configured to generate target device configuration information according to the sorting device configuration information.
In an embodiment of the present invention, the generating subunit is specifically configured to execute the following steps:
counting at least one third field in the sequencing equipment configuration information to obtain the statistical information of each third field;
and generating target equipment configuration information according to the statistical information of each third field and the sequencing equipment configuration information.
In one embodiment of the present invention, the at least one first field comprises a meter identification field and/or a device identification field;
the second field comprises an instrument type field or an input and output type field;
the at least one third field includes a meter type field and/or an input-output type field.
In an embodiment of the present invention, the target device configuration information further includes: a meter description field and/or a meter unit field, wherein the meter description field includes the device identification.
In an embodiment of the present invention, the device identifier includes device information and/or system information.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. On the hardware level, the electronic device includes a processor 501 and a memory 502 storing execution instructions, and optionally includes an internal bus 503 and a network interface 504. The Memory 502 may include a Memory 5021, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory 5022(non-volatile Memory), such as at least 1 disk Memory; the processor 501, the network interface 504, and the memory 502 may be connected to each other by an internal bus 503, and the internal bus 503 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like; the internal bus 503 may be divided into an address bus, a data bus, a control bus, etc., and is indicated by only one double-headed arrow in fig. 5 for convenience of illustration, but does not indicate only one bus or one type of bus. Of course, the electronic device may also include hardware required for other services. When the processor 501 executes execution instructions stored by the memory 502, the processor 501 performs a method in any of the embodiments of the present invention and at least is used to perform the method as shown in fig. 1 or fig. 2.
In a possible implementation manner, the processor reads the corresponding execution instruction from the nonvolatile memory to the memory and then runs the execution instruction, and may also obtain the corresponding execution instruction from other devices, so as to form a device configuration information generating apparatus on a logic level. The processor executes the execution instruction stored in the memory, so as to realize the equipment configuration information generation method provided by any embodiment of the invention through the executed execution instruction.
The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Embodiments of the present invention further provide a computer-readable storage medium, which includes an execution instruction, and when a processor of an electronic device executes the execution instruction, the processor executes a method provided in any one of the embodiments of the present invention. The electronic device may specifically be the electronic device shown in fig. 5; the execution instruction is a computer program corresponding to the device configuration information generation apparatus.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects.
The embodiments of the present invention are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or boiler 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 boiler. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or boiler that comprises the element.
The above description is only an example of the present invention, and is not intended to limit the present invention. Various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (9)

1. An apparatus configuration information generating method, comprising:
acquiring a device identifier corresponding to at least one device;
acquiring preset equipment configuration template information corresponding to the equipment;
generating target equipment configuration information according to the equipment identification corresponding to each equipment and preset equipment configuration template information;
generating target device configuration information according to the device identifier and preset device configuration template information respectively corresponding to each device, including:
for each device, filling the corresponding device identifier into at least one first field in the corresponding preset device configuration template information to obtain device configuration information;
merging the device configuration information corresponding to each device to obtain merged device configuration information;
and generating target equipment configuration information according to the merged equipment configuration information.
2. The method of claim 1, wherein generating device configuration information according to the merged device configuration information comprises:
sorting according to a second field in the merged device configuration information to obtain sorted device configuration information;
and generating target equipment configuration information according to the sequencing equipment configuration information.
3. The method of claim 2, wherein generating target device configuration information according to the sorted device configuration information comprises:
counting at least one third field in the sequencing equipment configuration information to obtain the statistical information of each third field;
and generating target equipment configuration information according to the statistical information of each third field and the sequencing equipment configuration information.
4. The method according to claim 3, characterized in that the at least one first field comprises a meter identification field and/or a device identification field;
the second field comprises an instrument type field or an input and output type field;
the at least one third field includes a meter type field and/or an input-output type field.
5. The method of claim 4, wherein the target device configuration information further comprises: any one or more of a meter description field and/or a meter unit field, wherein the meter description field includes the device identification.
6. The method according to any of claims 1 to 5, wherein the device identification comprises device information and/or system information.
7. An apparatus for generating device configuration information, comprising:
the identification determining module is used for acquiring an equipment identification corresponding to at least one equipment;
the template determining module is used for acquiring preset equipment configuration template information corresponding to the equipment;
the configuration determining module is used for generating target equipment configuration information according to the equipment identification corresponding to each equipment and preset equipment configuration template information;
the configuration determination module includes: the device comprises a filling unit, a merging unit and a generating unit; wherein the content of the first and second substances,
the filling unit is configured to, for each device, fill the corresponding device identifier into at least one first field in the corresponding preset device configuration template information to obtain device configuration information;
the merging unit is configured to merge the device configuration information corresponding to each device, and acquire merged device configuration information;
and the generating unit is used for generating the configuration information of the target equipment according to the configuration information of the merged equipment.
8. A computer-readable storage medium comprising executable instructions that, when executed by a processor of an electronic device, cause the processor to perform the method of any of claims 1-6.
9. An electronic device comprising a processor and a memory storing execution instructions, the processor performing the method of any of claims 1-6 when the processor executes the execution instructions stored by the memory.
CN201911368190.1A 2019-12-26 2019-12-26 Equipment configuration information generation method and device Active CN110989470B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911368190.1A CN110989470B (en) 2019-12-26 2019-12-26 Equipment configuration information generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911368190.1A CN110989470B (en) 2019-12-26 2019-12-26 Equipment configuration information generation method and device

Publications (2)

Publication Number Publication Date
CN110989470A CN110989470A (en) 2020-04-10
CN110989470B true CN110989470B (en) 2021-04-27

Family

ID=70077452

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911368190.1A Active CN110989470B (en) 2019-12-26 2019-12-26 Equipment configuration information generation method and device

Country Status (1)

Country Link
CN (1) CN110989470B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112667665A (en) * 2020-12-31 2021-04-16 新奥数能科技有限公司 Method and device for generating SCADA control system report and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101213542A (en) * 2005-06-30 2008-07-02 索尼株式会社 Information processor, information processing method and information processing program
CN101794150A (en) * 2010-04-20 2010-08-04 杭州和利时自动化有限公司 Data management method and system of fieldbus instrument management system
CN104903884A (en) * 2013-09-04 2015-09-09 费希尔-罗斯蒙特系统公司 Bulk field device operations
EP3399415A1 (en) * 2017-05-03 2018-11-07 Servicenow, Inc. Computing resource identification
CN109255114A (en) * 2018-09-17 2019-01-22 四川长虹电器股份有限公司 The system and method for Excel table and legend is generated based on data configuration

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6694221B2 (en) * 2001-10-23 2004-02-17 Dispensesource, Inc. Controlled inventory device and method using pressure transducer

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101213542A (en) * 2005-06-30 2008-07-02 索尼株式会社 Information processor, information processing method and information processing program
CN101794150A (en) * 2010-04-20 2010-08-04 杭州和利时自动化有限公司 Data management method and system of fieldbus instrument management system
CN104903884A (en) * 2013-09-04 2015-09-09 费希尔-罗斯蒙特系统公司 Bulk field device operations
EP3399415A1 (en) * 2017-05-03 2018-11-07 Servicenow, Inc. Computing resource identification
CN109255114A (en) * 2018-09-17 2019-01-22 四川长虹电器股份有限公司 The system and method for Excel table and legend is generated based on data configuration

Also Published As

Publication number Publication date
CN110989470A (en) 2020-04-10

Similar Documents

Publication Publication Date Title
CN106681854B (en) Information verification method, device and system
CN106934121B (en) Method for testing correctness of simulation result of device model
CN110928802A (en) Test method, device, equipment and storage medium based on automatic generation of case
CN110989470B (en) Equipment configuration information generation method and device
CN110309131A (en) The method for evaluating quality and device of massive structured data
CN107316156B (en) Data processing method, device, server and storage medium
CN113268403B (en) Time series analysis and prediction method, device, equipment and storage medium
CN111566574B (en) Apparatus, method, and program for dynamic model generation
CN111651847B (en) Method and device for determining operation oxygen amount of gas boiler
CN110647913A (en) Abnormal data detection method and device based on clustering algorithm
CN113505942A (en) Project engineering cost estimation method and device, electronic equipment and storage medium
CN112699128A (en) Report generation method and device, readable storage medium and electronic equipment
CN111523205A (en) Specific enthalpy determination method and device for superheated steam
CN110807019A (en) Method and device for expanding metadata of comprehensive energy information model
CN116029080A (en) Chip storage device design and verification method and device and electronic equipment
CN109325167B (en) Feature analysis method, device, equipment and computer-readable storage medium
CN111651358B (en) Method for generating test case, software test method, device and server
CN112330063A (en) Equipment failure prediction method, device and computer readable storage medium
CN111639192A (en) Method and device for acquiring energy flow diagram, readable medium and electronic equipment
CN116204396A (en) Test method and device for performance of analytical database
CN116467161A (en) Application testing method and device, electronic equipment and storage medium
CN113126981B (en) Medical data processing method and device based on Excel
CN112613263B (en) Simulation verification method and device, electronic equipment and computer-readable storage medium
CN112631852A (en) Macro checking method, macro checking device, electronic equipment and computer readable storage medium
CN112416782A (en) Test result verification method and device and electronic equipment

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