Chlorine production equipment adjusting method, system and device and storage medium
By monitoring and calculating the time of the current zero-point interval and dynamically adjusting the input signal of the chlorine-making equipment, the failure problem of the chlorine-making equipment when the power supply frequency changes is solved, and the stable operation and safety of the equipment under different power grid standards are achieved.
Patent Information
- Application Number
- CN202510734678.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-04
- Publication Date
- 2025-09-09
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing chlorine production equipment is prone to malfunction when the power supply frequency changes and cannot dynamically adapt to the power grid standards of different countries/regions, resulting in unstable output.
By monitoring the time interval between adjacent current zero points, the average power supply frequency and error are calculated to determine whether the frequency is valid. If it is invalid, the input signal duration of the chlorine production equipment is adjusted to adapt to the change of power supply frequency.
The output stability and power safety of chlorine production equipment are improved, ensuring the normal operation of the equipment under different power grid standards.
Smart Images

Figure CN120608304A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of chlorine production equipment, and in particular to a chlorine production equipment adjustment method, system, device and storage medium. Background Art
[0002] Traditional power frequency detection typically relies on manual settings (such as a 50Hz / 60Hz switch) or fixed preset frequencies. These systems are unable to dynamically adapt to grid standards in different countries and regions, leading to unstable device output. While some devices use hardware circuits (such as LC oscillators) to roughly determine power frequency, these methods have low accuracy and are susceptible to voltage fluctuations.
[0003] Therefore existing technology still needs to be improved and improved. Summary of the Invention
[0004] The present application provides a chlorine production equipment adjustment method, system, device and storage medium, aiming to solve the problem in the prior art that chlorine production equipment is prone to failure when the power supply frequency changes.
[0005] In a first aspect, an embodiment of the present application provides a method for adjusting a chlorine production device, comprising: Monitor the time interval between two adjacent current zero points in each time period; Calculating an average power frequency within a single target time period based on multiple time intervals monitored within multiple adjacent time periods; calculating the average power frequency corresponding to each of a plurality of consecutive target time periods and an error between the plurality of average power frequencies, and determining whether the error is within a preset frequency range to determine whether a first average power frequency is invalid; When inactive, the duration of the input signal to the chlorine production equipment is adjusted according to the last average power supply frequency.
[0006] In some embodiments, the chlorine production equipment adjustment method further includes: If, among the plurality of average power frequencies, the errors between the first average power frequency and the other average power frequencies are not all within or all within the preset frequency range, then it is determined that the first average power frequency is valid; The duration of the input signal to the chlorine plant is adjusted based on the first average power frequency.
[0007] In some embodiments, monitoring the time interval between two adjacent current zero points in each time period includes: The time interval is obtained according to a preset counting frequency and the monitored number of counts between the two adjacent current zero points.
[0008] In some embodiments, calculating the average power frequency within a single target time period includes: After calculating the power frequency of the time period according to the time interval, an average value of the power frequencies in a plurality of adjacent time periods is calculated to obtain the average power frequency.
[0009] In some embodiments, calculating the average power frequency corresponding to each of the plurality of consecutive target time periods and the errors between the plurality of average power frequencies, and determining whether the errors are within a preset frequency range to determine whether the first average power frequency is invalid, includes: calculating an error between a first average power frequency and other average power frequencies in a plurality of consecutive target time periods; It is determined whether each of the errors is within a preset frequency range. If all of the errors are not within the preset frequency range, the first average power supply frequency is invalid.
[0010] In some embodiments, adjusting the duration of the input signal to the chlorine production equipment according to the last average power frequency includes: Setting a positively proportional mapping relationship between the different average power supply frequencies and the duration of the logic high level; The target duration corresponding to the last average power frequency is searched according to the mapping relationship, and the duration of the square wave signal input to the chlorine production equipment is adjusted according to the target duration.
[0011] In some embodiments, the monitoring of the time interval between two adjacent current zero points in each time period further includes: When it is monitored that the input voltage of the chlorine production equipment is at a low level, calculating the product of the voltages collected at two adjacent sampling points; If the product is less than zero, it is determined that the current zero point exists within the time period.
[0012] In a second aspect, an embodiment of the present application provides a chlorine production equipment adjustment system, comprising: A monitoring module, used for monitoring the time interval between two adjacent current zero points in each time period; a calculation module, configured to calculate an average power frequency within a single target time period based on a plurality of time intervals monitored within a plurality of adjacent time periods; a determination module, configured to calculate the average power frequency corresponding to each of a plurality of consecutive target time periods, and an error between the plurality of average power frequencies, and determine whether the error is within a preset frequency range, so as to determine whether a first average power frequency is invalid; The regulating module is used to regulate the duration of the input signal of the chlorine production equipment according to the last average power supply frequency when it is invalid.
[0013] In a third aspect, an embodiment of the present application provides a chlorine production equipment regulating device, comprising: a chlorine production equipment, a signal acquisition module, a processing module, and a control output module, wherein the processing module is connected to the signal acquisition module and the control output module respectively, and the chlorine production equipment is also connected to the signal acquisition module and the control output module respectively; The signal acquisition module is used to monitor the time interval between two adjacent current zero points in each time period; The processing module is configured to calculate an average power frequency within a single target time period based on a plurality of time intervals monitored within a plurality of adjacent time periods; The processing module is further configured to calculate the average power frequency corresponding to each of a plurality of consecutive target time periods, and an error between the plurality of average power frequencies, and determine whether the error is within a preset frequency range to determine whether a first average power frequency is invalid; The processing module is further configured to, when inactive, adjust the duration of the input signal of the chlorine-generating equipment according to the last average power frequency, so that the control output module can control the operating frequency of the chlorine-generating equipment.
[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the chlorine production equipment adjustment method as described above.
[0015] Compared with the existing technology, the present application provides a chlorine production equipment adjustment method, system, device and storage medium. The method monitors each two adjacent current zero points to obtain the time interval of the target time period, calculates the error between the average power supply frequencies in multiple consecutive target time periods, and when it is determined based on the error that the first average power supply frequency is invalid, adjusts the duration of the input signal of the chlorine production equipment to improve the output stability of the chlorine production equipment and ensure power safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.
[0017] Figure 1 A flow chart of the chlorine production equipment adjustment method provided in this application; Figure 2 A flow chart of the steps of the chlorine production equipment adjustment method provided in this application; Figure 3 A flow chart for determining the current zero point in the chlorine production equipment adjustment method provided in this application; Figure 4 A flow chart for determining invalid power frequency in the chlorine production equipment adjustment method provided in this application; Figure 5 A flow chart of controlling the duration of an input signal in the chlorine production equipment adjustment method provided in the present application; Figure 6 Another flow chart for controlling the duration of an input signal in the chlorine production equipment adjustment method provided in the present application; Figure 7 This is a structural diagram of the chlorine production equipment regulation system provided in this application.
[0018] Figure numerals: 10 - monitoring module; 20 - calculation module; 30 - judgment module; 40 - adjustment module. DETAILED DESCRIPTION
[0019] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments.
[0020] The components of the embodiments of the present application generally described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed application, but rather merely represents selected embodiments of the present application. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative effort are within the scope of protection of the present application.
[0021] Hereinafter, the terms "including", "having" and their cognates used in various embodiments of the present application are intended only to indicate specific features, numbers, steps, operations, elements, components or combinations of the aforementioned items, and should not be understood as excluding the existence of one or more other features, numbers, steps, operations, elements, components or combinations of the aforementioned items or adding the possibility of one or more features, numbers, steps, operations, elements, components or combinations of the aforementioned items. In addition, the terms "first", "second", "third" and the like are only used to distinguish descriptions and should not be understood as indicating or implying relative importance.
[0022] Unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in commonly used dictionaries) will be interpreted as having the same meaning as in the context of the relevant technical field and will not be interpreted as having an idealized meaning or an overly formal meaning unless clearly defined in the various embodiments of the present application.
[0023] The present application provides a chlorine production equipment adjustment method, system, device, and storage medium. The chlorine production equipment adjustment method monitors each adjacent current zero point to obtain the time interval of a target time period, calculates the error between the average power supply frequencies within multiple consecutive target time periods, and adjusts the duration of the chlorine production equipment's input signal when the first average power supply frequency is determined to be invalid based on the error, thereby improving the output stability of the chlorine production equipment and ensuring power safety.
[0024] The following describes the design scheme of the chlorine production equipment adjustment method through some specific examples.
[0025] An embodiment of the present application provides a chlorine production equipment adjustment device, including: chlorine production equipment, a signal acquisition module, a processing module and a control output module, the processing module is respectively connected to the signal acquisition module and the control output module, and the chlorine production equipment is also respectively connected to the signal acquisition module and the control output module.
[0026] The signal acquisition module is used to monitor the time interval between two adjacent current zero points in each time period; the processing module is used to calculate the average power supply frequency in a single target time period based on multiple time intervals monitored in multiple adjacent time periods; the processing module is also used to calculate the average power supply frequencies corresponding to each of multiple consecutive target time periods, as well as the errors between multiple average power supply frequencies, and judge whether the errors are within a preset frequency range to determine whether the first average power supply frequency is invalid; the processing module is also used to adjust the duration of the input signal of the chlorine production equipment according to the last average power supply frequency when invalid, so as to control the output module to control the operating frequency of the chlorine production equipment.
[0027] Exemplarily, the signal acquisition module acquires the current zero point of the AC signal flowing through the chlorine production equipment (eg, salt chlorine machine) to monitor the time interval between two adjacent current zero points.
[0028] The frequency calculation algorithm built into the processing module (such as a single-chip microcomputer) analyzes the waveform period of the AC power in real time according to the time interval, and adjusts the duration of the input signal input to the chlorine-making device according to the identified waveform period, such as adjusting the duration of the PWM signal input to the chlorine-making device, so as to control the output module to control the operating frequency of the chlorine-making device.
[0029] See also Figure 1 , the embodiment of the present application provides a chlorine production equipment adjustment method, including S100-S400: S100 , monitoring the time interval between two adjacent current zero points in each time period.
[0030] Among them, each time period in this application is the time interval between two adjacent current zero points. Since this application uses an AC signal, each time period here is half a period of the AC signal.
[0031] For example, see Figure 2 After the chlorine production equipment adjustment device completes the system initialization, it uses current transformers, voltage transformers, data acquisition cards or oscilloscopes and other current sampling meters to perform high-frequency dynamic sampling of the AC signal in the circuit according to the loaded historical sampling parameters (corresponding to Figure 2 The N periodic signals are collected in the process), and the time interval between two adjacent current zero points is calculated to calculate the frequency of the AC signal, thereby adjusting the input signal of the chlorine production equipment.
[0032] The sampled current signal also requires digital preprocessing (such as sampling and quantization, denoising, or normalization), bandpass filtering, dynamic threshold calibration (dynamically adjusting the threshold based on the actual signal characteristics), and rising edge detection to periodically calculate the time interval. Precise rising edge detection accurately identifies the point in time when the signal transitions from a low level to a high level (i.e., the rising edge). This is used for event triggering or time measurement, such as differential calculation: calculating the difference between adjacent sampling points to identify the point of maximum signal change.
[0033] In one implementation, see Figure 3 , monitoring the time interval between two adjacent current zero points in each time period, which also includes: S98. When the input voltage of the chlorine production equipment is monitored to be at a low level, calculating the product of the voltages collected at two adjacent sampling points; S99. If the product is less than zero, it is determined that a current zero point exists within the time period.
[0034] For example, when sampling the current signal, it is necessary to first perform a signal quality test, that is, to detect whether there is a current zero point (this step corresponds to Figure 2 "Sliding Window Verification" step in : When the input voltage to the chlorine production equipment is monitored at a high frequency, if the input voltage detected by the current sampling point is a low level (for example, the voltage is between 0 and 0.8V), the product of the next voltage collected by the next sampling point adjacent to the current sampling point and the current voltage collected by the current sampling point is calculated.
[0035] Determine whether the product of the voltages collected at the two sampling points is less than zero. If so, it is determined that the two sampling points have passed through a current zero point, meaning that a current zero point exists within the time period. A flag can be set to 1 when a current zero point occurs. A timer can be set to sample and count every 1ms. When the next current zero point occurs, the previous count data is saved and the current frequency is calculated. The frequency is recalculated with each current zero point, allowing real-time detection of power supply frequency changes.
[0036] If there is a current zero point, it means the signal is qualified; if there is no current zero point, it means the quality is unqualified, and the gain can be adjusted or filtering can be performed.
[0037] It can be understood that in this application, by accurately monitoring the current zero point, the power supply frequency can be accurately calculated so that an action response can be made to the changing power supply frequency in a timely manner. Moreover, the recognition time is very short, which can meet the real-time requirements of industrial equipment.
[0038] In one implementation method, monitoring the time interval between two adjacent current zero points in each time period includes: The time interval is obtained according to the preset counting frequency and the number of counts between two adjacent current zero points monitored.
[0039] For example, by setting a timer to sample the current signal at a preset counting frequency and counting the number of counts between two adjacent current zero points, the entire cycle of the AC signal can be obtained by calculating the time interval between the two current zero points based on the preset counting frequency and the number of counts. Continuing with the example of setting a timer to sample once every 1ms, if the number of counts between two adjacent current zero points is 50, then the time interval tx = 1*50 = 50ms. Therefore, the frequency of half a cycle of the AC signal (i.e., half a cycle of the AC signal) = 1 / 50ms = 20Hz. Therefore, the frequency of one cycle of the AC signal is 40Hz.
[0040] It can be understood that according to the preset technical frequency and the number of counts between two current zero points, the time interval of half a cycle of alternating current is calculated to calculate the frequency of the entire cycle, thereby enabling automatic and rapid calculation of the time frequency.
[0041] S200 : Calculate an average power frequency within a single target time period based on multiple time intervals monitored within multiple adjacent time periods.
[0042] The target time period is a plurality of adjacent time periods.
[0043] Exemplarily, after calculating the time interval between two current zero points, the average value of multiple time intervals monitored in multiple adjacent time periods is calculated, that is, the average value of multiple adjacent time intervals, such as the average value of at least two adjacent time intervals, is calculated, and the average power supply frequency of the two adjacent time periods is converted.
[0044] It can be understood that in this application, the average power frequency between multiple time intervals is calculated using the counting times and the counting frequency, so as to determine whether the average power frequency is valid after calculating the error, thereby improving the accuracy of the calculated frequency.
[0045] In one implementation method, calculating the average power frequency within a single target time period includes: After calculating the power frequency of a time period according to the time interval, an average value of the power frequencies in a plurality of adjacent time periods is calculated to obtain an average power frequency.
[0046] Exemplarily, the specific process of calculating the average power frequency is as follows: After calculating the time interval of a time cycle, the reciprocal of the time interval is obtained to obtain the power frequency of half a cycle, for example, 40 Hz. Then, the power frequency of the entire cycle is 80 Hz.
[0047] Then, the average power frequency over multiple adjacent time periods is calculated, that is, the average value between at least two adjacent calculated time intervals is calculated. In this application, the average value calculated over two adjacent time intervals is used as an example. For example, if the first calculated time interval t1 is 40 Hz and the second calculated time interval t2 is 40.5 Hz, then the average power frequency over these two adjacent time periods, i.e., the average power frequency, is t0 = (t1 + t2) / 2 = 40.25 Hz.
[0048] S300, calculating the average power frequency corresponding to each of a plurality of consecutive target time periods and the errors between the plurality of average power frequencies, and determining whether the errors are within a preset frequency range to determine whether the first average power frequency is invalid.
[0049] The first average power frequency is the earliest calculated or first calculated average power frequency among the multiple average power frequencies.
[0050] Exemplarily, after calculating the average power supply frequency within multiple target time periods, the error between multiple consecutive average power supply frequencies is calculated. In this application, it is necessary to calculate the error between at least two average power supply frequencies. For example, each time the average power supply frequency calculated last time is subtracted from the newly calculated average power supply frequency to obtain the error between two adjacent average power supply frequencies.
[0051] Then, it is determined whether the error calculated each time is within the preset frequency range, and whether the first average power supply frequency is invalid is determined based on the judgment result. If it is within the range, it is valid, otherwise it is invalid, so as to decide how to adjust the signal input to the chlorine production equipment based on the judgment result.
[0052] It can be understood that in this application, after calculating the time intervals within multiple adjacent time periods, the average power supply frequencies within multiple adjacent time periods are further calculated, and the errors between the multiple adjacent average power supply frequencies are compared, so as to more accurately judge the errors between adjacent average power supply frequencies.
[0053] In one implementation, see Figure 4 Step S300, calculating the average power frequency corresponding to each of a plurality of consecutive target time periods and the error between the plurality of average power frequencies, and determining whether the error is within a preset frequency range to determine whether the first average power frequency is invalid, includes: S310, calculating the error between the first average power frequency and other average power frequencies in a plurality of consecutive target time periods; S320 , determining whether each error is within a preset frequency range. If all errors are not within the preset frequency range, the first average power frequency is invalid.
[0054] For example, the present application takes the calculation of the error between three average power supply frequencies as an example (corresponding to Figure 2 M consecutive cycles in the time series, where M is 3 in this application): After calculating the average power frequency of every two adjacent time periods (this is just an average power frequency), calculate three adjacent average power frequencies, for example, t01=40.25Hz, t02=40.6Hz and t03=40.8Hz.
[0055] Then, in the multiple consecutive target time periods, the error between the first average power frequency and other average power frequencies is calculated, that is, after calculating the error values between three consecutively calculated average power frequencies, the error between the first calculated average power frequency t01 and the second calculated average power frequency t02, as well as the error between the first calculated average power frequency and the third calculated average power frequency t03 are calculated: Δt1=t02-t01=-0.6Hz, Δt2=t03-t01=-0.8Hz. Secondly, it is determined whether the calculated multiple errors are all within a preset frequency range (eg, ±0.5 Hz). If they are all outside the preset frequency range, it indicates that a sudden change in the power supply frequency has occurred in the circuit, and the first average power supply frequency is determined to be invalid.
[0056] S400: When invalid, adjust the duration of the input signal of the chlorine production equipment according to the last average power supply frequency.
[0057] The last average power frequency is the last average power frequency calculated among the multiple average power frequencies.
[0058] For example, the output of a chlorine production device, such as a salt chlorinator, is controlled by a PWM wave input from a square wave generator and is affected by the magnitude of the current signal. When the current approaches zero, the electrolysis reaction may not proceed effectively, resulting in no significant chemical product formation. Therefore, there is a period of uncontrollable frequency before and after the zero point of the current signal (referred to as the runaway phase of the salt chlorinator, which is defined as 10 ms before and after the zero-crossing signal in this application based on industry experience). Therefore, it is necessary to first identify the current power frequency and subtract the uncontrollable frequency segment.
[0059] Then, when judging whether multiple errors are within the preset frequency range, if it is judged that none of them are within the preset frequency range, it means that the first average power supply frequency is invalid and the parameters need to be updated. Then, it is necessary to adjust the duration of the input signal of the chlorine-making equipment according to the last average power supply frequency, such as adjusting the duration of the square wave signal output by the square wave generator to the chlorine-making equipment, mainly adjusting the output high level duration, so that the chlorine-making equipment does not output in the out-of-control stage and outputs normally in the non-out-of-control stage, so as to control the intensity of the output signal of the chlorine-making equipment.
[0060] It can be understood that in this application, when it is determined that the first average power supply frequency is invalid, the last average power supply frequency is used to adjust the duration of the square wave signal input to the chlorine-making equipment, thereby adjusting the time of the square wave signal output to the chlorine-making equipment according to the latest average power supply frequency, that is, the chlorine-making equipment dynamically adjusts the strength of its own output signal according to the power supply frequency, thereby avoiding output failure or even burning of the chlorine-making equipment due to changes in the power supply frequency.
[0061] Furthermore, in another embodiment of the present application, after the duration of the input signal to the chlorine production equipment is first adjusted based on the last average power frequency, the last average power frequency is continuously monitored and the square wave signal is dynamically adjusted. However, if the monitoring indicates that the number of invalid signals exceeds three consecutive times, a system alarm is triggered to remind the user to promptly perform maintenance.
[0062] In one implementation, see Figure 5 , adjusting the duration of the input signal to the chlorine production equipment according to the last average power frequency, including: S401, setting a positive proportional mapping relationship between different average power supply frequencies and durations of a logic high level; S402: Find the target duration corresponding to the last average power frequency according to the mapping relationship, and adjust the duration of the square wave signal input to the chlorine production equipment according to the target duration.
[0063] Exemplarily, the specific process of adjusting the duty cycle time is as follows: In order to avoid the uncontrollable areas before and after the current zero point on the current signal, different average power supply frequencies are pre-set to a positive proportional mapping relationship with the duration of the logic high level in the output signal and input signal in each cycle (here, the total time that the logic high level appears in the square wave signal in one cycle). For example, when the average power supply frequency is 60Hz, the duration of the logic high level in one cycle is 40ms, when the average power supply frequency is 55Hz, the duration of the logic high level is 35ms, when the average power supply frequency is 50Hz, the duration of the logic high level is 30ms, and so on. The mapping relationship between the average power supply frequency and the duration of the logic high level in this application is actually the total power supply frequency minus the default uncontrolled time (set to 10ms in this application). The duration of the square wave signal calculated can be used to solve the duration of the logic high level.
[0064] Then, according to the last average power supply frequency, the target duration corresponding to the last average power supply frequency is found from the mapping relationship, and then the output logic high level time of the square wave signal input into the chlorine production equipment is adjusted according to the target duration, that is, the target duration is half the time of the square wave signal.
[0065] In one implementation, see Figure 6 The chlorine production equipment adjustment method further includes: S500: If, among the multiple average power frequencies, the errors between the first average power frequency and the other average power frequencies are not all within or all within the preset frequency range, then determine that the first average power frequency is valid; S600: Adjust the duration of the input signal of the chlorine production equipment according to the first average power frequency.
[0066] Exemplarily, when determining whether multiple errors are within a preset frequency range, if all calculated errors are not within the preset frequency range, or if all are within the preset frequency range, then the first average power frequency is valid and can be used directly to control the duration of the input signal to the chlorine production equipment. For example, if t01 = 40.25 Hz, t02 = 40 Hz, and t03 = 40.2 Hz, then the errors between the first average power frequency and the other average power frequencies are: Δt1 = t02 - t01 = -0.25 Hz, and Δt2 = t03 - t01 = -0.2 Hz. In this case, both errors are within the preset frequency range, indicating that the first average power frequency is valid and that the power frequency has not changed significantly. Therefore, the first average power frequency is used to control the duration of the input signal to the chlorine production equipment.
[0067] Further, see Figure 2 In another embodiment of the present application, after the first average power frequency is determined to be valid, the error between the average power frequencies is recalculated over multiple new target time periods, and validity is determined based on the error. If P (in this application, "P" can be "3") valid determinations are made, the input signal to the chlorine generator at that time is locked, i.e., the duration of the input signal to the chlorine generator is adjusted based on the first average power frequency, and dynamic sampling control continues. However, if the number of invalid determinations exceeds P, a hardware self-check is triggered: the system uses built-in programs or algorithms to proactively detect whether hardware components are functioning properly and confirm whether their performance meets requirements. Specifically, in this application, the signal acquisition module verifies whether the transformer is correctly acquiring the grid signal and whether the signal conditioning circuit is producing normal outputs. The core processing unit (i.e., processing module, such as an MCU) verifies that the microcontroller can accurately perform tasks such as frequency calculation and dynamic sampling adjustment. The control output module verifies whether the PWM output or other control signals are generated as expected.
[0068] It can be understood that in this application, when it is determined that the average power supply frequency is valid, that is, when it is detected that the power supply frequency is stable at this time, the calculated average power supply frequency is directly used to control the time of the square wave signal input into the chlorine production equipment, which effectively ensures the stability of the circuit and realizes fast and precise control of the output of the chlorine production equipment.
[0069] See also Figure 7 The present invention provides a chlorine production equipment adjustment system, comprising: The monitoring module 10 is used to monitor the time interval between two adjacent current zero points in each time period; the calculation module 20 is used to calculate the average power frequency in a single target time period based on multiple time intervals monitored in multiple adjacent time periods; the judgment module 30 is used to calculate the average power frequency corresponding to each of multiple consecutive target time periods, as well as the error between multiple average power frequencies, and judge whether the error is within a preset frequency range to determine whether the first average power frequency is invalid; the adjustment module 40 is used to adjust the duration of the input signal of the chlorine production equipment according to the last average power frequency when it is invalid.
[0070] Exemplarily, the chlorine production equipment adjustment method is applied to a chlorine production equipment adjustment system. Then, the implementation process of the chlorine production equipment adjustment system is as follows: First, a current sampling meter (such as a current transformer) is used to dynamically sample the current signal input to the chlorine production equipment (such as a salt chlorine machine). For example, the current sampling rate is set to 1ms / time, and the presence of a current zero point is monitored. If a current zero point is detected, the time interval between two adjacent current zero points is continuously monitored. That is, the time interval between the two current zero points is calculated using the sampling period and the number of counts to calculate the power supply frequency.
[0071] Then, time intervals monitored within a plurality of adjacent time periods (ie, target time periods), for example, time intervals monitored within two adjacent time periods, are selected, and the average power supply frequency within the two adjacent time periods is calculated.
[0072] Secondly, based on the average power frequency in the two adjacent time periods, a calculation unit is used to calculate the average power frequency in multiple consecutive target time periods, for example, the average power frequency in three consecutive target time periods is calculated, and the error between the first average power frequency and the other average power frequencies is calculated. Then, based on whether the error is within the preset frequency range, it is determined whether the first average power frequency is invalid.
[0073] Finally, when it is determined that all errors are not within the preset frequency range, the first average power supply frequency is determined to be invalid, and the duration of the input signal of the chlorine-making equipment is adjusted according to the last average power supply frequency, mainly to control the duration of the logic high level of the square wave signal, so as to control the chlorine-making equipment to shut down the output in the out-of-control stage, effectively improving the safety and stability of chlorine production.
[0074] It can be understood that in this application, the input time of the square wave signal is adjusted according to the errors between multiple average power supply frequencies calculated by judgment, so as to control the safe operation of the chlorine production equipment, thereby realizing automatic and rapid monitoring of the power supply frequency, being applicable to global power grid standards, having higher compatibility, and being able to dynamically adjust the output of the equipment, effectively ensuring circuit safety, and solving the problem of increased equipment failure rate caused by the need to manually switch the power supply frequency when exporting salt chlorine machines to different countries.
[0075] This application also provides a computer-readable storage medium for storing the computer program used in the chlorine production apparatus. For example, the computer-readable storage medium may include, but is not limited to, a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, among other media capable of storing program code.
[0076] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely illustrative. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architectures, functions and operations of the devices, methods and computer program products according to the multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or flowchart, as well as the combination of boxes in the structure diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or can be implemented using a combination of dedicated hardware and computer instructions.
[0077] In addition, the functional modules or units in the various embodiments of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0078] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, or the part that contributes to the existing technology, or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a smart phone, personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of this application.
[0079] The above is only a specific implementation method of the present application, but the scope of protection of the present application is not limited thereto. Any technician familiar with this technical field can easily think of changes or replacements within the technical scope disclosed in this application, which should be covered by the scope of protection of the present application.
Claims
1. A method for regulating chlorine production equipment, characterized in that: include: Monitor the time interval between two adjacent current zero points in each time period; Calculating an average power frequency within a single target time period based on multiple time intervals monitored within multiple adjacent time periods; calculating the average power frequency corresponding to each of a plurality of consecutive target time periods and an error between the plurality of average power frequencies, and determining whether the error is within a preset frequency range to determine whether a first average power frequency is invalid; When inactive, the duration of the input signal to the chlorine production equipment is adjusted according to the last average power supply frequency.
2. The chlorine production equipment adjustment method according to claim 1, characterized in that: Also includes: If, among the plurality of average power frequencies, the errors between the first average power frequency and the other average power frequencies are not all within or all within the preset frequency range, then it is determined that the first average power frequency is valid; The duration of the input signal to the chlorine plant is adjusted based on the first average power frequency.
3. The chlorine production equipment adjustment method according to claim 1, characterized in that: The step of monitoring the time interval between two adjacent current zero points within each time period includes: The time interval is obtained according to a preset counting frequency and the monitored number of counts between the two adjacent current zero points.
4. The chlorine production equipment adjustment method according to claim 1, characterized in that: The step of calculating the average power frequency within a single target time period includes: After calculating the power frequency of the time period according to the time interval, an average value of the power frequencies in a plurality of adjacent time periods is calculated to obtain the average power frequency.
5. The chlorine production equipment adjustment method according to claim 1, characterized in that: The calculating the average power frequency corresponding to each of the plurality of consecutive target time periods and the errors between the plurality of average power frequencies, and determining whether the errors are within a preset frequency range to determine whether the first average power frequency is invalid, includes: calculating an error between a first average power frequency and other average power frequencies in a plurality of consecutive target time periods; It is determined whether each of the errors is within a preset frequency range. If all of the errors are not within the preset frequency range, the first average power frequency is invalid.
6. The chlorine production equipment adjustment method according to claim 5, characterized in that: The step of adjusting the duration of the input signal of the chlorine production equipment according to the last average power frequency comprises: Setting a positively proportional mapping relationship between the different average power supply frequencies and the duration of the logic high level; The target duration corresponding to the last average power frequency is searched according to the mapping relationship, and the duration of the square wave signal input to the chlorine production equipment is adjusted according to the target duration.
7. The chlorine production equipment adjustment method according to claim 1, characterized in that: The method of monitoring the time interval between two adjacent current zero points in each time period also includes: When it is monitored that the input voltage of the chlorine production equipment is at a low level, calculating the product of the voltages collected at two adjacent sampling points; If the product is less than zero, it is determined that the current zero point exists within the time period.
8. A chlorine production equipment regulating system, characterized in that: include: A monitoring module, used for monitoring the time interval between two adjacent current zero points in each time period; a calculation module, configured to calculate an average power frequency within a single target time period based on a plurality of time intervals monitored within a plurality of adjacent time periods; a determination module, configured to calculate the average power frequency corresponding to each of a plurality of consecutive target time periods, and an error between the plurality of average power frequencies, and determine whether the error is within a preset frequency range, so as to determine whether a first average power frequency is invalid; The regulating module is used to regulate the duration of the input signal of the chlorine production equipment according to the last average power supply frequency when it is invalid.
9. A chlorine production equipment regulating device, characterized in that: include: A chlorine-generating device, a signal acquisition module, a processing module, and a control output module, wherein the processing module is connected to the signal acquisition module and the control output module respectively, and the chlorine-generating device is also connected to the signal acquisition module and the control output module respectively; The signal acquisition module is used to monitor the time interval between two adjacent current zero points in each time period; The processing module is configured to calculate an average power frequency within a single target time period based on a plurality of time intervals monitored within a plurality of adjacent time periods; The processing module is further configured to calculate the average power frequency corresponding to each of a plurality of consecutive target time periods, and an error between the plurality of average power frequencies, and determine whether the error is within a preset frequency range to determine whether a first average power frequency is invalid; The processing module is further configured to, when inactive, adjust the duration of the input signal of the chlorine-generating equipment according to the last average power frequency, so that the control output module can control the operating frequency of the chlorine-generating equipment.
10. A computer-readable storage medium, characterized in that A computer program is stored, and when the computer program is executed by a processor, the steps of the chlorine production equipment adjustment method according to any one of claims 1 to 7 are implemented.