This commit is contained in:
wanlop run 2024-10-04 16:06:58 +07:00
parent 89b8dbad3a
commit 3284dff5e7
27 changed files with 272 additions and 181 deletions

View file

@ -1,9 +1,10 @@
DEBUGVAR TimeoutForProtectButtonHideLongTime
DEBUGVAR TiemoutForDoorCupOpenLongTime
Var TimeoutForProtectButtonHideLongTime = TimeoutForProtectButtonHideLongTime + 1
If TimeoutForProtectButtonHideLongTime > 60 Then
If TimeoutForProtectButtonHideLongTime > 45 Then
Var TimeoutForProtectButtonHideLongTime = 0
If buttonRemoveCup = "Enable" Then
@ -17,6 +18,18 @@ If TimeoutForProtectButtonHideLongTime > 60 Then
EndIf
Var TiemoutForDoorCupOpenLongTime = TiemoutForDoorCupOpenLongTime + 1
If TiemoutForDoorCupOpenLongTime > 120 Then
Var TiemoutForDoorCupOpenLongTime = 0
If DoorCupPosition = "bottom" Then
Var TiemoutForDoorCupOpenLongTime = 0
Else
Machine DoorClose
EndIf
EndIf
If show_eng = "true" Then
Else
@ -31,6 +44,15 @@ Else
EndIf
EndIf
EndIf
If CupArmMove = "false" Then
If DoorCupPosition = "bottom" Then
If InternationalEnable = 1 Then
Else
Play "/mnt/sdcard/coffeevending/taobin_project/sound_thai/remove_cup.mp3"
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
@ -50,7 +72,7 @@ Var Timeout = Timeout + 1
Var TimeoutInstance0 = TimeoutInstance0 + 1
If TimeoutInstance0 > 600 Then
If TimeoutInstance0 > 360 Then
Var TimeoutInstance0 = 0
SAVELOG "Check Cup all"
Machine CheckCupAll
@ -69,6 +91,11 @@ If CheckCupStateDoorCupCloseCnt > 0 Then
EndIf
EndIf
If HaveCup = "true" Then
If CheckCupStateDoorCupClose = "" Then