Summary of the invention
For addressing the above problem, technical problem to be solved by this invention is to propose a kind of control method of washing machine, be provided with the identifier F that is stored in the nonvolatile memory, judge by identifier last time, whether program for washing was fair termination, and select corresponding water quality parameter to control program for washing as calibration value by cyclelog according to identifier, be implemented in and also can normally carry out water quality when restarting after the improper termination of program for washing and judge, the intelligent control of round Realization, reduce water power consumption, save time.
Another object of the present invention is to propose a kind of washing machine of using above-mentioned control method.
For reaching this purpose, technical scheme of the present invention is:
A kind of control method for washing machine, this washing machine has water quality sensor, cyclelog, described cyclelog is provided with first memory, described first memory adopts nonvolatile memory, water quality sensor detects water quality and sensing data S is transferred to cyclelog, cyclelog deposits described sensing data S in described first memory in and becomes the first memory data M, cyclelog is controlled the washing machine operation according to the first memory data M of storing in first memory, wherein
There is identifier F in described first memory or other nonvolatile memory, is used for whether sign program for washing last time is fair termination;
Cyclelog is selected one of following operation according to the content judgement of described identifier F: operation 1, read sensor data S also cover described first memory data M with the value of described sensing data S; Operation 2, the first memory data M kept in the first memory are constant.
The demarcation water quality parameter of the detected initial laundry water of water quality sensor when further, described first memory begins for the storage program for washing.
Further, described cyclelog also has at least one second memory, cyclelog control water quality sensor water quality is detected in real time and with sensing data S real-time storage at least one described second memory as at least one second memory data M 2, cyclelog is by comparing at least one second memory data M 2 and the first memory data M of first memory to control the running of washing machine.
Further, cyclelog reads and judges whether described identifier F equals the first preset value F1,
Be then to receive the sensing data S that water quality sensor detects, and with the first memory data M in the value covering first memory of described sensing data S;
Otherwise it is constant to keep the first memory data M.
Further, as follows to the operation of identifier F: described identifier F initial value is made as the first preset value F1;
Step 1A, when program for washing begins, cyclelog reads and judges whether described identifier F equals the first preset value F1, if F equals the first preset value F1, then forwards step 1B to; If F is not equal to the first preset value F1, then forward step 1C to;
Step 1B, identifier F is made as the second preset value F2, forwards step 1C then to;
Step 1C, judge whether program for washing finishes, be then identifier to be reverted to the first preset value F1, otherwise continue described program for washing.
Preferably, described identifier F initial value is made as the first preset value F1; Described cyclelog control washing machine is carried out program for washing according to the following steps:
Step 2A, when program for washing begins, cyclelog reads and judges whether described identifier F equals the first preset value F1, if F equals the first preset value F1, then forwards step 2B to; If F is not equal to the first preset value F1, then forward step 2C to;
Step 2B, cyclelog receive the sensing data S that water quality sensor detects, and the value of usefulness S covers the first memory data M in the first memory, and identifier F is made as the second preset value F2, forward step 2C then to;
Step 2C, cyclelog control washing machine is carried out program for washing, and at rinse stage the first memory data M is rinsed and namely stops program as demarcating water quality parameter, forwards step 2D then to;
Step 2D, judge whether program for washing finishes, be then identifier to be reverted to the first preset value F1, otherwise continue described program for washing.
Preferably, as described identifier F, described first memory data have initial value M1 with the first memory data M, and described cyclelog control washing machine is carried out program for washing according to the following steps:
Step 3A, when program for washing began, cyclelog read and judges whether described first memory data M equals initial value M1, if M equals initial value M1, then forwarded step 3B to; If M is not equal to initial value M1, then forward step 3C to;
Step 3B, cyclelog receive the sensing data S that water quality sensor detects, and the first memory data M with in the value covering first memory of S forwards step 3C then to;
Step 3C, cyclelog control washing machine is carried out program for washing, and at rinse stage the first memory data M is rinsed and namely stops program as demarcating water quality parameter, forwards step 3D then to;
Step 3D, judge whether program for washing finishes, and is then the first memory data to be reverted to initial value M1, otherwise continue described program for washing.
Further, described rinsing namely stopped program and is:
Step 4A, water quality sensor detect the real-time water quality parameter S of current laundry water and real-time water quality parameter S are transferred to cyclelog;
Step 4B, cyclelog receive real-time water quality parameter S, and transmit it to second memory and become second memory data M 2;
Step 4C, cyclelog compare first memory data M and second memory data M 2, i.e. M2-M=K, and Ks is degree of rinsing value, described degree of rinsing value Ks defaults in the cyclelog; If K〉Ks, then continue execution in step 4B, and the real-time water quality parameter S that will receive transfers to second memory and replaces M2 and become second memory data M 2 '; If K<Ks, then execution in step 4D;
Step 4D, cyclelog control washing machine finish rinsing program, carry out follow-up program for washing.
A kind of washing machine is used for carrying out above-mentioned control method for washing machine.
Beneficial effect of the present invention is: a kind of control method for washing machine of the present invention and washing machine, be provided with the identifier F that is stored in the nonvolatile memory, be used for whether sign program for washing last time is fair termination, and control the corresponding water quality parameter of selection by cyclelog according to identifier and carry out program for washing as calibration value, round Realization is cleaned namely to stop, rinse and is namely stopped function, after the improper termination of program for washing, restart or also can normally carry out water quality during reconfiguration procedure and judge, realize intelligent control, greatly reduce water power consumption, saved the time.In addition, cyclelog also is provided with display module, and the user is the washing situation of monitoring washer in real time.
The specific embodiment
Further specify technical scheme of the present invention below in conjunction with accompanying drawing and by the specific embodiment.
Preferred embodiment one:
Figure 1 shows that the control method for washing machine flow chart that the preferred embodiment of the present invention one provides.
Washing machine has water quality sensor, cyclelog, cyclelog is provided with first memory, first memory is nonvolatile memory, the demarcation water quality parameter of the detected initial laundry water of water quality sensor when beginning for the storage program for washing, water quality sensor can detect the laundry water in the washing machine and the water quality parameter S that records is transferred to cyclelog, cyclelog is stored in water quality parameter S to be become the first memory data M and controls washing machine and carry out the whole washing flow process in the first memory, cyclelog is provided with identifier F, it is that the 00 and second preset value F2 is 01 that identifier F has the first preset value F1, it is 00 that the initial value of identifier F is set to the first preset value F1, judge by identifier last time, whether program for washing was fair termination, and control the corresponding water quality parameter of selection by cyclelog according to identifier and carry out program for washing as calibration value.In this preferred embodiment, the first preset value F1 00 is the identifier of program for washing fair termination last time namely; The second preset value F2 01 is the identifier of program for washing non-normal termination last time namely.
In addition, cyclelog also has second memory, cyclelog control water quality sensor water quality is detected in real time and with sensing data S real-time storage in second memory as second memory data M 2, cyclelog is by comparing second memory data M 2 and the first memory data M of first memory to control the running of washing machine.Cyclelog also is provided with display module, and the user is the washing situation of monitoring washer in real time.
The washing machine flow process of doing washing according to the following steps:
Step 2A, when program for washing begins, cyclelog reads the value of identifier F and judges, if identifier F is the first preset value F1 namely 00, represents that then this washing machine program for washing last time is termination normally finishing after, cyclelog is controlled operating procedure 2B; If identifier F is the second preset value F2 is 01, represent that then this washing machine program for washing last time is non-normal termination, cyclelog control operating procedure 2C;
Step 2B, cyclelog receive the detected water quality parameter S of water quality sensor, cover first memory data M in the first memory with the value of S, and identifier F is made as the second preset value F2 namely 01, execution in step 2C then;
Step 2C, cyclelog read the first memory data M in the first memory, carry out program for washing, and at rinse stage the first memory data M are rinsed as the clear water water quality parameter of demarcating and namely to stop program, carry out step 2D then.
Step 2D, judge whether program for washing finishes, if then cyclelog is re-set as the first preset value F1 namely 00 with identifier F, if not, then continues program for washing.
Wherein, among the step 2B identifier F is made as the second preset value F2 namely 01 purpose be, in the process of carrying out step 2C if the situation of non-normal termination, then the second preset value F2 namely 01 is stored in the cyclelog as identifier F, when program for washing restarts, cyclelog reads identifier F, the data that read are the second preset value F2, judge that then last time, program for washing was non-normal termination, cyclelog control washing machine skips steps 2B, directly operating procedure 2C carries out program for washing.
The clear water water quality parameter of first memory data M among the step 2C for demarcating, it is as judging that the standard value whether clothing is cleaned is stored in the first memory, cyclelog covers this parameter when next program for washing moves, when non-normal termination such as outage situation occurring, the first memory data M that is stored in the first memory can change yet, guarantee in once complete program for washing, to adopt consistent demarcation clear water water quality parameter all the time, guarantee to clean and namely stop, rinse the precision that namely stops function.
Rinse among the step 2C and namely stop program step and be:
Step 4A, water quality sensor detect the real-time water quality parameter S of current laundry water and real-time water quality parameter S are transferred to cyclelog;
Step 4B, cyclelog receive real-time water quality parameter S, and transmit it to second memory and become second memory data M 2;
Step 4C, cyclelog compare first memory data M and second memory data M 2, i.e. M2-M=K, and Ks is degree of rinsing value, described degree of rinsing value Ks defaults in the cyclelog; If K〉Ks, then continue execution in step 4B, and the real-time water quality parameter S that will receive transfers to second memory and replaces M2 and become second memory data M 2 '; If K<Ks, then execution in step 4D;
Step 4D, cyclelog control washing machine finish rinsing program, carry out follow-up program for washing.
By such control method, by being set, an identifier F judges last time, whether program for washing was fair termination, and control the corresponding water quality parameter of selection by cyclelog according to identifier and carry out program for washing as calibration value, be stored in first memory data M in the first memory as the clear water water quality parameter of demarcating, need carry out special clear operation by cyclelog, otherwise will keep always, even the data that abort or reconfiguration procedure situation also can not influence its storage occur, guarantee in once complete program for washing, to adopt all the time consistent demarcation clear water water quality parameter, guarantee normally carrying out of water quality arbitration functions, round Realization is cleaned and is namely stopped, rinse and namely stop function, realize intelligent control, greatly reduce water power consumption, saved the time.
Preferred embodiment two:
Washing machine structure in this preferred embodiment is identical with preferred embodiment one, to whether exist the first memory data M as identifier in the first memory, whether exist data to judge last time, whether program for washing was fair termination in the first memory by judging, and control the corresponding water quality parameter of selection by cyclelog according to result of determination and carry out program for washing as calibration value.In this preferred embodiment, have data in the first memory, expression program for washing last time is non-normal termination; There are not data in the first memory, represent that then last time, program for washing was fair termination.
Washing machine carries out program for washing according to the following steps:
Step 3A, when program for washing began, cyclelog read the first memory data M in the first memory, if free of data in the first memory, expression program for washing last time is fair termination, then forwards step 3B to; If store data in the first memory, expression program for washing last time is non-normal termination, then forwards step 3C to;
Step 3B, cyclelog receive the sensing data S that water quality sensor detects, and the first memory data M with in the value covering first memory of S forwards step C then to;
Step 3C, cyclelog read the first memory data M in the first memory, and carry out program for washing, and at rinse stage the first memory data M are rinsed as the clear water water quality parameter of demarcating and namely to stop program, forward step 3D then to;
Step 3D, judge whether program for washing finishes, be that then the first memory data M in the first memory is removed in cyclelog control, otherwise continue program for washing.
It is identical with preferred embodiment one that rinsing among the step 3C namely stopped program.
Among the step 3D, after program for washing finishes, cyclelog is removed the first memory data M, represents that this program for washing is fair termination, and cyclelog can judge soundly and moves corresponding program for washing the washing machine operation conditions when guaranteeing that next program for washing begins.
Directly will whether exist the first memory data M as judging last time, whether program for washing was the identifier of fair termination in the first memory in this control method for washing machine, cyclelog is judged washing machine state of living in by identifier, and carry out corresponding program for washing, be stored in first memory data M in the first memory as the clear water water quality parameter of demarcating, need carry out special clear operation by cyclelog, otherwise will keep always, even the data that abort or reconfiguration procedure situation also can not influence its storage occur, guarantee in once complete program for washing, to adopt consistent demarcation clear water water quality parameter all the time, guarantee to clean and namely stop, rinse the precision that namely stops function.
Than preferred embodiment one identifier F is set separately, cyclelog only need judge whether be the judgement of fair termination, program is simple possible more if whether existing the first memory data M can finish the last time program for washing in the first memory in this preferred embodiment.
Preferred embodiment three:
Washing machine structure in this preferred embodiment is identical with preferred embodiment one, first memory data M in the first memory is as identifier, it is 1111 that M is provided with initial value M1, judge by the first memory data M last time, whether program for washing was fair termination, and control the corresponding water quality parameter of selection by cyclelog according to the first memory data M and carry out program for washing as calibration value.In this preferred embodiment, the first memory data M value in the first memory is not equal to 1111, and expression program for washing last time is non-normal termination, and storage data M value equals 1111, represents that then last time, program for washing was fair termination.
Washing machine carries out program for washing according to the following steps:
Step 3A ', when program for washing began, cyclelog read and judges that whether described first memory data M equals initial value M1 is 1111, if M equals 1111, expression program for washing last time is fair termination, then forwards step 3B ' to; If M is not equal to 1111, expression program for washing last time is non-normal termination, then forwards step 3C ' to;
Step 3B ', cyclelog receive the sensing data S that water quality sensor detects, and the first memory data M with in the value covering first memory of S forwards step 3C ' then to;
Step 3C ', cyclelog read the first memory data M in the first memory, and carry out program for washing, and at rinse stage the first memory data M are rinsed as the clear water water quality parameter of demarcating and namely to stop program, forward step 3D ' then to;
Step 3D ', judge whether program for washing finishes, be then the first memory data to be reverted to initial value M1 namely 1111, otherwise continue laundry operations.
It is identical with preferred embodiment one that rinsing among the step 3C ' namely stopped program.
Among the step 3D ', after program for washing finishes, it is 1111 that cyclelog reverts to initial value M1 with the first memory data M, represent that this program for washing is fair termination, cyclelog can judge soundly and moves corresponding program for washing the washing machine operation conditions when guaranteeing that next program for washing begins.
In this control method for washing machine with the first memory data M as judging whether washing machine program for washing last time is the identifier of fair termination, by judge the first memory data M whether for initial value M1 be 1111(or 0000 wait other numerical value all can), judge last time, whether program for washing was fair termination, whether the judgement first memory data M in preferred embodiment two exists, this preferred embodiment is more accurate, has avoided situations such as maloperation, signal erroneous judgement to the program for washing influence whether fair termination is judged.
Know-why of the present invention has below been described in conjunction with specific embodiments.These are described just in order to explain principle of the present invention, and can not be interpreted as limiting the scope of the invention by any way.Based on explanation herein, those skilled in the art does not need to pay performing creative labour can associate other specific embodiment of the present invention, and these modes all will fall within protection scope of the present invention.