Self-cleaning control system and method for water quality sensor

文档序号:207684 发布日期:2021-11-05 浏览:6次 中文

阅读说明:本技术 一种水质传感器的自清洗控制系统及方法 (Self-cleaning control system and method for water quality sensor ) 是由 弓燕峰 杨晟 胡海波 于 2021-07-29 设计创作,主要内容包括:本发明公开了一种水质传感器的自清洗控制系统及方法,在本发明中实现了对水质传感器的在线式自动清洁,这使得系统在对水质传感器进行清洗的过程中避免了水质传感器的检测值会受到干扰,本发明提出了水质传感器的两种清洁模式,分别是周期模式和清洁度模式,与此同时提出了一种模式推荐的方法;通过计算和分析水质传感器的一些历史使用记录信息和水质传感器自身的性能状态为其提供了最优模式推荐,在不需要对水质传感器提出最优模式推荐时为其分别计算两种不同模式的推荐度,以供用户参考做出模式选择;在清洁过程中还通过对以往的数据进行利用和分析,保证清洁药剂的剂量做到符合清洁度所需要的定量。(The invention discloses a self-cleaning control system and a self-cleaning control method for a water quality sensor, which realize the on-line automatic cleaning of the water quality sensor, so that the system avoids the interference of the detection value of the water quality sensor in the process of cleaning the water quality sensor; the optimal mode recommendation is provided for the water quality sensor by calculating and analyzing some historical use record information of the water quality sensor and the performance state of the water quality sensor, and the recommendation degrees of two different modes are respectively calculated for the water quality sensor when the optimal mode recommendation does not need to be provided for the water quality sensor, so that a user can make mode selection by referring to the recommendation degrees; in the cleaning process, the original data are utilized and analyzed, and the dosage of the cleaning agent is ensured to be consistent with the quantitative requirement required by cleanliness.)

1. A self-cleaning control system for a water quality sensor, the system comprising: the system comprises a mode database, a mode recommendation module, a mode switching module, a cleaning database and an original medicament library;

the mode database is used for storing historical mode selection records of the water quality sensors in the system and performance state information of the water quality sensors;

the mode recommending module is used for recommending a cleaning mode for the water quality sensor by the system;

the mode switching module is used for displaying the best recommendation mode or different recommendation degrees of different modes obtained by the mode recommendation module; the user can change the obtained optimal recommendation mode according to own will, or the user can complete the autonomous selection of the final mode by referring to different recommendation degrees of different modes;

the clean database is used for storing different selection times and corresponding days of different modes selected by the system for the water quality sensor in the past historical record, storing the equipment alarm shutdown times and corresponding days of the water quality sensor, and storing the historical use times and corresponding days of the water quality sensor;

the original medicament library is used for storing a common cleaning degree value which is recorded in advance and the dosage of the cleaning medicament corresponding to the cleaning degree value.

2. The self-cleaning control system of the water quality sensor according to claim 1, wherein the mode recommending module comprises a priority pre-judging unit, an optimal mode analyzing unit and a mode recommending degree calculating unit;

the priority pre-judging unit is used for performing initial priority selection of a cleaning mode on the water quality sensor;

the optimal mode analysis unit is used for further analyzing according to the priority pre-judgment result obtained by the priority pre-judgment unit to obtain an optimal recommended mode of the water quality sensing;

and the mode recommendation degree calculation unit is used for calculating the mode recommendation degrees of different modes for the water quality sensor when the optimal mode analysis unit fails to obtain the optimal recommendation mode.

3. The self-cleaning control system of the water quality sensor according to claim 1, wherein the mode switching module comprises a periodic cleaning unit, a cleanliness cleaning unit and a cleaning command execution unit;

the periodic cleaning unit is used for cleaning the water quality sensor on line at regular time according to the set cleaning period interval time;

the cleanliness cleaning unit is used for performing online irregular cleaning on the water quality sensor according to the condition that the real-time cleanliness of the water quality sensor meets or does not meet a cleanliness threshold value as the operation condition of the cleanliness cleaning module;

the cleaning command execution unit is used for executing a cleaning command of the system in a cleaning mode finally selected by the water quality sensor, and comprises a periodic cleaning execution unit and a cleanliness cleaning execution unit;

the periodic cleaning execution unit is used for executing a cleaning command in a periodic mode; the cleaning executing unit is used for executing the cleaning command in the cleaning mode.

4. The self-cleaning control system of a water quality sensor according to claim 3, wherein the cleanliness cleaning unit comprises a security unit for monitoring security countdown of the cleanliness cleaning unit; the safety unit comprises a warning unit, the warning unit is used for displaying the early warning triggered by the safety unit when the safety countdown is finished, and simultaneously, the water quality sensor is controlled to stop to be detected.

5. A self-cleaning control method of a water quality sensor is characterized by comprising the following steps:

s100: establishing a cleaning database of sensors, the cleaning database comprising: the number of times that the system selects a periodic pattern for the water quality sensor in a past history record, the number of historical use days corresponding to the number of times that the system selects a periodic pattern for the water quality sensor in a past history record, the number of times that the system selects a cleanliness pattern for the water quality sensor in a past history record, the number of historical use days corresponding to the number of times that the system selects a cleanliness pattern for the water quality sensor in a past history record, the number of historical use times of the water quality sensor, the number of historical use days corresponding to the number of historical use times of the water quality sensor, the number of alarm shutdown times of the water quality sensor device, the number of historical use days corresponding to the number of alarm shutdown times of the water quality sensor device;

s200: recommending a cleaning mode for the water quality sensor, wherein the cleaning mode comprises a periodic mode and a cleanliness mode, and selecting the cleaning mode for the water quality sensor according to a recommendation result;

s300: determining the amount of cleaning agent required by the water quality sensor for cleaning at any time according to the cleanliness value of the water quality sensor detected when the cleaning mode is selected by the system;

