A single-step debugging method and system for a master formula of an MES system
Patent Information
- Application Number
- CN202211609701.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-14
- Publication Date
- 2026-11-03
- Estimated Expiration
- 2042-12-14
AI Technical Summary
现有MES系统中配方验证过程耗时过长,需要几天甚至十几天才能确定电子配方的正确性,且发现问题后需重新调整和执行,耗费时间和资源。
The single-step debugging method is adopted, in which the client sends a single-step debugging request to the server. The server creates a temporary database and simulates the execution of each process step, providing real-time feedback on the execution results and adjusting parameters. It supports multiple parallel simulation execution processes, enabling rapid discovery and correction of formulation problems.
This significantly shortens the formula validation time, allowing users to discover and correct problems in real time on the user interface, reducing repetitive steps and improving the efficiency and accuracy of formula debugging.
Smart Images

Figure CN116184946B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of information technology, and in particular to a single-step debugging method and system for the master recipe of an MES system. Background Technology
[0002] The pharmaceutical industry has seen a significant improvement in its informatization level, particularly in the application of Manufacturing Execution Systems (MES). Pharmaceutical production is complex, with high requirements for material precision. Its functional modules differ greatly from those of other industries, with the formulation management module being the most crucial. MES formulations are often extremely complex and lengthy. Verifying their correctness by fully executing the formulation process according to standard pharmaceutical production standards and regulations can take several days or even more than ten days. Even then, it's difficult to determine if the electronic formulation is completely correct and meets the requirements. If the final product does not meet the design requirements, the formulation must be checked, adjusted, and the process repeated, resulting in excessive time consumption. Summary of the Invention
[0003] This invention addresses the shortcomings of existing technologies by providing a single-step debugging method for the master recipe of an MES system, comprising the following steps:
[0004] S1, each client sends a single-step debugging request for the main formula to the backend server via the network. The server retrieves the process formula information of the corresponding formula from the process database. The process formula information includes raw material and auxiliary material information, process flow and control parameters.
[0005] S2, the server creates a separate workspace and temporary database for each user data in each single-step debugging, and debugs each process step of the main formula according to the process formula information by simulating the execution of formal instructions.
[0006] S3, the server sends the execution result of each process step in the current simulation and the formula information of that step to the corresponding client. After receiving the control parameters or modification instructions for the new auxiliary materials in that step from the client, the server regenerates the formula information of that process step according to the modification instructions and retrieves the execution result of the previous process step from the temporary database to re-perform the single-step simulation of that process step.
[0007] Preferably, step S2 includes: the server middleware layer scheduling message queue processing through a Node.js thread pool; the server creating a separate workspace and temporary database for each user's data in single-step debugging; parsing the user's corresponding single-step debugging request, adjusting the process formula retrieved from the process database according to the modification information in the single-step debugging request, debugging each process step of the main formula according to the adjusted process formula information by simulating the execution mode of the formal instructions; and recording the execution results of each process step after simulation and the formula information of that step into the user's temporary database.
[0008] Preferably, step S3 includes:
[0009] S31, the server sends the execution result of the currently simulated process step and the recipe information for that step to the corresponding client;
[0010] S32, retrieve the execution result of the previous process step from the temporary database as the input information for the single-step simulation of this step, and establish multiple parallel simulation execution processes according to the multiple sets of control parameter adjustment values sent by the client to re-perform the single-step simulation of this process step; send each simulation result and the corresponding control parameter adjustment value to the client.
[0011] Preferably, step S32 further includes:
[0012] Based on multiple adjustment schemes for the control parameters or auxiliary material information of a process step sent by the client, multiple corresponding parallel simulation execution processes are established for each adjustment scheme to re-simulate the execution of the process step.
[0013] The theoretical values of intermediate products for this process step are obtained from the process database, and recommended values for adjusting control parameters are given based on the deviations between the simulation results and the theoretical values.
[0014] This invention also discloses a single-step debugging system for MES master recipes, including a web client and a server. The web client is configured to send a single-step debugging request for the master recipe to the backend server via a network. The server is configured to retrieve the corresponding process recipe information from the process database based on the single-step debugging request sent by each client. The process recipe information includes raw material and excipient information, process flow, and control parameters. A separate workspace and temporary database are created for the user data of each single-step debugging step. Each process step of the master recipe is debugged according to the process recipe information by simulating the execution of formal instructions. The execution result of each process step currently being simulated and the recipe information of that step are sent to the corresponding client. Upon receiving a modification instruction from the client for control parameters or newly added excipient information for that step, the system regenerates the recipe information of that process step according to the modification instruction and retrieves the execution result of the previous process step from the temporary database to re-simulate the single-step execution of that process step.
[0015] Preferably, the server is further configured to schedule message queue processing via a Node.js thread pool, create a separate workspace and temporary database for each user's data in the single-step debugging; parse the user's corresponding single-step debugging request, adjust the process formula retrieved from the process database according to the modification information in the single-step debugging request, debug each process step of the main formula according to the adjusted process formula information by simulating the execution mode of the formal instructions; and record the execution results of each process step after simulation and the formula information of that step into the user's temporary database.
[0016] Preferably, the server is further configured to send the execution result of the currently simulated process step and the recipe information of that step to the corresponding client; then retrieve the execution result of the previous process step from the temporary database as the input information for the single-step simulation of that step, and establish multiple parallel simulation execution processes according to the multiple sets of control parameter adjustment values sent by the client to re-perform the single-step simulation of that process step; and send each simulation result and the corresponding control parameter adjustment value to the client.
[0017] Preferably, the server is further configured to, based on multiple adjustment schemes for control parameters or auxiliary material information of a process step sent by the client, establish multiple corresponding parallel simulation execution processes to re-simulate the process step using each adjustment scheme; obtain the theoretical value of the intermediate product of the process step from the process database, and provide recommended values for adjusting the control parameters based on the deviation between each simulation result and the theoretical value.
[0018] The single-step debugging method and system for the main recipe of the MES system disclosed in this invention allows users to debug complex and lengthy process recipes in a system step by step, just like debugging code. Users can see the detailed execution status of the entire process, and can view information about related variables or batch records for each step of the debugging process. If the final product of the recipe does not meet design requirements, or after modifying and saving the recipe, the entire execution process of the simulated command can be used on the current user interface to discover and verify the recipe problems and check whether the recipe has achieved the desired effect. This eliminates the need to go through the entire work order command process, thus greatly shortening the time required for on-site verification of recipe correctness.
[0019] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0020] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0021] Figure 1 This is a flowchart illustrating the single-step debugging method for the master recipe of the MES system disclosed in this embodiment.
[0022] Figure 2 This is a schematic diagram of the single-step debugging system disclosed in this embodiment.
[0023] Figure 3 This is a schematic diagram of the specific process of step S3 disclosed in this embodiment.
[0024] Figure 4 This is a schematic diagram of the specific process of step S32 disclosed in this embodiment. Detailed Implementation
[0025] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the described embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0026] Unless otherwise defined, the technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this invention pertains. The terms “first,” “second,” and similar terms used in the specification and claims of this patent application do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Similarly, the terms “an” or “a” and similar terms do not indicate a limitation of quantity, but rather indicate the presence of at least one.
[0027] Currently, recipes in MES systems are often very complex and lengthy. Verifying the correctness of a recipe by strictly following the normal instruction execution process can take several days, even ten days, to determine if the electronic recipe is completely correct and meets the requirements. The single-step recipe debugging method disclosed in this invention solves this problem of long verification time, enabling rapid problem detection. (See attached diagram) Figure 1 As shown in the figure, this embodiment discloses a single-step debugging method for the master recipe of an MES system, which may specifically include the following steps.
[0028] In step S1, each client sends a single-step debugging request for the main formula to the backend server via the network. The server retrieves the process formula information of the corresponding formula from the process database. The process formula information includes raw material and auxiliary material information, process flow and control parameters.
[0029] During the initial simulation, after receiving a simulation request from a client, the server retrieves the corresponding drug process formulation data from the formulation database, and then performs simulated production based on the process formulation. The final product information obtained from the initial simulation production is compared with the designed product information in the drug process formulation. If the final product information is found to be inconsistent with the set information, the reaction information of each intermediate process step in the initial simulation production is recorded. The reaction information includes reaction control parameters, as well as the attributes and quantities of the inputs and corresponding products involved in the step.
[0030] The electronic recipe in the MES system includes a bill of materials (BOM) for the raw materials and excipients used to produce the drug, a process flow, and reaction control parameters. The reaction control parameters include trigger conditions and control actions. The BOM specifies the raw materials and excipients required for product production, and the process flow is the sum of the production logic of all production units needed to produce the drug. Trigger conditions control the switching of production logic within or between production units, while control actions are the actions to be performed within each production unit. After the initial simulated production, if the final product information does not match the set information, the data of the addition status of raw materials and excipients, control parameters of each intermediate process step, intermediate product information, and other reaction information during the simulation are bound and entered into the simulation process database.
[0031] Then, after receiving a result from the recipe simulation that does not meet the design requirements, the front-end web client sends a step-by-step debugging request to the back-end via the WebSocket protocol.
[0032] In step S2, the server creates a separate workspace and temporary database for each user data in each single-step debugging step, and debugs each process step of the main formula according to the process formula information by simulating the execution of formal instructions.
[0033] Specifically, the server can simultaneously accept single-step simulation requests for multiple recipes or for multiple modifications to the same recipe. The server creates a separate workspace and temporary database for each user's data during single-step debugging to ensure that temporary debugging data between users does not interfere with each other. Simulation processes and data can also be recorded for reference and retrieval in subsequent plans. If an error is found in the main recipe configuration during single-step debugging, the main recipe configuration can be adjusted immediately, saved, and the single-step debugging can be restarted.
[0034] In this embodiment, step S2 may include the following:
[0035] The server middleware layer uses a Node.js thread pool to schedule message queue processing.
[0036] The server creates a separate workspace and temporary database for each user's data during single-step debugging.
[0037] Then, the user's corresponding single-step debugging request is parsed, and the corresponding process formula is retrieved from the process database based on the modification information in the single-step debugging request for adjustment. By simulating the execution mode of the formal instruction, the process steps of the main formula are debugged according to the adjusted process formula information.
[0038] The execution results of each process step after simulation and the formula information of that step are entered into the user's temporary database.
[0039] Step S3: The server sends the execution result of each process step in the current simulation and the formula information of that step to the corresponding client. After receiving the control parameters or modification instructions for the new auxiliary materials in that step from the client, the server regenerates the formula information of that process step according to the modification instructions and retrieves the execution result of the previous process step from the temporary database to re-perform the single-step simulation of that process step.
[0040] Like debugging code, step-by-step debugging of recipes in a complex and lengthy system allows users to see the detailed execution of the entire process. Each step of the debugging process displays information about associated variables or batch records. The server simulates the execution of official instructions, allowing users to debug each step of the main recipe according to the configuration until the recipe is completed. (See attached...) Figure 2 As shown, the execution result of each step of the server will be sent back to the Node.js server, and the Node.js server will respond to the web client frontend via WebSocket.
[0041] In this embodiment, as shown in the appendix Figure 3 As shown, step S3 can specifically include the following:
[0042] Step S31: The server sends the execution result of the currently simulated process step and the recipe information for that step to the corresponding client.
[0043] Step S32: Retrieve the execution result of the previous process step from the temporary database as the input information for the single-step simulation of this step, and establish multiple parallel simulation execution processes according to the multiple sets of control parameter adjustment values sent by the client to re-perform the single-step simulation of this process step; send each simulation result and the corresponding control parameter adjustment value to the client.
[0044] In this embodiment, as shown in the appendix Figure 4 As shown, step S32 may also include the following:
[0045] Step S321: Based on the multiple adjustment schemes for the control parameters or auxiliary material information of a process step sent by the client, establish multiple corresponding parallel simulation execution processes for each adjustment scheme to re-simulate the execution of the process step.
[0046] Step S322: Obtain the theoretical value of the intermediate product for this process step from the process database, and provide recommended values for adjusting the control parameters based on the deviation between each simulation result and the theoretical value.
[0047] In a specific embodiment, control parameters can be adjusted by combining methods such as a historical database of recipe adjustments and input quantity replacement.
[0048] Specifically, after simulating an intermediate process step, the intermediate product is obtained and compared with the theoretical output value of the intermediate process step in the electronic process formula stored in the formula database. It is then determined whether the deviation between the simulated intermediate product output and the theoretical output value is within a first range. If it is within the first range, the simulation of subsequent process steps continues; otherwise, an evaluation error warning message is sent to the client.
[0049] If the server receives further verification from the client, it verifies the control parameters for each intermediate process step. If it receives an instruction to ignore errors, it uses the product of that step as the input for the next intermediate step and continues with single-step simulation and debugging. Specific verification of this intermediate process step may include the following:
[0050] Obtain the attribute information of the input materials and corresponding intermediate products of the intermediate process step that is alerted, and query the formula database to see if there is historical simulation data of other process formulas containing the intermediate process step. If so, retrieve the control parameters of the intermediate process step from the historical simulation data.
[0051] The control parameters of the intermediate process steps in the historical simulation data are compared with the control parameters of the corresponding steps in the current simulation. If the deviation range is greater than the set range, the historical control parameters of the intermediate process steps in the historical simulation data are replaced with the original control parameters of the intermediate process steps in the current simulation.
[0052] After retrieving the input data of the intermediate process step during the initial simulated production, perform a single-step simulation and obtain intermediate product information. If the deviation between the obtained intermediate product and the theoretical output value of the intermediate process step in the process formula is less than a first range, then save the adjusted control parameters.
[0053] If the deviation is still greater than the first range, the theoretical input value of the intermediate process step is obtained from the formula database. The process step is re-simulated by changing the input value of the intermediate process step that is under warning, and then the single-step simulation is performed again to determine whether there is a problem with the process step. Specifically, this may include the following:
[0054] If the deviation between the intermediate product obtained in the preceding steps and the theoretical output value of that intermediate process step in the process formula is greater than the first range, then the theoretical input quantity of that intermediate process step stored in the formula database is queried. The theoretical input quantity of that intermediate process step is used to replace the simulation input quantity of the original single-step simulation, and the single-step simulation of that process step is performed again. The newly obtained intermediate product data is then compared with the theoretical output value of that intermediate process step.
[0055] If the deviation between the newly obtained intermediate product data and the theoretical output value is within the second range, the labeling of that intermediate process step is removed. The second range is included within the first range, meaning the second range is smaller than the first range. If the deviation between the newly obtained intermediate product data and the theoretical output value is within the second range, it indicates that the control parameters and other settings for that intermediate process step are correct. The abnormal intermediate product output from this step is caused by the reactants input into this step, i.e., by the gradual accumulation of deviations in the output data from multiple preceding process steps.
[0056] At this point, the intermediate product yields of each step preceding the warning intermediate process step are compared with the theoretical output values of the corresponding steps stored in the formula database to obtain the output deviation values. Adjacent and consecutive deviation steps to the warning intermediate process step are identified; these deviation steps are those with output deviation values within the second range. Control parameters in these deviation steps are adjusted and single-step simulations are performed until the deviation between the simulated intermediate product yield and the theoretical yield of that intermediate process step falls within the second range. If the error is found to originate not from the original indicated process step but from accumulated errors in its upstream steps, the verification range for the intermediate product output values of the adjacent upstream process steps is increased, narrowing it to the second range. This second range can be adjusted promptly as needed.
[0057] The single-step debugging method for the main recipe of the MES system disclosed in this embodiment allows users to debug complex and lengthy process recipes in a system step by step, just like debugging code. Users can see the detailed execution status of the entire process, and can view information about related variables or batch records for each step of the debugging process. If the final product of the recipe does not meet design requirements, or after modifying and saving the recipe, the entire execution process of the simulated command can be used on the current user interface to discover and verify the recipe problems and check whether the recipe has achieved the desired effect. This eliminates the need to go through the entire work order command process, thus greatly shortening the time required for on-site verification of recipe correctness.
[0058] In another embodiment, a single-step debugging system for MES master recipes is also disclosed, including a web client and a server. The web client is configured to send a single-step debugging request for the master recipe to the backend server via a network. The server is configured to retrieve the corresponding recipe information from the process database based on the single-step debugging request sent by each client. The process recipe information includes raw material and excipient information, process flow, and control parameters. A separate workspace and temporary database are created for the user data of each single-step debugging step, and each process step of the master recipe is debugged according to the process recipe information by simulating the execution of formal instructions. The execution result of each process step currently being simulated and the recipe information of that step are sent to the corresponding client. After receiving the modification instruction for the control parameters or the addition of excipient information in that step from the client, the recipe information of that process step is regenerated according to the modification instruction, and the execution result of the previous process step is retrieved from the temporary database to re-perform the single-step simulation of that process step.
[0059] In this embodiment, the server is also configured to schedule message queue processing through a Node.js thread pool, create a separate workspace and temporary database for each user's data in single-step debugging; parse the user's corresponding single-step debugging request, adjust the process formula retrieved from the process database according to the modification information in the single-step debugging request, debug each process step of the main formula according to the adjusted process formula information by simulating the execution mode of the formal instructions; and record the execution results of each process step after simulation and the formula information of that step into the user's temporary database.
[0060] In this embodiment, the server is also configured to send the execution result of the currently simulated process step and the recipe information of that step to the corresponding client; then retrieve the execution result of the previous process step from the temporary database as the input information for the single-step simulation of that step, and establish multiple parallel simulation execution processes according to the multiple sets of control parameter adjustment values sent by the client to re-perform the single-step simulation of that process step; and send each simulation result and the corresponding control parameter adjustment value to the client.
[0061] In this embodiment, the server is also configured to, based on multiple adjustment schemes for control parameters or auxiliary material information of a process step sent by the client, establish multiple corresponding parallel simulation execution processes to re-simulate the process step using each adjustment scheme; obtain the theoretical value of the intermediate product of the process step from the process database, and provide recommended values for adjusting the control parameters based on the deviation between each simulation result and the theoretical value.
[0062] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. Regarding the single-step debugging system for the MES master recipe disclosed in the embodiments, since it corresponds to the single-step debugging method for the MES system master recipe disclosed in the embodiments, the description is relatively simple, and relevant parts can be referred to the method section.
[0063] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
[0064] In summary, the above description is only a preferred embodiment of the present invention. All equivalent changes and modifications made within the scope of the claims of the present invention should be covered by the present invention.
Claims
1. A single-step debugging method for the master recipe in an MES system, characterized in that, Includes the following steps: S1, each client sends a single-step debugging request for the main formula to the backend server via the network. The server retrieves the process formula information of the corresponding formula from the process database. The process formula information includes raw material and auxiliary material information, process flow and control parameters. S2, the server creates a separate workspace and temporary database for each user data in each single-step debugging, and debugs each process step of the main formula according to the process formula information by simulating the execution of formal instructions. S3, the server sends the execution results of each process step in the current simulation and the formula information for that step to the corresponding client. Upon receiving a modification instruction from the client for control parameters or newly added excipient information for that step, the server regenerates the formula information for that process step based on the modification instruction and retrieves the execution results of the previous process step from the temporary database to re-perform the single-step simulation of that process step. Specifically, this includes: The execution result of the previous process step is retrieved from the temporary database as the input information for the single-step simulation of this step. Multiple parallel simulation execution processes are established according to the multiple sets of control parameter adjustment values sent by the client to re-perform the single-step simulation of this process step. The simulation results and the corresponding control parameter adjustment values are sent to the client. After simulating an intermediate process step, the intermediate product is obtained and compared with the theoretical output value of the intermediate process step in the electronic process formula stored in the formula database. It is determined whether the deviation between the simulated intermediate product output and the theoretical output value is within a first range. If it is within the first range, the simulation of subsequent process steps continues; otherwise, an evaluation error warning message is sent to the client. The server verifies the control parameters of each intermediate process step. If an instruction to ignore the error is received, the product of this step is used as the input of the next intermediate step, and the single-step simulation debugging of the next step continues. The system acquires the attribute information of the input materials and corresponding intermediate products of the intermediate process step that is detected by the warning. Based on this attribute information, it queries the formula database to see if there is historical simulation data of other process formulas containing this intermediate process step. If so, it retrieves the control parameters of this intermediate process step from the historical simulation data. The system then compares the control parameters of the intermediate process step in the historical simulation data with the control parameters of the corresponding step in the current simulation. If the deviation range is greater than a set range, the system replaces the original control parameters of the intermediate process step in the historical simulation data with the original control parameters of the intermediate process step in the current simulation.
2. The single-step debugging method for the master recipe of the MES system according to claim 1, characterized in that, Step S2 includes: The server middleware layer uses a Node.js thread pool to schedule message queue processing; The server creates a separate workspace and temporary database for each user's data in each step of the debugging process. The system parses the user's single-step debugging request, adjusts the process formula retrieved from the process database according to the modification information in the single-step debugging request, and debugs each process step of the main formula according to the adjusted process formula information by simulating the execution of formal instructions. The execution results of each process step after simulation and the formula information of that step are entered into the user's temporary database.
3. The single-step debugging method for the master recipe of the MES system according to claim 2, characterized in that, Step S32 further includes: Based on multiple adjustment schemes for the control parameters or auxiliary material information of a process step sent by the client, multiple corresponding parallel simulation execution processes are established for each adjustment scheme to re-simulate the execution of the process step. The theoretical values of intermediate products for this process step are obtained from the process database, and recommended values for adjusting control parameters are given based on the deviations between the simulation results and the theoretical values.
4. A single-step debugging system for MES master recipes, characterized in that, include: The web client is configured to send step-by-step debugging requests for the master recipe to the backend server over the network; The server is configured to retrieve the process formula information of the corresponding formula from the process database based on the single-step debugging request of the main formula sent by each client. The process formula information includes raw material and auxiliary material information, process flow and control parameters. A separate workspace and temporary database are created for each user data step in the single-step debugging process. Each process step of the main formula is debugged according to the process formula information by simulating the execution of formal instructions. The execution result of each process step currently being simulated and the formula information for that step are sent to the corresponding client. Upon receiving modification instructions from the client regarding control parameters or newly added excipients for that step, the formula information for that process step is regenerated according to the modification instructions, and the execution result of the previous process step in the temporary database is retrieved to re-perform the single-step simulation of that process step. The execution result of the previous process step in the temporary database is used as the input information for the single-step simulation of that step. Multiple parallel simulation execution processes are established based on multiple sets of control parameter adjustment values sent by the client to re-perform the single-step simulation of that process step. Each simulation result and the corresponding control parameter adjustment value are sent to the client. After simulating an intermediate process step, the intermediate product is obtained and compared with the corresponding intermediate process step in the electronic process formula stored in the formula database. The output value is compared to determine whether the deviation between the simulated intermediate product output and the theoretical output value is within a first range. If it is within the first range, the simulation of subsequent process steps continues; otherwise, an evaluation error warning is sent to the client. The server verifies the control parameters of each intermediate process step. If an instruction to ignore the error is received, the product of that step is used as the input for the next intermediate step, and the single-step simulation debugging of the next step continues. The server obtains the attribute information of the input and corresponding intermediate product of the warning intermediate process step, and queries the formula database to see if there is historical simulation data of other process formulas containing that intermediate process step. If so, the control parameters of that intermediate process step in the historical simulation data are retrieved. The control parameters of the intermediate process step in the retrieved historical simulation data are compared with the control parameters of the corresponding step in the current simulation. If the deviation range is greater than the set range, the historical control parameters of the intermediate process step in the historical simulation data are replaced with the original control parameters of the intermediate process step in the current simulation.
5. The MES master recipe single-step debugging system according to claim 4, characterized in that: The server is also configured to schedule message queue processing through a node.js thread pool, create a separate workspace and temporary database for each user's data in single-step debugging; parse the user's corresponding single-step debugging request, adjust the process formula retrieved from the process database according to the modification information in the single-step debugging request, and debug each process step of the main formula according to the adjusted process formula information by simulating the execution mode of formal instructions. The execution results of each process step after simulation and the formula information of that step are entered into the user's temporary database.
6. The MES master recipe single-step debugging system according to claim 5, characterized in that: The server is also configured to send the execution result of the currently simulated process step and the recipe information of that step to the corresponding client; then retrieve the execution result of the previous process step from the temporary database as the input information for the single-step simulation of that step, and establish multiple parallel simulation execution processes according to the multiple sets of control parameter adjustment values sent by the client to re-perform the single-step simulation of that process step; and send each simulation result and the corresponding control parameter adjustment value to the client.
7. The MES master recipe single-step debugging system according to claim 6, characterized in that: The server is also configured to, based on multiple adjustment schemes for control parameters or auxiliary material information of a process step sent by the client, establish multiple corresponding parallel simulation execution processes to re-simulate the process step using each adjustment scheme; obtain the theoretical value of the intermediate product of the process step from the process database, and provide recommended values for adjusting the control parameters based on the deviation between each simulation result and the theoretical value.
Citation Information
Patent Citations
Formula simulation method and system
CN112765837A
