Formula generation method, chemical solution configuration method and related device

Through formula generation and chemical solution configuration methods, the problems of low manual production efficiency and inconsistent standards of chemical solutions are solved, efficient and accurate solution configuration is achieved, and the efficiency of chemical drug research and development is improved.

CN118824388BActive Publication Date: 2025-01-24杭州咸数科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411297137.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-18
Publication Date
2025-01-24
Estimated Expiration
2044-09-18

AI Technical Summary

Technical Problem

In the prior art, the manual production of chemical solutions is inefficient and the standards are uneven, which affects the research and development of chemical drugs.

Method used

Provide a formula generating method and chemical solution configuration method. By obtaining the basic information of the target solution, determine the regulatory solution, and adjust it according to the matching degree of the current pH value and the target pH, until the solution formula corresponding to the target pH value is generated.

Benefits of technology

It improves the efficiency of solution configuration, reduces the unevenness of solution standards in different batches, reduces the dependence on manual debugging, and improves the efficiency and accuracy of chemical drug research and development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118824388B_ABST
    Figure CN118824388B_ABST
Patent Text Reader

Abstract

The present application provides a formula generation method, a chemical solution configuration method and related devices, and relates to the technical field of chemical solution preparation. The method includes: obtaining basic information of the first target solution, the basic information includes a target pH value, a plurality of first substances and the corresponding initial molar amount; determining a regulating solution from a plurality of first substances; judging whether the first target solution is configurable according to the basic information; if yes, calculating the current pH value of the solution according to the molar amount of each current first substance, and when the current pH value does not match the target pH value, adjusting the molar amount of the regulating solution according to the current pH value and the target pH value, repeating the above calculation and adjustment until the current pH value matches the target pH value, and when determining the match, generating the formula of the first target solution according to the molar amount of each first substance at the time of the match. In this way, the corresponding formula can be automatically generated, and then the solution can be configured based on the formula to improve the efficiency of solution configuration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of chemical solution preparation, and in particular to a formula generation method, a chemical solution configuration method and related devices. Background Art

[0002] In actual chemical laboratories, most solutions are still prepared manually, and the standards of the solutions prepared in each batch are inconsistent. For example, if a solution with a pH value of 4.5 is required, the pH value of the solution prepared in the first batch is 4.51, and the pH value of the solution prepared in the second batch is 4.49. This manual preparation method is inefficient and has uneven standards, which greatly affects the research and development of chemical drugs. Summary of the invention

[0003] The embodiments of the present application provide a formula generation method, a chemical solution preparation method and related devices, which can improve the solution preparation efficiency and alleviate the situation where the solution standards of different batches are uneven.

[0004] The embodiments of the present application can be implemented as follows:

[0005] In a first aspect, an embodiment of the present application provides a recipe generation method, the method comprising:

[0006] Obtaining basic information of a first target solution, wherein the basic information includes a target pH value, a plurality of first substances constituting the first target solution and corresponding initial molar amounts;

[0007] determining a conditioning solution from the plurality of first substances;

[0008] Determining whether the first target solution is configurable according to the basic information;

[0009] When it is determined that the configuration is possible, the current pH value of the solution is calculated based on the molar amount of the other current first substances and the molar amount of the regulating liquid, and when the current pH value does not match the target pH value, the molar amount of the regulating liquid is adjusted based on the current pH value and the target pH value, and the above calculation and adjustment are repeated until the current pH value matches the target pH value, and when the match is determined, the formula of the first target solution corresponding to the target pH value is generated based on the molar amount of each first substance at the time of matching.

[0010] In a second aspect, an embodiment of the present application provides a method for preparing a chemical solution, the method comprising:

[0011] Determine a target formula from a formula library, and obtain a target production amount of a second target solution corresponding to the target formula;

[0012] According to the target formula and the target production amount, calculating the total molar amount of each second substance required to produce the second target solution;

[0013] Calculating the target volume of each raw material required to prepare the second target solution according to the molar concentration of the raw material corresponding to each second substance and the total molar amount of each second substance;

[0014] The solution is prepared according to the target volume of each raw material to obtain the second target solution.

[0015] In a third aspect, an embodiment of the present application provides a recipe generating device, the device comprising:

[0016] A basic information acquisition module, used to obtain basic information of a first target solution, wherein the basic information includes a target pH value, a plurality of first substances constituting the first target solution and corresponding initial molar amounts;

[0017] A determination module, used for determining a regulating liquid from the plurality of first substances;

[0018] A first judgment module, used for judging whether the first target solution is configurable according to the basic information;

[0019] A processing module is used to calculate the current pH value of the solution according to the molar amount of other current first substances and the molar amount of the regulating liquid when it is determined to be configurable, and when the current pH value does not match the target pH value, adjust the molar amount of the regulating liquid according to the current pH value and the target pH value, repeat the above calculation and adjustment until the current pH value matches the target pH value, and when the match is determined, generate a formula of the first target solution corresponding to the target pH value according to the molar amount of each first substance when matching.

[0020] In a fourth aspect, an embodiment of the present application provides a chemical solution preparation device, the device comprising:

[0021] An information acquisition module, used to determine a target formula from a formula library and obtain a target production amount of a second target solution corresponding to the target formula;

[0022] A calculation module, used for calculating the total molar amount of each second substance required to prepare the second target solution according to the target formula and the target production amount;