s400: and starting to clean the water quality sensor.

6. The self-cleaning control method of the water quality sensor according to claim 5, characterized in that: the step S200 further includes the steps of:

s201: extracting information in the clean database, calculating the use frequency of a water quality sensor, the frequency of a periodic mode selected by a system for the water quality sensor in a past history, the frequency of a cleanliness mode selected by the system for the water quality sensor in the past history and the alarm shutdown frequency of water quality sensor equipment according to the information in the clean database, and according to a formula: p ═ n1/D1;Q1=n2/D2;Q2=n3/D3;Z=n4/D4(ii) a Wherein p is the use frequency of the water quality sensor, and n is1For the historical number of uses of the water quality sensor, D1The number of historical use days corresponding to the historical use times of the water quality sensor is set; q1Selecting a frequency of a periodic mode for the water quality sensor in a past history record for a system; n is2Selecting the number of times of a periodic mode for the water quality sensor in the past history record for the system; d2Historical usage days corresponding to the number of times the system selects a periodic pattern for the water quality sensor in a past history record; q2Selecting a frequency of a cleanliness mode for the water quality sensor in a past history record for a system; n is3Selecting a cleanliness mode for the water quality sensor in the past history record for the system; d3Historical use days corresponding to the times of selecting a cleanliness mode for the water quality sensor in the past history record by the system; z is the alarm shutdown frequency of the water quality sensor equipment; n is4Alarming the water quality sensor equipment for the shutdown times; d4Historical use days corresponding to the alarm shutdown times of the water quality sensor equipment are obtained;

s202: when the frequency of the periodic mode selected by the system for the water quality sensor in the past history record is greater than the frequency of the selected cleanliness mode, and the difference between the frequency of the selected periodic mode and the frequency of the selected cleanliness mode is greater than or equal to a limited frequency threshold, the mode recommendation result is preferentially pre-judged to be the cleanliness mode;

s203: checking the alarm shutdown frequency of the water quality sensor equipment, and if the alarm shutdown frequency of the water quality sensor equipment exceeds a first safety alarm threshold value limited by a system, the best recommended mode recommended by the mode is a cleanliness mode, and the system displays the best recommended mode;

if the alarm shutdown frequency of the water quality sensor equipment does not exceed a first safety alarm threshold value defined by a system, calculating the recommendation degree of the cleanliness mode according to a formula, wherein the formula is as follows:

W1=Q1×a1+Z×b1+P×c1

wherein, a1Represents said Q1The weight occupied; b1Represents the weight occupied by the Z; c. C1Represents the weight occupied by the P; wherein a is1<c1<b1

S204: when the frequency of the periodic mode selected by the system for the water quality sensor in the past history record is less than the frequency of the cleanliness mode selected by the system, and the alarm shutdown frequency of the water quality sensor equipment does not exceed a second safety alarm threshold value limited by the system, the periodic mode is adopted as a result of preferentially prejudging the mode recommendation;

s205: checking the use frequency of the water quality sensor, and if the use frequency of the water quality sensor is less than a limited frequency threshold, the optimal recommended mode recommended by the mode is a periodic mode, and the system displays the optimal recommended mode;

if the using frequency of the water quality sensor is greater than a defined frequency threshold value, calculating the recommendation degree of the periodic pattern according to a formula, wherein the formula is as follows:

W2=Q2×a2+Z×b2+P×c2

wherein, a2Represents said Q2The weight occupied; b2Represents the weight occupied by the Z; c. C2Represents the weight occupied by the P; wherein a is2<b2<c2

S206: when the best recommended mode is not shown in step S203 and step S205, but the mode recommendation degrees of the corresponding different modes appear, the user may refer to the mode recommendation degrees to perform the autonomous mode selection.

7. The self-cleaning control method of the water quality sensor according to claim 5, characterized in that: the step S300 includes:

s301: recording a common water quality sensor cleanliness value and cleaning agent dosage data used correspondingly to the cleanliness value in the system in advance to serve as an original agent library;

s302: when the system calculates the real-time cleanliness values of the water quality sensor, calculating deviation ratios of the real-time cleanliness values and the cleanliness values commonly found in the original medicament library one by one; processing the data of the common cleanliness values in the original medicament library according to the deviation rate;

s303: comprehensively sorting the deviation rates of the detection values according to a sequence from small to large, and correspondingly selecting data of common cleanliness values of the first three of the deviation rate comprehensive ranks;

s304: calling the cleaning agent dosage corresponding to the data of the common cleanliness values with the deviation rates comprehensively ranked in the first three in the step S303, calculating the average value of the cleaning agent dosages and reserving the final average value, wherein the final average value is used as the cleaning agent dosage required to be placed on the water quality sensor by the system when the real-time cleanliness values in the step S302 are obtained by the system;

s305: and storing the real-time cleanliness values in the step S302 and the quantity of the cleaning medicament corresponding to the real-time cleanliness values obtained in the step S304 in the original medicament library. .

8. The self-cleaning control method of the water quality sensor according to claim 5, characterized in that: the step S400 further includes the steps of:

s401: selecting a periodic mode, performing countdown according to set interval time of a cleaning period, triggering a cleaning command after the countdown of the interval time of the cleaning period is finished, closing a transmission channel of a real-time value of a water quality sensor after a system receives the cleaning command, stopping displaying the real-time value of the water quality sensor, maintaining the real-time value of the water quality sensor, closing a water inlet valve of the water quality sensor, delaying for 2-6s, opening a dosing pump, dosing the water quality sensor, closing a water outlet valve, opening a circulating valve of the water quality sensor after dosing is finished, and starting a booster pump of the water quality sensor to clean the water quality sensor; after the cleaning is finished, closing the booster pump and the circulating valve, opening the water inlet valve and the water outlet valve, delaying for 2-6 seconds, opening a transmission channel of a real-time value of the water quality sensor, recovering the display of the real-time value, simultaneously re-entering the next cleaning period for interval time countdown, and circulating in the same period;

