Control logic configuration conversion method, device, equipment and storage medium

By using an automated control logic configuration conversion method, the problems of parameter omissions and connection errors caused by manual comparison in DCS transformation and upgrading were solved, and the accurate configuration and connection of functional blocks in the target DCS were realized, improving migration efficiency and accuracy.

CN122239620APending Publication Date: 2026-06-19SHANGHAI POWER EQUIPMENT RESEARCH INSTITUTE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHANGHAI POWER EQUIPMENT RESEARCH INSTITUTE CO LTD
Filing Date
2026-03-18
Publication Date
2026-06-19

AI Technical Summary

Technical Problem

During the transformation and upgrading of distributed control systems (DCS), the existing technology relies on manual point-by-point comparison, which leads to problems such as parameter omissions and function block connection errors in control logic configuration conversion.

Method used

By extracting key information of function blocks from the source DCS's logical configuration file, and using preset function block mapping relationships and parameter conversion rules, the target function block is automatically created in the target DCS and a connection relationship is established, generating a logical configuration file.

Benefits of technology

It improves the accuracy and efficiency of control logic configuration conversion, shortens migration time, and ensures the accuracy of parameter settings and function block connections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122239620A_ABST
    Figure CN122239620A_ABST
Patent Text Reader

Abstract

This application provides a control logic configuration conversion method, apparatus, device, and computer-readable storage medium. The method includes: extracting key information of each source functional block from the logic configuration file of a source DCS, wherein the key information includes identification information, parameter information, location information, and connection relationships; determining the target functional block identifier corresponding to each source functional block in the target DCS based on the identification information and a preset functional block mapping relationship; processing the parameter information according to preset parameter conversion rules; creating a target functional block corresponding to the target functional block identifier in the target DCS based on the location information, and configuring the processed parameter information to the target functional block; establishing connection relationships between each target functional block based on the connection relationships and a preset port correspondence relationship between source and target functional blocks; and generating a logic configuration file of the target DCS based on the identification information, location information, parameter configuration, and connection relationships of each target functional block.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of control technology, and in particular to a control logic configuration conversion method, apparatus, device, and computer-readable storage medium. Background Technology

[0002] During the upgrade and transformation of a Distributed Control System (DCS), it is necessary to migrate the control logic configuration of the source DCS to the new DCS. Currently, to achieve this conversion, the main method relies on manual point-by-point comparison and manual reconstruction of the control logic configuration of the new DCS. This manual reconstruction method is prone to errors such as missing parameters and incorrect function block connections, leading to discrepancies between the control logic of the new DCS and the source DCS. Summary of the Invention

[0003] This application provides a control logic configuration conversion method, apparatus, device, and computer-readable storage medium, which can intelligently realize control logic configuration conversion between different DCSs, and improve the efficiency and accuracy of control logic configuration conversion.

[0004] In a first aspect, embodiments of this application provide a control logic configuration conversion method, including: Extract key information of each source functional block from the logical configuration file of the source DCS, wherein the key information includes identification information, parameter information, location information and connection relationship; Based on the identification information and the preset functional block mapping relationship, the target functional block identifier corresponding to each source functional block in the target DCS is determined. The functional block mapping relationship includes the mapping relationship between the functional block identifier of the source DCS and the functional block identifier of the target DCS. The parameter information is processed according to the preset parameter conversion rules; Based on the location information, a target function block corresponding to the target function block identifier is created in the target DCS, and the processed parameter information is configured to the target function block. Based on the connection relationship and the preset port correspondence between the source function block and the target function block, the connection relationship between each target function block is established. Based on the identification information, location information, parameter configuration, and connection relationship of each target functional block, the logical configuration file of the target DCS is generated.

[0005] Secondly, embodiments of this application provide a control logic configuration conversion device, comprising: The acquisition module is used to extract key information of each source functional block from the logical configuration file of the source DCS, wherein the key information includes identification information, parameter information, location information and connection relationship; The processing module is used to determine the target function block identifier corresponding to each source function block in the target DCS based on the identification information and the preset function block mapping relationship; process the parameter information according to the preset parameter conversion rules; create the target function block corresponding to the target function block identifier in the target DCS based on the location information, and configure the processed parameter information to the target function block; establish the connection relationship between each target function block based on the connection relationship and the preset port correspondence relationship between the source function blocks and the target function blocks; and generate the logical configuration file of the target DCS according to the identification information, location information, parameter configuration, and connection relationship of each target function block; the function block mapping relationship includes the mapping relationship between the function block identifiers of the source DCS and the function block identifiers of the target DCS.

[0006] Thirdly, embodiments of this application provide an electronic device, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps of the control logic configuration conversion method provided in the first aspect of embodiments of this application.

[0007] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program thereon, wherein the computer program, when executed by a processor, implements the steps of the control logic configuration conversion method provided in the first aspect of embodiments of this application.

[0008] Fifthly, embodiments of this application provide a computer program product having a computer program stored thereon, wherein when the computer program is executed by a processor, it implements the steps of the control logic configuration conversion method provided in the first aspect of embodiments of this application.

[0009] The technical solution provided in this application extracts the identification information, parameter information, location information, and connection relationships of each source functional block from the logical configuration file of the source DCS. Based on the identification information and the preset functional block mapping relationship, it determines the target functional block identifier corresponding to each source functional block in the target DCS. According to the preset parameter conversion rules, the parameter information is processed. Based on the location information, the target functional block corresponding to the target functional block identifier is created in the target DCS, and the processed parameter information is configured to the target functional block. Based on the connection relationship and the preset port correspondence between the source functional blocks and the target functional blocks, the connection relationship between each target functional block is established. That is, the reconstruction, parameter configuration, and connection relationship establishment of the target functional blocks in the target DCS are automatically completed, ensuring the accuracy and consistency of parameter settings and the accuracy of functional block connection relationships. Finally, the logical configuration file of the target DCS is generated. Compared with manual logical configuration migration, this shortens the time for control logic configuration migration between different DCS and improves the accuracy of control logic configuration migration. Attached Figure Description

[0010] Figure 1 This is a schematic flowchart of a control logic configuration conversion method provided in an embodiment of this application; Figure 2 A flowchart illustrating the target function block creation process provided in this application embodiment; Figure 3 A schematic diagram of a control logic configuration conversion device provided in an embodiment of this application; Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0011] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions in the embodiments of this application will be further described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only for explaining this application and are not intended to limit this application. Those skilled in the art can make adjustments as needed to suit specific application scenarios. Furthermore, it should be noted that, for ease of description, only the parts related to this application are shown in the accompanying drawings, not the entire structure.

[0012] It should be noted that the method provided in this application embodiment can be executed by a control logic configuration conversion device, which can be implemented as part or all of an electronic device through software, hardware, or a combination of software and hardware. Optionally, the electronic device can be a personal computer, smartphone, tablet computer, server, etc., and this disclosure does not limit the specific form of the electronic device. The following method embodiments are described using an electronic device as an example.

[0013] Figure 1 This is a flowchart illustrating a control logic configuration conversion method provided in an embodiment of this application. Figure 1 As shown, the method may include: S101. Extract key information for each source function block from the source DCS's logical configuration file.

[0014] The process begins by obtaining the source DCS's logic configuration file. This file contains the control logic for each source function block within the source DCS. A source function block is a module that performs a specific function, such as Proportional-Integral-Derivative (PID), AND, OR, or a timer. Therefore, after obtaining the source DCS's logic configuration file, it can be parsed, and key information for each source function block can be extracted from the parsing results. This key information includes the source function block's identification information, parameter information, location information, and connection relationships.

[0015] The aforementioned identification information mainly refers to the information used to uniquely identify the source function block, which may include the source function block type, unique identifier, input / output port (or pin) definitions, etc. The aforementioned parameter information mainly refers to the internal operating parameters of the source function block, which may include PID parameters, range, alarm threshold values, etc. The aforementioned location information mainly refers to the layout information of the source function block on the page, which may include the position and size of the source function block on the page, as well as the page size of the source DCS, etc. The aforementioned connection relationship refers to the signal connection relationship between each source function block, that is, the connection used to characterize the connection from the output port of the previous source function block to the input port of the next source function block.

