"Enable" 1080 1920 "0xeae6e1" SoundVolume Var Timeout = 0 Var Timeout2 = 0 SAVELOG "open page_pickup_cup_between_order.xml" DEBUGVAR EnableDoubleCupNoError DEBUGVAR HURR_FOREVER If show_eng = "true" Then Var DirImage = "ROOT/taobin_project/image/user_take_cup_en/" Else Var DirImage = "ROOT/taobin_project/image/user_take_cup_th/" EndIf DEBUGVAR Seeker.showname DEBUGVAR UserSelectProductCode DEBUGVAR topping1 DEBUGVAR topping2 DEBUGVAR topping3 DEBUGVAR topping4 DEBUGVAR topping5 DEBUGVAR topping6 DEBUGVAR topping7 DEBUGVAR topping8 DEBUGVAR topping9 DEBUGVAR topping10 Var PayCredit = 1 Var TimeoutForReCheckCup = 0 SAVELOG "version 0.9" Var MenuReadyForCup = "#" Var MenuReOrder = "-" Var RequestPickupCupAlert = "-" 1000 Var TimeoutForReCheckCup = TimeoutForReCheckCup + 1 DEBUGVAR MachineStage DEBUGVAR HaveCup DEBUGVAR CHECKCUP DEBUGVAR DoorCupPosition DEBUGVAR RequestPickupCupAlert DEBUGVAR ProductCodeBrewing DEBUGVAR MenuReadyForCup DEBUGVAR TimeoutForReCheckCup If TimeoutForReCheckCup > 3 Then Var TimeoutForReCheckCup = 0 Var MenuReadyForCup = "#" __CMD "check-cup" ProductCodeBrewing "-" "-" EndIf If MenuReadyForCup = "YES" Then __CMD "re-order" ProductCodeBrewing "-" "XML page_pickup_cup_between_order" EndIf ; Set stage machine come back to between order If MachineStage = "remove-cup" Then __CMD "set-stage-to-between-cup" "-" "-" "-" EndIf If MenuReOrder = "success" Then SAVELOG " MenuReOrder MenuReOrder success " Open "ROOT/taobin_project/xml/page_NewBrewing3Conti.xml" EndIf ; any with timeout and arm cup ready. If RequestPickupCupAlert = "brewing" Then SAVELOG " RequestPickupCupAlert is brewing3 " Open "ROOT/taobin_project/xml/page_NewBrewing3Conti.xml" EndIf ; no take cup. forward to page_NewBrewing3Conti.xml If RequestPickupCupAlert = "fail" Then SAVELOG " RequestPickupCupAlert is fail " Open "ROOT/taobin_project/xml/page_NewBrewing3Conti.xml" EndIf ; Do not change ; If MachineStage = "show-menu" Then If HaveCup = "false" Then If DoorCupPosition = "bottom" Then Var Timeout2 = Timeout2 + 1 EndIf EndIf EndIf If Timeout2 > 5 Then SAVELOG " Timeout2 > 5 " Open "ROOT/taobin_project/xml/page_NewBrewing3Conti.xml" EndIf DEBUGVAR Timeout DEBUGVAR Timeout2 If show_eng = "true" Then Else If HaveCup = "true" Then If InternationalEnable = 1 Then Else If Timeout = 4 Then Play "/mnt/sdcard/coffeevending/taobin_project/sound_thai/remove_cup.mp3" EndIf If Timeout = 54 Then Play "/mnt/sdcard/coffeevending/taobin_project/sound_thai/remove_cup.mp3" EndIf If Timeout = 90 Then Play "/mnt/sdcard/coffeevending/taobin_project/sound_thai/remove_cup.mp3" EndIf EndIf EndIf EndIf If Timeout > 600 Then SAVELOG "Timeout 600 from can not close door" Open "ROOT/taobin_project/xml/page_brewing3Conti.xml" EndIf ; move to remove_cup_step Timeout = Timeout + 1 ;include=ROOT/taobin_project/inc/remove_cup_step.inc If Timeout = 3 Then If DoorCupPosition = "bottom" Then Machine RemoveCup Var buttonRemoveCup = "Invisible" ; override for buttonRemoveCup Invisible away Var CheckCupStateDoorCupClose = "-" Var DoorCupPosition = "-" EndIf EndIf TimerReset Refresh If ChangeStatus = "payout-end" Then Var MultiGo = 1 EndIf ;include="ROOT/taobin_project/inc/video.inc" 335 1090 "ROOT/taobin_project/image/user_take_cup_th/img_take_cup.png" 0 609 Var(DirImage + "/img_take_cup_for_next_brew.png") Open CurrentXMLFileName2