s402: selecting a cleanliness mode, triggering a command to be cleaned, and starting security countdown; comparing the current real-time cleanliness with a set cleanliness threshold, and when the real-time cleanliness value is greater than the set cleanliness threshold, removing the command to be cleaned, stopping and resetting the security countdown, and waiting for the next command to be cleaned; when the real-time cleanliness value is smaller than a set cleanliness threshold value, a cleaning command is triggered after the cleaning command is finished, a system closes a transmission channel of a real-time value of a water quality sensor after receiving the cleaning command, stops displaying the real-time value of the water quality sensor, keeps the real-time value of the water quality sensor, closes a water inlet valve of the water quality sensor, delays for 2-6s, opens a dosing pump, doses the water quality sensor, closes a water outlet valve and opens a circulating valve of the water quality sensor after dosing is finished, and simultaneously starts a booster pump of the water quality sensor to clean the water quality sensor; comparing the real-time cleanliness value with a set cleanliness threshold value after each cleaning is finished until the real-time cleanliness value is larger than the set cleanliness threshold value; and if the security countdown is finished, the real-time cleanliness value is still smaller than the set cleanliness threshold value, equipment is triggered to alarm and shut down, and workers are waited to check the water quality sensor.

9. The self-cleaning control method of the water quality sensor according to claim 6, characterized in that: the first safety alarm threshold is greater than the second safety alarm threshold.

10. The self-cleaning control method of the water quality sensor according to claim 7, characterized in that: the step S302 further includes:

calculating the deviation ratio according to the formula:

wherein, betaiRepresenting the deviation ratio between the ith common cleanliness value and the real-time cleanliness value, AiRepresents the ith common cleanliness value, and A represents the real-time cleanliness value;

if the calculated deviation rate is equal to 0%, discarding the real-time cleaning degree value, and directly calling the cleaning agent dosage corresponding to the common cleaning degree value as a reference value for selecting the cleaning agent dosage;

and if the calculated deviation rate is not equal to 0%, the real-time cleanliness value is reserved.

Technical Field

The invention relates to the technical field of automatic control, in particular to a self-cleaning control system and a self-cleaning control method for a water quality sensor.

Background

Nowadays, the environmental protection is more and more important, the water quality sensor is indispensable for some industries, for example, most of industrial wastewater is detected by heavy metal content, drinking water plants may need to detect various parameters such as microorganisms, organic matters, heavy metals, disinfectants and the like, and the detection work of the parameters is mainly completed by various water quality sensors of a water quality detector, although the water quality sensor brings great convenience for the detection work of people, due to the application occasion, the water quality sensor is often polluted and attached by impurities in water, so that the normal measurement work of the water quality sensor is seriously influenced, in order to measure more accurately, the current general method is to arrange a specially-assigned person to regularly disassemble and clean the water quality sensor installed on the site, and ensure that the water quality sensor is clean within a certain time; but also has some adverse effects: because the cleaning machine is operated manually and is influenced by various factors, the interval of the cleaning period generally floats for a period of time and is not stable, so that the condition of inaccurate data measurement caused by untimely cleaning of the water quality sensor can be caused; the cleaning agent dosage is placed in the cleaning process, because the cleaning is carried out on site, no precise metering tool is provided, the addition can be carried out only by feeling, the addition of the agent is too much or too little, the too much addition can cause waste, and the too little cleaning is not clean; the normal production rhythm is influenced, because the water quality sensor needs to be disassembled for cleaning, the current pipeline needs to be subjected to valve closing treatment, and the current working section cannot work normally during cleaning; the health and safety of the operator, due to the environment of use, is relatively vulnerable to exposure to contaminated water and smelling irritating or toxic gases when performing a disassembly cleaning.

Based on the above problems, it is urgent to provide a self-cleaning control system and method for a water quality sensor, in the invention, online automatic cleaning of the water quality sensor is realized, which enables the system to avoid the interference of the detection value of the water quality sensor in the process of cleaning the water quality sensor, the invention provides two cleaning modes of the water quality sensor, namely a periodic mode and a cleanliness mode, and simultaneously provides a mode recommendation method; the optimal mode recommendation is provided for the water quality sensor by calculating and analyzing some historical use record information of the water quality sensor and the performance state of the water quality sensor, and the recommendation degrees of two different modes are respectively calculated for the water quality sensor when the optimal mode recommendation does not need to be provided for the water quality sensor, so that a user can make mode selection by referring to the recommendation degrees; in the cleaning process, the original data are utilized and analyzed, and the dosage of the cleaning agent is ensured to be consistent with the quantitative requirement required by cleanliness.

Disclosure of Invention

The invention aims to provide a self-cleaning control system and a self-cleaning control method for a water quality sensor, so as to solve the problems in the background technology.

In order to solve the technical problems, the invention provides the following technical scheme: a self-cleaning control system for a water quality sensor, the system comprising: the system comprises a mode database, a mode recommendation module, a mode switching module, a cleaning database, an original medicament library and a security module;

the mode database is used for storing historical mode selection records of the water quality sensor in the system and performance state information of the water quality sensor;

the mode recommending module is used for recommending a cleaning mode for the water quality sensor by the system;

the mode switching module is used for displaying the optimal recommendation mode obtained by the mode recommendation module or different recommendation degrees of different modes; the user can change the obtained optimal recommendation mode according to own will, or the user can complete the autonomous selection of the final mode by referring to different recommendation degrees of different modes;

the cleaning database is used for storing different selection times and corresponding days of different modes selected by the system for the water quality sensor in the past historical record, the alarm shutdown times and corresponding days of equipment for storing the water quality sensor, and the historical use times and corresponding days of the stored water quality sensor;

the original medicament library is used for storing a common cleaning degree value which is recorded in advance and the dosage of the cleaning medicament corresponding to the cleaning degree value;