[0016] S102. Based on the identification information and the preset functional block mapping relationship, determine the target functional block identifier corresponding to each source functional block in the target DCS.

[0017] In practical implementation, function block mapping relationships can be pre-established based on expert experience. These mapping relationships include the mapping between function block identifiers in the source DCS and the target DCS. Such mapping relationships can include one-to-one, one-to-many, and many-to-one relationships. For example, function blocks with identical functions in the source and target DCS can be directly mapped, such as PID, AND, OR, and timers. Functions implemented by multiple source function blocks in the source DCS can be replaced by a single function block in the target DCS; for example, an eight-input OR module can be replaced by a single function block in the target DCS. A single source function block in the source DCS needs to be split into multiple modules in the target DCS; for example, a four-input adder block in the source DCS can be split into two two-input adder blocks in the target DCS.

[0018] Therefore, based on the identification information of each source functional block, the pre-established functional block mapping relationship can be queried to determine the target functional block identifier corresponding to each source functional block in the target DCS.

[0019] In practical applications, the target DCS may also be upgraded, and the target function blocks provided by the target DCS may change. For example, a combination of multiple target function blocks may be implemented using a single target function block. Therefore, it is necessary to reconstruct the correspondence between the changed target function blocks and the source function blocks. The electronic device obtains the function block mapping adjustment information input by the user and updates the function block mapping relationship according to the function block mapping adjustment information, so that the function block mapping relationship can accurately reflect the correspondence between function blocks between the source DCS and the target DCS, thereby improving the accuracy of control logic configuration conversion.

[0020] S103. Process the parameter information according to the preset parameter conversion rules.

[0021] In this embodiment, parameter information can be processed into parameter information that is adapted to the target DCS by combining preset parameter conversion rules.

[0022] Optionally, the parameters of the source DCS may include numerical parameters (such as range, setpoint, etc.), logical parameters (such as enable flags, alarm modes, etc.), and specific parameters. These specific parameters may be unique to the source DCS and not supported by the target DCS. The processing of the source DCS parameter information according to the preset parameter conversion rules may include: converting numerical parameters, such as performing unit conversion or linear scaling; directly mapping logical parameters; setting the specific parameters to default values ​​in the target function block and setting alarm information for the specific parameters to remind the user to reconfigure the parameters of the target function block.

[0023] This method makes the converted parameters more compatible with the target DCS, improving the accuracy of parameter configuration for each target function block in the target DCS.

[0024] S104. Based on the location information, create a target function block corresponding to the target function block identifier in the target DCS, and configure the processed parameter information to the target function block.

[0025] In this embodiment, a target function block corresponding to a target function block identifier can be created in the target DCS based on the position information of the source function block on the page. For example, the target function block can be set to the same position in the target DCS page as the corresponding source function block in the source DCS page. Furthermore, the parameters processed by each source function block are configured to the corresponding target function block.

[0026] This approach aims to make the layout of the target functional blocks in the target DCS as similar as possible to the layout of the corresponding source functional blocks in the source DCS, thereby reducing the learning cost for users of the target DCS and improving the user experience.

[0027] S105. Based on the connection relationship and the preset port correspondence between the source function block and the target function block, establish the connection relationship between each target function block.

[0028] In this embodiment, the port correspondence between the source function block and the target function block can be pre-established based on expert experience. This port correspondence includes the correspondence between the input ports of the source function block and the corresponding input ports of the target function block, as well as the correspondence between the output ports of the source function block and the corresponding output ports of the target function block.

