Crystallizing tank PH value control method and device, electronic equipment and storage medium
By combining the technical means of PH value detection, PID control and duty cycle module in the crystal tank PH value control device, the problem of low efficiency of crystal tank PH value control in the prior art is solved, and efficient and precise control of the crystal tank PH value is achieved.
Patent Information
- Application Number
- CN202411891524.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-04-29
AI Technical Summary
When using crystallization tanks during the preparation of the agent, it is difficult to efficiently meet the process requirements of the actual crystallization tank PH value, resulting in low production efficiency and difficult to accurately control.
The crystal tank PH value control device including a PH value detection module, a PH value control module, a single-loop PID control module and a duty cycle module is adopted to realize automatic control of the PH value by real-time detection of the PH value, calculating the PH standard value, adjusting the output analog quantity and converting it into the valve switch quantity.
Real-time and precise control of the pH value of the crystal tank is achieved, production efficiency is improved, and it can quickly respond to changes in pH value and meet actual process requirements.
Smart Images

Figure CN119902576A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of chemical preparation, and in particular to a method, device, electronic equipment and storage medium for controlling pH value of a crystallization tank. Background Art
[0002] In the process of preparing medicines, crystallizers are often used to separate and purify compounds from solutions. In the production process using crystallizers, the pH adjustment process is usually used. The adjustment of pH is a crucial link. By adjusting the pH to a specific range, the crystallization of organic matter can be promoted, which directly affects the efficiency and quality of crystallization. The common method of adjusting pH in a crystallizer is to manually detect the pH value of the crystallizer, manually operate the acid addition switch valve, and control the amount of acid added to achieve the purpose of adjusting the pH value. Its production efficiency is low, and it is difficult to meet the process requirements of the actual pH value of the crystallizer. Summary of the invention
[0003] The problem solved by the present invention is how to efficiently meet the process requirements of the actual pH value of the crystallization tank.
[0004] In order to solve the above problems, the present invention provides a crystallization tank pH value control method, device, electronic equipment and storage medium.
[0005] In a first aspect, the present invention provides a crystallization tank pH value control method, based on a crystallization tank pH value control device, the crystallization tank pH value control device includes a pH value detection module, a pH set value control module, a single-loop PID control module and a duty cycle module; the crystallization tank pH value control method includes:
[0006] The pH value of the crystallization tank is detected in real time by the pH value detection module to obtain the current pH detection value;
[0007] Inputting the current PH detection value into the PH set value control module to obtain the PH standard value;
[0008] Inputting the current PH detection value and the PH standard value into the single-loop PID control module to obtain an output analog value;
[0009] The output analog quantity is converted into a valve switch quantity by the duty cycle module, and the step of obtaining the current pH detection value by real-time detecting the pH value of the crystallizer by the pH value detection module is returned, and the above steps are repeated until the pH value of the crystallizer reaches a preset pH target value, wherein the valve switch quantity is used to represent the proportional control of the acid addition switch valve of the crystallizer within a preset valve opening cycle.
[0010] Optionally, inputting the current PH detection value into the PH set value control module to obtain a PH standard value includes:
[0011] Obtain the pH range setting value and pH control time setting value through the crystallization tank process requirements;
[0012] Obtain the pH standard value according to the current pH detection value, the pH range setting value and the pH control time setting value;
[0013] Wherein, the pH standard value is:
[0014] ΔPH=(PH-PH ΔSV ) / TIME,
[0015] Wherein, ΔPH is the PH standard value, PH is the current PH detection value, PH ΔSV is the pH range setting value, and TIME is the pH control time setting value.
[0016] Optionally, obtaining a pH range setting value and a pH control time setting value according to the crystallization tank process requirements includes:
[0017] Obtaining a first PH setting value, a second PH setting value and the PH control time setting value through the crystallization tank process requirements, wherein the first PH setting value is greater than the second PH setting value;
[0018] Obtaining the pH range setting value according to the difference between the first pH setting value and the second pH setting value;
[0019] Wherein, the pH range setting value is:
[0020] PH ΔSV =PH ΔSV1 -PH ΔSV2 ,
[0021] Among them, PH ΔSV1 is the first pH setting value, PH ΔSV2 is the second pH setting value.
[0022] Optionally, the step of inputting the current PH detection value and the PH standard value into the single-loop PID control module to obtain an output analog value includes:
[0023] Get PID control parameters;
[0024] According to the PID control parameters, the original PID control model is updated to obtain a target PID control model;
[0025] Obtaining an adjustment deviation value according to the current pH detection value and the pH standard value;
[0026] The output analog quantity is obtained by adjusting the deviation value and the target PID control model.
[0027] Optionally, converting the output analog quantity into a valve switching quantity by the duty cycle module includes:
[0028] Obtaining the preset valve opening cycle;
[0029] The processed output analog quantity is obtained by normalizing the output analog quantity;
[0030] The valve switching value is obtained according to the processed output analog value and the preset valve opening cycle.
[0031] Optionally, obtaining the valve switching value according to the processed output analog value and the preset valve opening cycle includes:
[0032] Obtaining a corresponding valve opening time and valve closing time according to the preset valve opening cycle;
[0033] The valve switching value is obtained according to the processed output analog quantity, the corresponding valve opening time and the valve closing time.
[0034] Optionally, the crystallization tank pH value control device further includes an acid adding valve control module; after the output analog quantity is converted into a valve switching quantity by the duty cycle module, it further includes:
[0035] The valve switching value sent by the duty cycle module is received through the acid addition valve control module, and the acid addition switch valve of the crystallization tank is adjusted according to the valve switching value.
[0036] In a second aspect, the present invention provides a crystallization tank pH value control device, characterized in that the crystallization tank pH value control method described in the first aspect is implemented, and the crystallization tank pH value control device includes a pH value detection module, a pH set value control module, a single-loop PID control module and a duty cycle module;
[0037] The pH value detection module is used to detect the pH value of the crystallization tank in real time to obtain the current pH detection value;
[0038] The pH set value control module is used to obtain the pH standard value through the current pH detection value;
[0039] The single-loop PID control module is used to obtain an output analog value through the current PH detection value and the PH standard value;
[0040] The duty cycle module is used to convert the output analog quantity into a valve switching quantity.
[0041] In a third aspect, an electronic device includes a memory and a processor;
[0042] The memory is used to store computer programs;
[0043] The processor is used to implement the crystallization tank pH value control method as described in the first aspect when executing the computer program.
[0044] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the crystallization tank pH value control method as described in the first aspect is implemented.
[0045] The beneficial effects of the crystallization tank pH control method, device, electronic device and storage medium of the present invention are: the pH value of the crystallization tank is detected in real time by the pH value detection module, the pH value change can be reflected in real time, and a quick response can be made, which is convenient for precise control of the pH. The current pH detection value is input into the pH set value control module to obtain the pH standard value, and the output analog quantity is obtained according to the deviation between the current pH detection value and the pH standard value by the single-loop PID control module, thereby improving production efficiency. In view of the situation where the output of the single-loop PID is an analog quantity and the final actuator is a switch valve that requires switch quantity control, the output analog quantity is converted into a valve switch quantity by the duty cycle module to realize automatic control of the pH value, thereby efficiently meeting the process requirements of the actual pH value of the crystallization tank. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 A schematic flow chart of a method for controlling pH value of a crystallization tank according to an embodiment of the present invention;
[0047] Figure 2 A schematic diagram of a pH standard value according to an embodiment of the present invention;
[0048] Figure 3 A schematic diagram of a pH value control device for a crystallization tank according to an embodiment of the present invention;
[0049] Figure 4 The figure is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0050] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be interpreted as being limited to the embodiments described herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are only for exemplary purposes and are not intended to limit the scope of protection of the present invention.
[0051] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.
[0052] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to"; the term "based on" means "based at least in part on"; the term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments"; the term "optionally" means "optional embodiments". The relevant definitions of other terms will be given in the following description. It should be noted that the concepts of "first", "second", etc. mentioned in the present invention are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0053] It should be noted that the modifications of "one" and "plurality" mentioned in the present invention are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0054] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only used for illustrative purposes, and are not used to limit the scope of these messages or information.
[0055] In the related art, the crystallizer is fed in an empty state. After the feeding is completed, the pH value gradually rises to a steady state, forming a flat straight line, which is the pH value of the current material. After a period of standing, a step of acid addition is performed (hydrochloric acid is added), that is, the pH value curve gradually decreases. After it drops to a certain position, the pH value of the crystallizer gradually and slowly rises due to the sufficient mixing and reaction of the material and the hydrochloric acid. At this time, the pH value of the crystallizer is manually detected and the acid addition switch valve is manually operated to perform a two-step acid addition.
[0056] In view of the problems existing in the above-mentioned related technologies, this embodiment provides a crystallization tank pH value control method, device, electronic device and storage medium.
[0057] like Figure 1 As shown, a crystallization tank pH value control method provided by an embodiment of the present invention is based on a crystallization tank pH value control device, wherein the crystallization tank pH value control device includes a pH value detection module, a pH set value control module, a single-loop PID control module and a duty cycle module; the crystallization tank pH value control method includes:
[0058] Step 110, the pH value of the crystallization tank is detected in real time by the pH value detection module to obtain the current pH detection value.
[0059] Specifically, the pH value of the crystallization tank is detected in real time by a pH sensor to obtain the current pH detection value. The pH sensor is a device used to measure the acidity and alkalinity of aqueous solutions. It works based on electrochemical principles. The most common type is a glass membrane electrode (also called a hydrogen ion selective electrode). This type of sensor consists of a glass membrane that is sensitive to hydrogen ion concentration. When it contacts the solution being tested, it generates a small voltage signal proportional to the pH value.
[0060] Step 120: input the current pH detection value into the pH set value control module to obtain a pH standard value.
[0061] Specifically, a PH set value control module was compiled through a DCS control system to obtain a PH standard value. A DCS control system, namely a distributed control system (Distributed Control System), is based on a microprocessor and adopts an instrument control system with decentralized control functions, centralized display operations, and a combination of separate autonomy and comprehensive coordination design principles.
[0062] Step 130: input the current pH detection value and the pH standard value into the single-loop PID control module to obtain an output analog value.
[0063] Specifically, the PID control module is a component widely used in automatic control systems. It adjusts the system output based on three control items: proportional, integral, and derivative to achieve the desired set value. The PID controller calculates the error between the current measurement value and the target set value and adjusts the control signal according to this error, thereby achieving precise control of the pH value.
[0064] Step 140, converting the output analog quantity into a valve switch quantity through the duty cycle module, returning to the step of obtaining the current pH detection value by real-time detecting the pH value of the crystallization tank through the pH value detection module, repeating the above steps until the pH value of the crystallization tank reaches a preset pH target value, wherein the valve switch quantity is used to represent the proportional control of the acid addition switch valve of the crystallization tank within a preset valve opening cycle.
[0065] Specifically, the duty cycle module will mainly convert the analog quantity into a switch quantity, complete the output data type conversion, and finally realize the precise adjustment of the pH value of the crystallizer. The preset pH target value refers to the preset time of the crystallizer according to the process requirements.
[0066] In this embodiment, the pH value of the crystallizer is detected in real time by the pH value detection module, which can reflect the pH value change in real time, can react quickly, and facilitate the precise control of pH. The current pH detection value is input into the pH set value control module to obtain the pH standard value, and the output analog quantity is obtained according to the deviation between the current pH detection value and the pH standard value through the single-loop PID control module, thereby improving production efficiency. In view of the situation where the output of the single-loop PID is an analog quantity and the final actuator is a switch valve that requires switch quantity control, the output analog quantity is converted into a valve switch quantity through the duty cycle module to realize automatic control of the pH value, thereby efficiently meeting the process requirements of the actual pH value of the crystallizer.
[0067] Optionally, inputting the current PH detection value into the PH set value control module to obtain a PH standard value includes:
[0068] Obtain the pH range setting value and pH control time setting value through the crystallization tank process requirements;
[0069] Obtain the pH standard value according to the current pH detection value, the pH range setting value and the pH control time setting value;
[0070] Wherein, the pH standard value is:
[0071] ΔPH=(PH-PH ΔSV ) / TIME,
[0072] Wherein, ΔPH is the PH standard value, PH is the current PH detection value, PH ΔSV is the pH range setting value, and TIME is the pH control time setting value.
[0073] Optionally, obtaining a pH range setting value and a pH control time setting value according to the crystallization tank process requirements includes:
[0074] Obtaining a first PH setting value, a second PH setting value and the PH control time setting value through the crystallization tank process requirements, wherein the first PH setting value is greater than the second PH setting value;
[0075] Obtaining the pH range setting value according to the difference between the first pH setting value and the second pH setting value;
[0076] Wherein, the pH range setting value is:
[0077] PH ΔSV =PH ΔSV1 -PH ΔSV2 ,
[0078] Among them, PH ΔSV1 is the first pH setting value, PHΔSV 2 is the second pH setting value.
[0079] Specifically, combined Figure 2 As shown, PH ΔSV1 is the pH standard value, PH ΔSV1 is the first PH setting value, and TIME is the PH control time setting value. The process requirement for adjusting the PH value of the crystallization tank in the second step of acid addition is not a fixed PH value, but a line segment that slowly decreases over time. A PH set value control module is compiled through the DCS control system to obtain the standard PH value corresponding to the reaction time, which is convenient for subsequent operations. When the current PH detection value is equal to the first PH setting value, the current PH detection value is input into the PH set value control module to obtain the PH standard value. The second PH setting value can be used as a preset PH target value, that is, the PH control end condition.
[0080] Optionally, the step of inputting the current PH detection value and the PH standard value into the single-loop PID control module to obtain an output analog value includes:
[0081] Get PID control parameters;
[0082] According to the PID control parameters, the original PID control model is updated to obtain a target PID control model;
[0083] Obtaining an adjustment deviation value according to the current pH detection value and the pH standard value;
[0084] The output analog quantity is obtained by adjusting the deviation value and the target PID control model.
[0085] Optionally, converting the output analog quantity into a valve switching quantity by the duty cycle module includes:
[0086] Obtaining the preset valve opening cycle;
[0087] The processed output analog quantity is obtained by normalizing the output analog quantity;
[0088] The valve switching value is obtained according to the processed output analog value and the preset valve opening cycle.
[0089] Specifically, the algorithm is used to convert the input analog signal (MVI) into the valve switch quantity, that is, the proportional output of the preset valve opening cycle (TS), where the valve switch quantity includes TOP as the opening time within the cycle and TCL as the closing time within the cycle, thereby realizing the conversion of analog quantity to digital quantity. Normalization is a common data preprocessing technology that converts raw data to a specific range for subsequent data analysis, modeling or control.
[0090] In this optional embodiment, the duty cycle module converts the input analog signal (MVI) into a valve switching quantity. By using normalization processing, signals in different ranges can be more easily compared and processed, and it helps to ensure the consistency and stability of the system.
[0091] Optionally, obtaining the valve switching value according to the processed output analog value and the preset valve opening cycle includes:
[0092] Obtaining a corresponding valve opening time and valve closing time according to the preset valve opening cycle;
[0093] The valve switching value is obtained according to the processed output analog quantity, the corresponding valve opening time and the valve closing time.
[0094] In some more specific embodiments, the duty cycle function block outputs a switch valve signal of the valve opening time and valve closing time allocated according to the time length of the preset valve opening cycle TS, controls the hydrochloric acid switch valve 30A0, and thus realizes the control of acid addition. Other valves on the hydrochloric acid inlet pipeline are opened by default before the program is started. In addition, other valves on the ammonia water, chilled water and tank are process control valves for other stages. This process does not control them, and they are in the switch state required by the process before the program is started.
[0095] Optionally, the crystallization tank pH value control device further includes an acid adding valve control module; after the output analog quantity is converted into a valve switching quantity by the duty cycle module, it further includes:
[0096] The valve switching value sent by the duty cycle module is received through the acid addition valve control module, and the acid addition switch valve of the crystallization tank is adjusted according to the valve switching value, wherein the acid addition switch valve can be a pulse switch.
[0097] In some more specific embodiments, to a first pH setting value PH ΔSV1 After that, the program of this control starts to start the secondary acid addition. The PHKZ module program automatically calculates the output value that changes according to time to obtain the PH standard value based on the PH detection value (PH) fed back from the site and the input PH range setting value and PH control time setting value. At the same time, the calculation result is sent to the given value (SV) of the single-loop PID control module. The single-loop PID control module compares the feedback PH detection value (PV) of the crystallization tank with the given value (SV) and outputs a control signal (MV). The signal is an analog signal. This signal is output to the input end (MVI) of the duty cycle control module (ZKB). The duty cycle control module (ZKB) periodically opens and closes the hydrochloric acid feed valves 30A0 and 100A0 according to the TS time set for the valve opening cycle to achieve the control of the acid inlet amount. The second PH setting value PHΔSV2 As the preset pH target value, until the pH value of the crystallizer reaches the second pH setting value PH ΔSV2 After that, it enters the crystal growth stage and the pH value becomes stable again.
[0098] In some optional embodiments, the step of obtaining a pH range setting value and a pH control time setting value through a crystallization tank process requirement includes:
[0099] Obtaining the crystallization tank process requirements, wherein the crystallization tank process requirements are used to represent different reactants;
[0100] The crystallization tank process requirements are input into a preset crystallization tank process model to obtain the pH range setting value and the pH control time setting value.
[0101] Specifically, the preset crystallizer process model is a database constructed by collecting a large number of reactants and corresponding pH range setting values and pH control time setting values. In the process of producing a certain antibiotic, the antibiotic is input into the preset crystallizer process model, and the pH range setting value in the crystallizer is obtained to be 6.8 to 7.2, and the pH control time setting value is 2h.
[0102] In some optional embodiments, the PID control parameters include a first PID control parameter, a second PID control parameter, and a third PID control parameter, and obtaining the PID control parameters includes:
[0103] When the current PH detection value is less than a first preset PH detection value, obtaining the first PID control parameter;
[0104] When the current PH detection value is greater than or equal to the first preset PH detection value and less than the second preset PH detection value, acquiring the second PID control parameter;
[0105] When the current PH detection value is greater than or equal to the second preset PH detection value and less than the third preset PH detection value, the third PID control parameter is obtained, wherein the first preset PH detection value is greater than the second preset PH detection value, the second preset PH detection value is greater than the third preset PH detection value, and the first PID control parameter, the second PID control parameter and the third PID control parameter are used to represent control parameters for adjusting different PH conditions according to actual conditions.
[0106] In some optional embodiments, obtaining the output analog quantity by adjusting the deviation value and the target PID control model includes:
[0107] When the adjustment deviation value is greater than the preset difference value, the continuous deviation time and the deviation fluctuation are obtained according to the adjustment deviation value;
[0108] Inputting the adjustment deviation value, the continuous deviation time and the deviation fluctuation into a pre-trained neural network model to obtain proportional gain adjustment, integral gain adjustment and differential gain adjustment;
[0109] Adjusting the target PID control model according to the proportional gain adjustment, the integral gain adjustment and the differential gain adjustment to obtain the adjusted target PID control model;
[0110] The adjustment deviation value is input into the adjusted target PID control model to obtain the output analog quantity.
[0111] Specifically, the neural network model is a computational model that is inspired by the working mode of the biological nervous system and is used to solve complex nonlinear problems through weighted connection interactions. Obtain a historical data set, and train the neural network model through the historical data set and repeat the iteration until a pre-trained neural network model is obtained. The historical data set includes historical continuous deviation time, historical deviation fluctuation, historical proportional gain adjustment, historical integral gain adjustment, and historical differential gain adjustment. When the adjustment deviation value is large, appropriately increasing the proportional gain can make the system respond to changes faster and quickly reduce the error. If the adjustment deviation value remains within a certain range for a long time and is not zero, it means that there is a steady-state error. The integral gain can be appropriately increased to gradually eliminate this deviation. When the pH value fluctuates violently, increasing the differential gain can help suppress this fluctuation and make the system return to the set point more smoothly.
[0112] like Figure 3 As shown, the embodiment of the present invention further provides a crystallization tank pH value control device to implement the crystallization tank pH value control method, the crystallization tank pH value control device includes a pH value detection module, a pH set value control module, a single-loop PID control module and a duty cycle module;
[0113] The pH value detection module is used to detect the pH value of the crystallization tank in real time to obtain the current pH detection value;
[0114] The pH set value control module is used to obtain the pH standard value through the current pH detection value;
[0115] The single-loop PID control module is used to obtain an output analog value through the current PH detection value and the PH standard value;
[0116] The duty cycle module is used to convert the output analog quantity into a valve switching quantity.
[0117] The crystallization tank pH value control device of this embodiment is used to implement the crystallization tank pH value control method as described above. Its advantages over the prior art are the same as the advantages of the above-mentioned crystallization tank pH value control method over the prior art, and will not be repeated here.
[0118] like Figure 4 As shown, an electronic device 400 provided in an embodiment of the present invention includes a memory 410 and a processor 420; the memory 410 is used to store a computer program; the processor 420 is used to implement the crystallization tank pH value control method as described above when executing the computer program.
[0119] In other words, an electronic device 400 includes a memory 410 and a processor 420 coupled to the memory 410; the memory 410 is configured to store a computer program; and the processor 420 is configured to perform the following operations when executing the computer program:
[0120] The pH value of the crystallization tank is detected in real time by the pH value detection module to obtain the current pH detection value;
[0121] Inputting the current PH detection value into the PH set value control module to obtain the PH standard value;
[0122] Inputting the current PH detection value and the PH standard value into the single-loop PID control module to obtain an output analog value;
[0123] The output analog quantity is converted into a valve switch quantity by the duty cycle module, and the step of obtaining the current pH detection value by real-time detecting the pH value of the crystallizer by the pH value detection module is returned, and the above steps are repeated until the pH value of the crystallizer reaches a preset pH target value, wherein the valve switch quantity is used to represent the proportional control of the acid addition switch valve of the crystallizer within a preset valve opening cycle.
[0124] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the crystallization tank pH value control method as described above is implemented.
[0125] In other words, a non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor performs the following operations:
[0126] The pH value of the crystallization tank is detected in real time by the pH value detection module to obtain the current pH detection value;
[0127] Inputting the current PH detection value into the PH set value control module to obtain the PH standard value;
[0128] Inputting the current PH detection value and the PH standard value into the single-loop PID control module to obtain an output analog value;
[0129] The output analog quantity is converted into a valve switch quantity by the duty cycle module, and the step of obtaining the current pH detection value by real-time detecting the pH value of the crystallizer by the pH value detection module is returned, and the above steps are repeated until the pH value of the crystallizer reaches a preset pH target value, wherein the valve switch quantity is used to represent the proportional control of the acid addition switch valve of the crystallizer within a preset valve opening cycle.
[0130] An electronic device 400 that can be used as a server or client of the present invention will now be described, which is an example of a hardware device that can be applied to various aspects of the present invention. The electronic device 400 is intended to represent various forms of digital electronic computer equipment, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device 400 can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples, and are not intended to limit the implementation of the present invention described and / or required herein.
[0131] The electronic device 400 includes a computing unit, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) or a computer program loaded from a storage unit into a random access memory (RAM). In the RAM, various programs and data required for the operation of the device can also be stored. The computing unit, ROM, and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.
[0132] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0133] Although the present invention is disclosed as above, the protection scope of the present invention is not limited thereto. Those skilled in the art may make various changes and modifications without departing from the spirit and scope of the present invention, and these changes and modifications will fall within the protection scope of the present invention.
Claims
1. A method for controlling pH value of a crystallization tank, characterized in that: Based on the crystallization tank pH value control device, the crystallization tank pH value control device includes a pH value detection module, a pH set value control module, a single-loop PID control module and a duty cycle module; the crystallization tank pH value control method includes: The pH value of the crystallization tank is detected in real time by the pH value detection module to obtain the current pH detection value; Inputting the current PH detection value into the PH set value control module to obtain the PH standard value; Inputting the current PH detection value and the PH standard value into the single-loop PID control module to obtain an output analog value; The output analog quantity is converted into a valve switch quantity by the duty cycle module, and the step of obtaining the current pH detection value by real-time detecting the pH value of the crystallizer by the pH value detection module is returned, and the above steps are repeated until the pH value of the crystallizer reaches a preset pH target value, wherein the valve switch quantity is used to represent the proportional control of the acid addition switch valve of the crystallizer within a preset valve opening cycle.
2. The crystallization tank pH value control method according to claim 1, characterized in that: The step of inputting the current PH detection value into the PH set value control module to obtain the PH standard value comprises: Obtain the pH range setting value and pH control time setting value through the crystallization tank process requirements; Obtain the pH standard value according to the current pH detection value, the pH range setting value and the pH control time setting value; Wherein, the pH standard value is: ΔPH=(PH-PHΔ S V) / TIME, Wherein, ΔPH is the PH standard value, PH is the current PH detection value, PHΔsv is the PH range setting value, and TIME is the PH control time setting value.
3. The crystallization tank pH value control method according to claim 2, characterized in that, The pH range setting value and the pH control time setting value are obtained by the crystallization tank process requirements, including: Obtaining a first PH setting value, a second PH setting value and the PH control time setting value through the crystallization tank process requirements, wherein the first PH setting value is greater than the second PH setting value; Obtaining the pH range setting value according to the difference between the first pH setting value and the second pH setting value; Wherein, the pH range setting value is: PH ΔSV PH ΔSV1 -PH ΔSV2 , Among them, PH ΔSV1 is the first pH setting value, PH ΔSV2 is the second pH setting value.
4. The crystallization tank pH value control method according to claim 1, characterized in that: The step of inputting the current PH detection value and the PH standard value into the single-loop PID control module to obtain an output analog value includes: Get PID control parameters; According to the PID control parameters, the original PID control model is updated to obtain a target PID control model; Obtaining an adjustment deviation value according to the current pH detection value and the pH standard value; The output analog quantity is obtained by adjusting the deviation value and the target PID control model.
5. The crystallization tank pH value control method according to claim 1, characterized in that: The step of converting the output analog quantity into a valve switch quantity by the duty cycle module comprises: Obtaining the preset valve opening cycle; The processed output analog quantity is obtained by normalizing the output analog quantity; The valve switching value is obtained according to the processed output analog value and the preset valve opening cycle.
6. The crystallization tank pH value control method according to claim 5, characterized in that: The step of obtaining the valve switching value according to the processed output analog value and the preset valve opening cycle includes: Obtaining a corresponding valve opening time and valve closing time according to the preset valve opening cycle; The valve switching value is obtained according to the processed output analog quantity, the corresponding valve opening time and the valve closing time.
7. The crystallization tank pH value control method according to claim 1, characterized in that: The crystallization tank pH value control device also includes an acid adding valve control module; after the output analog quantity is converted into a valve switch quantity by the duty cycle module, it also includes: The valve switching value sent by the duty cycle module is received through the acid addition valve control module, and the acid addition switch valve of the crystallization tank is adjusted according to the valve switching value.
8. A crystallization tank pH value control device, characterized in that: Implement the crystallization tank pH value control method according to any one of claims 1 to 7, wherein the crystallization tank pH value control device includes a pH value detection module, a pH set value control module, a single-loop PID control module and a duty cycle module; The pH value detection module is used to detect the pH value of the crystallization tank in real time to obtain the current pH detection value; The pH set value control module is used to obtain the pH standard value through the current pH detection value; The single-loop PID control module is used to obtain an output analog value through the current PH detection value and the PH standard value; The duty cycle module is used to convert the output analog quantity into a valve switching quantity.
9. An electronic device, characterized in that: including memory and processor; The memory is used to store computer programs; The processor is used to implement the crystallization tank pH value control method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the crystallization tank pH value control method according to any one of claims 1 to 7 is implemented.