further, the mode recommending module comprises a priority pre-judging unit, an optimal mode analyzing unit and a mode recommending degree calculating unit;

the priority pre-judging unit is used for firstly carrying out initial priority selection on a cleaning mode on the water quality sensor;

the optimal mode analysis unit is used for further analyzing according to the priority pre-judgment result obtained by the priority pre-judgment unit to obtain an optimal recommended mode of water quality sensing;

the mode recommendation degree calculating unit is used for calculating the mode recommendation degrees of different modes for the water quality sensor when the optimal mode analyzing unit fails to obtain the optimal recommendation mode;

the priority pre-judging unit is used for obtaining the using mode of the water quality sensor at this time or which mode the water quality sensor tends to at this time based on data analysis; the optimal mode analysis unit is used for calculating a cleaning mode which is most suitable for the water sensor for the system by combining the result of the priority pre-judgment unit, and the cleaning mode is a cleaning mode which is most suitable for the current state of the water sensor and is obtained by combining data analysis; the mode recommendation degree calculating unit is used for calculating the recommendation degree of the priority pre-judging mode obtained by the priority pre-judging unit for the user when the best mode analyzing unit does not output the best mode analyzing result, so that the user can make reference to make selection.

Further, the mode switching module comprises a periodic cleaning unit, a cleanliness cleaning unit and a cleaning command execution unit;

the periodic cleaning unit is used for cleaning the water quality sensor on line at regular time according to the set cleaning period interval time;

the cleanliness cleaning unit is used for performing online untimely cleaning on the water quality sensor according to the condition that the real-time cleanliness of the water quality sensor meets or does not meet a cleanliness threshold value as a cleanliness cleaning module to operate;

the cleaning command execution unit is used for executing a cleaning command of a system in a cleaning mode finally selected by the water quality sensor, and comprises a periodic cleaning execution unit and a cleanliness cleaning execution unit;

the periodic cleaning execution unit is used for executing a cleaning command in a periodic mode; the cleanliness cleaning execution unit is used for executing a cleaning command in a cleanliness mode;

the module is provided to better achieve the purpose of ensuring that the water quality sensor can be cleaned on line without stopping in the system.

Further, the cleanliness cleaning module comprises a security module, and the security module is used for monitoring security countdown of the cleanliness cleaning module; the safety module comprises a warning module, and the warning module is used for displaying early warning triggered by the safety module when the safety countdown is finished and controlling the water quality sensor to stop for inspection;

the safety module and the warning module are provided for monitoring the service condition of the water quality sensor, and meanwhile, manual inspection is introduced when the water quality sensor goes wrong, so that the water quality sensor is guaranteed to be repaired in time.

In order to realize the system, a self-cleaning control method of the water quality sensor is also provided, and the method comprises the following steps:

s100: establishing a cleaning database for the sensor, the cleaning database comprising: the system selects the frequency of a periodic mode for the water quality sensor in the past history record, the historical use days corresponding to the frequency of the periodic mode for the water quality sensor in the past history record, the frequency of the cleanliness mode for the water quality sensor in the past history record, the historical use days corresponding to the frequency of the cleanliness mode for the water quality sensor in the past history record, the historical use times of the water quality sensor, the historical use days corresponding to the historical use times of the water quality sensor, the alarm shutdown times of the water quality sensor equipment and the historical use days corresponding to the alarm shutdown times of the water quality sensor equipment;

s200: recommending a cleaning mode for the water quality sensor, wherein the cleaning mode comprises a periodic mode and a cleanliness mode, and selecting the cleaning mode for the water quality sensor according to a recommendation result;

s300: determining the cleaning agent dosage required by the water quality sensor for cleaning at any time according to the cleanliness value of the water quality sensor detected when the system selects the cleaning mode;

s400: and starting to clean the water quality sensor.

Further, step S200 further includes the following steps:

s201: extracting information in a clean database, calculating the use frequency of a water quality sensor, the frequency of a periodic mode selected by a system for the water quality sensor in a past history, the frequency of a cleanliness mode selected by the system for the water quality sensor in the past history and the alarm shutdown frequency of water quality sensor equipment according to the information in the clean database, and according to a formula: p ═ n1/D1;Q1=n2/D2;Q2=n3/D3;Z=n4/D4(ii) a Wherein p is the use frequency of the water quality sensor, and n is1For the historical number of uses of the water quality sensor, D1The number of historical using days corresponding to the historical using times of the water quality sensor is set; q1Selecting a frequency of a periodic mode for a water quality sensor in a past history record for a system; n is2Selecting the frequency of a periodic mode for the water quality sensor in the past history record for the system; d2Historical use days corresponding to the times of selecting a periodic mode for the water quality sensor in the past historical record by the system; q2Selecting the frequency of a cleanliness mode for a water quality sensor in the past history record for a system; n is3Selecting the times of a cleanliness mode for the water quality sensor in the past history record for the system; d3Historical use days corresponding to the times of selecting a cleanliness mode for the water quality sensor in the past history record by the system; z is the alarm shutdown frequency of the water quality sensor equipment; n is4Alarming the water quality sensor equipment for the shutdown times; d4Historical use days corresponding to the alarm shutdown times of the water quality sensor equipment are obtained;

s202: when the frequency of the periodic mode selected by the system for the water quality sensor in the past history record is greater than the frequency of the cleanliness mode selected by the system, and the difference between the frequency of the periodic mode selected by the system and the frequency of the cleanliness mode selected by the system is greater than or equal to a limited frequency threshold, the mode recommendation result is preferentially pre-judged to be the cleanliness mode;

s203: checking the alarm shutdown frequency of the water quality sensor equipment, if the alarm shutdown frequency of the water quality sensor equipment exceeds a first safety alarm threshold value limited by the system, the best recommended mode recommended by the mode is a cleanliness mode, and the system displays the best recommended mode;