[0023] The calculation module is further used to calculate the target volume of each raw material required to prepare the second target solution according to the molar concentration of the raw material corresponding to each second substance and the total molar amount of each second substance;

[0024] The control module is used to configure the solution according to the target volume of each raw material to obtain the second target solution.

[0025] In a fifth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor can execute the machine executable instructions to implement the method described above in real time.

[0026] In a sixth aspect, an embodiment of the present application provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method described in the aforementioned embodiment is implemented.

[0027] The formula generation method, chemical solution configuration method and related device provided in the embodiment of the present application first obtain the basic information of the first target solution, which includes the target pH value, multiple first substances as the first target solution composition and the corresponding initial molar amount; then, determine the regulating solution from the multiple first substances, and judge whether the first target solution is configurable according to the basic information; if it is configurable, the current pH value of the solution is calculated according to the molar amount of other current first substances and the molar amount of the regulating solution, and when the current pH value does not match the target pH value, the molar amount of the regulating solution is adjusted according to the current pH value and the target pH value, and the above calculation and adjustment are repeated until the current pH value matches the target pH value, and when the match is determined, the formula of the first target solution corresponding to the target pH value is generated according to the molar amount of each first substance when matching. In this way, the formula of the solution with a pH value near the target pH value can be automatically generated, and then the desired solution can be configured according to the formula, thereby improving the solution configuration efficiency; and compared with the method of manually debugging step by step to configure the solution, the solution configuration based on the formula can alleviate the situation that the standards of different batches of solutions are uneven. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0029] Figure 1 A block diagram of an electronic device provided in an embodiment of the present application;

[0030] Figure 2 A schematic diagram of a process for generating a recipe according to an embodiment of the present invention;

[0031] Figure 3 for Figure 2A schematic flow chart of the sub-steps included in step S130;

[0032] Figure 4 for Figure 2 A schematic flow chart of the sub-steps included in step S140;

[0033] Figure 5 A schematic diagram of a process for preparing a chemical solution according to an embodiment of the present application;

[0034] Figure 6 A block diagram of a recipe generating device provided in an embodiment of the present application;

[0035] Figure 7 One of the block diagrams of the chemical solution preparation device provided in the embodiment of the present application;

[0036] Figure 8 This is the second block diagram of the chemical solution preparation device provided in an embodiment of the present application.

[0037] Icons: 100-electronic device; 110-memory; 120-processor; 130-communication unit; 200-recipe generation device; 210-basic information acquisition module; 220-determination module; 230-first judgment module; 240-processing module; 300-chemical solution configuration device; 310-information acquisition module; 320-calculation module; 330-control module; 340-second judgment module; 350-detection module. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0039] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0040] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0041] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0042] Please refer to Figure 1 , Figure 1 A block diagram of an electronic device 100 provided in an embodiment of the present application. The electronic device 100 may be, but is not limited to, a computer, a server, etc. The electronic device 100 includes a memory 110, a processor 120, and a communication unit 130. The memory 110, the processor 120, and the communication unit 130 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components may be electrically connected to each other via one or more communication buses or signal lines.

[0043] The memory 110 is used to store programs or data. The memory 110 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc.

[0044] The processor 120 is used to read / write data or programs stored in the memory 110 and perform corresponding functions. For example, the memory 110 stores a recipe generation device 200 and / or a chemical solution configuration device 300, and the above-mentioned device includes at least one software function module that can be stored in the memory 110 in the form of software or firmware. The processor 120 executes various functional applications and data processing by running software programs and modules stored in the memory 110, such as the recipe generation device 200 and / or the chemical solution configuration device 300 in the embodiment of the present application, that is, realizing the recipe generation method and / or the chemical solution configuration method in the embodiment of the present application.

[0045] The communication unit 130 is used to establish a communication connection between the electronic device 100 and other communication terminals through a network, and to send and receive data through the network.

[0046] It should be understood that Figure 1 The structure shown is only a schematic diagram of the structure of the electronic device 100. The electronic device 100 may also include Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown. Figure 1 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0047] Please refer to Figure 2 , Figure 2 The flowchart of the recipe generation method provided in the embodiment of the present application is shown in FIG. The method can be applied to the electronic device 100 described above. The specific process of the recipe generation method is described in detail below. In this embodiment, the method can include steps S110 to S140.

[0048] Step S110, obtaining basic information of the first target solution.

[0049] In this embodiment, the first target solution is a solution whose formula needs to be generated, which is specifically determined by actual needs. The basic information of the first target solution may include a target pH value, a plurality of first substances as components of the first target solution, and the corresponding initial molar amounts. Among them, the initial molar amount corresponding to a substance is the initial value, and the initial value can be adjusted later to obtain a formula corresponding to the target pH value. The basic information can be obtained in any manner, and is not specifically limited here. For example, the basic information is obtained according to the user's input operation, that is, the composition of the first target solution is manually specified, or it is automatically generated based on chemical reaction requirements.

[0050] Step S120, determining a regulating solution from the plurality of first substances.

[0051] The first substance used as the regulating solution can be determined from the plurality of first substances in any manner. The pH value can be adjusted by adjusting the molar amount of the regulating solution.

[0052] Step S130: determining whether the first target solution is configurable according to the basic information.

[0053] In this embodiment, it is also possible to judge whether, when the first target solution is composed of the above-mentioned multiple first substances, a first target solution with a pH value close to the target pH value can be configured based on the basic information. The specific judgment method can be determined in combination with actual needs. If it is determined that the first target solution cannot be configured, an abnormal prompt can be issued so that the user can handle it in time.

