DO brew3.ing

This commit is contained in:
kong 2022-08-19 17:21:48 +07:00
parent 04eebb6b41
commit ee99310815
2 changed files with 15 additions and 5 deletions

View file

@ -201,14 +201,15 @@
EndIf
DEBUGVAR LastMakeDrinkResult
If LastMakeDrinkResult = "success" Then
Var MachineState_Result = 1
EndIf
If LastMakeDrinkResult = "fail" Then
Var MachineState_Result = 2
SAVELOG "LastMakeDrinkResult is 2"
Var MachineState_Result = 2
EndIf
@ -374,6 +375,8 @@
Var Timeout = Timeout + 1
DEBUGVAR MachineState_Result
If MOVE_CUP_TO_DOOR = "true" Then
Var MOVE_CUP_TO_DOOR = "false"
@ -426,6 +429,7 @@
If Timeout > 480 Then
SAVELOG " Timeout > 480"
Var MachineState_Result = 2
EndIf
@ -548,6 +552,7 @@
Var waitAckPay = 2
Var Timeout = 5
Var ActionOKCase = 1
SAVELOG "ActionOKCase = change OK 2"
EndIf
EndIf
@ -608,6 +613,7 @@
Var waitAckPay = 2
Var Timeout = 5
Var ActionOKCase = 1
SAVELOG "ActionOKCase = change time out"
EndIf
EndIf
@ -652,6 +658,7 @@
PAYEXT SVT ACC VendingTSIDTmp DEE
Var ActionOKCase = 1
SAVELOG "ActionOKCase = change OK 3"
If Seeker.CodeChannel = 0 Then
SAVELOG "back_to_main from line > 391."
Open "ROOT/taobin_project/xml/page_drinkfail2.xml"
@ -667,7 +674,7 @@
EndIf
If MachineState_Result = 1 Then
;Var MachineState_Result = 2
EndIf
If MachineState_Result = 1 Then
@ -884,6 +891,7 @@
If RoadShow = "true" Then
Open "ROOT/taobin_project/xml/page_back_to_error.xml"
Else
SAVELOG " drink-failed...."
Var MachineState_Result = 2
EndIf
EndIf
@ -1009,10 +1017,14 @@
Var MachineState_Result = 1
EndIf
DEBUGVAR MachineStage
If MachineStage = "drink-failed" Then
If RoadShow = "true" Then
Open "ROOT/taobin_project/xml/page_back_to_error.xml"
Else
SAVELOG "Event Machine drink fail"
Var MachineState_Result = 2
EndIf
EndIf

View file

@ -47,8 +47,6 @@
<X> 0 </X>
<Y> 381 </Y>
<Name>"usbfront"</Name>
;<Width> 1280 </Width>
;<Height> 720 </Height>
<Width> 700 </Width>
<Height> 394 </Height>
</CameraX>