[0029] Table 1 below provides a port mapping relationship between source function blocks and target function blocks, including the mapping relationship between source inputs and target inputs, and the mapping relationship between source outputs and target outputs: Table 1 The process iterates through each connection in the source DCS, establishing connections between target function blocks based on the pre-established port correspondence between source and target function blocks, ensuring consistency in signal type (analog, digital) and connection direction. If the connection involves different pages, inter-page reference function blocks can be used in the target DCS to achieve signal transmission. Specifically, inter-page reference function blocks are created in each page requiring a connection. The input port of the inter-page reference function block in the previous page is connected to the output port of the target function block to be connected on that page, and the output port of the inter-page reference function block in the next page is connected to the input port of the target function block to be connected on that page. A connection is then established between the output port of the inter-page reference function block in the previous page and the input port of the inter-page reference function block in the next page, thus achieving the connection between different pages. The inter-page reference function block is used to connect the data / signal flow between the pages requiring a connection.

[0030] S106. Generate the logical configuration file of the target DCS based on the identification information, location information, parameter configuration and connection relationship of each target functional block.

[0031] Based on the engineering file format (such as XML or dedicated database format) that the target DCS can recognize, as well as the identification information, location information, parameter configuration and connection relationship of each target functional block, generate the logical configuration file of the target DCS.

[0032] Optionally, a log file can also be generated, which records the number of source function blocks that have been successfully converted, the connection reconstruction status of each target function block after conversion, paging information, and a list of source function blocks that have not been successfully converted.

[0033] The control logic configuration conversion method provided in this application extracts the identification information, parameter information, location information, and connection relationships of each source functional block from the logic configuration file of the source DCS. Based on the identification information and the preset functional block mapping relationship, it determines the target functional block identifier corresponding to each source functional block in the target DCS. According to the preset parameter conversion rules, it processes the parameter information, creates the target functional block corresponding to the target functional block identifier in the target DCS based on the location information, and configures the processed parameter information to the target functional block. Based on the connection relationship and the preset port correspondence between the source functional blocks and the target functional blocks, it establishes the connection relationship between each target functional block. That is, it automatically completes the reconstruction, parameter configuration, and connection relationship establishment of the target functional blocks in the target DCS, ensuring the accuracy and consistency of parameter settings and the accuracy of functional block connection relationships. Finally, it generates the logic configuration file of the target DCS. Compared with manual logic configuration migration, it shortens the time for control logic configuration migration between different DCS and improves the accuracy of control logic configuration migration.

[0034] In one embodiment, alternatively, such as Figure 2 As shown, the target function block corresponding to the target function block identifier in the target DCS based on location information can include: S201. If the location information does not exceed the page size of the current page of the target DCS, then create the target function block corresponding to the target function block identifier in the current page based on the location information.

[0035] S202. If the location information exceeds the current page size, create a new page in the target DCS.

[0036] S203. Based on the location information and page size, determine the new location information of the target function block in the new page.

[0037] S204. Based on the new location information, create the target function block on the new page.

[0038] When creating a target function block corresponding to the target function block identifier on the current page, the page sizes of the source DCS and the target DCS are compared. If the page size of the source DCS exceeds the page size of the target DCS, and the obtained position information of the source function block does not exceed the page size of the current page of the target DCS, then the target function block corresponding to the source function block is created on the current page based on this position information. For example, the target function block is set to the same position on the target DCS page as the corresponding source function block on the source DCS page. Otherwise, a new page is created on the target DCS, and the new position information of the target function block on the new page is determined based on the aforementioned position information and the page size of the target DCS page. As an optional implementation, a modulo operation can be performed based on the position information of the source function block and the page size of the target DCS page to obtain the new position information of the target function block on the new page. Of course, other methods can also be used to obtain the new position information of the target function block on the new page. For example, assuming the location information of the source function block is (800, 800) (where the unit of location information is pixels), and the page size of the target DCS page is (600, 600), then by taking the modulo operation between the location information of the source function block and the page size of the target DCS page, the new location information of the target function block in the new page is obtained as (200, 200). In the new page of the target DCS, the target function block is created based on this new location information; for example, the target function block can be set at position (200, 200) on the new page.

[0039] This approach ensures that the layout of the target functional block in the target DCS is as similar as possible to the layout of the corresponding source functional block in the source DCS, reducing the learning cost for users of the target DCS and thus improving the user experience.

