Control system construction method and device based on chemical synthesis and electronic equipment

By obtaining chemical design data and determining the instruction set of chemical units, the target chemical synthesis control system is constructed, the existing system has solved the problem of low adaptation of many different scenarios, and achieved flexible automation synthesis and high adaptability control.

CN119360996APending Publication Date: 2025-01-24XIAMEN YIHUA SMART TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411412420.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-10
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

The existing chemical synthesis control system is difficult to match the synthesis control scheme for new scenarios, resulting in a low degree of adaptation to the matching of multiple different scenarios.

Method used

By obtaining chemical engineering design data, the instruction set of the controlled chemical unit is determined, and an initial chemical synthesis control system is constructed based on the instruction set. Through the access of module functions and the determination of hardware topology data, a target chemical synthesis control system is constructed.

Benefits of technology

The chemical synthesis control system has matched and adapt to a variety of different scenarios, met the flexible automation synthesis needs of different molecules during the laboratory research and development stage, and improved the reconstruction and adaptability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119360996A_ABST
    Figure CN119360996A_ABST
Patent Text Reader

Abstract

The invention provides a chemical synthesis-based control system construction method and apparatus, and an electronic device, relates to the technical field of chemical engineering, and solves the technical problem that an existing chemical synthesis control system is relatively low in matching adaptation degree to various different scenes. The method comprises the following steps: acquiring chemical design data; determining an instruction set of the controlled chemical unit according to the chemical design data; constructing an initial chemical synthesis control system based on the operation control data corresponding to the instruction set, accessing module functions of the initial chemical synthesis control system based on the operation control data, and determining hardware topological data of the initial chemical synthesis control system according to the accessed module functions; determining control flow data of the initial chemical synthesis control system to a chemical synthesis execution system corresponding to the controlled chemical unit; and constructing a target chemical synthesis control system based on the initial chemical synthesis control system by using the hardware topology data, the operation control data and the control flow data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of chemical engineering technology, and in particular to a control system construction method, device and electronic equipment based on chemical synthesis. Background Art

[0002] At present, chemical automation systems, especially process automation technology represented by distributed control systems (DCS), have made large-scale production of chemical products automatic and fast. There is also a wide demand for synthetic automation in the R&D stage, such as the design of new reaction routes, reactor design optimization, reaction condition optimization, high-throughput testing, etc.

[0003] For existing automated instruments or platforms, current laboratory-level chemical synthesis control systems are either designed for certain specific synthesis processes and synthetic products, or for certain specific synthetic processes. It is difficult to match synthesis control solutions for new scenarios, resulting in a low degree of adaptability of chemical synthesis control systems to a variety of different scenarios. Summary of the invention

[0004] The purpose of the present invention is to provide a control system construction method, device and electronic equipment based on chemical synthesis to solve the technical problem that the existing chemical synthesis control system has a low degree of matching adaptability to a variety of different scenarios.

[0005] In a first aspect, an embodiment of the present application provides a method for constructing a control system based on chemical synthesis, the method comprising:

[0006] Obtain chemical engineering design data;

[0007] Determining an instruction set of a controlled chemical unit according to the chemical design data;

[0008] Building an initial chemical synthesis control system based on the operation control data corresponding to the instruction set, accessing module functions of the initial chemical synthesis control system based on the operation control data, and determining hardware topology data of the initial chemical synthesis control system according to the accessed module functions;

[0009] Determining control process data of the initial chemical synthesis control system on the chemical synthesis execution system corresponding to the controlled chemical unit;

[0010] Based on the initial chemical synthesis control system, a target chemical synthesis control system is constructed using the hardware topology data, the operation control data and the control process data.

[0011] In a possible implementation, the execution content of the target chemical synthesis control system includes:

[0012] Parsing a hardware diagram describing the chemical synthesis execution system to obtain parsing results, and acquiring node information of corresponding chemical unit objects and connection data corresponding to the nodes of the chemical unit objects based on the parsing results;

[0013] The chemical synthesis instruction set in the instruction set is parsed, the instructions in the chemical synthesis instruction set are distributed and processed, and the communication interface corresponding to the distribution and processing is called to drive the chemical synthesis execution system.

[0014] In a possible implementation, the execution content of the chemical synthesis execution system includes:

[0015] Determine the action to be performed by the functional unit of the chemical synthesis execution system based on the chemical synthesis instruction set, and encapsulate the chemical synthesis instruction set for the functional unit based on the action, and obtain the instruction interface through encapsulation; wherein a single chemical synthesis instruction set includes multiple steps and feedback;

