page_smoothie_suggest_and_process.xml fix step cup

This commit is contained in:
wanlop run 2025-05-08 19:20:39 +07:00
parent f1bc6cd492
commit 7f2e2a8801
6 changed files with 72 additions and 18 deletions

View file

@ -85,7 +85,7 @@
Var TextDoorButtonID = 001202
Var SmoothieProcessState = "idle"
Var CountDownCertainConfuse = 5
Var CountDownCertainConfuse = 2
Var ArmIDForMakeOrder = 0
@ -101,6 +101,7 @@
DEBUGVAR ArmIDForMakeOrder
__CMD "ui-load-playlist" 0 SelectDrink "-"
Var CountDownCupStageRunningTimeout = 15
</EventOpen>
<Timeout> 1000 </Timeout>
@ -164,7 +165,9 @@
Var TimeOutSmoothiesProcess = TimeOutSmoothiesProcess - 1
EndIf
EndIf
If TimeOutSmoothiesProcess = 2 Then
Machine DoorClose
EndIf
If TimeOutSmoothiesProcess = 0 Then
Open "ROOT/taobin_project/inter/tha/xml/page_smoothie_suggest_and_process_3.xml"
EndIf
@ -176,10 +179,8 @@
DEBUGVAR CH9994_Status
DEBUGVAR HaveCup
DEBUGVAR CupOnArm
DEBUGVAR CountDownCupStageRunningTimeout
DEBUGVAR DoorCupPosition
DEBUGVAR CupChecking
DEBUGVAR CupArmMove
DEBUGVAR buttonRemoveCup
DEBUGVAR SmoothieProcessState
DEBUGVAR AnyArmConfuse
@ -206,7 +207,8 @@
Else
If SmoothieProcessState = "insert" Then
Var TextDoorButtonID = 001203
Machine CheckCupCurrentProcess
Var SmoothieProcessState = "checking"
Else
EndIf
@ -244,9 +246,23 @@
EndIf
EndIf
EndIf
If SmoothieProcessState = "checking" Then
If CountDownCupStageRunningTimeout > 0 Then
Var CountDownCupStageRunningTimeout = CountDownCupStageRunningTimeout - 1
EndIf
If CountDownCupStageRunningTimeout = 0 Then
Var SmoothieProcessState = "idle"
Var TextDoorButtonID = 001202
EndIf
EndIf
Else
If ChannelArmForProccessStatus = "RUNNING" Then
Var SmoothieProcessState = "blendnow"
EndIf
EndIf
@ -276,7 +292,7 @@
Refresh
TimerReset
</EventTimeout>
; setvarint TimeOutSmoothiesProcess 2
;DEBUGVAR Var [ChannelArmForProccessStatus] = RUNNING
;include="ROOT/taobin_project/inc/video.inc"
@ -392,11 +408,13 @@
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
SAVELOG " SmoothieProcessState press "
Var SmoothieProcessState = "press"
If DoorCupPosition = "top" Then
Else
Var CountDownCertainConfuse = 5
Var CountDownCupStageRunningTimeout = 15
Var CountDownCertainConfuse = 2
Var ArmIDForMakeOrderStr = "" + ArmIDForMakeOrder
DEBUGVAR ArmIDForMakeOrderStr
__CMD "UseArm" ArmIDForMakeOrderStr "-" "-"
@ -456,7 +474,9 @@
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
If DoorCupPosition = "top" Then
SAVELOG " Cancel order press "
If DoorCupPosition = "bottom" Then
Var OpenFromXML = "ROOT/taobin_project/inter/tha/xml/page_smoothie_suggest_and_process.xml"
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"