[0040] Optionally, the layout of each target functional block on the page can be optimized based on the page layout rules of the target DCS. For example, the relative position or size of each target functional block can be adjusted to avoid overlap between target functional blocks.

[0041] Optionally, after creating the target function block on the new page, inter-page reference function blocks can also be created on both the current page and the new page to establish connections between them. These inter-page reference function blocks are used to connect the data / signal flow between the current page and the new page.

[0042] Specifically, an inter-page reference function block is created on the current page, and its input port is connected to the output port of the target function block to be connected on the current page. Another inter-page reference function block is created on the new page, and its output port is connected to the input port of the target function block to be connected on the new page. A connection relationship is established between the output port of the inter-page reference function block on the current page and the input port of the inter-page reference function block on the new page, thereby connecting the data / signal flow between the current page and the new page and maintaining the signal continuity between the current page and the new page.

[0043] After pagination, the signal continuity between pages in the target DCS can be achieved through the inter-page reference function block. This satisfies the page layout of the target DCS and keeps the control logic of the target DCS and the source DCS unchanged, thereby improving the accuracy of control logic configuration migration.

[0044] Optionally, for specific source function blocks unique to the source DCS that cannot be automatically converted through preset mapping rules (such as macro modules, some dedicated function blocks of the source DCS, custom algorithm blocks, etc.), special processing can be performed using placeholder function blocks. Here, a specific source function block can be understood as a source function block whose target function block identifier is not matched in the pre-established function block mapping relationship. When a specific source function block that cannot be automatically converted is identified, a placeholder function block is created at the corresponding position in the target DCS based on the position information of that specific source function block. This placeholder function block has the following characteristics: it is marked as a special type; it maintains the same position in the target DCS page as the specific source function block in the source DCS page; it contains standard function block attributes such as a unique identifier or size; and the placeholder function block does not execute any control algorithm, serving only as a placeholder.

[0045] Furthermore, detailed marking information can be added to the associated area of ​​the placeholder function block. This marking information includes, but is not limited to: source function block identifier and type, source function block function description, parameter settings and connection relationships, reasons for not being automatically converted, suggested manual processing methods, relevant technical documents or standard references, and possible alternatives.

[0046] In this way, function blocks that are unique to the source DCS and cannot be automatically converted by preset mapping rules are handled by using placeholders and adding marking information. This provides data reference for users to adjust the placeholder function blocks later. For example, a unique target function block with the same function or type as the source function block can be added at this position, thereby improving the consistency of control logic configuration between the target DCS and the source DCS.

[0047] Figure 3This is a schematic diagram of a control logic configuration conversion device provided in an embodiment of this application. Figure 3 As shown, the device may include an acquisition module 301 and a processing module 302.

[0048] Specifically, the acquisition module 301 is used to extract key information of each source function block from the logical configuration file of the source DCS. The key information includes identification information, parameter information, location information and connection relationship. The processing module 302 is used to determine the target function block identifier corresponding to each source function block in the target DCS based on the identification information and the preset function block mapping relationship; process the parameter information according to the preset parameter conversion rules; create the target function block corresponding to the target function block identifier in the target DCS based on the location information, and configure the processed parameter information to the target function block; establish the connection relationship between each target function block based on the connection relationship and the preset port correspondence between the source function blocks and the target function blocks; and generate the logical configuration file of the target DCS according to the identification information, location information, parameter configuration and connection relationship of each target function block; the function block mapping relationship includes the mapping relationship between the function block identifier of the source DCS and the function block identifier of the target DCS.

[0049] Based on the above embodiments, optionally, the processing module 302 is also used to convert numerical parameters; directly map logical parameters; set specific parameters to default values ​​and set alarm information for specific parameters, wherein the specific parameters are parameters that are not supported by the target DCS.

[0050] Based on the above embodiments, optionally, the processing module 302 is further configured to: if the location information does not exceed the page size of the current page of the target DCS, create a target function block corresponding to the target function block identifier in the current page based on the location information; if the location information exceeds the page size of the current page, create a new page in the target DCS; determine the new location information of the target function block in the new page according to the location information and the page size; and create the target function block in the new page based on the new location information.