[0054] Step S140, when it is determined that it is configurable, the current pH value of the solution is calculated according to the molar amount of the other current first substances and the molar amount of the regulating liquid, and when the current pH value does not match the target pH value, the molar amount of the regulating liquid is adjusted according to the current pH value and the target pH value, and the above calculation and adjustment are repeated until the current pH value matches the target pH value, and when the match is determined, the formula of the first target solution corresponding to the target pH value is generated according to the molar amount of each first substance at the time of matching.

[0055] In this embodiment, the initial molar amount in the basic information represents the initially set molar amount when the solution is 1 L, and when the molar amount is subsequently adjusted, the solution volume is kept unchanged at 1 L.

[0056] If it is determined that the first target solution can be configured, the Henderson-Hasselbach equation can be used in combination with the DebyeHuckel theory based on the initial molar amount of each other first substance indicated by the basic information and the initial molar amount of the regulating solution to calculate the current pH value of the solution when the solution is composed of the first substance and the first substance is the initial molar amount included in the basic information. Then, the difference between the current pH value and the target pH value can be calculated. If the difference is greater than the preset difference, it is determined that the current pH value does not match the target pH value; if the difference is less than or equal to the preset difference, it is determined that the current pH value matches the target pH value. Among them, the other first substances are the first substances other than the regulating solution among the multiple first substances.

[0057] If it is determined that the current pH value of the solution does not match the target pH value, the initial molar amount of the regulating solution can be increased or decreased according to the current pH value and the target pH value. After the adjustment, the above-mentioned process of calculating the current pH value, judging, and adjusting if it does not match is repeated, that is, according to the current molar amount of each first other substance after adjustment and the current molar amount of the regulating solution, the pH value of the solution at this time is calculated as the current pH value, and it is judged whether the current pH value matches the target pH value, and if it does not match, the adjustment is continued.

[0058] If it is determined that the current pH value of the solution matches the target pH value, it can be determined that the adjustment is complete, and a formula of the first target solution with a pH value near the target pH value can be generated based on the molar amount of each first substance at this time. That is, based on the molar amount of each first substance when the adjustment is complete, a corresponding formula is generated. Optionally, the generated formula includes the molar amount of each first substance required when the solution is 1L.

[0059] The method of preparing a solution with a fixed pH value based on a pre-made fixed mixture with a fixed pH value can only prepare a solution with a certain specific pH value, and cannot quickly prepare a solution based on an arbitrary pH value. Alternatively, a formula of a solution with a certain pH value may be determined through manual debugging, and the formula includes parameters such as weight and solution volume, and then the corresponding solution is manually prepared based on the formula. However, this method can only prepare a solution with a certain specific pH value, and cannot quickly prepare a solution based on an arbitrary pH value.

[0060] The above-mentioned formula generation method provided in the embodiment of the present application can automatically generate the formula of the solution with a pH value near the target pH value based on the basic information, and then the required solution can be obtained according to the formula configuration, thereby improving the efficiency of solution configuration; and compared with the method of manually debugging step by step to configure the solution, the solution configuration based on the formula can alleviate the situation that the standards of solutions in different batches are uneven, that is, the modification of this method can reduce the uncertainty in drug research and development. The above-mentioned formula generation method is convenient for quickly configuring solutions based on arbitrary pH values. The above method can quickly generate solution formulas and reduce the time for formulators to find information and documents.

[0061] Optionally, in this embodiment, the basic information may further include a target species of the first target solution. For example, one species is selected from boric acid, acetic acid and phosphoric acid as the target species. After obtaining the basic information, it can be determined whether the plurality of first substances include a target acid radical ion corresponding to the target species; if not, an abnormal prompt message is displayed; if included, step S120 can be executed. For example, if the target species is acetic acid, the target acid radical ion is an acetate ion.

[0062] Optionally, in the case where there is a requirement for the acid ion concentration of the first target solution, the target concentration of the target acid ion may also be included in the basic information. It is understandable that if there is no requirement for the acid ion concentration of the first target solution, the target concentration of the target acid ion may not be included in the basic information. For example, if the user manually sets the basic information and there is a requirement for the acid ion concentration of the first target solution, the target acid ion and the corresponding target concentration may be specified, so that the basic information includes the target acid ion and the corresponding target concentration.

[0063] In the case where there is a requirement for the target acid ion concentration, the basic information meets the following requirement: the sum of the initial molar amounts of the first target substances including the target acid ions matches the target concentration. For example, if the target concentration of the target acid ions is 0.2 mol / L, the initial molar amounts of each first substance in the basic information represent the initial values ​​of the molar amounts of each first substance when the solution is 1 L, then the sum of the initial molar amounts of the first target substances including the target acid ions is 0.2 mol.

[0064] In formula calculation, it is necessary to determine the regulating liquid. As a possible implementation method, the basic information may include regulating liquid indication information. In this case, the first substance indicated by the regulating liquid indication information may be used as the regulating liquid. For example, a basic information configuration page may be displayed, and an area in the page is used to instruct the user to specify the regulating liquid. If the user enters the name of a first substance in this area, that is, the first substance is specified as the regulating liquid, then the regulating liquid indication information can be obtained; if the user does not specify a first substance as the regulating liquid in this area, the regulating liquid indication information is not obtained.

[0065] As another possible implementation, if the basic information does not include the regulating liquid indication information, the pH value of each first substance can be calculated by using the Henderson-Hasselbach equation in combination with the DebyeHuckel theory. Then, the difference between the pH value of each first substance and the pH value can be calculated, and the above differences can be compared to determine the maximum difference, and the first substance corresponding to the maximum difference is used as the regulating liquid. In this way, the volume error of the produced solution will be very small, and less material liquid will be used.

[0066] In the case of obtaining the basic information, as a possible implementation method, Figure 3 The method shown in the figure determines whether the first target solution can be configured based on the basic information. Figure 3 , Figure 3 for Figure 2Schematic diagram of the flow of sub-steps included in step S130. In this embodiment, step S130 may include sub-steps S131 to S134.

[0067] Sub-step S131, determining the maximum pH value and the minimum pH value of the pH values ​​of the plurality of first substances.

[0068] Sub-step S132, determining whether the target pH value is within a target range.

[0069] The maximum value of the target range is the maximum pH value, and the minimum value is the minimum pH value.

[0070] If it is determined that the target pH value is within the target range, sub-step S133 is executed.

[0071] Sub-step S133, determining that the target solution is configurable.

[0072] If the target pH value is not within the target range, sub-step S134 is executed.

[0073] Sub-step S134, determining that the target solution is not configurable.

[0074] In this embodiment, the pH value of each first substance can be calculated by using the Henderson-Hasselbach equation in combination with the DebyeHuckel theory, and the maximum pH value and the minimum pH value of the pH value of each first substance can be determined to determine the target range, and the maximum value of the target range is the above-mentioned maximum pH value, and the minimum value is the above-mentioned maximum pH value. Next, it is determined whether the target pH value is within the target range. If the target pH value is not within the target range, it can be directly determined that the first target solution is not configurable. In the case where it is determined that the first target solution is not configurable, an abnormal prompt is performed, and step S140 may not be performed. If the target pH value is within the target range, it can be directly determined that the first target solution is configurable. In the case where it is determined that the first target solution is configurable, step S140 is performed to obtain the formula corresponding to the first target solution by adjustment.

[0075] In this embodiment, when the target concentration of the target acid ion is not included in the basic information, only the molar amount of the adjusting solution can be continuously adjusted according to the current pH value and the target pH value of the solution, and the molar amount of the other first substances can be kept unchanged until the calculated current pH value matches the target pH value. At this time, the molar amount of the other first substances and the molar amount of the adjusting solution at this time can be directly saved in the formula.

[0076] In the case where the basic information includes the target concentration of the target acid radical ion, Figure 4 Please refer to the method shown in the figure to avoid the obtained formula not meeting the requirements. Figure 4 , Figure 4 for Figure 2 Schematic diagram of the flow of sub-steps included in step S140. In this embodiment, step S140 may include sub-steps S141 to S143.

[0077] Sub-step S141, determining whether the regulating solution includes the target acid ions.

[0078] When the target acid ions are not included in the adjustment solution, sub-step S142 is performed.

[0079] Sub-step S142, adjusting the molar amount of the regulating solution according to the current pH value and the target pH value, and keeping the molar amount of other first substances unchanged.

[0080] In the case where the target acid ions are included in the adjustment solution, sub-step S143 is performed.

[0081] Sub-step S143, determining a second target substance including the target acid ion in other first substances, and adjusting the molar amounts of the second target substance and the regulating solution according to the current pH value, the target pH value and the target adjustment method.

[0082] In this embodiment, when the target concentration of the target acid ion is included in the basic information, if the regulating solution does not include the target acid ion, it means that the actual molar amount of the target acid ion will not be affected in the process of adjusting only the molar amount of the regulating solution based on the pH value. Therefore, only the molar amount of the regulating solution can be continuously adjusted according to the current pH value and the target pH value of the solution, and the molar amount of other first substances can be kept unchanged until the calculated current pH value matches the target pH value. When the match is determined, the molar amount of the other first substance and the molar amount of the regulating solution at this time can be directly saved in the formula.

[0083] In the case where the target concentration of the target acid ion is included in the basic information, if the regulating solution includes the target acid ion, it means that the actual molar amount of the target acid ion will be affected in the process of adjusting only the molar amount of the regulating solution based on the pH value, so only the molar amount of the regulating solution can be adjusted according to the current pH value and the target pH value of the solution, and the molar amount of the second target substance including the target acid ion in other first substances can be adjusted based on the target adjustment method according to the adjusted molar amount of the regulating solution, keeping the molar amount of the first substance that does not include the target acid ion unchanged. Among them, the target adjustment method is: the molar amount of the second target substance decreases as the molar amount of the regulating solution increases, that is, the molar amount of the second target substance increases as the molar amount of the regulating solution decreases, so as to ensure that the sum of the molar amounts of the first substance including the target acid ion after adjustment still matches the target concentration.

[0084] Among them, it is worth noting that, when the basic information indicates that the initial molar amount of each first substance is included in 1L of solution, and the volume of the solution remains unchanged during the adjustment of the molar amount, the generated formula includes the molar amount of each first substance when it is determined that the current pH value of the solution matches the target pH value; if the molar amount of some first substances is not adjusted during the adjustment process, the molar amount of the first substance in the formula is the initial molar amount of the first substance in the basic information; the molar amount of the first substance whose molar amount is adjusted during the adjustment process in the formula is the molar amount of the first substance at the end of the adjustment.

[0085] In this embodiment, the regulating solution can be screened out by using the Henderson-Hasselbach equation according to the basic information of the target parameters input by the user through the DebyeHuckel theory; and the Henderson-Hasselbach equation is used to forwardly calculate the difference between the current pH value of the solution and the target pH value in combination with the DebyeHuckel theory, and the molar amount of the regulating solution is adjusted, and when there is a requirement for the acid ion concentration and the regulating solution includes the corresponding acid ions, the molar amount of the first substance including the corresponding acid ions in the first substance other than the regulating solution is adjusted at the same time, so as to obtain the molar amount of each first substance in the formula that meets the requirements. The above method can quickly calculate the formula without the need for the preparer to prepare the solution preparation formula in advance, improve the generation and preparation efficiency of the new formula, and improve the research and development efficiency.

[0086] The present application also provides a method for preparing a chemical solution, which can automatically prepare a chemical solution to avoid manual preparation of the solution, thereby improving the efficiency of solution preparation. Figure 5 , Figure 5The present invention provides a flow chart of a method for preparing a chemical solution according to an embodiment of the present invention. The method can be applied to the electronic device 100. The specific flow of the method for preparing a chemical solution is described in detail below. In this embodiment, the method can include steps S210 to S240.

[0087] Step S210, determining a target formula from a formula library, and obtaining a target production amount of a second target solution corresponding to the target formula.

[0088] In this embodiment, a plurality of recipes are stored in the recipe library, and different recipes can be configured with different solutions. A target recipe can be determined from the recipe library according to actual needs, and a target production amount of the second target solution corresponding to the target recipe can be determined. For example, a user can manually specify the target recipe from the recipe library, and specify a target production amount. The target recipe includes a plurality of second substances as components of the second target solution, and includes the contents of various second substances when the target recipe corresponds to a preset volume (for example, 1L). The target production amount indicates the volume of the solution required to be produced, for example, 2L.

[0089] Step S220, calculating the total molar amount of each second substance required to prepare the second target solution according to the target formula and the target production amount.

[0090] Step S230, calculating the target volume of each raw material required to prepare the second target solution according to the molar concentration of the raw material corresponding to each second substance and the total molar amount of the second substance.

[0091] In this embodiment, when the target formula includes the molar amount of each second substance, the total molar amount of each second substance required to produce the second target solution can be directly calculated based on the preset volume corresponding to the target formula and the target production amount. For example, the target production amount is 2L; the target formula indicates that in 1L of the second target solution, the molar amount of the second substance A required is a, and the molar amount of the second substance B required is b; then the production of the second target solution of the target production amount requires: 2a moles of substance A (i.e., the total molar amount of substance A is 2a), and 2b moles of substance B (i.e., the total molar amount of substance B is 2b).

[0092] In this embodiment, when the content of at least a part of the substances in the target formula is not expressed in molar amount, the unit of the content can be converted into molar amount, and the total molar amount of each second substance required to make the second target solution can be calculated in combination with the preset volume corresponding to the target formula and the target production amount. Among them, the conversion information of the unit of the corresponding content converted to the molar amount can be pre-entered, which is convenient for conversion calculation. Among them, the conversion formula used in the conversion calculation can be: mass / molecular weight=molar amount, volume×molar concentration=molar amount. For example, the target production amount is 2L; the target formula indicates that in 1L of the second target solution, 28g of sodium hydroxide and 250ml of sodium bicarbonate are required, and the molecular weight of sodium hydroxide is 39.997g / mol and the concentration of sodium bicarbonate is 0.2mol / L (i.e., conversion information), then the following information can be calculated based on the conversion formula. In 1L of the second target solution, the molar amount of sodium hydroxide required is: 28 / 39.997, and the molar amount of sodium bicarbonate is: , and then determine that the preparation of 2L of the second target solution requires moles of sodium hydroxide, moles of sodium bicarbonate.

[0093] When the total molar amount of a second substance is calculated, the molar concentration of the raw material corresponding to the second substance can be obtained, and then the target volume of the raw material required to produce the second target solution of the target production amount can be calculated. In this way, the target volume of each raw material required to produce the second target solution of the target production amount can be obtained.

[0094] The inventor of the present application has found through research that there are certain differences in standardization between the formulas recorded in the pharmacopoeias of various countries and the materials actually used. For example, the formula indicates the use of 50 ml of saline with a concentration of 0.9%. Here, the concentration of saline is 0.9%, which means that there is 0.9 g of sodium chloride in 100 mL of solution; while the parameter of the saline as the corresponding actual material (i.e., the actual raw material) is c mol / L or the concentration is 2%, which makes it inconvenient to directly configure the solution based on the formula. In this solution, in the actual solution preparation process, the volume conversion of the required substance is performed based on the molar amount. In this way, even if the material concentration standard changes during the use of the operator, the operator does not need to modify the formula, and can perform adaptive preparation according to the current material concentration standard to produce a solution of uniform standard.

[0095] Step S240, preparing a solution according to the target volume of each raw material to obtain the second target solution.

[0096] After the target volume of each raw material is determined, the target volume of each raw material can be sent to the corresponding hardware execution device to perform solution configuration, thereby obtaining the required second target solution. In this way, the required solution can be automatically configured.

[0097] Optionally, in this embodiment, the raw materials are contained in raw material bottles, and the raw material bottles can be placed in a silo for use, wherein one silo is used to contain one raw material bottle. It is possible to continuously detect whether a raw material bottle has been taken out of the silo. In the case where it is detected that a raw material bottle has been taken out of the silo, it can be prompted that there is no raw material bottle in the silo, and it can be replenished in time. In the case where it is detected that a raw material bottle is placed in an empty silo, the raw material bottle information of the placed raw material bottle can be obtained, and the silo database can be updated based on the obtained raw material bottle information. Among them, the silo database stores the raw material bottle information of the raw material bottles contained in each silo, so as to automatically configure the liquid. In this way, the silo database can be updated accordingly in a timely manner.

[0098] Optionally, it is possible to detect whether the raw material bottle is taken out and obtain information of a new raw material bottle based on RFID (Radio Frequency Identification) technology, wherein the raw material bottle information may include: material name, molar concentration, rule parameters expressed in volume, production date, etc.

[0099] In the case of solution preparation, after the preparation is completed, a material consumption record corresponding to the preparation can be generated. In this way, the material consumption can be automatically monitored and the silo database can be quickly and automatically updated, and the material consumption can be automatically recorded, thereby improving the material utilization efficiency and equipment maintenance efficiency.

[0100] It is also possible to determine whether the remaining material is less than the preset value based on the material's regular parameters and material consumption records. If so, a material warning can be issued for timely replacement.

[0101] In this embodiment, a recipe creation page may be provided, in which a recipe name, recipe substance and content, etc. may be input, and the above information may be saved to obtain a recipe. A recipe may also be obtained by the aforementioned recipe generation method, and the recipe obtained by the aforementioned recipe generation method may include the molar amount of each first substance, so that the target volume of the required raw material can be quickly determined.

[0102] Optionally, the obtained formula may be directly saved in the formula library, or the obtained formula may be reviewed and saved in the formula library if the review is passed. A manual review method may be used.

[0103] When a solution needs to be configured, the user can first log in to the account, and then enter the formula name of the solution to be configured; after that, the formula library can be automatically searched based on the formula name to obtain the target formula. The user can also manually select the target formula in the formula library, or the search results in the formula library based on the keywords entered by the user can be displayed, and the user can determine the target formula in the search results. The specific method for determining the target formula can be determined in combination with actual needs, and is not specifically limited here. You can log out of the account after the configuration is completed.

[0104] After obtaining the target formula, the solution can be made based on the target formula (i.e., solution configuration), and after the solution is made, the formula making result can be generated as the solution information for making the second target solution. The solution information is used to trace the target second solution. The solution information may include solution identification, raw material information, configurator information, configuration time, etc. The solution identification may be the solution name, the raw material information may include the raw material name, the raw material production date, etc., and the configurator information may be determined based on the account logged in by the user. The solution information may also include the actual production quantity. This facilitates tracing. Optionally, the above-mentioned solution information can be printed out by a printer and pasted on the container of the second target solution; a query mark can be set on the container of the second target solution, and the above-mentioned solution information can be obtained through the query mark.

[0105] In which, when the target volume of each raw material is obtained based on the target formula, the location of the silo of each raw material can be determined, and then the second target solution can be configured based on the location of the silo of each raw material and the target volume.

[0106] During the process of preparing the second target solution, the real-time production volume can be obtained and sent to the monitoring device for display, so that the user can monitor the solution preparation.

[0107] After configuration is completed, a recipe production record may be generated and saved, which may include: recipe name, configuration person information, configuration start time, configuration end time, actual production quantity, etc.

[0108] Optionally, in this embodiment, as a possible implementation method, it is also possible to calculate the corresponding amount of each formula in the formula library in advance according to the formula and the current raw material remaining information. In the case of determining the target formula and the target production amount, the corresponding amount of the target formula can be obtained from the pre-calculated information, and it is determined whether the corresponding amount of the target formula is greater than the target production amount. If it is greater than, it is determined that the current raw material supports the production of the second target solution of the target production amount, and then the total molar amount, target volume, etc. can be calculated to configure the solution. If the corresponding amount of the target formula is less than or equal to the target production amount, it can be determined that the current raw material does not support the production of the second target solution of the target production amount. In this case, the total molar amount, target volume, etc. can no longer be calculated for solution configuration, and prompt information such as insufficient materials can be displayed. In this way, it is convenient to quickly determine whether the current remaining situation of the raw material supports configuration when solution configuration is required.

[0109] As another possible implementation method, after calculating the target volume of each raw material, it can be determined whether the current remaining volume of each required raw material is greater than the corresponding target volume. If so, it can be determined that the current raw material supports the production of the second target solution of the target production volume; otherwise, it can be determined that the current raw material does not support the production of the second target solution of the target production volume.

[0110] Through the above-mentioned chemical solution preparation method, the conversion from raw materials to solutions can be completed, and the solution preparation can be monitored, so that the whole solution preparation process can be unattended, the preparation efficiency and accuracy can be improved, and errors can be reduced.

[0111] In order to execute the corresponding steps in the above embodiments and various possible methods, a method for implementing the recipe generating device 200 and the chemical solution preparing device 300 is provided below. Optionally, the above devices may adopt the above Figure 1 The device structure of the electronic device 100 is shown. It should be noted that the basic principle and technical effects of the device provided in this embodiment are the same as those of the above embodiments. For the sake of brief description, for parts not mentioned in this embodiment, reference can be made to the corresponding contents in the above embodiments.

[0112] Please refer to Figure 6 , Figure 6 A block diagram of a recipe generating device 200 provided in an embodiment of the present application. In this embodiment, the recipe generating device 200 may include: a basic information obtaining module 210 , a determining module 220 , a first judging module 230 and a processing module 240 .

[0113] The basic information acquisition module 210 is used to obtain basic information of the first target solution, wherein the basic information includes a target pH value, a plurality of first substances constituting the first target solution and corresponding initial molar amounts.

[0114] The determination module 220 is used to determine the regulating solution from the plurality of first substances.

[0115] The first judgment module 230 is used to judge whether the first target solution is configurable according to the basic information.

[0116] The processing module 240 is used to calculate the current pH value of the solution according to the molar amount of the other current first substances and the molar amount of the regulating liquid when it is determined to be configurable, and to adjust the molar amount of the regulating liquid according to the current pH value and the target pH value when the current pH value does not match the target pH value, repeat the above calculation and adjustment until the current pH value matches the target pH value, and when the match is determined, generate a formula of the first target solution corresponding to the target pH value according to the molar amount of each first substance at the time of matching.

[0117] In this embodiment, the basic information also includes the target type of the first target solution, and the first judgment module 230 is further used to: determine whether the multiple first substances include target acid ions corresponding to the target type; if not, display abnormal prompt information.

[0118] Please refer to Figure 7 , Figure 7 This is one of the block diagrams of the chemical solution configuration device 300 provided in the embodiment of the present application. In this embodiment, the chemical solution configuration device 300 may further include: an information acquisition module 310 , a calculation module 320 and a control module 330 .

[0119] The information acquisition module 310 is used to determine a target formula from a formula library and obtain a target production amount of a second target solution corresponding to the target formula.

[0120] The calculation module 320 is used to calculate the total molar amount of each second substance required to prepare the second target solution according to the target formula and the target production amount.

[0121] The calculation module 320 is further used to calculate the target volume of each raw material required to prepare the second target solution according to the molar concentration of the raw material corresponding to each second substance and the total molar amount of the second substance.

[0122] The control module 330 is used to configure the solution according to the target volume of each raw material to obtain the second target solution.

[0123] Please refer to Figure 8 , Figure 8 The second block diagram of the chemical solution configuration device 300 provided in the embodiment of the present application. In this embodiment, the chemical solution configuration device 300 may also include: a second judgment module 340. The calculation module 320 is also used to: in advance, for each recipe in the recipe library, calculate the corresponding production quantity of each recipe according to the recipe and the current remaining raw material information; the second judgment module 340 is also used to: according to the production quantity corresponding to the target recipe and the target production quantity, determine whether the current raw material supports the production of the second target solution of the target production quantity. In the case of determining that the current raw material supports the production of the second target solution of the target production quantity, the calculation module 320 calculates the total molar amount of each second substance required to produce the second target solution according to the target recipe and the target production quantity.

[0124] In this embodiment, the control module 330 is also used to: during the production process, send the real-time production quantity to the monitoring device for display; and / or, after the production is completed, generate and save material consumption records and formula production records, and / or generate solution information of the second target solution, wherein the solution information includes solution identification, raw material information, configurer information and configuration time.

[0125] like Figure 8 As shown, in this embodiment, the chemical solution configuration device 300 may further include a detection module 350. The detection module 350 is used to: when it is detected that a raw material bottle is taken out of the material bin, prompt that there is no raw material bottle in the material bin; when it is detected that a raw material bottle is put into the material bin, obtain the raw material bottle information of the put raw material bottle, and update the material bin database according to the obtained raw material bottle information.

[0126] Optionally, the above modules can be stored in the form of software or firmware. Figure 1 The memory 110 shown in the figure may be fixed in the operating system (OS) of the electronic device 100 and may be Figure 1 Meanwhile, the data and program codes required for executing the above modules may be stored in the memory 110.

[0127] An embodiment of the present application also provides a readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the formula generation method or the chemical solution configuration method is implemented.

[0128] In summary, the formula generation method, chemical solution configuration method and related device provided by the embodiment of the present application first obtain the basic information of the first target solution, which includes the target pH value, multiple first substances as the first target solution composition and the corresponding molar amount; then, determine the regulating solution from the multiple first substances, and judge whether the first target solution is configurable according to the basic information; if it is configurable, the current pH value of the solution is calculated according to the molar amount of other first substances and the molar amount of the regulating solution, and when the current pH value does not match the target pH value, the molar amount of the regulating solution is adjusted according to the current pH value and the target pH value, and the above calculation and adjustment are repeated until the current pH value matches the target pH value, and when the match is determined, the formula of the first target solution corresponding to the target pH value is generated according to the molar amount of each current first substance. In this way, the formula of the solution with a pH value near the target pH value can be automatically generated, and then the desired solution can be configured according to the formula, thereby improving the solution configuration efficiency; and, compared with the method of manually debugging step by step to configure the solution, the solution configuration based on the formula can alleviate the uneven standards of different batches of solutions.

[0129] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products 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 a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing 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 flowchart, and the combination of boxes in the block diagram and / or 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.

[0130] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0131] If the function is implemented in the form of a software function module 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. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

[0132] The above description is only an optional embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A recipe generation method, characterized in that: The method comprises: Obtaining basic information of a first target solution, wherein the basic information includes a target pH value, a plurality of first substances constituting the first target solution and corresponding initial molar amounts; determining a conditioning solution from the plurality of first substances; Determining whether the first target solution is configurable according to the basic information; When it is determined that the configuration is possible, the current pH value of the solution is calculated based on the molar amount of the other current first substances and the molar amount of the regulating liquid, and when the current pH value does not match the target pH value, the molar amount of the regulating liquid is adjusted based on the current pH value and the target pH value, and the above calculation and adjustment are repeated until the current pH value matches the target pH value, and when the match is determined, the formula of the first target solution corresponding to the target pH value is generated based on the molar amount of each first substance at the time of matching.

2. The method according to claim 1, characterized in that The basic information also includes a target concentration of the target acid ion, including that the sum of the initial molar amounts of the first target substance of the target acid ion matches the target concentration, and the molar amount of the regulating solution is adjusted according to the current pH value and the target pH value, including: Determining whether the regulating solution includes the target acid ion; In the case where the regulating solution does not include the target acid ion, adjusting the molar amount of the regulating solution according to the current pH value and the target pH value, and keeping the molar amount of other first substances unchanged; In the case where the regulating liquid includes the target acid ion, a second target substance including the target acid ion is determined among other first substances, and the molar amounts of the second target substance and the regulating liquid are adjusted according to the current pH value, the target pH value and the target adjustment method, wherein the target adjustment method is that the molar amount of the second target substance decreases as the molar amount of the regulating liquid increases.

3. The method according to claim 1, characterized in that The step of judging whether the first target solution is configurable according to the basic information includes: Determining a maximum pH value and a minimum pH value among the pH values ​​of the plurality of first substances; Determining whether the target pH value is within a target range, wherein the maximum value of the target range is the maximum pH value and the minimum value is the minimum pH value; If it is determined that the target pH value is within the target range, then it is determined that the first target solution is configurable; If the target pH value is not within the target range, it is determined that the target solution is not configurable.

4. The method according to claim 1, characterized in that The step of determining a regulating solution from the plurality of first substances comprises: When the basic information includes regulating liquid indication information, using the first substance indicated by the regulating liquid indication information as the regulating liquid; When the regulating liquid indication information is not included in the basic information, the pH value of each first substance is calculated, and the difference between the pH value of each first substance and the target pH value is calculated, and the first substance corresponding to the maximum difference among the obtained differences is used as the regulating liquid.

5. The method according to claim 1, characterized in that The basic information also includes the target type of the first target solution, and the method further includes: Determining whether the plurality of first substances include a target acid ion corresponding to the target species; If not included, an exception prompt message will be displayed.

6. A method for preparing a chemical solution, characterized in that: The method comprises: Determining a target formula from a formula library, and obtaining a target production amount of a second target solution corresponding to the target formula, wherein the formula library includes a formula obtained by any one of claims 1 to 5; According to the target formula and the target production amount, calculating the total molar amount of each second substance required to produce the second target solution; Calculating the target volume of each raw material required to prepare the second target solution according to the molar concentration of the raw material corresponding to each second substance and the total molar amount of each second substance; The solution is prepared according to the target volume of each raw material to obtain the second target solution.

7. The method according to claim 6, characterized in that The method further comprises: For each recipe in the recipe library, the available production quantity of each recipe is calculated in advance according to the recipe and the current remaining raw material information; After obtaining the target production amount of the second target solution corresponding to the target formula, the method further includes: According to the available production amount corresponding to the target formula and the target production amount, determining whether the current raw materials support the production of the second target solution of the target production amount; When it is determined that the current raw materials support the production of the second target solution with the target production amount, the step of calculating the total molar amount of each second substance required to produce the second target solution according to the target formula and the target production amount is performed.

8. The method according to claim 6, characterized in that The formulation obtained by any one of claims 1 to 5 comprises a molar amount of each first substance, and / or the method further comprises: During configuration, real-time production data is sent to monitoring equipment for display; and / or, After configuration is completed, material consumption records and recipe production records are generated and saved, and / or solution information of the second target solution is generated, wherein the solution information used for traceability includes solution identification, raw material information, configurer information and configuration time.

9. The method according to claim 6, characterized in that The method further comprises: When it is detected that the raw material bottle is taken out from the silo, it is prompted that there is no raw material bottle in the silo; When it is detected that a raw material bottle is placed in the material bin, the raw material bottle information of the placed raw material bottle is obtained, and the material bin database is updated according to the obtained raw material bottle information.

10. A recipe generating device, characterized in that: The device comprises: A basic information acquisition module, used to obtain basic information of a first target solution, wherein the basic information includes a target pH value, a plurality of first substances constituting the first target solution and corresponding initial molar amounts; A determination module, used for determining a regulating liquid from the plurality of first substances; A first judgment module, used for judging whether the first target solution is configurable according to the basic information; A processing module is used to calculate the current pH value of the solution according to the molar amount of other current first substances and the molar amount of the regulating liquid when it is determined to be configurable, and when the current pH value does not match the target pH value, adjust the molar amount of the regulating liquid according to the current pH value and the target pH value, repeat the above calculation and adjustment until the current pH value matches the target pH value, and when the match is determined, generate a formula of the first target solution corresponding to the target pH value according to the molar amount of each first substance when matching.

Citation Information

Patent Citations

  • Method for measuring zinc content in hexavalent-chromium passivating solution for hot galvanizing

    CN104007226A

  • Substance synthesis control method and device and electronic equipment

    CN112040577A