Add image picture
This commit is contained in:
parent
903e17f5d2
commit
35b11f8276
41 changed files with 13570 additions and 12518 deletions
|
|
@ -1,117 +1,117 @@
|
|||
; Add haveCup false for block display abnormal. Alternate between page_board.xml and this file.
|
||||
If HaveCup = "false" Then
|
||||
If MachineStage = "show-menu" Then
|
||||
Open "ROOT/taobin_project/xml/page_board.xml"
|
||||
If HaveCup = "false" Then
|
||||
If MachineStage = "show-menu" Then
|
||||
Open "ROOT/taobin_project/xml/page_board.xml"
|
||||
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If MachineStage = "close-maintenance" Then
|
||||
Open "ROOT/taobin_project/xml/page_show_error.xml"
|
||||
If MachineStage = "close-maintenance" Then
|
||||
Open "ROOT/taobin_project/xml/page_show_error.xml"
|
||||
|
||||
EndIf
|
||||
|
||||
Var TimeoutForProtectButtonHideLongTime = TimeoutForProtectButtonHideLongTime + 1
|
||||
If TimeoutForProtectButtonHideLongTime > 120 Then
|
||||
Var TimeoutForProtectButtonHideLongTime = 0
|
||||
EndIf
|
||||
|
||||
If buttonRemoveCup = "Enable" Then
|
||||
Var TimeoutForProtectButtonHideLongTime = TimeoutForProtectButtonHideLongTime + 1
|
||||
If TimeoutForProtectButtonHideLongTime > 120 Then
|
||||
Var TimeoutForProtectButtonHideLongTime = 0
|
||||
|
||||
Else
|
||||
If DoorCupPosition = "bottom" Then
|
||||
SAVELOG "Check Cup all from Long time button hide"
|
||||
Machine CheckCupAll
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
If buttonRemoveCup = "Enable" Then
|
||||
|
||||
Else
|
||||
If DoorCupPosition = "bottom" Then
|
||||
SAVELOG "Check Cup all from Long time button hide"
|
||||
Machine CheckCupAll
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
If show_eng = "true" Then
|
||||
If show_eng = "true" Then
|
||||
|
||||
Else
|
||||
If Timeout = 14 Then
|
||||
If buttonRemoveCup = "Enable" Then
|
||||
If CupChecking = "false" Then
|
||||
If DoorCupPosition = "bottom" Then
|
||||
Play "/mnt/sdcard/coffeevending/taobin_project/sound_thai/remove_cup.mp3"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
Else
|
||||
If Timeout = 14 Then
|
||||
If buttonRemoveCup = "Enable" Then
|
||||
If CupChecking = "false" Then
|
||||
If DoorCupPosition = "bottom" Then
|
||||
Play "/mnt/sdcard/coffeevending/taobin_project/sound_thai/remove_cup.mp3"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
Var Timeout = Timeout + 1
|
||||
Var Timeout = Timeout + 1
|
||||
|
||||
If Timeout > 15 Then
|
||||
Var Timeout = 0
|
||||
If Timeout > 15 Then
|
||||
Var Timeout = 0
|
||||
|
||||
DEBUGVAR HaveCup
|
||||
DEBUGVAR CupOnArm
|
||||
DEBUGVAR DoorCupPosition
|
||||
DEBUGVAR CupChecking
|
||||
DEBUGVAR CupArmMove
|
||||
DEBUGVAR buttonRemoveCup
|
||||
EndIf
|
||||
DEBUGVAR HaveCup
|
||||
DEBUGVAR CupOnArm
|
||||
DEBUGVAR DoorCupPosition
|
||||
DEBUGVAR CupChecking
|
||||
DEBUGVAR CupArmMove
|
||||
DEBUGVAR buttonRemoveCup
|
||||
EndIf
|
||||
|
||||
Var TimeoutInstance0 = TimeoutInstance0 + 1
|
||||
Var TimeoutInstance0 = TimeoutInstance0 + 1
|
||||
|
||||
If TimeoutInstance0 > 600 Then
|
||||
Var TimeoutInstance0 = 0
|
||||
SAVELOG "Check Cup all"
|
||||
Machine CheckCupAll
|
||||
EndIf
|
||||
If TimeoutInstance0 > 600 Then
|
||||
Var TimeoutInstance0 = 0
|
||||
SAVELOG "Check Cup all"
|
||||
Machine CheckCupAll
|
||||
EndIf
|
||||
|
||||
; Logic have differrent drinkfail3.xml
|
||||
; protect lock
|
||||
;
|
||||
; Logic have differrent drinkfail3.xml
|
||||
; protect lock
|
||||
;
|
||||
|
||||
If CheckCupStateDoorCupCloseCnt > 0 Then
|
||||
Var CheckCupStateDoorCupCloseCnt = CheckCupStateDoorCupCloseCnt - 1
|
||||
DEBUGVAR CheckCupStateDoorCupCloseCnt
|
||||
If CheckCupStateDoorCupCloseCnt > 0 Then
|
||||
Var CheckCupStateDoorCupCloseCnt = CheckCupStateDoorCupCloseCnt - 1
|
||||
DEBUGVAR CheckCupStateDoorCupCloseCnt
|
||||
|
||||
If CheckCupStateDoorCupCloseCnt = 0 Then
|
||||
Var CheckCupStateDoorCupClose = ""
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
If HaveCup = "true" Then
|
||||
If CheckCupStateDoorCupCloseCnt = 0 Then
|
||||
Var CheckCupStateDoorCupClose = ""
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
If HaveCup = "true" Then
|
||||
|
||||
If CheckCupStateDoorCupClose = "" Then
|
||||
Var buttonRemoveCup = "Enable"
|
||||
EndIf
|
||||
If CheckCupStateDoorCupClose = "" Then
|
||||
Var buttonRemoveCup = "Enable"
|
||||
EndIf
|
||||
|
||||
Else
|
||||
If buttonRemoveCup = "Enable" Then
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
EndIf
|
||||
EndIf
|
||||
Else
|
||||
If buttonRemoveCup = "Enable" Then
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If DoorCupPosition = "bottom" Then
|
||||
If DoorCupPosition = "bottom" Then
|
||||
|
||||
Else
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
Var CoundUpDelayCertainStage = 0
|
||||
EndIf
|
||||
|
||||
If CupArmMove = "true" Then
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
If show_eng = "true" Then
|
||||
Var MachineErrorDetailAll = "Please wait."
|
||||
Else
|
||||
Var MachineErrorDetailAll = "กรุณารอสักครู่"
|
||||
EndIf
|
||||
Else
|
||||
If CupArmMove = "false" Then
|
||||
If HaveCup = "true" Then
|
||||
If DoorCupPosition = "bottom" Then
|
||||
If buttonRemoveCup = "Invisible" Then
|
||||
Var CoundUpDelayCertainStage = CoundUpDelayCertainStage + 1
|
||||
If CoundUpDelayCertainStage > 8 Then
|
||||
Var buttonRemoveCup = "Enable"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
Else
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
Var CoundUpDelayCertainStage = 0
|
||||
EndIf
|
||||
|
||||
If CupArmMove = "true" Then
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
If show_eng = "true" Then
|
||||
Var MachineErrorDetailAll = "Please wait."
|
||||
Else
|
||||
Var MachineErrorDetailAll = "กรุณารอสักครู่"
|
||||
EndIf
|
||||
Else
|
||||
If CupArmMove = "false" Then
|
||||
If HaveCup = "true" Then
|
||||
If DoorCupPosition = "bottom" Then
|
||||
If buttonRemoveCup = "Invisible" Then
|
||||
Var CoundUpDelayCertainStage = CoundUpDelayCertainStage + 1
|
||||
If CoundUpDelayCertainStage > 8 Then
|
||||
Var buttonRemoveCup = "Enable"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue