Preparation method of potassium nitrate
By obtaining information on the application scenarios of the finished potassium nitrate products, optimizing raw materials and reaction conditions, and generating preparation information to adjust the preparation process of potassium nitrate, the problem of traditional preparation inefficiency is solved and a more efficient and accurate preparation process is achieved.
Patent Information
- Application Number
- CN202411763024.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-03
- Publication Date
- 2025-03-25
AI Technical Summary
The traditional potassium nitrate preparation process relies on manual operations, which can easily increase the possibility of human error and lead to inefficient preparation.
By obtaining application information that reflects the application scenarios of the finished potassium nitrate, determining the required types, specifications or quantities of raw materials, optimizing reaction conditions, and generating preparation information to adjust and optimize the preparation process.
Reduce the possibility of artificial errors, improve preparation efficiency, and ensure the quality and purity of the finished potassium nitrate product.
Smart Images

Figure CN119683656A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of potassium nitrate preparation, and in particular to a method for preparing potassium nitrate. Background Art
[0002] Potassium nitrate is composed of potassium ions (K + ) and nitrate ions (NO3 - ) is an inorganic compound composed of saltpeter or potassium salt. Potassium nitrate is a white crystalline solid with good solubility. It is mainly used as nitrogen fertilizer and potassium fertilizer in agriculture, which helps plant growth and increases crop yields. It can also be used to make fireworks and explosives.
[0003] The traditional potassium nitrate preparation process usually relies on manual operations (such as operators observing and recording reaction conditions), which easily increases the possibility of human errors and leads to low preparation efficiency. Summary of the invention
[0004] The embodiment of the present application provides a method for preparing potassium nitrate, which can solve the problem that in the traditional potassium nitrate preparation process, manual operation is usually relied on, which easily increases the possibility of human errors and leads to low preparation efficiency.
[0005] In a first aspect, an embodiment of the present application provides a method for preparing potassium nitrate, which is applied to a potassium nitrate preparation device, comprising:
[0006] Obtaining application information of potassium nitrate; wherein the application information is used to reflect the application scenario of the prepared potassium nitrate finished product;
[0007] According to the application information, raw material information is obtained; wherein, the raw material information is used to reflect the type of substance required for preparing potassium nitrate;
[0008] According to the application information, reaction information is obtained; wherein the reaction information is used to reflect the reaction state of the potassium nitrate to be prepared during the preparation process;
[0009] Processing is performed according to the raw material information and the reaction information to obtain preparation information; wherein the preparation information is used to indicate the adjustment and optimization of the preparation process of the potassium nitrate preparation equipment.
[0010] The above technical solutions in the embodiments of the present application have at least the following technical effects:
[0011] The method for preparing potassium nitrate provided by the application, by obtaining the application information for reflecting the application scenario of the potassium nitrate finished product prepared, can provide data support for the subsequent determination of the required raw material type, specification or quantity, to optimize the use of raw materials, avoid the misjudgment caused by the analysis of artificial subjective factors, help reduce the possibility of human error, and then help improve preparation efficiency. Secondly, according to the application information, raw material information is obtained, and the requirements (such as purity, particle size, etc.) of potassium nitrate in a specific application can be determined, so as to help the subsequent optimization of production technology, and then meet these needs, so as to help improve preparation efficiency. Secondly, according to the application information, reaction information is obtained, it is helpful to understand reaction conditions (such as temperature, pressure, reaction time, etc.), avoid the misjudgment caused by the operator observing and recording reaction conditions, help reduce the possibility of human error, and then help improve preparation efficiency. Then, according to the raw material information and reaction information, it is processed, and preparation information is obtained, which helps to optimize the operating parameters of each step, so as to improve preparation efficiency.
[0012] In a possible implementation manner of the first aspect, processing the raw material information and the reaction information to obtain the preparation information includes:
[0013] When the raw material information satisfies the preset raw material conditions, it is determined whether the current preparation status information is consistent with the reaction information; wherein the preset raw material conditions are used to reflect the type of substance in the actual preparation process, and the preparation status information is used to reflect the reaction state of potassium nitrate in the actual preparation process;
[0014] When it is determined that the current preparation status information is inconsistent with the reaction information, preparation information is generated.
[0015] In a possible implementation manner of the first aspect, before processing the raw material information and the reaction information to obtain the preparation information, the method further includes:
[0016] Based on the current reaction conditions and historical reaction information, the reaction possibility information of each time period within the preset time period is obtained; wherein the historical reaction information includes the generation time and reaction conditions of potassium nitrate detected in the previous reaction period, and the reaction conditions include at least one of temperature information, pressure information or humidity information;
[0017] When it is detected that the current preparation conditions meet the preset reaction conditions and the value of the reaction possibility information in the current time period is greater than the preset value, the adjustment information is generated in the current time period; wherein the adjustment information is information for indicating the adjustment of the concentration of the reaction substance;
[0018] In the case where response information corresponding to the adjustment information is not detected within the first time period, if the value of the reaction possibility information detected in the next time period is greater than a preset value and the preparation condition meets the preset reaction condition, the adjustment information is generated.
[0019] In a possible implementation manner of the first aspect, when it is detected that the current preparation condition satisfies the preset reaction condition and the value of the reaction possibility information in the current time period is greater than a preset value, generating adjustment information in the current time period includes:
[0020] When it is detected that the current preparation conditions meet the preset reaction conditions and the value of the reaction possibility information in the current time period is greater than the preset value, if no response information corresponding to the adjustment information is detected within a second time period before the current time period, the adjustment information is generated.
[0021] In a possible implementation manner of the first aspect, the potassium nitrate preparation includes a potassium nitrate preparation device and a control device, the potassium nitrate preparation device is electrically connected to the control device, and when it is detected that the current preparation condition meets the preset reaction condition and the value of the reaction possibility information in the current time period is greater than the preset value, after the adjustment information is generated in the current time period, the method further includes:
[0022] When it is detected that the current preparation conditions meet the preset reaction conditions and the value of the reaction possibility information in the current time period is greater than the preset value, if the control device obtains that the reaction substance concentration information of the potassium nitrate preparation device meets the preset concentration condition, then the control device does not respond to the adjustment information within the first time period and sends a first instruction or a second instruction to the potassium nitrate preparation device; wherein the first instruction is used to notify the potassium nitrate preparation device that the reaction substance concentration has been adjusted when the adjustment information is not responded to; and the second instruction is used to notify the potassium nitrate preparation device that the current reaction has reached the required reaction substance concentration when the reaction substance concentration in the adjustment information is not reached.
[0023] In a possible implementation manner of the first aspect, the method further includes:
[0024] When the control device obtains the reaction substance concentration information of the potassium nitrate preparation device and satisfies the preset concentration condition, the number of the potassium nitrate preparation device that does not respond to the adjustment information after sending the adjustment information is obtained;
[0025] When the quantity is greater than or equal to the preset quantity, the first instruction or the second instruction is sent to the potassium nitrate preparation device.
[0026] In a possible implementation manner of the first aspect, the method further includes:
[0027] determining whether the reaction substance concentration information of the potassium nitrate preparation device does not meet the reaction substance concentration corresponding to the second instruction;
[0028] When the current reaction substance concentration information of the potassium nitrate preparation device does not meet the reaction substance concentration corresponding to the second instruction, it is determined whether the reaction substance concentration information of the potassium nitrate preparation device meets the preset concentration condition according to the preset time span.
[0029] In a possible implementation manner of the first aspect, the method further includes:
[0030] Acquire a first preparation signal; wherein the first preparation signal carries a first tag, and the first preparation signal is used to indicate that a preparation material corresponding to the first tag is requested to be prepared in the potassium nitrate preparation device;
[0031] When the comparison tag is a preset tag and the first tag is different from the comparison tag, the first preparation signal is not responded to; wherein the comparison tag is a preset tag used to reflect that the potassium nitrate preparation equipment has selected at least one preparation material for preparation within a third time period before the first preparation signal is obtained, and the at least one preparation material does not include the preparation material corresponding to the first tag.
[0032] In a possible implementation manner of the first aspect, after acquiring the first preparation signal, the method further includes:
[0033] When the comparison tag is a preset tag and the first tag is the same as the comparison tag, respond to the first preparation signal.
[0034] In a possible implementation manner of the first aspect, the method further includes:
[0035] Acquire a second preparation signal; wherein the second preparation signal carries a second tag, and the second preparation signal is used to indicate that the preparation material corresponding to the second tag is requested to be prepared in the potassium nitrate preparation device;
[0036] When the comparison tag is not a preset tag, respond to the second preparation signal; wherein, the comparison tag is not a preset tag to reflect that the potassium nitrate preparation equipment did not select at least one preparation material for preparation within a third time period before obtaining the second preparation signal.
[0037] In a possible implementation manner of the first aspect, when the comparison tag is not a preset tag, after responding to the second preparation signal, the method further includes:
[0038] No response is given to any preparation signal except the preparation signal corresponding to the second tag within a fourth time period.
[0039] In a second aspect, an embodiment of the present application provides a potassium nitrate preparation system for implementing the potassium nitrate preparation method described in any one of the first aspects above, wherein the potassium nitrate preparation system is applied to a potassium nitrate preparation device, and the potassium nitrate preparation system comprises:
[0040] An acquisition unit, used to acquire application information of potassium nitrate; wherein the application information is used to reflect the application scenario of the prepared potassium nitrate finished product;
[0041] An analysis unit, used to obtain raw material information according to the application information; wherein, the raw material information is used to reflect the types of substances required for preparing potassium nitrate;
[0042] A calculation unit, used to obtain reaction information according to the application information; wherein the reaction information is used to reflect the reaction state of the potassium nitrate to be prepared during the preparation process;
[0043] A generation unit is used to process the raw material information and the reaction information to obtain preparation information; wherein the preparation information is used to indicate the adjustment and optimization of the preparation process of the potassium nitrate preparation equipment.
[0044] In a third aspect, an embodiment of the present application provides a potassium nitrate preparation device, comprising a potassium nitrate preparation apparatus and a control device electrically connected to the potassium nitrate preparation apparatus, wherein the control device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the potassium nitrate preparation method described in any one of the first aspects is implemented.
[0045] It can be understood that the beneficial effects of the second to third aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0047] Figure 1 1 is a schematic flow chart of a method for preparing potassium nitrate provided in one embodiment of the present application;
[0048] Figure 2It is a schematic diagram of a process for implementing analysis of whether to respond to adjustment information within a first time period in a method for preparing potassium nitrate provided in an embodiment of the present application;
[0049] Figure 3 It is a schematic diagram of a process flow of implementing whether to respond to a first preparation signal in a method for preparing potassium nitrate provided in an embodiment of the present application;
[0050] Figure 4 is a schematic diagram of the structure of a potassium nitrate preparation system provided in an embodiment of the present application;
[0051] Figure 5 It is a structural schematic diagram of a control device for a potassium nitrate preparation device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0053] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0054] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0055] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting" depending on the context. Similarly, the phrase "if it is determined" or "if the described condition or event is detected" can be interpreted as meaning "uponce determined" or "in response to determining" or "uponce the described condition or event is detected" or "in response to detecting the described condition or event" depending on the context.
[0056] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0057] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0058] In the related art, potassium nitrate is composed of potassium ions (K + ) and nitrate ions (NO3 - ) is an inorganic compound composed of saltpeter or potassium salt. Potassium nitrate is a white crystalline solid with good solubility. It is mainly used as nitrogen fertilizer and potassium fertilizer in agriculture, which helps plant growth and increases crop yields. It can also be used to make fireworks and explosives.
[0059] The traditional potassium nitrate preparation process usually relies on manual operations (such as operators observing and recording reaction conditions), which easily increases the possibility of human errors and leads to low preparation efficiency.
[0060] To solve the above problems, the present invention provides a method for preparing potassium nitrate.
[0061] In the method, by obtaining the application information for reflecting the application scenario of the prepared potassium nitrate finished product, data support can be provided for subsequent determination of required raw material types, specifications or quantities, to optimize the use of raw materials, avoid the misjudgment caused by the analysis of artificial subjective factors, help reduce the possibility of human error, and then help improve preparation efficiency. Secondly, according to the application information, raw material information is obtained, and the requirements (such as purity, particle size, etc.) of potassium nitrate in specific applications can be determined, to help subsequent optimization of production technology, and then meet these needs, so as to help improve preparation efficiency. Secondly, according to the application information, reaction information is obtained, it is helpful to understand reaction conditions (such as temperature, pressure, reaction time, etc.), avoid the misjudgment caused by the operator observing and recording reaction conditions, help reduce the possibility of human error, and then help improve preparation efficiency. Then, according to raw material information and reaction information, process, obtain preparation information, help optimize the operating parameters of each step, so as to improve preparation efficiency.
[0062] The potassium nitrate preparation method provided in the embodiment of the present application can be applied to potassium nitrate preparation equipment. In this case, the potassium nitrate preparation equipment is the executor of the potassium nitrate preparation method provided in the embodiment of the present application. The embodiment of the present application does not impose any restrictions on the specific type of potassium nitrate preparation equipment.
[0063] For example, potassium nitrate preparation may include a potassium nitrate preparation device and a control device electrically connected to the potassium nitrate preparation device. The potassium nitrate preparation device may be a reactor, a heat exchanger, a separator and the like. The control device may control the reactor, the heat exchanger, the separator and the like based on the preparation information (e.g., controlling the concentration of the substance in the reactor, controlling the heat exchanger to achieve the temperature control during the preparation process) to achieve the purpose of preparing potassium nitrate.
[0064] For example, the control device can be a mobile phone, tablet computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, desktop computer, computing device or computer connected to a wireless modem, laptop computer, handheld communication device, handheld computing device, etc.
[0065] In order to better understand the method for preparing potassium nitrate provided in the examples of the present application, the specific implementation process of the method for preparing potassium nitrate provided in the examples of the present application is exemplarily introduced below.
[0066] Figure 1 A schematic flow chart of a method for preparing potassium nitrate provided in an embodiment of the present application is shown, and the method for preparing potassium nitrate comprises:
[0067] S100, obtaining application information of potassium nitrate, wherein the application information is used to reflect the application scenario of the prepared potassium nitrate product.
[0068] It can be understood that the application information can be information that the application scenario of the prepared potassium nitrate product is agriculture, or information that the application scenario of the prepared potassium nitrate product is food industry, etc.
[0069] For example, the application scenario of the potassium nitrate finished product required by the user can be queried by consulting the system log. The files uploaded by the user (such as files of field usage) can also be analyzed to query the application scenario of the potassium nitrate finished product required by the user.
[0070] In this way, by obtaining application information that reflects the application scenarios of the prepared potassium nitrate product, data support can be provided for the subsequent determination of the required types, specifications or quantities of raw materials, so as to optimize the use of raw materials, avoid misjudgments caused by analysis of human subjective factors, and help reduce the possibility of human errors, thereby helping to improve preparation efficiency.
[0071] S200, obtaining raw material information according to the application information, wherein the raw material information is used to reflect the types of substances required for preparing potassium nitrate.
[0072] For example, the application information can be analyzed to identify the main application scenarios of potassium nitrate, such as agricultural fertilizer, food industry, chemical synthesis, etc. Different application scenarios may require different quality and purity. According to each application scenario, the required potassium nitrate properties are analyzed to obtain raw material information. For example, in agriculture, nitric acid, potassium chloride, etc. may be required, while in chemical synthesis, potassium hydroxide and nitric acid may be required.
[0073] For example, the corresponding raw materials can be matched in the database according to the application information, so as to obtain the raw material information corresponding to the application information. The database includes multiple application information and multiple raw material information, and there is a mapping relationship between the application information and the raw material information. The database can be established by the operator by inputting data.
[0074] For example, an optimization algorithm (such as linear programming, genetic algorithm, etc.) can be used to automatically derive suitable raw materials according to different requirements of application information (such as purity, reaction conditions, etc.). For example, when producing potassium nitrate, the required raw material types can be calculated according to the optimal conditions of the reaction, thereby obtaining raw material information.
[0075] With such a configuration, raw material information is obtained based on application information, and the requirements of potassium nitrate in a specific application (such as purity, particle size, etc.) can be determined to help subsequently optimize the production process to meet these requirements, thereby helping to improve preparation efficiency.
[0076] S300, obtaining reaction information according to the application information, wherein the reaction information is used to reflect the reaction state of the potassium nitrate to be prepared during the preparation process.
[0077] It can be understood that the reaction information may be information that the reaction temperature required for the preparation of the potassium nitrate to be prepared is low temperature, information that the reaction temperature required for the preparation of the potassium nitrate to be prepared is high temperature, etc.
[0078] For example, the corresponding reaction can be matched in the reaction information database according to the application information, so as to obtain the reaction information corresponding to the application information. The reaction information includes multiple application information and multiple reaction information, and there is a mapping relationship between the application information and the reaction information. The database can be established by the operator by inputting data.
[0079] For example, an optimization algorithm (such as linear programming, genetic algorithm, etc.) can be used to automatically derive appropriate reaction conditions according to different requirements of application information (such as purity, reaction conditions, etc.). For example, in chemical synthesis, more precise reaction conditions may be required, such as high temperature, strong acid, or precise reactor design. The required reaction conditions can be calculated based on the optimal conditions of the reaction, thereby obtaining reaction information.
[0080] With such a setting, reaction information is obtained based on application information, which helps to understand reaction conditions (such as temperature, pressure, reaction time, etc.), avoids misjudgment caused by operators observing and recording reaction conditions, helps reduce the possibility of human errors, and further helps to improve preparation efficiency.
[0081] S400, processing is performed according to the raw material information and the reaction information to obtain preparation information, wherein the preparation information is used to indicate the adjustment and optimization of the preparation process of the potassium nitrate preparation equipment.
[0082] It can be understood that the preparation information may be information for controlling the reaction temperature, information for adjusting the catalyst, and the like.
[0083] For example, the type of substance in the current preparation process can be detected by a sensor, and compared with the type of substance reflected in the raw material information, to determine whether it is consistent. For example, it is possible to match keywords to determine whether the type of substance in the current preparation process is consistent with the type of substance reflected in the raw material information. In the case of consistent judgment, the reaction state of potassium nitrate in the current actual preparation process is detected by a sensor, and compared with the reaction state reflected in the reaction information, to determine whether it is consistent. For example, it is possible to determine whether the reaction state of potassium nitrate in the current actual preparation process is consistent with the reaction state reflected in the reaction information by an analysis algorithm (statistical analysis algorithm, linear regression algorithm), and in the case of inconsistent judgment, it is explained that there is a problem in the reaction process, for example, if the reaction temperature is too low or too high, the reaction rate may not meet expectations, and the temperature can be optimized by adjusting the control system of the heating or cooling device. If the reaction pressure does not meet the requirements, optimization can be achieved by adjusting the reactor pressure.
[0084] With such a configuration, processing is performed based on the raw material information and the reaction information to obtain the preparation information, which helps to optimize the operating parameters of each step, thereby improving the preparation efficiency.
[0085] In a possible implementation, S400, processing the raw material information and the reaction information to obtain the preparation information includes:
[0086] S401, when the raw material information meets the preset raw material conditions, determine whether the current preparation state information is consistent with the reaction information. The preset raw material conditions are used to reflect the type of substance in the actual preparation process, and the preparation state information is used to reflect the reaction state of potassium nitrate in the actual preparation process.
[0087] It can be understood that when the raw material information meets the preset raw material conditions, it means that the type of substance in the current preparation process is consistent with the type of substance reflected in the raw material information. In order to further ensure the progress of the preparation, it can be judged whether the current preparation state meets the required preparation state, that is, whether the current preparation state information is consistent with the reaction information.
[0088] With this arrangement, when the raw material information meets the preset raw material conditions, it is determined whether the current preparation status information is consistent with the reaction information. This can eliminate reaction problems caused by misjudgment of inappropriate raw material types due to subjective factors, thereby reducing preparation risks at the source and helping to improve subsequent preparation efficiency.
[0089] S402: When it is determined that the current preparation status information is inconsistent with the reaction information, generate preparation information.
[0090] It is understood that when it is determined that the current preparation state information is inconsistent with the reaction information, it indicates that there is a problem in the reaction process. For example, if the reaction temperature is too low or too high, the reaction rate may not meet expectations. The temperature can be optimized by adjusting the control system of the heating or cooling device. If the reaction pressure does not meet the requirements, the reactor pressure can be adjusted to achieve optimization.
[0091] For example, various parameters of the preparation state (such as temperature, pressure, reactant concentration, etc.) can be continuously monitored by sensors and recorded. Real-time data is compared with reaction information to identify inconsistent specific parameters. For example, a certain range of thresholds can be set, and once the range is exceeded, it is marked as inconsistent.
[0092] With such a setting, when it is determined that the current preparation status information is inconsistent with the reaction information, the preparation information is generated, which can automatically and continuously compare the real-time data with the expected status, reduce errors caused by manual intervention, ensure that the reaction conditions meet the requirements, and thus improve the preparation efficiency.
[0093] In a possible implementation, in step S400, before processing the raw material information and the reaction information to obtain the preparation information, the potassium nitrate preparation further includes:
[0094] S410, based on the current reaction conditions and historical reaction information, obtaining reaction possibility information for each time period within a preset time period, wherein the historical reaction information includes the generation time and reaction conditions of potassium nitrate detected in the previous reaction period, and the reaction conditions include at least one of temperature information, pressure information or humidity information.
[0095] It is understood that the current reaction conditions may be the temperature conditions, pressure conditions, etc. reached by the current potassium nitrate preparation equipment. The preset duration may be one week, one month, etc. The historical reaction information may be the reaction probability of potassium nitrate in each time period obtained in the past week or month. For example, when the reaction condition of potassium nitrate is 30°, the probability of reaction within 6:00-6:30 is 0.7, and when the reaction condition is 30°, the probability of reaction within 7:00-8:00 is 0.9.
[0096] For example, a mathematical model or a machine learning model (such as regression analysis, decision tree, neural network, etc.) can be established, and historical reaction data and corresponding historical reaction possibility information can be used as training data to train the mathematical model or machine learning model to obtain a trained model.
[0097] For example, during the training process, for each historical reaction data, the machine learning model can be used to process the reaction conditions (such as temperature, pressure, humidity, etc.) in the historical reaction process in the historical reaction data to obtain the actual reaction result of the historical reaction data, and then the preset loss function can be used to calculate the training loss value according to the expected output and actual output in the historical reaction data. In an embodiment of the present application, after the training loss value is calculated, the model parameters of the machine learning model can be adjusted according to the training loss value. In an embodiment of the present application, it is assumed that in the initial state, the model parameter of the machine learning model is a1, and the training loss value is back-propagated to modify the model parameter a1 of the machine learning model to obtain the modified model parameter a2. After modifying the parameters, the next training process is continued. In this training process, the training loss value is recalculated, and the training loss value is back-propagated to modify the model parameter a2 of the machine learning model to obtain the modified model parameter a3, ..., and so on. The above process is repeated continuously, and the model parameters can be modified in each training process until the preset training conditions are met. The training conditions can be that the number of training times reaches the number threshold or the machine learning model converges. When the training conditions are met, the trained machine learning model can be obtained.
[0098] For example, the reaction process is divided into multiple time periods according to preset time intervals, for example, each time period is 30 minutes or 60 minutes long. According to the reaction conditions (such as temperature, pressure, humidity, etc.) and reaction results (such as whether potassium nitrate is generated) in the historical reaction process, a label for each time period is generated. For example, the reaction conditions on a certain day are temperature 25°C, pressure 1.0atm, and humidity 50%. If potassium nitrate is generated at a certain moment in a certain time period, the label of the time period is "true"; if it is not generated, the label is "false", and so on, the possibility of potassium nitrate reaction in each time period is calculated.
[0099] For example, the current reaction conditions (temperature, pressure, humidity) can be used as input data and input into the trained model to obtain the reaction possibility information for each time period.
[0100] With this arrangement, the reaction possibility information of each time period within the preset time period can be obtained based on the current reaction conditions and historical reaction information, and the reaction possibility information of each time period can be obtained in a timely manner to provide data support for subsequent decision-making.
[0101] S420, when it is detected that the current preparation condition meets the preset reaction condition and the value of the reaction possibility information of the current time period is greater than the preset value, generating adjustment information in the current time period, wherein the adjustment information is information for reminding to adjust the concentration of the reaction substance.
[0102] It can be understood that the preset value may be 0.8, 0.9, etc. The current preparation condition satisfies the preset reaction condition, which means that the current temperature, pressure, and humidity satisfy the preset reaction temperature, pressure, and humidity conditions.
[0103] For example, when it is detected that the current preparation conditions meet the preset reaction conditions and the value of the reaction possibility information of the current time period is greater than the preset value, it means that the possibility of potassium nitrate reaction in the current time period is high. Therefore, the concentration of the reaction substance can be adjusted to the substance concentration required by the current preparation conditions to facilitate the subsequent preparation of potassium nitrate finished products, that is, the adjustment information is generated within the current time period.
[0104] With such a setting, when it is detected that the current preparation conditions meet the preset reaction conditions and the value of the reaction possibility information of the current time period is greater than the preset value, adjustment information is generated within the current time period, which can accurately identify the reaction possibility within each time period, thereby helping to improve the production efficiency of potassium nitrate.
[0105] S430, when no response information corresponding to the adjustment information is detected within the first time period, if the value of the reaction possibility information detected in the next time period is greater than a preset value and the preparation condition meets the preset reaction condition, the adjustment information is generated.
[0106] It can be understood that the first time length may be 1 minute, 2 minutes, etc. The response information corresponding to the adjustment information may be information for adjusting the concentration of the reaction substance in the response adjustment information.
[0107] For example, if the response information corresponding to the adjustment information is not detected within the first time period, it may be that the currently required raw materials are missing or the type of the reaction material cannot meet the material concentration required by the current preparation conditions, that is, the adjustment information cannot be responded to within the first time period. Therefore, the adjustment information can be generated when it is detected that the value of the reaction possibility information of the next time period is greater than the preset value and the preparation conditions meet the preset reaction conditions. For example, if it is found at 7:00 that the currently required raw materials are missing, the adjustment information can be generated at a time when the value of the reaction possibility information is greater than the preset value and the preparation conditions meet the preset reaction conditions, such as 7:10. After that, if the response information corresponding to the adjustment information is not detected, then at 7:20, if it is detected that the value of the reaction possibility information of the next time period is greater than the preset value and the preparation conditions meet the preset reaction conditions, the adjustment information is generated again.
[0108] With such a setting, when no response information corresponding to the adjustment information is detected within the first time period, if the value of the reaction possibility information detected in the next time period is greater than the preset value and the preparation conditions meet the preset reaction conditions, the adjustment information is generated, which can flexibly respond to different preparation situations and make the entire preparation process more flexible.
[0109] In a possible implementation, S430, when no response information corresponding to the adjustment information is detected within the first time period, if the value of the reaction possibility information detected in the next time period is greater than a preset value and the preparation condition satisfies the preset reaction condition, generating the adjustment information includes:
[0110] When it is detected that the current preparation condition meets the preset reaction condition and the value of the reaction possibility information of the current time period is greater than the preset value, if no response information corresponding to the adjustment information is detected within the second time period before the current time period, the adjustment information is generated.
[0111] It is understandable that the second duration can be 1 minute, 2 minutes, 3 minutes, etc.
[0112] For example, when it is detected that the current preparation conditions meet the preset reaction conditions and the value of the reaction possibility information of the current time period is greater than the preset value, it means that the possibility of potassium nitrate reaction in the current time period is high. In order to avoid waste of resources caused by repeated response to adjustment information (such as the adjustment information has been responded to before and the adjustment information is currently generated), it can be detected whether there is response information corresponding to the adjustment information within the second time period before the current time period. If so, the adjustment information is not generated; if not, the adjustment information is generated.
[0113] With such a setting, when it is detected that the current preparation conditions meet the preset reaction conditions and the value of the reaction possibility information of the current time period is greater than the preset value, if no response information corresponding to the adjustment information is detected within the second time period before the current time period, the adjustment information is generated, which can avoid unnecessary waste of resources and time, thereby improving the preparation efficiency of the equipment.
[0114] In one possible implementation, see Figure 2 The potassium nitrate preparation includes a potassium nitrate preparation device and a control device, and the potassium nitrate preparation device is electrically connected to the control device. In step S420, when it is detected that the current preparation condition meets the preset reaction condition and the value of the reaction possibility information of the current time period is greater than the preset value, after the adjustment information is generated in the current time period, the potassium nitrate preparation method also includes:
[0115] When it is detected that the current preparation conditions meet the preset reaction conditions, and the value of the reaction possibility information of the current time period is greater than the preset value, if the control device obtains the reaction substance concentration information of the potassium nitrate preparation device to meet the preset concentration condition, then the adjustment information is not responded within the first time period, and the first instruction or the second instruction is sent to the potassium nitrate preparation device. Among them, the first instruction is used to notify the potassium nitrate preparation device that the reaction substance concentration has been adjusted when the adjustment information is not responded. The second instruction is used to notify the potassium nitrate preparation device that the current reaction has reached the required reaction substance concentration when the reaction substance concentration in the adjustment information is not reached.
[0116] It can be understood that the concentration of the reaction substances in the potassium nitrate preparation device can be detected in real time by a sensor, that is, the concentration information of the reaction substances in the potassium nitrate preparation device can be obtained.
[0117] For example, when it is detected that the current preparation conditions meet the preset reaction conditions and the value of the reaction possibility information of the current time period is greater than the preset value, it means that the possibility of potassium nitrate reaction in the current time period is high. In order to avoid waste of resources caused by invalid concentration adjustment (for example, the current reaction has reached the required reaction substance concentration), it is possible to obtain whether the reaction substance concentration information of the potassium nitrate preparation device meets the preset concentration conditions. If the control device obtains that the reaction substance concentration information of the potassium nitrate preparation device does not meet the preset concentration conditions, it responds to the adjustment information within a first time length. If the control device obtains that the reaction substance concentration information of the potassium nitrate preparation device meets the preset concentration conditions, it does not respond to the adjustment information within the first time length, and sends the first instruction or the second instruction to the potassium nitrate preparation device.
[0118] For example, after the control device obtains that the reaction substance concentration information of the potassium nitrate preparation device meets the preset concentration condition, it sends a first instruction to the potassium nitrate preparation device, i.e., notifying the potassium nitrate preparation device that the reaction substance concentration has been adjusted. In fact, the control device does not adjust the reaction substance concentration according to the adjustment information, and the current reaction substance concentration is still the original concentration.
[0119] For example, after the control device obtains that the concentration information of the reactant of the potassium nitrate preparation device meets the preset concentration condition, the second instruction is sent to the potassium nitrate preparation device, which means that the concentration of the reactant is not adjusted according to the adjustment information, and the current reaction has reached the required concentration of the reactant. It is understandable that if the control device obtains that the concentration information of the reactant of the potassium nitrate preparation device meets the preset concentration condition next time, the second instruction can be sent to the potassium nitrate preparation device again.
[0120] In this way, when it is detected that the current preparation conditions meet the preset reaction conditions and the value of the reaction possibility information of the current time period is greater than the preset value, if the control device obtains the reaction substance concentration information of the potassium nitrate preparation device and meets the preset concentration conditions, it will not respond to the adjustment information within the first time period and send the first instruction or the second instruction to the potassium nitrate preparation device. This can avoid unnecessary adjustments when the concentration of the reaction substance has reached the preset requirements. This not only saves resources, but also reduces waste caused by excessive adjustments, thereby helping to improve preparation efficiency.
[0121] In a possible implementation, the method for preparing potassium nitrate further comprises:
[0122] S431, when the control device obtains that the reaction material concentration information of the potassium nitrate preparation device meets the preset concentration condition, the control device obtains the adjustment information sent by the potassium nitrate preparation device and determines the number of non-responses to the adjustment information.
[0123] It can be understood that the number of non-response adjustment information can be 1, 2, 3, etc.
[0124] For example, when the control device obtains that the concentration information of the reactant of the potassium nitrate preparation device satisfies the preset concentration condition, the number of the potassium nitrate preparation device that is determined not to respond to the adjustment information after sending the adjustment information can be obtained by setting a counter. The number of the potassium nitrate preparation device that is determined not to respond to the adjustment information after sending the adjustment information can also be obtained by establishing a statistical function. For example, after the potassium nitrate preparation device sends the adjustment information, if it is determined not to respond to the adjustment information, the number is increased by 1, and so on, to obtain the number of the potassium nitrate preparation device that is determined not to respond to the adjustment information after sending the adjustment information.
[0125] With such a configuration, when the control device obtains that the reaction material concentration information of the potassium nitrate preparation device meets the preset concentration condition, the control device determines the number of unresponsive adjustment information after obtaining the adjustment information sent by the potassium nitrate preparation device. The number of adjustment information that does not require response within a certain period of time can be counted to provide data support for subsequent decision-making.
[0126] S432: When the quantity is greater than or equal to the preset quantity, send the first instruction or the second instruction to the potassium nitrate preparation device.
[0127] It is understandable that the preset number may be 10, 11, etc.
[0128] For example, when the current concentration of the reactant is 30%, when adjustment information is received (such as adjusting the concentration of the reactant to 35%), it is determined that the concentration information of the reactant of the potassium nitrate preparation device obtained during the time period from the last time the concentration of the reactant was adjusted to the current time satisfies the preset concentration condition. If it is determined that the number of non-responses to the adjustment information is greater than or equal to the preset number, the concentration of the reactant is not adjusted, and a first instruction is directly sent to the potassium nitrate preparation device to notify the potassium nitrate preparation device that the concentration of the reactant has been adjusted. The current control device adjusts the concentration of the reactant from 30% to 35%. In fact, the control device does not adjust the concentration of the reactant from 30% to 35%, and the concentration of the reactant currently controlled by the control device is still 30%.
[0129] For example, the control device determines that it does not respond to the adjustment information and sends a first instruction to the potassium nitrate preparation device. If the adjustment information is received again and it is determined that the concentration information of the reactant of the potassium nitrate preparation device meets the preset concentration condition, the concentration of the reactant is still not adjusted, and the first instruction is continued to be sent to the potassium nitrate preparation device. It is understandable that, without adjusting the concentration of the reactant, the instructions sent by the control device at different times may be different. For example, without adjusting the concentration of the reactant, the first instruction sent by the control device 1 to the potassium nitrate preparation device 1 for the first time may be that the concentration of the reactant has been adjusted to 35%, and the first instruction sent by the control device 1 to the potassium nitrate preparation device 1 for the second time may be that the concentration of the reactant has been adjusted to 38%, wherein the first sending time is earlier than the second sending time. That is to say, without adjusting the concentration of the reactant, the multiple instructions sent by the control device to the potassium nitrate preparation device may be different. For example, the adjusted concentration value in the first instruction sent later can be greater than the adjusted concentration value in the first instruction sent earlier, thereby avoiding constantly sending the same instruction to the potassium nitrate preparation device (for example, the first instruction sent for the first time is that the concentration of the reactant has been adjusted to 35%, and the first instruction sent for the second time is also that the concentration of the reactant has been adjusted to 35%), which causes the potassium nitrate preparation device to be unable to perceive the control intention of the control device.
[0130] With such a configuration, when the quantity is greater than or equal to the preset quantity, the first instruction or the second instruction is sent to the potassium nitrate preparation device, and the instruction content can be continuously updated, thereby enhancing the interaction between devices, optimizing information transmission, and improving the flexibility of the reaction process. At the same time, it can also avoid unnecessary adjustments when the concentration of the reactants has reached the preset requirements, which not only saves resources, but also reduces waste caused by excessive adjustments, thereby helping to improve preparation efficiency.
[0131] In a possible implementation, the method for preparing potassium nitrate further comprises:
[0132] S433, determining whether the concentration information of the reactant of the potassium nitrate preparation device does not satisfy the concentration of the reactant corresponding to the second instruction.
[0133] For example, the concentration information of the reactant of the potassium nitrate preparation device can be compared with the concentration of the reactant corresponding to the second instruction to determine whether the concentration information of the reactant of the potassium nitrate preparation device does not meet the concentration of the reactant corresponding to the second instruction. For example, if the target concentration in the second instruction is 35%, and the concentration information of the reactant of the current potassium nitrate preparation device is 30%, it is determined that the concentration information of the reactant of the potassium nitrate preparation device does not meet the concentration of the reactant corresponding to the second instruction; otherwise, it is determined that it meets.
[0134] With such a setting, it is determined whether the reaction substance concentration information of the potassium nitrate preparation device does not meet the reaction substance concentration corresponding to the second instruction, and whether the concentration of the reaction substance meets the requirement, thereby providing data support for subsequent decision-making.
[0135] S434, when the current concentration information of the reactant of the potassium nitrate preparation device does not satisfy the concentration of the reactant corresponding to the second instruction, determine whether the concentration information of the reactant of the potassium nitrate preparation device satisfies a preset concentration condition according to a preset time span.
[0136] It is understandable that the preset time span may be 10 minutes, 15 minutes, 20 minutes, etc.
[0137] For example, when the reaction substance concentration information of the current potassium nitrate preparation device does not meet the reaction substance concentration corresponding to the second instruction, it means that the reaction substance concentration may not be adjusted according to the adjustment information. In order to avoid invalid adjustments when the reaction substance concentration information of the potassium nitrate preparation device meets the preset concentration condition, it can be determined according to a preset time span (such as every 10 minutes) whether the reaction substance concentration information of the potassium nitrate preparation device meets the preset concentration condition. If it is determined that the reaction substance concentration information of the potassium nitrate preparation device meets the preset concentration condition, no response is made; if it is determined that the reaction substance concentration information of the potassium nitrate preparation device does not meet the preset concentration condition, the reaction substance concentration is adjusted.
[0138] With such arrangement, when the reaction substance concentration information of the current potassium nitrate preparation device does not meet the reaction substance concentration corresponding to the second instruction, determining whether the reaction substance concentration information of the potassium nitrate preparation device meets the preset concentration condition according to the preset time span can reduce the frequency of manual intervention, thereby avoiding misjudgment caused by subjective factors of the operator and helping to improve preparation efficiency.
[0139] In one possible implementation, see Figure 3 , the method for preparing potassium nitrate also includes:
[0140] S500: Obtain a first preparation signal, wherein the first preparation signal carries a first tag, and the first preparation signal is used to indicate that a preparation material corresponding to the first tag is requested to be prepared in a potassium nitrate preparation device.
[0141] It can be understood that the first preparation signal can be obtained by querying the preparation log, or by setting a listener.
[0142] With such arrangement, by acquiring the first preparation signal, a request for preparing materials can be responded to in a timely manner, thereby improving the flexibility and effectiveness of the entire preparation process.
[0143] In a possible implementation, after obtaining the first preparation signal in step S500, the method for preparing potassium nitrate further includes:
[0144] When the comparison tag is a preset tag and the first tag is the same as the comparison tag, respond to the first preparation signal.
[0145] It can be understood that when the comparison tag is a preset tag and the first tag is the same as the comparison tag, it means that the potassium nitrate preparation equipment has selected preparation material b for preparation within the third time period before obtaining the first preparation signal, and in the process of the potassium nitrate preparation equipment processing the preparation material b, the preparation signal corresponding to the preparation material b continues to be obtained. Therefore, in this scenario, even in response to the first preparation signal, the problem of the following scenario 1 will not occur.
[0146] With such a configuration, when the comparison tag is a preset tag and the first tag is the same as the comparison tag, in response to the first preparation signal, it is possible to avoid the problem of interrupting the current operation of the potassium nitrate preparation equipment due to the appearance of highly important materials in the preparation process, thereby causing confusion in the preparation process.
[0147] S600, when the comparison tag is a preset tag and the first tag is different from the comparison tag, do not respond to the first preparation signal. The comparison tag is a preset tag to reflect that the potassium nitrate preparation device has selected at least one preparation material for preparation within a third time period before the first preparation signal is obtained, and the at least one preparation material does not include the preparation material corresponding to the first tag.
[0148] It is understandable that the third duration may be 5 seconds, 10 seconds, 15 seconds, etc.
[0149] For example, preparation material a and preparation material b can both be prepared in the potassium nitrate preparation equipment, but preparation material a and preparation material b are materials for preparing potassium nitrate in different application scenarios. In scenario 1, the preparation rule is that the potassium nitrate preparation equipment will use the preparation material corresponding to the preparation signal it receives first for preparation. If the preparation material is not the most important material (that is, it is not preparation material a), preparation material a can occupy the preparation priority of the potassium nitrate preparation equipment, and there may be a problem that the prepared potassium nitrate is not suitable for the potassium nitrate in the application scenario expected by the user.
[0150] For example, the specific situation of scenario 1 is as follows: when the potassium nitrate preparation equipment is processing the preparation signals corresponding to preparation material a and preparation material b, the potassium nitrate preparation may process the preparation signal corresponding to preparation material b faster, and the potassium nitrate preparation equipment may process preparation material b first; in the process of the potassium nitrate preparation equipment processing preparation material b, the preparation signal corresponding to preparation material a continues to be obtained within the third time length (such as 5 seconds, 10 seconds, 15 seconds, etc.). Since the importance of the preparation signal corresponding to preparation material a is higher than that of preparation material b, the potassium nitrate preparation equipment will stop processing preparation material b and respond to the preparation signal corresponding to preparation material a. At this time, the last time the potassium nitrate preparation equipment processed the preparation signal corresponding to preparation material b, the operator originally wanted to continue processing preparation material b, then in the case of scenario 1, preparation material a can seize the preparation resources of the potassium nitrate preparation equipment for preparation material b.
[0151] It can be understood that when the comparison tag is a preset tag and the first tag is different from the comparison tag, it means that the problem described in the above scenario 1 has occurred, that is, the potassium nitrate preparation equipment has selected preparation material b for preparation within the third time period before obtaining the first preparation signal, and in the process of the potassium nitrate preparation equipment processing preparation material b, it continues to obtain the preparation signal corresponding to preparation material a. In order to avoid the problem in the above scenario 1, it is not necessary to respond to the first preparation signal.
[0152] With such a configuration, when the comparison tag is a preset tag and the first tag is different from the comparison tag, the first preparation signal is not responded to, thereby avoiding the problem that the current operation of the potassium nitrate preparation equipment may be interrupted due to the appearance of highly important materials in the preparation process, resulting in confusion in the preparation process.
[0153] In a possible implementation, the method for preparing potassium nitrate further comprises:
[0154] S700, obtaining a second preparation signal, wherein the second preparation signal carries a second tag, and the second preparation signal is used to indicate that the preparation material corresponding to the second tag is requested to be prepared in the potassium nitrate preparation device.
[0155] It can be understood that the second preparation signal can be obtained by querying the preparation log, or by setting a listener.
[0156] With such arrangement, by acquiring the second preparation signal, a request for preparing materials can be responded to in a timely manner, thereby improving the flexibility and effectiveness of the entire preparation process.
[0157] S800, responding to a second preparation signal when the comparison tag is not a preset tag, wherein the comparison tag is not a preset tag to reflect that the potassium nitrate preparation device has not selected at least one preparation material for preparation within a third time period before acquiring the second preparation signal.
[0158] It can be understood that when the comparison tag is not a preset tag, it means that the potassium nitrate preparation equipment did not select preparation material a or preparation material b for preparation within the third time period before obtaining the second preparation signal. At this time, in response to the second preparation signal, the problem described in the above scenario 1 will not occur.
[0159] With such a configuration, when the comparison tag is not a preset tag, in response to the second preparation signal, the preparation strategy can be quickly adjusted according to the real-time situation, thereby improving the flexibility of the preparation process to adapt to different preparation requirements and business changes, thereby helping to improve preparation efficiency.
[0160] In a possible implementation, in step S800, when the comparison tag is not a preset tag, after responding to the second preparation signal, the method for preparing potassium nitrate further includes:
[0161] No response is given to any preparation signal except the preparation signal corresponding to the second tag within a fourth time period.
[0162] It can be understood that the fourth duration can be set according to actual conditions or the duration set by the user. For example, the fourth duration can be 30 minutes, 40 minutes, 50 minutes, etc.
[0163] For example, when the comparison tag is not a preset tag, after responding to the second preparation signal, it indicates that the potassium nitrate preparation device has selected at least one preparation material for preparation. At this time, the comparison tag can be adjusted from the comparison tag not being a preset tag to the comparison tag being a preset tag. Similarly, in order to avoid the problem of scenario 1, the second tag can be compared with the tag of any other preparation signal. When the tag of any preparation signal is different from the second tag, the preparation signal of the tag different from the second tag is not responded.
[0164] By configuring in this way, no preparation signal other than the preparation signal corresponding to the second tag will be responded to within the fourth time period, thereby avoiding the problem that the current operation of the potassium nitrate preparation equipment may be interrupted due to the appearance of highly important materials during the preparation process, thereby causing confusion in the preparation process.
[0165] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0166] Corresponding to the potassium nitrate preparation method described in the above embodiment, the embodiment of the present application also provides a potassium nitrate preparation system, and each unit of the system can implement each step of the potassium nitrate preparation method. Figure 4 A structural block diagram of a potassium nitrate preparation system provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0167] Reference Figure 4 , the potassium nitrate preparation system includes:
[0168] The acquisition unit is used to acquire application information of potassium nitrate, wherein the application information is used to reflect the application scenario of the prepared potassium nitrate product.
[0169] The analysis unit is used to obtain raw material information according to the application information, wherein the raw material information is used to reflect the types of substances required for preparing potassium nitrate.
[0170] The calculation unit is used to obtain reaction information according to the application information, wherein the reaction information is used to reflect the reaction state of the potassium nitrate to be prepared during the preparation process.
[0171] The generating unit is used to process the raw material information and the reaction information to obtain the preparation information, wherein the preparation information is used to indicate the adjustment and optimization of the preparation process of the potassium nitrate preparation equipment.
[0172] It should be noted that the information interaction, execution process, etc. between the above-mentioned systems / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0173] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units is used as an example for illustration. In practical applications, the above-mentioned functions can be assigned to different functional units as needed, that is, the internal structure of the system can be divided into different functional units to complete all or part of the functions described above. The functional units in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0174] The present application also provides a potassium nitrate preparation device, Figure 5 This is a schematic diagram of the structure of a control device for a potassium nitrate preparation device provided in one embodiment of the present application. Figure 5 As shown, the control device 6 of this embodiment includes: at least one processor 60 ( Figure 5 Only one is shown), at least one memory 61 ( Figure 5 Only one is shown in the figure) and a computer program 62 stored in the at least one memory 61 and executable on the at least one processor 60. When the processor 60 executes the computer program 62, the control device 6 implements the steps in any of the above-mentioned potassium nitrate preparation method embodiments, or the control device 6 implements the functions of each unit in the above-mentioned device embodiments.
[0175] Exemplarily, the computer program 62 may be divided into one or more units, which are stored in the memory 61 and executed by the processor 60 to complete the present application. The one or more units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 62 in the control device 6.
[0176] The potassium nitrate preparation may include a potassium nitrate preparation device and a control device 6 electrically connected to the potassium nitrate preparation device. The potassium nitrate preparation device may be a reactor, a heat exchanger, a separator and other devices. The control device 6 may control the reactor, the heat exchanger, the separator and other devices based on the preparation information (such as controlling the concentration of the substance in the reactor, controlling the heat exchanger to achieve temperature control during the preparation process) to achieve the purpose of preparing potassium nitrate. The control device 6 may include, but is not limited to, a processor 60 and a memory 61. Those skilled in the art may understand that Figure 5 It is only an example of the control device 6 and does not constitute a limitation on the control device 6. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, buses, etc.
[0177] The processor 60 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0178] In some embodiments, the memory 61 may be an internal storage unit of the control device 6, such as a hard disk or memory of the control device 6. In other embodiments, the memory 61 may also be an external storage device of the control device 6, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the control device 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the control device 6. The memory 61 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 61 may also be used to temporarily store data that has been output or is to be output.
[0179] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0180] An embodiment of the present application provides a computer program product. When the computer program product is run on a potassium nitrate preparation device, the potassium nitrate preparation device implements the steps in any of the above-mentioned method embodiments.
[0181] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying the computer program code to the potassium nitrate preparation equipment, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk.
[0182] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0183] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0184] In the embodiments provided in the present application, it should be understood that the disclosed potassium nitrate preparation equipment, potassium nitrate preparation system and potassium nitrate preparation method can be implemented in other ways. For example, the potassium nitrate preparation equipment and potassium nitrate preparation system embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0185] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0186] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for preparing potassium nitrate, characterized in that: Applied to potassium nitrate preparation equipment, the method comprises: Obtaining application information of potassium nitrate; wherein the application information is used to reflect the application scenario of the prepared potassium nitrate finished product; According to the application information, raw material information is obtained; wherein, the raw material information is used to reflect the type of substance required for preparing potassium nitrate; According to the application information, reaction information is obtained; wherein the reaction information is used to reflect the reaction state of the potassium nitrate to be prepared during the preparation process; Processing is performed according to the raw material information and the reaction information to obtain preparation information; wherein the preparation information is used to indicate the adjustment and optimization of the preparation process of the potassium nitrate preparation equipment.
2. The method for preparing potassium nitrate according to claim 1, wherein Processing is performed according to the raw material information and the reaction information to obtain preparation information, including: When the raw material information satisfies the preset raw material conditions, it is determined whether the current preparation status information is consistent with the reaction information; wherein the preset raw material conditions are used to reflect the type of substance in the actual preparation process, and the preparation status information is used to reflect the reaction state of potassium nitrate in the actual preparation process; When it is determined that the current preparation status information is inconsistent with the reaction information, preparation information is generated.
3. The method for preparing potassium nitrate according to claim 1, wherein Before processing the raw material information and the reaction information to obtain the preparation information, the method further includes: Based on the current reaction conditions and historical reaction information, the reaction possibility information of each time period within the preset time period is obtained; wherein the historical reaction information includes the generation time and reaction conditions of potassium nitrate detected in the previous reaction period, and the reaction conditions include at least one of temperature information, pressure information or humidity information; When it is detected that the current preparation conditions meet the preset reaction conditions and the value of the reaction possibility information in the current time period is greater than the preset value, the adjustment information is generated in the current time period; wherein the adjustment information is information for indicating the adjustment of the concentration of the reaction substance; In the case where response information corresponding to the adjustment information is not detected within the first time period, if the value of the reaction possibility information detected in the next time period is greater than a preset value and the preparation condition meets the preset reaction condition, the adjustment information is generated.
4. The method for preparing potassium nitrate according to claim 3, wherein When it is detected that the current preparation condition meets the preset reaction condition and the value of the reaction possibility information in the current time period is greater than the preset value, the adjustment information is generated in the current time period, including: When it is detected that the current preparation conditions meet the preset reaction conditions and the value of the reaction possibility information in the current time period is greater than the preset value, if no response information corresponding to the adjustment information is detected within a second time period before the current time period, the adjustment information is generated.
5. The method for preparing potassium nitrate according to claim 3, wherein: The potassium nitrate preparation comprises a potassium nitrate preparation device and a control device, wherein the potassium nitrate preparation device is electrically connected to the control device. When it is detected that the current preparation condition satisfies the preset reaction condition and the value of the reaction possibility information in the current time period is greater than the preset value, after the adjustment information is generated in the current time period, the method further comprises: When it is detected that the current preparation conditions meet the preset reaction conditions and the value of the reaction possibility information in the current time period is greater than the preset value, if the control device obtains that the reaction substance concentration information of the potassium nitrate preparation device meets the preset concentration condition, then the control device does not respond to the adjustment information within the first time period and sends a first instruction or a second instruction to the potassium nitrate preparation device; wherein the first instruction is used to notify the potassium nitrate preparation device that the reaction substance concentration has been adjusted when the adjustment information is not responded to; and the second instruction is used to notify the potassium nitrate preparation device that the current reaction has reached the required reaction substance concentration when the reaction substance concentration in the adjustment information is not reached.
6. The method for preparing potassium nitrate according to claim 5, wherein The method further comprises: When the control device obtains the reaction substance concentration information of the potassium nitrate preparation device and satisfies the preset concentration condition, the number of the potassium nitrate preparation device that does not respond to the adjustment information after sending the adjustment information is obtained; When the quantity is greater than or equal to the preset quantity, the first instruction or the second instruction is sent to the potassium nitrate preparation device.
7. The method for preparing potassium nitrate according to claim 5, wherein The method further comprises: determining whether the reaction substance concentration information of the potassium nitrate preparation device does not meet the reaction substance concentration corresponding to the second instruction; When the current reaction substance concentration information of the potassium nitrate preparation device does not meet the reaction substance concentration corresponding to the second instruction, it is determined whether the reaction substance concentration information of the potassium nitrate preparation device meets the preset concentration condition according to the preset time span.
8. The method for preparing potassium nitrate according to claim 1, wherein The method further comprises: Acquire a first preparation signal; wherein the first preparation signal carries a first tag, and the first preparation signal is used to indicate that a preparation material corresponding to the first tag is requested to be prepared in the potassium nitrate preparation device; When the comparison tag is a preset tag and the first tag is different from the comparison tag, the first preparation signal is not responded to; wherein the comparison tag is a preset tag used to reflect that the potassium nitrate preparation equipment has selected at least one preparation material for preparation within a third time period before the first preparation signal is obtained, and the at least one preparation material does not include the preparation material corresponding to the first tag.
9. The method for preparing potassium nitrate according to claim 8, wherein After acquiring the first preparation signal, the method further includes: When the comparison tag is a preset tag and the first tag is the same as the comparison tag, respond to the first preparation signal.
10. The method for preparing potassium nitrate according to claim 8, wherein The method further comprises: Acquire a second preparation signal; wherein the second preparation signal carries a second tag, and the second preparation signal is used to indicate that the preparation material corresponding to the second tag is requested to be prepared in the potassium nitrate preparation device; In the case where the comparison tag is not a preset tag, responding to the second preparation signal; wherein the comparison tag is not a preset tag for reflecting that the potassium nitrate preparation device did not select at least one preparation material for preparation within a third time period before acquiring the second preparation signal; When the comparison tag is not a preset tag, after responding to the second preparation signal, the method further includes: No response is given to any preparation signal except the preparation signal corresponding to the second tag within a fourth time period.
Citation Information
Cited By
Food and beverage sterile water treatment method and system
CN120058022A