[0016] Receiving a target instruction transmitted by the target chemical synthesis control system through a communication interface corresponding to the instruction interface, and triggering instruction execution according to the target instruction;

[0017] If a fault occurs during the execution of the instruction, a fault warning is issued, and fault processing is performed for the fault, and the execution status of the chemical synthesis execution system is reported.

[0018] In a possible implementation, the hardware topology structure of the hardware topology data includes: a first reaction solvent and a second reaction solvent for a target chemical reaction;

[0019] The first reaction solvent and the second reaction solvent are pumped by a first combination device combining a first plunger pump and a first multi-way valve, and the first multi-way valve is connected to a first waste liquid bottle;

[0020] The target chemical reaction reactor is subjected to liquid pumping by a second combination device combining a second plunger pump and a second multi-way valve, wherein the second multi-way valve is connected to a second waste liquid bottle;

[0021] The product container of the target chemical reaction is subjected to liquid pumping by a third combination device composed of a third plunger pump and a third multi-way valve, and the product container is connected to a third waste liquid bottle.

[0022] In a possible implementation, the data format of the hardware topology data is XML format, the chemical unit objects corresponding to the hardware topology data are represented in the form of nodes in the hardware diagram, and the business connections between the chemical unit objects corresponding to the nodes are represented in the form of edges through directed arrows; wherein, the nodes are used to record the corresponding chemical unit attributes, and the edges are used to record the path associations of the corresponding nodes, and both the nodes and the edges can be parsed by reading XML through a program; the chemical unit attributes include at least one of the reagent bottle volume and the communication interface parameters of the valve pump.

[0023] In a possible implementation, the program structure of the target chemical synthesis control system includes an application client layer, a core business layer, an instruction execution layer, and a device driver layer;

[0024] Instantiate a new synthesis system through the application client layer, wherein the application client layer is used to configure the file location for reading the hardware topology data and the instruction set, and configure the location of the output log script;

[0025] The core business layer includes an instruction parsing module, a hardware parsing module, an instruction distribution module and a general module; the instruction parsing module is used to parse the text file of the instruction set, and convert the instructions in the instruction set into a queue by means of lexical analysis and / or syntax analysis; the hardware parsing module is used to parse the hardware diagram of the chemical synthesis execution system, obtain the node information of the corresponding chemical unit object, and the contact data corresponding to the nodes of the chemical unit object, so as to facilitate the mutual scheduling of instructions; the instruction distribution module is used to initialize the corresponding hardware diagram and the instructions, and distribute the instructions of different functional units; the general module is used to define logs and global variables;

[0026] The instruction execution layer is used to call the corresponding functional unit control class based on the instruction distribution of Cmd_Exec to implement the actual instruction set, and execute the derivation of the functional unit control class of the instruction execution layer to simulate and output corresponding information;

[0027] The device driver layer is used for scheduling the instruction set of the functional unit control class based on the instruction execution layer to call the interface corresponding to the hardware device to complete the protocol and drive the hardware device.

[0028] In a possible implementation, the chemical synthesis instructions in the chemical synthesis instruction set include at least one of serial instructions and parallel instructions; the chemical synthesis instructions are distinguished by S / P during design, and are parsed by traversing the instruction queue corresponding to the chemical synthesis instructions: if the prefix of the chemical synthesis instruction is S, it is determined to be a serial instruction, and is blocked from joining an existing thread pool; if the prefix of the chemical synthesis instruction is P, it is determined to be a parallel instruction, and a new thread is instantiated for scheduling.

[0029] In a second aspect, a control system construction device based on chemical synthesis is provided, comprising:

[0030] An acquisition module is used to acquire chemical engineering design data;

[0031] A first determination module, used to determine an instruction set of a controlled chemical unit according to the chemical design data;

[0032] An access module is used to construct an initial chemical synthesis control system based on the operation control data corresponding to the instruction set, access module functions of the initial chemical synthesis control system based on the operation control data, and determine hardware topology data of the initial chemical synthesis control system according to the accessed module functions;

[0033] A second determination module is used to determine control process data of the initial chemical synthesis control system on the chemical synthesis execution system corresponding to the controlled chemical unit;

[0034] A construction module is used to construct a target chemical synthesis control system based on the initial chemical synthesis control system using the hardware topology data, the operation control data and the control process data.

[0035] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program that can be executed on the processor, and when the processor executes the computer program, the method described in the first aspect is implemented.

[0036] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to execute the method described in the first aspect above.

[0037] The embodiments of the present application bring the following beneficial effects:

[0038] The embodiments of the present application provide a method, device and electronic device for constructing a control system based on chemical synthesis, which can determine the instruction set of a controlled chemical unit according to the chemical design data; construct an initial chemical synthesis control system based on the operation control data corresponding to the instruction set, access the module functions of the initial chemical synthesis control system based on the operation control data, and determine the hardware topology data of the initial chemical synthesis control system according to the accessed module functions; determine the control process data of the chemical synthesis execution system corresponding to the controlled chemical unit by the initial chemical synthesis control system; and construct a target chemical synthesis control system based on the initial chemical synthesis control system using the hardware topology data, the operation control data and the control process data. In this scheme, the instruction set of the controlled chemical unit is determined by chemical design data, and then the initial chemical synthesis control system is constructed based on the operation control data corresponding to the instruction set, so that the chemical synthesis control system can match and adapt to a variety of different chemical design data. Moreover, the hardware topology data of the initial chemical synthesis control system is determined according to the connected module function based on the operation control data, and then the initial chemical synthesis control system is further constructed using the hardware topology data, the operation control data corresponding to the instruction set, and the control process data of the chemical synthesis execution system corresponding to the controlled chemical unit, so as to obtain a reconfigurable target chemical synthesis control system that can be oriented to batch reactions, and realize the design and construction of an automated organic synthesis control system that uses relatively standardized processes and formats and is more flexible, meeting the needs of flexible automated synthesis of different molecules in the laboratory research and development stage, so that the target chemical synthesis control system finally constructed can match and adapt to a variety of different scenarios, solving the technical problem that the existing chemical synthesis control system has a low degree of matching and adaptability to a variety of different scenarios.

[0039] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0041] Figure 1 A schematic diagram of a process for constructing a control system based on chemical synthesis provided in an embodiment of the present application;

[0042] Figure 2A schematic diagram of a hardware topology example of a chemical synthesis experiment control system provided in an embodiment of the present application;

[0043] Figure 3 A schematic diagram of the functional definition of a chemical synthesis experiment control system provided in an embodiment of the present application;

[0044] Figure 4 A control flow chart of a chemical synthesis control system and a chemical synthesis execution system provided in an embodiment of the present application;

[0045] Figure 5 A schematic diagram of the software architecture of a chemical synthesis control system provided in an embodiment of the present application;

[0046] Figure 6 A schematic diagram of the instruction processing flow of the chemical synthesis control system provided in an embodiment of the present application;

[0047] Figure 7 A schematic diagram of a control system construction device based on chemical synthesis provided in an embodiment of the present application;

[0048] Figure 8 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.

[0050] The terms "including" and "having" and any variations thereof mentioned in the embodiments of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0051] At present, laboratory chemical automation technology for the R&D stage is also developing. In the field of chemical synthesis control systems, a series of different automated instruments or platforms have been derived, mainly focusing on the following: synthesis systems for specific material synthesis scenarios, such as a certain disilane synthesis control system, a certain electrochemical synthesis control system, a certain photochemical synthesis control system, a certain microchannel reactor control system, etc.; synthesis systems for specific synthesis links, these systems are designed to imitate the traditional organic synthesis process and achieve full automation. Such as systems for reaction pipetting, systems for reaction solid addition, systems for reaction stirring, systems for reaction extraction, etc.; synthesis systems based on robotic technology, such systems are centered on robotic arms, etc., and specific system designs are carried out around certain chemical synthesis needs; high-throughput experimental systems, which improve reaction throughput through automation, can be divided into well plate mode and microfluidic mode. For example, a high-throughput chemical reaction screening platform can perform automated reactions under different conditions and screen more than 1,500 reactions in one day.

[0052] However, the existing chemical synthesis control systems have the following technical problems: the existing chemical synthesis control systems are mainly concentrated in the process control of large-scale industrial production, completing the corresponding process control and state scheduling, which is difficult to match the more flexible and low-cost synthesis control system requirements in the research and development stage; the existing laboratory-level chemical synthesis control systems are either designed for certain specific synthesis processes and synthesis products, or for certain specific synthesis processes, which are difficult to match synthesis control solutions for new scenarios; most of the current synthesis systems lack a general and standardized experimental process design, and most of the integration of new hardware has not achieved reconfigurability, scalability, and configurability, making it difficult to match the interface protocol of the new hardware to the synthesis control system.

[0053] Based on this, the embodiments of the present application provide a control system construction method, device and electronic device based on chemical synthesis, through which the above-mentioned technical problems can be solved.

[0054] The embodiments of the present invention are further described below in conjunction with the accompanying drawings.

[0055] Figure 1 The following is a flow chart of a method for constructing a control system based on chemical synthesis provided in an embodiment of the present application. Figure 1 As shown, the method includes:

[0056] Step S110, obtaining chemical engineering design data.

[0057] As a possible implementation, the chemical engineering design data may be unit design data of chemical engineering.

[0058] Step S120, determining the instruction set of the controlled chemical unit according to the chemical engineering design data.

[0059] In this step, facing the unit design of chemical industry, the instruction set list of the related controlled units is defined. For example, the instruction set list can be shown in the following table:

[0060]

[0061]

[0062]

[0063] Step S130, constructing an initial chemical synthesis control system based on the operation control data corresponding to the instruction set, accessing module functions of the initial chemical synthesis control system based on the operation control data, and determining hardware topology data of the initial chemical synthesis control system according to the accessed module functions.

[0064] In practical applications, in order to be compatible with the operation control of the above chemical units, a chemical synthesis experiment control system is designed to access its module functions. Figure 2 As shown, it is an example of the hardware topology of a chemical synthesis experiment control system: the reaction has two reaction solvents, namely flask_s1 and flask_s2, flask_s1 and flask_s2 are pumped by a device combining a first plunger pump pump_solvents and a first multi-way valve valve_solvents, and the first multi-way valve valve_solvents is connected to the first waste liquid bottle waste_solvents; the reactor of the reaction is reactor_reactor, and the liquid is pumped by a device combining a second plunger pump pump_reactor and a second multi-way valve valve_reactor, and the second multi-way valve valve_reactor is connected to the second waste liquid bottle waste_reactor; the product container of the reaction is flask_product, and the liquid is pumped by a device combining a third plunger pump pump_product and a third multi-way valve valve_product, and the third valve_product is connected to the third waste liquid bottle waste_product.

[0065] Step S140, determining the control process data of the chemical synthesis execution system corresponding to the controlled chemical unit by the initial chemical synthesis control system.

[0066] like Figure 3As shown in the figure, the research and development needs of new molecules often need to start from chemical methods, conduct research such as reaction route design, experimental design, synthesis / characterization, and then organize the relevant design ideas into unit design in the chemical industry. The physical carrier of the unit design is the controlled physical unit, which has communication protocols such as TCP / IP, board driver, Modbus TCP, and electromechanical interfaces such as mechanical connection, electrical interface, pipeline interface, and communication interface. As a bridge between chemical methods and actual physical hardware, the chemical synthesis control system needs to realize the following functions: realize the automatic process control of chemical reactions (the above-mentioned control process data); drive the corresponding physical units to complete the corresponding functions. Through the reconstruction of the control system software and the recombination of hardware modules, the design of new control software instances and hardware system instances is completed to match the research and development needs of new molecules.

[0067] like Figure 4 As shown, it is the control flow of the chemical synthesis execution system corresponding to the chemical synthesis control system and the controlled chemical unit. The chemical synthesis control system in the embodiment of the present application can be a non-real-time system computer, and the program written in the control system can be a high-level language such as Python and C#. The chemical synthesis execution system can be a real-time system, such as an embedded system, PLC, etc., and the programming language can be C, IEC-61131-3, etc.

[0068] Step S150, constructing a target chemical synthesis control system based on the initial chemical synthesis control system using hardware topology data, operation control data and control process data.

[0069] In the embodiment of the present application, the instruction set of the controlled chemical unit is determined by chemical design data, and then the initial chemical synthesis control system is constructed based on the operation control data corresponding to the instruction set, so that the chemical synthesis control system can match and adapt to a variety of different chemical design data. Moreover, the hardware topology data of the initial chemical synthesis control system is determined according to the function of the connected module based on the operation control data, and then the hardware topology data, the operation control data corresponding to the instruction set, and the control process data of the chemical synthesis execution system corresponding to the controlled chemical unit are used to further construct the initial chemical synthesis control system, thereby obtaining a reconfigurable target chemical synthesis control system that can be oriented to batch reactions, realizing the design of an automated organic synthesis control system using a relatively standardized process and format, more flexibly, and at a relatively low cost, meeting the needs of flexible automated synthesis of different molecules in the laboratory research and development stage, so that the target chemical synthesis control system can match and adapt to a variety of different scenarios, and solving the technical problem that the existing chemical synthesis control system has a low degree of matching and adaptability to a variety of different scenarios.

[0070] The above steps are described in detail below.

[0071] In some embodiments, the execution content of the above-mentioned target chemical synthesis control system includes: parsing the hardware diagram describing the chemical synthesis execution system, obtaining the parsing results, and acquiring the node information of the corresponding chemical unit object and the contact data corresponding to the nodes of the chemical unit object based on the parsing results; parsing the chemical synthesis instruction set in the instruction set, distributing and processing the instructions in the chemical synthesis instruction set, and calling the corresponding communication interface for distribution and processing to drive the chemical synthesis execution system.