if the alarm shutdown frequency of the water quality sensor equipment does not exceed a first safety alarm threshold value defined by the system, calculating the recommendation degree of the cleanliness mode according to a formula, wherein the formula is as follows:

W1=Q1×a1+Z×b1+P×c1

wherein, a1Represents Q1The weight occupied; b1Represents the weight occupied by Z; c. C1Represents the weight occupied by P; wherein a is1<c1<b1(ii) a The highest weight setting of the alarm shutdown frequency of the water quality sensor equipment is to highlight the importance of the factor of the alarm shutdown frequency of the water quality sensor equipment on the mode selection under the condition;

the priority prejudgment result obtained in step S202 is based on the usage conditions of the periodic pattern and the cleanliness pattern, and the priority prejudgment result here indicates that the cleanliness pattern is due to the fact that the periodic pattern has a higher requirement on the performance of the water quality sensor than the cleanliness pattern; under the condition that the frequency of the periodic mode reaches a certain frequency and the use frequency of the cleaning mode also exceeds a limited frequency threshold, in order to enable the water quality sensor to achieve better cleaning and not to influence the use, the psychological consideration that a user may want to change a cleaning mode is also considered, and the cleaning mode is preferentially judged and adopted in the use mode; and step S203 is to further analyze the performance of the water quality sensor on the basis of the priority pre-judgment result, and the analysis is carried out on the alarm shutdown frequency of the water quality sensor equipment, because the alarm shutdown frequency of the equipment is set in the cleanliness mode, the period mode is far larger than the cleanliness mode in the past use record, and the alarm shutdown frequency of the equipment still exceeds the first safety alarm threshold under the condition that the frequency of the cleanliness mode selection is a few, the performance of the water quality sensor can be estimated to be risky, and at the moment, if the water quality sensor use period mode is also used, the probability of the alarm shutdown of the equipment caused by unclean cleaning is high, so an optimal recommendation mode is generated, and the user can still autonomously select whether to adopt or not according to the current use requirement when the optimal recommendation mode of the system is generated, only the condition that the optimal recommendation mode is used for reminding the user, the reference significance is larger, and the water quality sensor is greatly influenced by the selection made by the user; when the optimal recommendation mode is not displayed, namely the frequency of the alarm shutdown of the equipment does not exceed the first safety alarm threshold value, the performance of the water quality sensor does not have the degree that the system needs to remind a user, the recommendation degree of the cleanliness mode in the priority prejudgment result is calculated for the user, the user can make a selection based on the recommendation degree of the mode, and under the condition, the user has great freedom of selection, and the made selection has little influence on the water quality sensor;

s204: when the frequency of the periodic mode selected by the system for the water quality sensor in the past history record is less than the frequency of the cleanliness mode selected by the system, and the alarm shutdown frequency of the water quality sensor equipment does not exceed a second safety alarm threshold value limited by the system, the periodic mode is adopted as a recommended result of the mode in advance;

s205: checking the use frequency of the water quality sensor, and if the use frequency of the water quality sensor is less than a limited frequency threshold, the optimal recommended mode recommended by the mode is a periodic mode, and the system displays the optimal recommended mode;

if the using frequency of the water quality sensor is larger than the limited frequency threshold value, calculating the recommendation degree of the periodic pattern according to the formula, wherein the formula is as follows:

W2=Q2×a2+Z×b2+P×c2

wherein, a2Represents Q2The weight occupied; b2Represents the weight occupied by Z; c. C2Represents the weight occupied by P; wherein a is2<b2<c2(ii) a The highest weight of the use frequency data of the water quality sensor is set to highlight the importance of the factor of the self performance condition of the water quality sensor to the mode selection under the condition;

the priority prejudgment result obtained in step S204 is also based on the usage status of the periodic mode and the cleanliness mode, and at this time, the result of the priority prejudgment shows that the periodic mode is the data of the alarm shutdown frequency of the water quality sensor equipment, and the alarm shutdown frequency of the water quality sensor equipment is still very low under the condition that the frequency of adopting the cleanliness mode is huge, and it is estimated that the performance state of the water quality sensor is healthy, and the periodic mode has higher requirement on the performance of the water quality sensor compared with the cleanliness mode, so the user may want to change a clean mode in consideration of psychological consideration, and the periodic mode is prejudged preferentially in the usage mode at this time; step S205 is to analyze the performance of the water quality sensor further on the basis of the result, the use frequency of the water quality sensor is analyzed, the fact that the water quality sensor is new and the performance of the water quality sensor is healthy is inferred by the fact that the water quality sensor is used with low frequency, therefore, an optimal recommendation mode appears, and the user can still independently select whether to adopt or not according to the current use requirement when the system has the optimal recommendation mode; when the optimal recommendation mode is not displayed, namely the use frequency of the water quality sensor is not reduced to a certain threshold value, the performance of the water quality sensor is estimated to be in a sub-health state at the moment, the recommendation degree of the periodic mode in the priority prejudgment result is calculated for the user, the user can make a selection based on the recommendation degree of the mode, and in this case, the selection freedom of the user is large, and the influence of the made selection on the water quality sensor is small;

s206: when the best recommended mode is not shown in step S203 and step S205, but the mode recommendation degrees of the corresponding different modes appear, the user may perform the autonomous selection mode with reference to the mode recommendation degrees.

Further, step S300 includes:

s301: recording a cleanliness value of a common water quality sensor and cleaning agent dosage data used correspondingly to the cleanliness value in the system in advance to serve as an original agent library;

s302: when the system calculates the real-time cleanliness values of the water quality sensor, calculating deviation ratios of the real-time cleanliness values and the cleanliness values commonly found in an original medicament library one by one; processing the data of the cleanliness values commonly found in the original medicament library according to the deviation rate;

s303: comprehensively sorting the deviation rates of the detection values according to the arrangement sequence from small to large, and correspondingly selecting the data of the common cleanliness values of the first three of the deviation rate comprehensive ranks;