[0051] Optionally, based on the above embodiments, the processing module 302 is also used to optimize the layout of each target functional block in the page based on the page layout rules of the target DCS.

[0052] Based on the above embodiments, optionally, the processing module 302 is further configured to create inter-page reference function blocks in the current page and the new page respectively, the inter-page reference function blocks being used to connect the data flow between the current page and the new page; and to establish the connection relationship between each inter-page reference function block.

[0053] Optionally, based on the above embodiments, the processing module 302 is further configured to create a placeholder function block in the target DCS based on the location information of the specific source function block; and add marking information to the placeholder function block, the marking information including the functional description information of the specific source function block and / or suggested processing method.

[0054] Optionally, based on the above embodiments, the acquisition module 301 is further configured to acquire function block mapping adjustment information input by the user; The processing module 302 is also used to update the function block mapping relationship based on the function block mapping adjustment information.

[0055] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of this application, such as... Figure 4 As shown, the device includes a processor 40, a memory 41, an input device 42, and an output device 43; the number of processors 40 in the device can be one or more. Figure 4 Taking a processor 40 as an example; the processor 40, memory 41, input device 42, and output device 43 in this device can be connected via a bus or other means. Figure 4 Taking the example of a connection between China and Israel via a bus.

[0056] The memory 41, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as program instructions / modules corresponding to the control logic configuration conversion method in the embodiments of this application (e.g., acquisition module 301 and processing module 302 in the control logic configuration conversion device). The processor 40 executes various functional applications and data processing of the device by running the software programs, instructions, and modules stored in the memory 41, thereby realizing the control logic configuration conversion method described above.

[0057] The memory 41 may primarily include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a given function; the data storage area may store data created during control logic configuration transitions. Furthermore, the memory 41 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory, or other non-volatile solid-state storage device. In some instances, the memory 41 may further include memory remotely located relative to the processor 40, which can be connected to a device / terminal / server via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0058] Input device 42 can be used to receive input digital or character information, and to generate key signal inputs related to user settings and function control of the electronic device. Output device 43 may include display devices such as a display screen.

[0059] In one embodiment, a computer-readable storage medium is also provided, on which a computer program is stored, the computer program performing the following steps when executed by a processor: Extract key information for each source function block from the source DCS's logical configuration file. The key information includes identification information, parameter information, location information, and connection relationships. Based on the identification information and the preset functional block mapping relationship, the target functional block identifier corresponding to each source functional block in the target DCS is determined. The functional block mapping relationship includes the mapping relationship between the functional block identifier of the source DCS and the functional block identifier of the target DCS. The parameter information is processed according to the preset parameter conversion rules; Based on location information, a target function block corresponding to the target function block identifier is created in the target DCS, and the processed parameter information is configured to the target function block. Based on the connection relationship and the pre-defined port correspondence between the source function block and the target function block, establish the connection relationship between each target function block; Based on the identification information, location information, parameter configuration, and connection relationships of each target functional block, generate the logical configuration file of the target DCS.

[0060] In one embodiment, a computer program product is also provided, on which a computer program is stored, which, when executed by a processor, performs the following steps: Extract key information for each source function block from the source DCS's logical configuration file. The key information includes identification information, parameter information, location information, and connection relationships. Based on the identification information and the preset functional block mapping relationship, the target functional block identifier corresponding to each source functional block in the target DCS is determined. The functional block mapping relationship includes the mapping relationship between the functional block identifier of the source DCS and the functional block identifier of the target DCS. The parameter information is processed according to the preset parameter conversion rules; Based on location information, a target function block corresponding to the target function block identifier is created in the target DCS, and the processed parameter information is configured to the target function block. Based on the connection relationship and the pre-defined port correspondence between the source function block and the target function block, establish the connection relationship between each target function block; Based on the identification information, location information, parameter configuration, and connection relationships of each target functional block, generate the logical configuration file of the target DCS.