[0072] As an example, the chemical synthesis control system may include the following functions: to parse the hardware diagram describing the chemical synthesis execution system, obtain the corresponding chemical unit node information and the corresponding connection of the chemical node; parse the chemical synthesis instruction set, such as Figure 4 As shown, the instructions are distributed and processed, and the corresponding communication interface is called to drive the chemical synthesis execution system. The list of specific instructions in the above instruction set can be shown in the following table:

[0073]

[0074]

[0075]

[0076]

[0077]

[0078]

[0079] In the embodiments of the present application, through the execution content of the above-mentioned target chemical synthesis control system, the action objects of the chemical synthesis experiment control system (target chemical synthesis control system) are defined in view of the research and development needs of new molecules, so that the control effect of the target chemical synthesis control system on chemical synthesis is more precise.

[0080] In some embodiments, the chemical synthesis instructions in the chemical synthesis instruction set include at least one of serial instructions and parallel instructions; the chemical synthesis instructions are distinguished by S / P during design, and are parsed by traversing the instruction queue corresponding to the chemical synthesis instructions: if the prefix of the chemical synthesis instruction is S, it is determined to be a serial instruction, and is blocked from joining the existing thread pool; if the prefix of the chemical synthesis instruction is P, it is determined to be a parallel instruction, and a new thread is instantiated for scheduling.

[0081] In practical applications, such as Figure 4As shown in the figure, since chemical synthesis instructions may be serial instructions or parallel instructions, they can be distinguished by "S / P" when designing instructions. Traverse the instruction queue for parsing: if the instruction prefix is ​​"S", it is a serial instruction, and it is blocked from joining the existing thread pool; if the instruction prefix is ​​"P", it is a parallel instruction, and a new thread is instantiated for scheduling.

[0082] In an embodiment of the present application, by distinguishing serial instructions and parallel instructions in chemical synthesis instructions through S / P, serial instructions or parallel instructions can be distinguished more accurately, so that the process of blocking joining an existing thread pool or executing instantiation of a new thread for scheduling can be executed more accurately.

[0083] In some embodiments, the execution content of the above chemical synthesis execution system includes:

[0084] Determine the actions to be performed by the functional units of the chemical synthesis execution system based on the chemical synthesis instruction set, and encapsulate the chemical synthesis instruction set for the functional units based on the actions, and obtain the instruction interface through encapsulation; wherein a single chemical synthesis instruction set includes multiple steps and feedback;

[0085] Receiving a target instruction transmitted by a target chemical synthesis control system through a communication interface corresponding to the instruction interface, and executing the instruction according to the trigger of the target instruction;

[0086] If a fault occurs during the execution of an instruction, a fault warning is issued, and fault processing is performed according to the fault, and the execution status of the chemical synthesis execution system is reported.

[0087] As an example, Figure 4 As shown, the functions of the chemical synthesis execution system are as follows: first, define the actions required by the functional unit, and encapsulate the instruction set of the functional unit; a single instruction set may include multiple steps and feedback, which need to be encapsulated into an instruction interface; the communication interface accepts instructions from the chemical synthesis control system and triggers the instructions for execution; the chemical synthesis execution system has independent fault warning and processing functions, and can report its status to the outside.

[0088] In the embodiment of the present application, the instruction set of the chemical synthesis execution system is defined by the execution content of the above-mentioned chemical synthesis execution system, and the interaction relationship between the chemical synthesis experiment control system and the chemical synthesis execution system is also defined.

[0089] In some embodiments, the hardware topology structure of the hardware topology data includes: a first reaction solvent and a second reaction solvent for a target chemical reaction; the first reaction solvent and the second reaction solvent are pumped by a first combination device combining a first plunger pump and a first multi-way valve, and the first multi-way valve is connected to a first waste liquid bottle; the reactor of the target chemical reaction is pumped by a second combination device combining a second plunger pump and a second multi-way valve, and the second multi-way valve is connected to a second waste liquid bottle; the product container of the target chemical reaction is pumped by a third combination device combining a third plunger pump and a third multi-way valve, and the product container is connected to a third waste liquid bottle.