s304: calling the cleaning agent dosage corresponding to the data of the common cleanliness factor values with the deviation rates comprehensively ranked in the first three in the step S303, calculating the average value of the cleaning agent dosages and keeping the final average value, wherein the final average value is used as the cleaning agent dosage required to be placed on the water quality sensor by the system when the real-time cleanliness factor value in the step S302 is obtained by the system;

s305: storing the real-time cleanliness values in the step S302 and the cleaning medicament quantity corresponding to the real-time cleanliness values obtained in the step S304 in an original medicament library;

the deviation ratio is calculated for the real-time cleanliness values through the above steps to derive the amount of the cleaning agent corresponding to the real-time cleanliness values, which can reduce the burden of data entry in step S301.

Further, step S400 further includes the following steps:

s401: selecting a period mode, performing countdown according to set interval time of a cleaning period, triggering a cleaning command after the countdown of the interval time of the cleaning period is finished, closing a transmission channel of a real-time value of the water quality sensor after the system receives the cleaning command, stopping displaying the real-time value of the water quality sensor, maintaining the real-time value of the water quality sensor, closing a water inlet valve of the water quality sensor, delaying for 2-6s, opening a dosing pump, dosing the water quality sensor, closing a water outlet valve, opening a circulating valve of the water quality sensor after dosing is finished, simultaneously starting a booster pump of the water quality sensor, and cleaning the water quality sensor; after the cleaning is finished, closing the booster pump and the circulating valve, opening the water inlet valve and the water outlet valve, delaying for 2-6 seconds, opening the transmission channel of the real-time value of the water quality sensor, recovering the display of the real-time value, simultaneously re-entering the next cleaning period for time interval countdown, and circulating in the period;

s402: selecting a cleanliness mode, triggering a command to be cleaned, and starting security countdown; comparing the current real-time cleanliness with a set cleanliness threshold, when the real-time cleanliness value is larger than the set cleanliness threshold, removing the command to be cleaned, stopping and resetting the security countdown, and waiting for the next command to be cleaned; when the real-time cleanliness value is smaller than the set cleanliness threshold value, the cleaning command is triggered after the cleaning command is finished, after the system receives the cleaning command, a transmission channel of the real-time value of the water quality sensor is closed, the display of the real-time value of the water quality sensor is stopped, the real-time value of the water quality sensor is kept, a water inlet valve of the water quality sensor is closed, a medicine adding pump is opened after 2-6s delay, the medicine is added to the water quality sensor, after the medicine adding is finished, a water outlet valve is closed, a circulating valve of the water quality sensor is opened, meanwhile, a booster pump of the water quality sensor is started, and the water quality sensor is cleaned; comparing the real-time cleanliness value with a set cleanliness threshold value after each cleaning is finished until the real-time cleanliness value is larger than the set cleanliness threshold value; if the safety protection countdown is finished, and the real-time cleanliness value is still smaller than the set cleanliness threshold value, triggering the equipment to alarm and stop, and waiting for workers to check the water quality sensor;

the execution command can ensure that the system does not stop the sensor and simultaneously carries out online cleaning, and can also avoid that the detection value of the water quality sensor is less interfered in the cleaning process.

Further, the first safety alarm threshold value is larger than the second safety alarm threshold value;

the first safety alarm threshold and the second safety alarm threshold are both used for reflecting the performance of the water quality sensor, and the first safety alarm threshold is set to be larger than the second safety alarm threshold so as to highlight that the proportion of the performance factor of the water quality sensor in the step S203 is larger than that of the performance factor of the water quality sensor in the step S204.

Further, step S302 further includes:

calculating the deviation ratio according to the formula:

wherein, betaiRepresenting the deviation ratio of the detected value between the ith common cleanliness value and the real-time cleanliness value, AiRepresents the ith common cleanliness value, and A represents the real-time cleanliness value;

if the calculated deviation rate is equal to 0%, discarding the real-time cleaning degree value, and directly calling the cleaning agent dosage corresponding to the common cleaning degree value as a reference value for selecting the cleaning agent dosage;

if the calculated deviation rate is not equal to 0%, reserving a real-time cleanliness value;

the operation of discarding and retaining the real-time cleanliness values can reduce the data burden of the system, make the cleanliness values stored by the system have representative significance, and reduce the redundancy and repetition of data in a system database.

Compared with the prior art, the invention has the following beneficial effects: the invention realizes the online automatic cleaning of the water quality sensor, which prevents the detection value of the water quality sensor from being interfered in the process of cleaning the water quality sensor by a system, provides two cleaning modes of the water quality sensor, namely a periodic mode and a cleanliness mode, and simultaneously provides a mode recommendation method; the optimal mode recommendation is provided for the water quality sensor by calculating and analyzing some historical use record information of the water quality sensor and the performance state of the water quality sensor, and the recommendation degrees of two different modes are respectively calculated for the water quality sensor when the optimal mode recommendation does not need to be provided for the water quality sensor, so that a user can make mode selection by referring to the recommendation degrees; in the cleaning process, the original data are utilized and analyzed, and the dosage of the cleaning agent is ensured to be consistent with the quantitative requirement required by cleanliness.

Drawings

The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:

FIG. 1 is a schematic diagram of a self-cleaning control system for a water quality sensor;

fig. 2 is a flow chart of a self-cleaning control method of a water quality sensor.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

Referring to fig. 1-2, the present invention provides the following technical solutions: a self-cleaning control system for a water quality sensor, the system comprising: the system comprises a mode database, a mode recommendation module, a mode switching module, a cleaning database, an original medicament library and a security module;

the mode database is used for storing historical mode selection records of the water quality sensor in the system and performance state information of the water quality sensor;

the mode recommending module is used for recommending a cleaning mode for the water quality sensor by the system; the mode recommending module comprises a priority pre-judging unit, an optimal mode analyzing unit and a mode recommending degree calculating unit; the priority pre-judging unit is used for firstly carrying out initial priority selection on a cleaning mode on the water quality sensor; the optimal mode analysis unit is used for further analyzing according to the priority pre-judgment result obtained by the priority pre-judgment unit to obtain an optimal recommended mode of water quality sensing;

the mode recommendation degree calculation unit is used for calculating the mode recommendation degrees of different modes for the water quality sensor when the optimal mode analysis unit fails to obtain the optimal recommendation mode

The mode switching module is used for displaying the optimal recommendation mode obtained by the mode recommendation module or different recommendation degrees of different modes; the user can change the obtained optimal recommendation mode according to own will, or the user can complete the autonomous selection of the final mode by referring to different recommendation degrees of different modes;

the mode switching module comprises a periodic cleaning unit, a cleanliness cleaning unit and a cleaning command execution unit; the periodic cleaning unit is used for cleaning the water quality sensor on line at regular time according to the set cleaning period interval time; the cleanliness cleaning unit is used for performing online untimely cleaning on the water quality sensor according to the condition that the real-time cleanliness of the water quality sensor meets or does not meet a cleanliness threshold value as a cleanliness cleaning module to operate;

the cleanliness cleaning unit comprises a security unit, and the security unit is used for monitoring security countdown of the cleanliness cleaning unit; the safety unit comprises a warning unit, the warning unit is used for displaying the early warning triggered by the safety unit when the safety countdown is finished, and simultaneously controlling the water quality sensor to stop for inspection;

the cleaning command execution unit is used for executing a cleaning command of a system in a cleaning mode finally selected by the water quality sensor, and comprises a periodic cleaning execution unit and a cleanliness cleaning execution unit; the periodic cleaning execution unit is used for executing a cleaning command in a periodic mode; the cleanliness cleaning execution unit is used for executing a cleaning command in a cleanliness mode; the cleaning database is used for storing different selection times and corresponding days of different modes selected by the system for the water quality sensor in the past historical record, the alarm shutdown times and corresponding days of equipment for storing the water quality sensor, and the historical use times and corresponding days of the stored water quality sensor;

the original medicament library is used for storing a common cleaning degree value which is recorded in advance and the dosage of the cleaning medicament corresponding to the cleaning degree value.

In order to realize the system, a self-cleaning control method of the water quality sensor is also provided, and the method comprises the following steps:

s100: establishing a cleaning database for the sensor, the cleaning database comprising: the system selects the frequency of a periodic mode for the water quality sensor in the past history record, the historical use days corresponding to the frequency of the periodic mode for the water quality sensor in the past history record, the frequency of the cleanliness mode for the water quality sensor in the past history record, the historical use days corresponding to the frequency of the cleanliness mode for the water quality sensor in the past history record, the historical use times of the water quality sensor, the historical use days corresponding to the historical use times of the water quality sensor, the alarm shutdown times of the water quality sensor equipment and the historical use days corresponding to the alarm shutdown times of the water quality sensor equipment;

s200: recommending a cleaning mode for the water quality sensor, wherein the cleaning mode comprises a periodic mode and a cleanliness mode, and selecting the cleaning mode for the water quality sensor according to a recommendation result; wherein, step S200 further comprises the following steps:

s201: extracting information in a clean database, calculating the use frequency of a water quality sensor, the frequency of a periodic mode selected by a system for the water quality sensor in a past history, the frequency of a cleanliness mode selected by the system for the water quality sensor in the past history and the alarm shutdown frequency of water quality sensor equipment according to the information in the clean database, and according to a formula: p ═ n1/D1;Q1=n2/D2;Q2=n3/D3;Z=n4/D4(ii) a Wherein p is the use frequency of the water quality sensor, and n is1For the historical number of uses of the water quality sensor, D1The number of historical using days corresponding to the historical using times of the water quality sensor is set; q1Selecting a frequency of a periodic mode for a water quality sensor in a past history record for a system; n is2Selecting the frequency of a periodic mode for the water quality sensor in the past history record for the system; d2Historical use days corresponding to the times of selecting a periodic mode for the water quality sensor in the past historical record by the system; q2Selecting the frequency of a cleanliness mode for a water quality sensor in the past history record for a system; n is3Selecting the times of a cleanliness mode for the water quality sensor in the past history record for the system;D3historical use days corresponding to the times of selecting a cleanliness mode for the water quality sensor in the past history record by the system; z is the alarm shutdown frequency of the water quality sensor equipment; n is4Alarming the water quality sensor equipment for the shutdown times; d4Historical use days corresponding to the alarm shutdown times of the water quality sensor equipment are obtained;

s202: when the frequency of the periodic mode selected by the system for the water quality sensor in the past history record is greater than the frequency of the cleanliness mode selected by the system, and the difference between the frequency of the periodic mode selected by the system and the frequency of the cleanliness mode selected by the system is greater than or equal to a limited frequency threshold, the mode recommendation result is preferentially pre-judged to be the cleanliness mode;

s203: checking the alarm shutdown frequency of the water quality sensor equipment, if the alarm shutdown frequency of the water quality sensor equipment exceeds a first safety alarm threshold value limited by the system, the best recommended mode recommended by the mode is a cleanliness mode, and the system displays the best recommended mode;

if the alarm shutdown frequency of the water quality sensor equipment does not exceed a first safety alarm threshold value defined by the system, calculating the recommendation degree of the cleanliness mode according to a formula, wherein the formula is as follows:

W1=Q1×a1+Z×b1+P×c1

wherein, a1Represents Q1The weight occupied; b1Represents the weight occupied by Z; c. C1Represents the weight occupied by P; wherein a is1<c1<b1;a1、c1、b1Are all less than 1 and greater than 0; the highest weight setting of the alarm shutdown frequency of the water quality sensor equipment is to highlight the importance of the factor of the alarm shutdown frequency of the water quality sensor equipment on the mode selection under the condition; in this embodiment, b is1Is taken to be 0.56, c1Taken as 0.26, a1Taking the value as 0.18;