[0061] The control logic configuration conversion device, electronic device, computer-readable storage medium, and computer program product provided in the above embodiments can execute the control logic configuration conversion method provided in any embodiment of this application, and have the corresponding functional modules and beneficial effects of executing the method. Technical details not described in detail in the above embodiments can be found in the control logic configuration conversion method provided in any embodiment of this application.

[0062] Based on the above description of the implementation methods, those skilled in the art can clearly understand that this application can be implemented using software and necessary general-purpose hardware, and of course, it can also be implemented using hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk, or optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.

[0063] It is worth noting that the units and modules included in the above embodiments are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the scope of protection of this application.

[0064] Note that the above description is merely a preferred embodiment and the technical principles employed in this application. Those skilled in the art will understand that this application is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of this application. Therefore, although this application has been described in detail through the above embodiments, this application is not limited to the above embodiments. Many other equivalent embodiments may be included without departing from the concept of this application, and the scope of this application is determined by the scope of the appended claims.

Claims

1. A control logic configuration conversion method, characterized in that, include: Extract key information of each source functional block from the logical configuration file of the source DCS, wherein the key information includes identification information, parameter information, location information and connection relationship; Based on the identification information and the preset functional block mapping relationship, the target functional block identifier corresponding to each source functional block in the target DCS is determined. The functional block mapping relationship includes the mapping relationship between the functional block identifier of the source DCS and the functional block identifier of the target DCS. The parameter information is processed according to the preset parameter conversion rules; Based on the location information, a target function block corresponding to the target function block identifier is created in the target DCS, and the processed parameter information is configured to the target function block. Based on the connection relationship and the preset port correspondence between the source function block and the target function block, the connection relationship between each target function block is established. Based on the identification information, location information, parameter configuration, and connection relationship of each target functional block, the logical configuration file of the target DCS is generated.

2. The method according to claim 1, characterized in that, The step of processing the parameter information according to the preset parameter conversion rules includes: Transform the numerical parameters; Direct mapping of logical parameters; Set a specific parameter to its default value and set an alarm message for that specific parameter.

3. The method according to claim 1, characterized in that, Based on the location information, a target function block corresponding to the target function block identifier is created in the target DCS, including: If the location information does not exceed the page size of the current page of the target DCS, then a target function block corresponding to the target function block identifier is created in the current page based on the location information; If the location information exceeds the page size of the current page, a new page is created in the target DCS; Based on the location information and the page size, determine the new location information of the target functional block in the new page; Based on the new location information, the target function block is created on the new page.

4. The method according to claim 3, characterized in that, Also includes: Based on the page layout rules of the target DCS, optimize the layout of each target functional block on the page.

5. The method according to claim 3, characterized in that, Also includes: An inter-page reference function block is created in both the current page and the new page. The inter-page reference function block is used to connect the data flow between the current page and the new page. Establish connections between referenced function blocks across different pages.

6. The method according to claim 1, characterized in that, The method further includes: For a specific source function block, a placeholder function block is created in the target DCS based on the location information of the specific source function block; Add tagging information to the placeholder function block. The tagging information includes the function description information and / or suggested processing method of the specific source function block.

7. The method according to any one of claims 1-5, characterized in that, Also includes: Obtain function block mapping adjustment information input by the user; The function block mapping relationship is updated based on the function block mapping adjustment information.

8. A control logic configuration conversion device, characterized in that, include: The acquisition module is used to extract key information of each source functional block from the logical configuration file of the source DCS, wherein the key information includes identification information, parameter information, location information and connection relationship; The processing module is used to determine the target function block identifier corresponding to each source function block in the target DCS based on the identification information and the preset function block mapping relationship; process the parameter information according to the preset parameter conversion rules; create the target function block corresponding to the target function block identifier in the target DCS based on the location information, and configure the processed parameter information to the target function block; establish the connection relationship between each target function block based on the connection relationship and the preset port correspondence relationship between the source function blocks and the target function blocks; and generate the logical configuration file of the target DCS according to the identification information, location information, parameter configuration, and connection relationship of each target function block; the function block mapping relationship includes the mapping relationship between the function block identifiers of the source DCS and the function block identifiers of the target DCS.

9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.