[0090] For example, a hardware topology example of a chemical synthesis experiment control system is as follows: Figure 2 As shown, the specific description of its structure is as follows: the reaction has two reaction solvents, namely flask_s1 and flask_s2, flask_s1 and flask_s2 are pumped by a device combining a first plunger pump pump_solvents and a first multi-way valve valve_solvents, and the first multi-way valve valve_solvents is connected to a first waste liquid bottle waste_solvents; the reactor of the reaction is reactor_reactor, and liquid pumping is performed by a device combining a second plunger pump pump_reactor and a second multi-way valve valve_reactor, and the second multi-way valve valve_reactor is connected to a second waste liquid bottle waste_reactor; the product container of the reaction is flask_product, and liquid pumping is performed by a device combining a third plunger pump pump_product and a third multi-way valve valve_product, and the third multi-way valve valve_product is connected to a third waste liquid bottle waste_product.

[0091] In the embodiment of the present application, the hardware topology design of the chemical synthesis execution system is more accurately defined through the hardware topology structure of the above-mentioned hardware topology data.

[0092] In some embodiments, the data format of the hardware topology data is in XML format, and the chemical unit objects corresponding to the hardware topology data are represented in the form of nodes in the hardware diagram, and the business connections between the chemical unit objects corresponding to the nodes are represented in the form of edges through directed arrows; wherein, the nodes are used to record the corresponding chemical unit attributes, and the edges are used to record the path associations of the corresponding nodes, and both the nodes and the edges can be parsed by reading XML through the program; the chemical unit attributes include at least one of the reagent bottle volume and the communication interface parameters of the valve pump.

[0093] In practical applications, the format of the hardware topology can be XML format, and the corresponding chemical unit objects are represented by rectangular "nodes" in the figure, such as Figure 2 As shown in the figure, the business connections between the corresponding chemical units are represented by "edges" with directed arrows. Among them, "nodes" can record the corresponding chemical unit attributes, such as the volume of reagent bottles, the communication interface parameters of valve pumps, etc., and "edges" can record the path associations of the corresponding nodes, which can be parsed by reading XML through the program, which not only defines the hardware topology design of the chemical synthesis execution system, but also improves the parsing efficiency of the hardware topology through program reading and parsing.

[0094] In some embodiments, the program structure of the target chemical synthesis control system includes an application client layer, a core business layer, an instruction execution layer, and a device driver layer; the new synthesis system is instantiated through the application client layer, and the application client layer is used to configure the file location of reading hardware topology data and instruction sets, and configure the location of the output log script;

[0095] The core business layer includes an instruction parsing module, a hardware parsing module, an instruction distribution module and a general module; the instruction parsing module is used to parse the text file of the instruction set, and convert the instructions in the instruction set into a queue by means of lexical analysis and / or syntax analysis; the hardware parsing module is used to parse the hardware diagram of the chemical synthesis execution system, obtain the node information of the corresponding chemical unit object, and the contact data corresponding to the nodes of the chemical unit object, so as to facilitate the mutual scheduling of instructions; the instruction distribution module is used to initialize the corresponding hardware diagram and instructions, and distribute the instructions of different functional units; the general module is used to define logs and global variables;

[0096] The instruction execution layer is used to distribute instructions based on Cmd_Exec, call the corresponding functional unit control class to implement the actual instruction set, and execute the derivation of the functional unit control class of the instruction execution layer to simulate and output the corresponding information;

[0097] The device driver layer is used to schedule the instruction set of the functional unit control class based on the instruction execution layer to call the interface corresponding to the hardware device to complete the protocol and drive the hardware device.

[0098] For example, Figure 5 and Figure 6 As shown in the figure, the software structure and corresponding execution process of the chemical synthesis control system are described. The software can be divided into the following four layers from top to bottom:

[0099] The first layer is the application client, which instantiates the new synthesis system, configures the file location of the hardware topology and instruction set files, and configures the location of the output log script.

[0100] The second layer is the core business layer, which includes the following four modules: ① The function of the instruction parsing module is to parse the instruction set text file and convert the instructions into queues, which can generally be achieved through lexical analysis (such as Lex) and syntax analysis (such as Yacc); ② The function of the hardware parsing module is to obtain the hardware diagram of the chemical synthesis execution system, obtain the corresponding chemical unit node information, and the connection between the nodes, so as to facilitate the mutual scheduling of instructions; ③ The instruction distribution module initializes the corresponding hardware diagram and instructions, and distributes the instructions of different functional units; ④ Other common modules are the definitions of logs, global variables, etc.

[0101] The third layer is the instruction execution layer, which has the following functions: based on the instruction distribution of Cmd_Exec, call the corresponding functional unit control class to implement the actual instruction set, such as Pump_Exec, Vavle_Exec, Stirrer_Exec and other functional unit control classes. In addition, by deriving the specific instruction execution layer functional unit control class in this functional layer, the corresponding information can be output purely by simulation.