s204: when the frequency of the periodic mode selected by the system for the water quality sensor in the past history record is less than the frequency of the cleanliness mode selected by the system, and the alarm shutdown frequency of the water quality sensor equipment does not exceed a second safety alarm threshold value limited by the system, the periodic mode is adopted as a recommended result of the mode in advance;

s205: checking the use frequency of the water quality sensor, and if the use frequency of the water quality sensor is less than a limited frequency threshold, the optimal recommended mode recommended by the mode is a periodic mode, and the system displays the optimal recommended mode;

if the using frequency of the water quality sensor is larger than the limited frequency threshold value, calculating the recommendation degree of the periodic pattern according to the formula, wherein the formula is as follows:

W2=Q2×a2+Z×b2+P×c2

wherein, a2Represents Q2The weight occupied; b2Represents the weight occupied by Z; c. C2Represents the weight occupied by P; wherein a is2<b2<c2;a2、b2、c2Are all less than 1 and greater than 0; the highest weight of the use frequency data of the water quality sensor is set to highlight the importance of the factor of the self performance condition of the water quality sensor to the mode selection under the condition; in this embodiment, c is2Taken as 0.56, b2Taken as 0.26, a2Taking as 0.18;

s206: when the optimal recommendation mode is not shown in step S203 and step S205, but the mode recommendation degrees of the corresponding different modes appear, the user can refer to the recommendation degrees to perform the autonomous selection mode;

s300: determining the cleaning agent dosage required by the water quality sensor for cleaning at any time according to the cleanliness value of the water quality sensor detected when the system selects the cleaning mode; wherein, step S300 includes:

s301: recording a cleanliness value of a common water quality sensor and cleaning agent dosage data used correspondingly to the cleanliness value in the system in advance to serve as an original agent library;

s302: when the system calculates the real-time cleanliness values of the water quality sensor, calculating deviation ratios of the real-time cleanliness values and the cleanliness values commonly found in an original medicament library one by one; processing the data of the cleanliness values commonly found in the original medicament library according to the deviation rate; wherein, step S302 further includes:

calculating the deviation ratio according to the formula:

wherein, betaiRepresenting the deviation ratio of the detected value between the ith common cleanliness value and the real-time cleanliness value, AiRepresents the ith common cleanliness value, and A represents the real-time cleanliness value;

if the calculated deviation rate is equal to 0%, discarding the real-time cleaning degree value, and directly calling the cleaning agent dosage corresponding to the common cleaning degree value as a reference value for selecting the cleaning agent dosage;

if the calculated deviation rate is not equal to 0%, reserving a real-time cleanliness value;

s303: comprehensively sorting the deviation rates of the detection values according to the arrangement sequence from small to large, and correspondingly selecting the data of the common cleanliness values of the first three of the deviation rate comprehensive ranks;

s304: calling the cleaning agent dosage corresponding to the data of the common cleanliness factor values with the deviation rates comprehensively ranked in the first three in the step S303, calculating the average value of the cleaning agent dosages and keeping the final average value, wherein the final average value is used as the cleaning agent dosage required to be placed on the water quality sensor by the system when the real-time cleanliness factor value in the step S302 is obtained by the system;

s305: storing the real-time cleanliness values in the step S302 and the cleaning medicament quantity corresponding to the real-time cleanliness values obtained in the step S304 in an original medicament library;

s400: and starting to clean the water quality sensor.

Wherein, step S400 further comprises the following steps:

s401: selecting a period mode, performing countdown according to set interval time of a cleaning period, triggering a cleaning command after the countdown of the interval time of the cleaning period is finished, closing a transmission channel of a real-time value of the water quality sensor after the system receives the cleaning command, stopping displaying the real-time value of the water quality sensor, maintaining the real-time value of the water quality sensor, closing a water inlet valve of the water quality sensor, delaying for 2-6s, opening a dosing pump, dosing the water quality sensor, closing a water outlet valve, opening a circulating valve of the water quality sensor after dosing is finished, simultaneously starting a booster pump of the water quality sensor, and cleaning the water quality sensor; after the cleaning is finished, closing the booster pump and the circulating valve, opening the water inlet valve and the water outlet valve, delaying for 2-6 seconds, opening the transmission channel of the real-time value of the water quality sensor, recovering the display of the real-time value, simultaneously re-entering the next cleaning period for time interval countdown, and circulating in the period;

s402: selecting a cleanliness mode, triggering a command to be cleaned, and starting security countdown; comparing the current real-time cleanliness with a set cleanliness threshold, when the real-time cleanliness value is larger than the set cleanliness threshold, removing the command to be cleaned, stopping and resetting the security countdown, and waiting for the next command to be cleaned; when the real-time cleanliness value is smaller than the set cleanliness threshold value, the cleaning command is triggered after the cleaning command is finished, after the system receives the cleaning command, a transmission channel of the real-time value of the water quality sensor is closed, the display of the real-time value of the water quality sensor is stopped, the real-time value of the water quality sensor is kept, a water inlet valve of the water quality sensor is closed, a medicine adding pump is opened after 2-6s delay, the medicine is added to the water quality sensor, after the medicine adding is finished, a water outlet valve is closed, a circulating valve of the water quality sensor is opened, meanwhile, a booster pump of the water quality sensor is started, and the water quality sensor is cleaned; comparing the real-time cleanliness value with a set cleanliness threshold value after each cleaning is finished until the real-time cleanliness value is larger than the set cleanliness threshold value; and if the security countdown is finished, the real-time cleanliness value is still smaller than the set cleanliness threshold value, the equipment is triggered to alarm and shut down, and workers are waited to check the water quality sensor.

It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.

Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:水体底栖初级生产力测量仪

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!