if(AddWashTime_key== 0) //加洗滌時(shí)間按鍵函數(shù) { Delay(100); if(AddWashTime_key == 0) { while(!AddWashTime_key){Display();} WashTimeCopy += 10; WashTime = WashTimeCopy; WashFrequencyCopy+=1;//洗滌次數(shù) WashFrequency=WashFrequencyCopy; if((WashTime+DehydrationTime+10+WaterLevel*2)>230)WashTime=30,DehydrationTime =30, WashFrequency= 3; AllWashTime=WashTime+DehydrationTime+10+WaterLevel*2; if((WashTime+DehydrationTime+10+WaterLevel*2)<230)AllWashTime=WashTime+DehydrationTime+10+WaterLevel*2;
總共有增加、減少洗滌,脫水功能。這只是其中之一,當(dāng)總洗衣時(shí)間超過(guò)230S后,總洗衣時(shí)間從 WashTime=30、DehydrationTime =30、WaterLevel*2(進(jìn)水排水總時(shí)間)、報(bào)警10S廚師狀態(tài)重新開(kāi)始,當(dāng)按洗滌或者脫水增加按鍵,又可以從初始設(shè)置的時(shí)間基礎(chǔ)上重新手動(dòng)增加時(shí)間
|