[0102] The fourth layer is the device driver layer, whose functions are as follows: based on the instruction set scheduling of the functional unit control class of the instruction execution layer, calling the corresponding interface of the hardware device to complete specific protocols and drivers, such as Pump_api, Vavle_api, Stirrer_api and other device driver classes.

[0103] In the embodiment of the present application, the control software architecture of the chemical synthesis experiment control system is more accurately defined through the above four-layer chemical synthesis control system software structure, making the software control process of the chemical synthesis experiment control system more accurate.

[0104] Figure 7 A schematic diagram of a control system construction device based on chemical synthesis is provided. Figure 7 As shown, the control system construction device 700 based on chemical synthesis includes:

[0105] An acquisition module 701 is used to acquire chemical engineering design data;

[0106] A first determination module 702 is used to determine an instruction set of a controlled chemical unit according to the chemical design data;

[0107] Access module 703, used to construct an initial chemical synthesis control system based on the operation control data corresponding to the instruction set, access module functions of the initial chemical synthesis control system based on the operation control data, and determine hardware topology data of the initial chemical synthesis control system according to the accessed module functions;

[0108] The second determination module 704 is used to determine the control process data of the initial chemical synthesis control system on the chemical synthesis execution system corresponding to the controlled chemical unit;

[0109] The construction module 705 is used to construct a target chemical synthesis control system based on the initial chemical synthesis control system using the hardware topology data, the operation control data and the control process data.

[0110] The control system construction device based on chemical synthesis provided in the embodiment of the present application has the same technical features as the control system construction method based on chemical synthesis provided in the above-mentioned embodiment, so it can also solve the same technical problems and achieve the same technical effects.

[0111] An electronic device provided in an embodiment of the present application is Figure 8 As shown, the electronic device 800 includes a processor 802 and a memory 801, wherein the memory stores a computer program that can be run on the processor, and the processor implements the steps of the method provided in the above embodiment when executing the computer program.

[0112] See also Figure 8 The electronic device further includes: a bus 803 and a communication interface 804, a processor 802, a communication interface 804 and a memory 801 are connected via the bus 803; the processor 802 is used to execute an executable module stored in the memory 801, such as a computer program.

[0113] The memory 801 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 804 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0114] The bus 803 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0115] Among them, the memory 801 is used to store programs, and the processor 802 executes the program after receiving the execution instruction. The method executed by the device defined by the process disclosed in any embodiment of the present application can be applied to the processor 802 or implemented by the processor 802.

[0116] The processor 802 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 802. The above processor 802 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 801, and the processor 802 reads the information in the memory 801 and completes the steps of the above method in combination with its hardware.

[0117] Corresponding to the above-mentioned control system construction method based on chemical synthesis, an embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to execute the steps of the above-mentioned control system construction method based on chemical synthesis.

[0118] The control system construction device based on chemical synthesis provided in the embodiment of the present application can be specific hardware on the device or software or firmware installed on the device. The device provided in the embodiment of the present application, its implementation principle and the technical effect produced are the same as those in the aforementioned method embodiment. For brief description, the device embodiment part is not mentioned, and the corresponding content in the aforementioned method embodiment can be referred to. It can be clearly understood by those skilled in the art that for the convenience and simplicity of description, the specific working process of the system, device and unit described above can all refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0119] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0120] For another example, the flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the device, method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0121] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0122] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0123] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the control system construction method based on chemical synthesis described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program codes.

[0124] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.

[0125] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solution of the present application, rather than to limit it. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the aforementioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solution recorded in the aforementioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solution deviate from the scope of the technical solution of the embodiment of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A control system construction method based on chemical synthesis, characterized in that: The method comprises: Obtain chemical engineering design data; Determining an instruction set of a controlled chemical unit according to the chemical design data; Building an initial chemical synthesis control system based on the operation control data corresponding to the instruction set, accessing module functions of the initial chemical synthesis control system based on the operation control data, and determining hardware topology data of the initial chemical synthesis control system according to the accessed module functions; Determining control process data of the initial chemical synthesis control system on the chemical synthesis execution system corresponding to the controlled chemical unit; Based on the initial chemical synthesis control system, a target chemical synthesis control system is constructed using the hardware topology data, the operation control data and the control process data.

2. The method according to claim 1, characterized in that The execution content of the target chemical synthesis control system includes: Parsing a hardware diagram describing the chemical synthesis execution system to obtain parsing results, and acquiring node information of corresponding chemical unit objects and connection data corresponding to the nodes of the chemical unit objects based on the parsing results; The chemical synthesis instruction set in the instruction set is parsed, the instructions in the chemical synthesis instruction set are distributed and processed, and the communication interface corresponding to the distribution and processing is called to drive the chemical synthesis execution system.

