DCS intelligent configuration method and device and electronic equipment
By using the programming tools in the DCS configuration to formulate standard templates and module coordinate positions, copy the parameter copy of the artificial operation, solve the problem of complicated and low efficiency of the DCS configuration, and achieve an efficient and accurate process process.
Patent Information
- Application Number
- CN202411467820.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-21
- Publication Date
- 2025-01-28
AI Technical Summary
DCS configuration is complicated, manual configuration logic is inefficient and error-prone, especially when handling thousands of points of input and output conversion.
The standard template is formulated by programming tools, using the coordinate position of the module in the configuration tool, and according to the scheduled plan, imitate the manual operation method, gradually copy the parameter values and text annotations to achieve the DCS intelligent configuration.
There is no need to master the internal relationship of DCS configuration data. The process is simple and accurate, the configuration speed is fast, the accuracy is high, and it is suitable for a large -scale repetitive configuration work, which greatly reduces the workload.
Smart Images

Figure CN119378519A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of DCS intelligent configuration, and in particular to a DCS intelligent configuration method, a DCS intelligent configuration device, an electronic device and a corresponding storage medium. Background Art
[0002] DCS (Distributed Control System) refers to the process of building control logic using packaged algorithms in configuration platform software. Unlike ordinary programming languages, configuration software generally uses dragging and dropping algorithm blocks and connecting algorithm blocks with lines to achieve industrial control including input and output IO points. Configuration also includes setting or filling in algorithm parameters. In general, DCS configuration is an important link in the field of industrial automation control. It involves the hardware and software configuration of the system, as well as the implementation of control strategies and control algorithms. Through reasonable configuration, accurate control and monitoring of industrial processes can be achieved, and production efficiency and product quality can be improved. At present, DCS configuration is mainly done by manually dragging algorithm blocks, setting algorithm block parameters, completing algorithm wiring, and finally compiling and downloading. The workload of DCS configuration is extremely complicated, with thousands of input and output conversions at a time. Manual configuration logic is inefficient and prone to errors. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a DCS intelligent configuration method, device and electronic device, which formulates a standard template through a programming tool, utilizes the coordinate position of the module in the configuration tool, and gradually copies parameter values and text annotations according to a predetermined plan and in a manual operation manner, so as to at least solve some of the problems in the background technology.
[0004] In order to achieve the above object, a DCS intelligent configuration method is provided in the present application, the method comprising:
[0005] Establish an input / output standard point table, wherein the input / output standard point table includes input / output points that need to be configured and are filled in rows; set the filled-in input / output standard point table to a first format, and obtain first coordinate information of each cell of the input / output standard point table in the first format; establish a configuration standard template, wherein the configuration standard template has a second format; obtain second coordinate information of an algorithm block in the configuration standard template in the second format and obtain third coordinate information of a block attribute of the algorithm block; construct a copy instruction in the input / output standard point table based on the first coordinate information, and construct a paste instruction in the configuration standard template based on the second coordinate information and the third coordinate information; configure the data in the input / output standard point table in the configuration standard template based on the copy instruction and the paste instruction.
[0006] Optionally, both the first format and the second format have a preset number of rows, a preset row height, and a preset arrangement rule based on data type.
[0007] Optionally, the method also includes: obtaining the fourth coordinate information of the input and output standard point table and the configuration standard template in the resource manager in the operating system and obtaining the fifth coordinate information of the taskbar of the operating system, and constructing a selection instruction in the operating system based on the fourth coordinate information and the fifth coordinate information.
[0008] Optionally, a copy instruction is constructed in the input / output standard point table based on the first coordinate information, and a paste instruction is constructed in the configuration standard template based on the second coordinate information and the third coordinate information, including: selecting the input / output standard point table based on a selection instruction, determining a source cell in the input / output standard point table based on the first coordinate information, and generating a copy instruction for the source cell; selecting the configuration standard template based on the selection instruction, generating and executing a click instruction for an algorithm block in the configuration standard template based on the second coordinate information to obtain block attributes, determining an input position in the block attributes based on the third coordinate information, and generating a paste instruction at the input position.
[0009] Optionally, the columns in the input and output standard point table include: input point name, output point name and output point description; the first coordinate information is a matrix, the elements in the matrix are coordinates, the row number where the coordinates are located represents the row of the input and output point in the input and output standard point table, and the column number where the coordinates are located represents the input point name, output point name or output point description.
[0010] Optionally, the algorithm blocks in the configuration standard template include an input point algorithm block, an output point algorithm block and an output point description algorithm block; each algorithm block of each data in the configuration standard template corresponds to a block attribute, and the filling point of each block attribute corresponds to the position coordinates in the third coordinate information.
[0011] Optionally, the method further includes: determining whether the configuration data in the configuration standard template reaches a preset number of rows; and automatically closing the configuration standard template when the preset number of rows is reached.
[0012] The present application also provides a DCS intelligent configuration device, which includes: a table establishment module, which is used to establish an input and output standard point table, wherein the input and output standard point table includes input and output points that need to be configured and are filled in rows; a coordinate acquisition module, which is used to set the filled input and output standard point table to a first format, and obtain the first coordinate information of each cell of the input and output standard point table in the first format; a template establishment module, which is used to establish a configuration standard template, wherein the configuration standard template has a second format; obtain the second coordinate information of the algorithm block in the configuration standard template in the second format and obtain the third coordinate information of the block attribute of the algorithm block; an instruction generation module, which is used to construct a copy instruction in the input and output standard point table based on the first coordinate information, and to construct a paste instruction in the configuration standard template based on the second coordinate information and the third coordinate information; and an instruction execution module, which is used to configure the data in the input and output standard point table in the configuration standard template based on the copy instruction and the paste instruction.
[0013] The present application also provides an electronic device, comprising: at least one processor; a memory connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the at least one processor implements the aforementioned DCS intelligent configuration method by executing the instructions stored in the memory.
[0014] The present application also provides a machine-readable storage medium, on which instructions are stored. When the instructions are executed by a processor, the processor is configured to execute and implement the aforementioned DCS intelligent configuration method.
[0015] The present application also provides a computer program product, including a computer program, which implements the aforementioned DCS intelligent configuration method when executed by a processor.
[0016] The above technical solution has the following beneficial effects:
[0017] (1) There is no need to master the internal relationship of DCS configuration data. It simply imitates manual operations and completely replaces manual operations. There is no need to master the internal data relationship of DCS. The implementation process is simple and accurate.
[0018] (2) The configuration speed is fast, the accuracy is high, and the configuration logic screen is beautiful. As long as the EXCEL input and output point table is correct, the configuration will not be wrong. It is particularly suitable for large-scale repetitive configuration work.
[0019] (3) The workload is greatly reduced and continuous work can be carried out 24 hours a day.
[0020] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the accompanying drawings:
[0022] Figure 1 The following is a schematic diagram showing the steps of the DCS intelligent configuration method according to the implementation mode of the present application;
[0023] Figure 2 The schematic diagram shows the structure of the DCS intelligent configuration device according to the implementation mode of the present application;
[0024] Figure 3 The internal structure of an electronic device according to an embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0025] The specific implementation of the embodiment of the present application is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present application, and is not used to limit the embodiment of the present application.
[0026] Figure 1 The following is a schematic diagram showing the steps of the DCS intelligent configuration method according to the implementation mode of the present application. Figure 1 As shown, a DCS intelligent configuration method, the method comprising:
[0027] S01, establishing an input and output standard point table, wherein the input and output standard point table includes input and output points that need to be configured and are filled in rows;
[0028] S02, setting the filled input and output standard point table to the first format, and obtaining the first coordinate information of each cell of the input and output standard point table in the first format;
[0029] S03, establishing a configuration standard template, wherein the configuration standard template has a second format; obtaining second coordinate information of an algorithm block in the configuration standard template in the second format and obtaining third coordinate information of a block attribute of the algorithm block;
[0030] S04, constructing a copy instruction in the input and output standard point table based on the first coordinate information, and constructing a paste instruction in the configuration standard template based on the second coordinate information and the third coordinate information;
[0031] S05. Based on the copy instruction and the paste instruction, the data in the input and output standard point table is configured in the configuration standard template.
[0032] Through the above implementation method, it is not necessary to master the internal relationship of DCS configuration data, and it can be realized by simply imitating manual operation, which has the advantages of simplicity and accuracy. At the same time, the configuration speed is fast, the accuracy is high, and the configuration logic screen is beautiful. As long as the EXCEL input and output point table is correct, the configuration will not be wrong. It is particularly suitable for large-scale repetitive configuration work. It is suitable for all-weather automatic execution, which greatly reduces the workload.
[0033] In some embodiments of the present application, the first format and the second format both have a preset number of rows, such as 50 rows; a preset row height, such as evenly distributing each row so that the height of each row is consistent; a preset arrangement rule based on data type, such as classifying by type, putting analog points together, and putting switch points together, to avoid mixing analog and switch values. The steps for establishing an input and output standard point table can be as follows: (1) Establish an input and output point table in an EXCEL table, and fill in the sequence number, input point name, output point name, output point description, and output point type; (2) Fill in the input and output points that need to be configured in order according to rows; (3) Classify by type, put analog points together, and put switch points together, and separate analog and switch values; (4) First establish switch points, and arrange input and output points in groups of 50 rows, and each group of data corresponds to a switch configuration page. If the last page is less than 50 rows, no analog data will be added; (5) Then establish analog points, and arrange input and output points in groups of 50 rows, and each group of data corresponds to an analog configuration page. If the last page has less than 50 lines, no more switch data will be added; (6) Distribute each line evenly so that the height of each line is consistent.
[0034] Correspondingly, the first coordinate information of each cell of the input and output standard point table in the first format in step S02 can be obtained by the following steps: at a certain resolution, each point of the display device has coordinates, and it is not difficult to obtain a tool for obtaining the coordinates, and obtain the input point name, the output point name, and the output point description in the EXCEL table. Position coordinates.
[0035] In some optional implementations of the present application, the columns in the input and output standard point table include: input point name, output point name and output point description; the first coordinate information is a matrix, the elements in the matrix are coordinates, the row number where the coordinates are located represents the row of the input and output point in the input and output standard point table, and the column number where the coordinates are located represents the input point name, output point name or output point description. Exemplarily, the coordinates in the first coordinate information are as follows:
[0036] A11, A12, A13;
[0037] A21, A22, A23; ......;
[0039] A501, A502, A503; ......;
[0041] AN1, AN2, AN3;
[0042] Among them: AN1 represents the coordinates of the input point names in the Nth row, AN2 represents the coordinates of the output point names in the Nth row, and AN3 represents the coordinates of the output point descriptions in the Nth row. For example, A11 represents the coordinates of the input point names in the 1st row, A12 represents the coordinates of the output point names in the 1st row, and A13 represents the coordinates of the output point descriptions in the 1st row; A21 represents the coordinates of the input point names in the 2nd row, A22 represents the coordinates of the output point names in the 2nd row, and A23 represents the coordinates of the output point descriptions in the 2nd row; and so on, A501 represents the coordinates of the input point names in the 50th row, A502 represents the coordinates of the output point names in the 50th row, and A503 represents the coordinates of the output point descriptions in the 50th row.
[0043] In some optional embodiments, the configuration standard template established in step S03 also has a preset number of rows, such as 50 rows; a preset row height, such as evenly distributing each row so that the height of each row is consistent; and a preset arrangement rule based on the data type. Exemplarily, since each configuration is consistent in form, the parameter points are different and the descriptions are also different. An empty template configuration file can be manually configured first, which is based on the format of the configuration standard template. The configuration standard template does not contain specific data for the time being. First create a template configuration file according to the number of points. For example, if there are 240 switch input and output points and 130 analog input and output points, with 50 lines as the upper limit, then 5+3=8 template configuration files need to be created, all of which are based on the configuration standard template and named in order. The examples are as follows: 01-switch 1-50 configuration file, 02-switch 51-100 configuration file, 03-switch 101-150 configuration file, 04-switch 151-200 configuration file, 05-switch 201-240 configuration file, 06-analog 1-50 configuration file, 07-analog 51-100 configuration file, 08-analog 101-130 configuration file. For each configuration standard template, the input and output points need to be evenly arranged, which can be arranged according to 5 input and output logics per line, a total of 10 lines. When arranging, you can use rows first and then columns, that is, the first row corresponds to the first 5 data in the EXCEL table, the second row corresponds to data 6-10 in the EXCEL table, and so on.
[0044] In some optional implementations of the present application, the algorithm blocks in the configuration standard template include an input point algorithm block, an output point algorithm block, and an output point description algorithm block; each algorithm block of each data in the configuration standard template corresponds to a block attribute, and the fill-in point of each block attribute corresponds to the position coordinates in the third coordinate information. The 50 input and output logics of this configuration standard template locate the input point algorithm block, the output point algorithm block, and the output point description, and obtain their coordinates to obtain the second coordinate information. After clicking on each algorithm block, the block attributes will be displayed in the display bar on the right. In the block attributes, the input point name, output point name, and output point description in the EXCEL table, i.e., the input and output standard point table, need to be filled in later. Here, the fill-in point position coordinates corresponding to each block attribute are obtained, and each algorithm block corresponds to one coordinate. In this way, each input and output logic attribute corresponds to three coordinates, a total of 150 coordinates, thereby obtaining the third coordinate information.
[0045] In the present application, in order to realize the automatic selection of each table and template, the method further includes: obtaining the fourth coordinate information of the input and output standard point table and the configuration standard template in the resource manager in the operating system and obtaining the fifth coordinate information of the task bar of the operating system, and constructing the selection instruction in the operating system based on the fourth coordinate information and the fifth coordinate information. The example is as follows: after establishing the input and output standard point table, minimize the input and output standard point table and obtain the coordinates of the task bar. And after establishing the configuration standard template, obtain the coordinates of the position of the windows resource manager where the template file is stored in the windows task bar, thereby obtaining the fourth coordinate information. And obtain the coordinates of the position of the above template configuration file in the WINDOWS resource manager, 8 files correspond to 8 coordinates, thereby obtaining the fifth coordinate information. The role of the fourth coordinate information and the fifth coordinate information is mainly to realize the selection of the target in the automatic execution of the configuration.
[0046] In some embodiments of the present application, the copy instruction of the input and output standard point table is constructed based on the first coordinate information, and the paste instruction of the configuration standard template is constructed based on the second coordinate information and the third coordinate information, including: selecting the input and output standard point table based on the selection instruction, determining the source cell in the input and output standard point table based on the first coordinate information, and generating a copy instruction for the source cell; selecting the configuration standard template based on the selection instruction, generating and executing the click instruction of the algorithm block in the configuration standard template based on the second coordinate information to obtain the block attribute, determining the input position in the block attribute based on the third coordinate information, and generating a paste instruction at the input position. Exemplarily, after the above basic work such as establishing the input and output standard point table, establishing the configuration standard template, and obtaining the coordinate information is completed, the configuration is realized by programming to simulate manual operation. The main simulated operations include: moving to a certain coordinate, clicking, copying, pasting, confirming and other mouse or keyboard operations. In this way, data can be automatically copied from the input and output standard point table according to the already sorted data and copied to the corresponding DCS template file that has been made. Once the configuration standard template is completed, the same type of operation can be used repeatedly in the future. The main work of configuration is actually to fill in the relevant point names and descriptions into the corresponding positions. In summary, it can be completed by following the steps below.
[0047] (I) Automatic configuration of data in Article 1
[0048] Step 1: According to the coordinate position, click the input and output standard point table located in the Windows taskbar to make the input and output standard point table currently active.
[0049] Step 2: According to the coordinate position, move to the input point in the first row of the input and output standard point table and copy the data.
[0050] Step 3: According to the coordinate position, click the file manager located in the Windows taskbar to open the configuration standard template.
[0051] Step 4: According to the coordinate position, double-click to open the configuration standard template of the first DCS.
[0052] Step 5: According to the coordinate position, click the first point in the configuration standard template to input the point algorithm block.
[0053] Step 6: Move to point 1, fill in the position coordinates in the block properties of the algorithm block, paste point 1 and enter the point name.
[0054] Step 7: Follow the above steps 1-6 again to copy and paste the name of the first output point in the EXCEL table to the configuration standard template of the first DCS.
[0055] Step 8: Follow the above steps 1-6 again to copy and paste the description of the first output point in the EXCEL table to the configuration standard template of the first DCS.
[0056] Step 9: After the above process, the DCS configuration of the first data is completed.
[0057] Repeat the above steps and follow the method of data configuration in item 1 to complete the automatic configuration of data items 2 to 50.
[0058] In some embodiments of the present application, the method further includes: determining whether the configuration data in the configuration standard template reaches a preset number of rows; when the preset number of rows is reached, the configuration standard template is automatically closed. When 50 configurations in a configuration standard template are completed, the configuration of a page of the file is completed, and each page of configuration constitutes an independent unit. After the system detects that a page of the file is completed, the status file is automatically closed. According to the data of the input and output standard point table, the remaining configuration files numbered 2-8 are opened in sequence for automatic configuration, and the configuration method is executed according to the above steps.
[0059] In summary, by automatically executing the above steps through software programming, all work can be completed at one time by clicking a start button, without the need for human intervention in the middle, and has the advantage of high execution efficiency.
[0060] Based on the same inventive concept, the present application also provides a DCS intelligent configuration device, Figure 2 The schematic diagram shows the structure of the DCS intelligent configuration device according to the implementation mode of the present application. Figure 2 As shown, the device includes: a table establishment module, which is used to establish an input and output standard point table, wherein the input and output standard point table includes input and output points that need to be configured and are filled in rows; a coordinate acquisition module, which is used to set the filled input and output standard point table to a first format, and obtain the first coordinate information of each cell of the input and output standard point table under the first format; a template establishment module, which is used to establish a configuration standard template, wherein the configuration standard template has a second format; obtain the second coordinate information of the algorithm block in the configuration standard template under the second format and obtain the third coordinate information of the block attribute of the algorithm block; an instruction generation module, which is used to construct a copy instruction in the input and output standard point table based on the first coordinate information, and to construct a paste instruction in the configuration standard template based on the second coordinate information and the third coordinate information; and an instruction execution module, which is used to configure the data in the input and output standard point table in the configuration standard template based on the copy instruction and the paste instruction.
[0061] In some optional implementations of the present application, both the first format and the second format have a preset number of rows, a preset row height, and a preset arrangement rule based on the data type.
[0062] In some optional embodiments of the present application, the device also includes a selection construction module, which is used to obtain the fourth coordinate information of the input and output standard point table and the configuration standard template in the resource manager in the operating system and to obtain the fifth coordinate information of the taskbar of the operating system, and to construct a selection instruction in the operating system based on the fourth coordinate information and the fifth coordinate information.
[0063] In some optional embodiments of the present application, a copy instruction is constructed in the input and output standard point table based on the first coordinate information, and a paste instruction is constructed in the configuration standard template based on the second coordinate information and the third coordinate information, including: selecting the input and output standard point table based on a selection instruction, determining a source cell in the input and output standard point table based on the first coordinate information, and generating a copy instruction for the source cell; selecting the configuration standard template based on the selection instruction, generating and executing a click instruction for the algorithm block in the configuration standard template based on the second coordinate information to obtain block attributes, determining an input position in the block attributes based on the third coordinate information, and generating a paste instruction at the input position.
[0064] In some optional embodiments of the present application, the columns in the input and output standard point table include: input point name, output point name and output point description; the first coordinate information is a matrix, the elements in the matrix are coordinates, the row number where the coordinates are located represents the row of the input and output point in the input and output standard point table, and the column number where the coordinates are located represents the input point name, output point name or output point description.
[0065] In some optional embodiments of the present application, the algorithm blocks in the configuration standard template include an input point algorithm block, an output point algorithm block and an output point description algorithm block; each algorithm block of each data in the configuration standard template corresponds to a block attribute, and the filling point of each block attribute corresponds to the position coordinates in the third coordinate information.
[0066] In some optional embodiments of the present application, the device further includes a template closing module, which is used to determine whether the configuration data in the configuration standard template reaches a preset number of rows; when the preset number of rows is reached, the configuration standard template is automatically closed.
[0067] The specific definition of each functional module in the above-mentioned DCS intelligent configuration device can refer to the definition of the DCS intelligent configuration method above, which will not be repeated here. Each module in the above-mentioned system can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the electronic device in the form of hardware, or can be stored in the memory in the electronic device in the form of software, so that the processor can call and execute the operations corresponding to the above modules. It also has the advantages of not needing to master the internal relationship of the DCS configuration data, fully replacing manual operations, and having high configuration efficiency and low error rate.
[0068] In some embodiments of the present application, an electronic device is also provided, comprising: at least one processor; a memory connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the at least one processor executes the aforementioned DCS intelligent configuration method. Its internal structure diagram can be as follows Figure 3 shown. Figure 3 The internal structure diagram of an electronic device according to an embodiment of the present application is schematically shown. The electronic device includes a processor A01, a network interface A02, a memory (not shown in the figure) and a database (not shown in the figure) connected via a system bus. Among them, the processor A01 of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes an internal memory A03 and a non-volatile storage medium A04. The non-volatile storage medium A04 stores an operating system B01, a computer program B02 and a database (not shown in the figure). The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 in the non-volatile storage medium A04. The network interface A02 of the electronic device is used to communicate with an external terminal via a network connection. When the computer program B02 is executed by the processor A01, a DCS intelligent configuration method is implemented.
[0069] Those skilled in the art will understand that Figure 3 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0070] In one embodiment provided in the present application, a machine-readable storage medium is provided, on which instructions are stored. When the instructions are executed by a processor, the processor is configured to execute the aforementioned DCS intelligent configuration method.
[0071] In one embodiment provided in the present application, a computer program product is provided, including a computer program, which implements the aforementioned DCS intelligent configuration method when executed by a processor.
[0072] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0073] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0074] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0075] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0076] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0077] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0078] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0079] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0080] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A DCS intelligent configuration method, characterized in that: The method includes: Establishing an input and output standard point table, wherein the input and output standard point table includes input and output points that need to be configured and are filled in rows; The filled input and output standard point table is set to the first format, and the first coordinate information of each cell of the input and output standard point table in the first format is obtained; Establishing a configuration standard template, the configuration standard template having a second format; acquiring second coordinate information of an algorithm block in the configuration standard template in the second format and acquiring third coordinate information of a block attribute of the algorithm block; A copy instruction is constructed in the input and output standard point table based on the first coordinate information, and a paste instruction is constructed in the configuration standard template based on the second coordinate information and the third coordinate information; The data in the input and output standard point table are configured in the configuration standard template based on the copy instruction and the paste instruction.
2. The method according to claim 1, characterized in that The first format and the second format both have a preset number of rows, a preset row height, and a preset arrangement rule based on data type.
3. The method according to claim 1, characterized in that The method also includes: obtaining fourth coordinate information of the input and output standard point table and the configuration standard template in the resource manager of the operating system and obtaining fifth coordinate information of the task bar of the operating system, and constructing a selection instruction in the operating system based on the fourth coordinate information and the fifth coordinate information.
4. The method according to claim 3, characterized in that The copy instruction constructed in the input and output standard point table based on the first coordinate information, and the paste instruction constructed in the configuration standard template based on the second coordinate information and the third coordinate information include: Selecting the input / output standard point table based on the selection instruction, determining a source cell in the input / output standard point table based on the first coordinate information, and generating a copy instruction for the source cell; The configuration standard template is selected based on the selection instruction, a click instruction for the algorithm block in the configuration standard template is generated and executed based on the second coordinate information to obtain block attributes, an input position is determined in the block attributes based on the third coordinate information, and a paste instruction is generated at the input position.
5. The method according to claim 1, characterized in that The columns in the input and output standard point table include: input point name, output point name and output point description; The first coordinate information is a matrix, the elements in the matrix are coordinates, the row number where the coordinates are located represents the row of the input and output points in the input and output standard point table, and the column number where the coordinates are located represents the input point name, output point name or output point description.
6. The method according to claim 5, characterized in that The algorithm blocks in the configuration standard template include an input point algorithm block, an output point algorithm block and an output point description algorithm block; Each algorithm block of each data in the configuration standard template corresponds to a block attribute, and the filling point of each block attribute corresponds to the position coordinates in the third coordinate information.
7. The method according to claim 2, characterized in that The method further comprises: Determine whether the configuration data in the configuration standard template reaches a preset number of rows; When the preset number of rows is reached, the configuration standard template is automatically closed.
8. A DCS intelligent configuration device, characterized in that: The device includes: A table establishment module, used to establish an input and output standard point table, wherein the input and output standard point table includes input and output points that need to be configured and are filled in rows; A coordinate acquisition module, used to set the filled input and output standard point table to a first format, and acquire first coordinate information of each cell of the input and output standard point table in the first format; The template establishment module is used to establish a configuration standard template, wherein the configuration standard template has a second format; obtain second coordinate information of an algorithm block in the configuration standard template in the second format and obtain third coordinate information of a block attribute of the algorithm block; an instruction generating module, configured to construct a copy instruction in the input and output standard point table based on the first coordinate information, and to construct a paste instruction in the configuration standard template based on the second coordinate information and the third coordinate information; and The instruction execution module is used to configure the data in the input and output standard point table in the configuration standard template based on the copy instruction and the paste instruction.
9. An electronic device, characterized in that: include: at least one processor; a memory connected to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the at least one processor implements the steps of the DCS intelligent configuration method according to any one of claims 1 to 7 by executing the instructions stored in the memory.
10. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instruction is executed by a processor, the steps of the DCS intelligent configuration method described in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Method, device and equipment for batch configuration of databases in DCS (Distributed Control System) and medium
CN121560900A