merge smoothie_tbp

This commit is contained in:
Ittipat Lusuk 2025-05-06 14:59:17 +07:00
commit e45c4dea1e

View file

@ -60,7 +60,7 @@
Var FromSmoothieProcess = "Enable" Var FromSmoothieProcess = "Enable"
Var FromPaymentCash = "Invisible" Var FromPaymentCash = "Invisible"
Var FromBrewingProcess = "Invisible" Var FromBrewingProcess = "Invisible"
Var TimeOutHandPoint = 0 Var TimeOutHandPoint = 0
Var ShowHandPoint = "Invisible" Var ShowHandPoint = "Invisible"
Var MotionHandPoint = 0 Var MotionHandPoint = 0
@ -81,7 +81,7 @@
Var Second_x = 600 Var Second_x = 600
Var CountDown_x = 460 Var CountDown_x = 460
EndIf EndIf
Var TextDoorButtonID = 001202 Var TextDoorButtonID = 001202
Var SmoothieProcessState = "idle" Var SmoothieProcessState = "idle"
@ -154,7 +154,7 @@
DEBUGVAR CH9992_Status DEBUGVAR CH9992_Status
DEBUGVAR CH9993_Status DEBUGVAR CH9993_Status
DEBUGVAR CH9994_Status DEBUGVAR CH9994_Status
DEBUGVAR HaveCup DEBUGVAR HaveCup
DEBUGVAR CupOnArm DEBUGVAR CupOnArm
DEBUGVAR DoorCupPosition DEBUGVAR DoorCupPosition
@ -164,9 +164,10 @@
DEBUGVAR SmoothieProcessState DEBUGVAR SmoothieProcessState
DEBUGVAR AnyArmConfuse DEBUGVAR AnyArmConfuse
DEBUGVAR SensorDoorCupStatus DEBUGVAR SensorDoorCupStatus
If CH9992_Status = "READY" Then Var ChannelArmForProccessStatus = CH9992_Status
If ChannelArmForProccessStatus = "READY" Then
If DoorCupPosition = "bottom" Then If DoorCupPosition = "bottom" Then
If SmoothieProcessState = "idle" Then If SmoothieProcessState = "idle" Then
@ -176,7 +177,7 @@
Var TextDoorButtonID = 001203 Var TextDoorButtonID = 001203
Else Else
EndIf EndIf
EndIf EndIf
Else Else
@ -187,14 +188,14 @@
EndIf EndIf
Else Else
If SmoothieProcessState = "idle" Then If SmoothieProcessState = "idle" Then
Else Else
If SmoothieProcessState = "press" Then If SmoothieProcessState = "press" Then
Else Else
Var TextDoorButtonID = 001205 Var TextDoorButtonID = 001205
EndIf EndIf
EndIf EndIf
EndIf EndIf
EndIf EndIf
@ -205,27 +206,27 @@
Var CountDownCertainConfuse = CountDownCertainConfuse - 1 Var CountDownCertainConfuse = CountDownCertainConfuse - 1
If CountDownCertainConfuse = 0 Then If CountDownCertainConfuse = 0 Then
Machine DoorClose Machine DoorClose
EndIf EndIf
EndIf EndIf
EndIf EndIf
Else Else
If CH9992_Status = "RUNNING" Then If ChannelArmForProccessStatus = "RUNNING" Then
Var SmoothieProcessState = "blendnow" Var SmoothieProcessState = "blendnow"
EndIf EndIf
EndIf EndIf
If SmoothieProcessState = "blendnow" Then If SmoothieProcessState = "blendnow" Then
Var TextDoorButtonID = 001206 Var TextDoorButtonID = 001206
Var SelectDrink = Seeker.selected_a_drink Var SelectDrink = Seeker.selected_a_drink
Var SelectSugarID = "" Var SelectSugarID = ""
Topping "Select" SelectDrink Topping "Select" SelectDrink
Var SmoothieProcessState = "blending" Var SmoothieProcessState = "blending"
EndIf EndIf
If SmoothieProcessState = "blending" Then If SmoothieProcessState = "blending" Then
@ -238,7 +239,7 @@
Open "ROOT/taobin_project/inter/tha/xml/page_payment_pack_and_send.xml" Open "ROOT/taobin_project/inter/tha/xml/page_payment_pack_and_send.xml"
EndIf EndIf
DEBUGVAR TextDoorButtonID DEBUGVAR TextDoorButtonID
@ -246,7 +247,7 @@
TimerReset TimerReset
</EventTimeout> </EventTimeout>
;DEBUGVAR Var [CH9992_Status] = RUNNING ;DEBUGVAR Var [ChannelArmForProccessStatus] = RUNNING
<Image> <Image>
<X> 0 </X> <X> 0 </X>
@ -288,7 +289,7 @@
; ;
; ;
; ;
; zone ; zone
; ;
; ;
; ;
@ -303,7 +304,7 @@
<Filename> VideoSmoothieProcess </Filename> <Filename> VideoSmoothieProcess </Filename>
</Video> </Video>
; helper ; helper
;<Image> ;<Image>
;<X> 420 </X> ;<X> 420 </X>
;<Y> 652 </Y> ;<Y> 652 </Y>
@ -337,7 +338,7 @@
Var OpenFromXML = "ROOT/taobin_project/inter/tha/xml/page_smoothie_suggest_and_process.xml" Var OpenFromXML = "ROOT/taobin_project/inter/tha/xml/page_smoothie_suggest_and_process.xml"
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml" OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
OpenInst 15 "ROOT/taobin_project/inter/tha/xml/page_help_center.lxml" OpenInst 15 "ROOT/taobin_project/inter/tha/xml/page_help_center.lxml"
</EventClick> </EventClick>
</Button> </Button>