3. The method according to claim 2, characterized in that The execution content of the chemical synthesis execution system includes: Determine the action to be performed by the functional unit of the chemical synthesis execution system based on the chemical synthesis instruction set, and encapsulate the chemical synthesis instruction set for the functional unit based on the action, and obtain the instruction interface through encapsulation; wherein a single chemical synthesis instruction set includes multiple steps and feedback; Receiving a target instruction transmitted by the target chemical synthesis control system through a communication interface corresponding to the instruction interface, and triggering instruction execution according to the target instruction; If a fault occurs during the execution of the instruction, a fault warning is issued, and fault processing is performed for the fault, and the execution status of the chemical synthesis execution system is reported.

4. The method according to claim 1, characterized in that The hardware topology structure of the hardware topology data includes: a first reaction solvent and a second reaction solvent for a target chemical reaction; The first reaction solvent and the second reaction solvent are pumped by a first combination device combining a first plunger pump and a first multi-way valve, and the first multi-way valve is connected to a first waste liquid bottle; The target chemical reaction reactor is subjected to liquid pumping by a second combination device combining a second plunger pump and a second multi-way valve, wherein the second multi-way valve is connected to a second waste liquid bottle; The product container of the target chemical reaction is subjected to liquid pumping by a third combination device composed of a third plunger pump and a third multi-way valve, and the product container is connected to a third waste liquid bottle.

5. The method according to claim 2, characterized in that: The data format of the hardware topology data is XML format, the chemical unit objects corresponding to the hardware topology data are represented in the form of nodes in the hardware diagram, and the business connections between the chemical unit objects corresponding to the nodes are represented in the form of edges through directed arrows; wherein, the nodes are used to record the corresponding chemical unit attributes, and the edges are used to record the path associations of the corresponding nodes, and both the nodes and the edges can be parsed by reading XML through a program; the chemical unit attributes include at least one of the reagent bottle volume and the communication interface parameters of the valve pump.

6. The method according to claim 2, characterized in that The program structure of the target chemical synthesis control system includes an application client layer, a core business layer, an instruction execution layer and a device driver layer; Instantiate a new synthesis system through the application client layer, wherein the application client layer is used to configure the file location for reading the hardware topology data and the instruction set, and configure the location of the output log script; The core business layer includes an instruction parsing module, a hardware parsing module, an instruction distribution module and a general module; the instruction parsing module is used to parse the text file of the instruction set, and convert the instructions in the instruction set into a queue by means of lexical analysis and / or syntax analysis; the hardware parsing module is used to parse the hardware diagram of the chemical synthesis execution system, obtain the node information of the corresponding chemical unit object, and the contact data corresponding to the nodes of the chemical unit object, so as to facilitate the mutual scheduling of instructions; the instruction distribution module is used to initialize the corresponding hardware diagram and the instructions, and distribute the instructions of different functional units; the general module is used to define logs and global variables; The instruction execution layer is used to call the corresponding functional unit control class based on the instruction distribution of Cmd_Exec to implement the actual instruction set, and execute the derivation of the functional unit control class of the instruction execution layer to simulate and output corresponding information; The device driver layer is used for scheduling the instruction set of the functional unit control class based on the instruction execution layer to call the interface corresponding to the hardware device to complete the protocol and drive the hardware device.

7. The method according to claim 2, characterized in that The chemical synthesis instructions in the chemical synthesis instruction set include at least one of serial instructions and parallel instructions; the chemical synthesis instructions are distinguished by S / P during design, and are parsed by traversing the instruction queue corresponding to the chemical synthesis instructions: if the prefix of the chemical synthesis instruction is S, it is determined to be a serial instruction, and is blocked from joining the existing thread pool; if the prefix of the chemical synthesis instruction is P, it is determined to be a parallel instruction, and a new thread is instantiated for scheduling.

8. A control system construction device based on chemical synthesis, characterized in that: include: An acquisition module is used to acquire chemical engineering design data; A first determination module, used to determine an instruction set of a controlled chemical unit according to the chemical design data; An access module is used to construct an initial chemical synthesis control system based on the operation control data corresponding to the instruction set, access module functions of the initial chemical synthesis control system based on the operation control data, and determine hardware topology data of the initial chemical synthesis control system according to the accessed module functions; A second determination module is used to determine control process data of the initial chemical synthesis control system on the chemical synthesis execution system corresponding to the controlled chemical unit; A construction module is used to construct a target chemical synthesis control system based on the initial chemical synthesis control system using the hardware topology data, the operation control data and the control process data.

9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to execute the method according to any one of claims 1 to 7.