diff --git a/animation01/play_list.tsv b/animation01/play_list.tsv
index 3985b5ab..6471c7f4 100644
--- a/animation01/play_list.tsv
+++ b/animation01/play_list.tsv
@@ -1381,8 +1381,8 @@ Macallan Lumina Mizuwari 11-99-05-0055 1 27 28 24 100 7:40 32
โอวัลตินคาราเมล 12-03-03-0109 1 51 17 22 23 41 24 100 7:40 32
โอวัลตินมะพร้าว 12-03-03-0110 1 51 17 62 23 41 24 100 7:40 32
-มะม่วงปั่น ( test) 12-00-07-0000 1 65 64 24 100 7:40 32
-มะม่วงเต่าปั่น 12-06-03-0001 1 65 64 24 100 8:40 32
+มะม่วงปั่น ( test) 12-00-07-0000 1 65 24 100 7:40 32
+มะม่วงเต่าปั่น 12-06-03-0001 1 65 24 100 8:40 32
มะม่่วงลิ้นจี่เต่าปั่น 12-06-03-0002 1 11 65 24 100 9:40 32
มะม่วงสตรอเบอรีเต่าปั่น 12-06-03-0003 1 19 65 24 100 10:40 32
มะม่วงสละเต่าปั่น 12-06-03-0004 1 21 65 24 100 11:40 32
diff --git a/inter/tha/animation01/play_list.tsv b/inter/tha/animation01/play_list.tsv
index 3985b5ab..6471c7f4 100644
--- a/inter/tha/animation01/play_list.tsv
+++ b/inter/tha/animation01/play_list.tsv
@@ -1381,8 +1381,8 @@ Macallan Lumina Mizuwari 11-99-05-0055 1 27 28 24 100 7:40 32
โอวัลตินคาราเมล 12-03-03-0109 1 51 17 22 23 41 24 100 7:40 32
โอวัลตินมะพร้าว 12-03-03-0110 1 51 17 62 23 41 24 100 7:40 32
-มะม่วงปั่น ( test) 12-00-07-0000 1 65 64 24 100 7:40 32
-มะม่วงเต่าปั่น 12-06-03-0001 1 65 64 24 100 8:40 32
+มะม่วงปั่น ( test) 12-00-07-0000 1 65 24 100 7:40 32
+มะม่วงเต่าปั่น 12-06-03-0001 1 65 24 100 8:40 32
มะม่่วงลิ้นจี่เต่าปั่น 12-06-03-0002 1 11 65 24 100 9:40 32
มะม่วงสตรอเบอรีเต่าปั่น 12-06-03-0003 1 19 65 24 100 10:40 32
มะม่วงสละเต่าปั่น 12-06-03-0004 1 21 65 24 100 11:40 32
diff --git a/inter/tha/menu/lang.tsv b/inter/tha/menu/lang.tsv
index 55459631..889d3839 100644
--- a/inter/tha/menu/lang.tsv
+++ b/inter/tha/menu/lang.tsv
@@ -255,8 +255,8 @@
001024 Please get a drink at the door below. กรุณารับเครื่องดื่มที่ช่องด้านล่าง 请从下方出货口取走饮品 Please get a drink at the door below. ကျေးဇူးပြုပြီး အောက်တံခါးမှာ သောက်ပါ။
Font=Roboto,Type=Medium,Size=75,Color=0x513C2F Font=Roboto,Type=Medium,Size=75,Color=0x513C2F Font=Roboto,Type=Regular,Size=48,Color=0x513C2F Font=Roboto,Type=Medium,Size=75,Color=0x513C2F Font=Roboto,Type=Medium,Size=75,Color=0x513C2F
001524 Pull the cup straight out. ดึงแก้วออกตรงๆ ไม่ต้องยกแก้วค่ะ 将杯子直接取出 Pull the cup straight out. ခွက်ကို တည့်တည့်ဆွဲထုတ်ပါ။
-
-
+001525 Please take a cup. กรุณานำแก้วออกก่อนครับ/ค่ะ 请拿杯子。 ကျေးဇူးပြုပြီး ဖန်ခွက်ကို အရင်ထုတ်ပါ။
+001526 Press button for take a cup. กรุณากดปุ่ม แล้วนำแก้วออกก่อนครับ/ค่ะ 按按钮取杯子。 ကျေးဇူးပြုပြီး ဖန်ခွက်ကို အရင်ထုတ်ပါ။
diff --git a/inter/tha/xml/page_smoothie_suggest_and_process.xml b/inter/tha/xml/page_smoothie_suggest_and_process.xml
index a8483005..97151b45 100644
--- a/inter/tha/xml/page_smoothie_suggest_and_process.xml
+++ b/inter/tha/xml/page_smoothie_suggest_and_process.xml
@@ -85,7 +85,7 @@
Var TextDoorButtonID = 001202
Var SmoothieProcessState = "idle"
- Var CountDownCertainConfuse = 5
+ Var CountDownCertainConfuse = 2
Var ArmIDForMakeOrder = 0
@@ -101,6 +101,7 @@
DEBUGVAR ArmIDForMakeOrder
__CMD "ui-load-playlist" 0 SelectDrink "-"
+ Var CountDownCupStageRunningTimeout = 15
1000
@@ -164,7 +165,9 @@
Var TimeOutSmoothiesProcess = TimeOutSmoothiesProcess - 1
EndIf
EndIf
-
+ If TimeOutSmoothiesProcess = 2 Then
+ Machine DoorClose
+ EndIf
If TimeOutSmoothiesProcess = 0 Then
Open "ROOT/taobin_project/inter/tha/xml/page_smoothie_suggest_and_process_3.xml"
EndIf
@@ -176,10 +179,8 @@
DEBUGVAR CH9994_Status
DEBUGVAR HaveCup
- DEBUGVAR CupOnArm
+ DEBUGVAR CountDownCupStageRunningTimeout
DEBUGVAR DoorCupPosition
- DEBUGVAR CupChecking
- DEBUGVAR CupArmMove
DEBUGVAR buttonRemoveCup
DEBUGVAR SmoothieProcessState
DEBUGVAR AnyArmConfuse
@@ -206,7 +207,8 @@
Else
If SmoothieProcessState = "insert" Then
Var TextDoorButtonID = 001203
-
+ Machine CheckCupCurrentProcess
+ Var SmoothieProcessState = "checking"
Else
EndIf
@@ -244,9 +246,23 @@
EndIf
EndIf
EndIf
+
+ If SmoothieProcessState = "checking" Then
+
+ If CountDownCupStageRunningTimeout > 0 Then
+
+ Var CountDownCupStageRunningTimeout = CountDownCupStageRunningTimeout - 1
+
+ EndIf
+ If CountDownCupStageRunningTimeout = 0 Then
+ Var SmoothieProcessState = "idle"
+ Var TextDoorButtonID = 001202
+ EndIf
+ EndIf
Else
If ChannelArmForProccessStatus = "RUNNING" Then
+
Var SmoothieProcessState = "blendnow"
EndIf
EndIf
@@ -276,7 +292,7 @@
Refresh
TimerReset
-
+; setvarint TimeOutSmoothiesProcess 2
;DEBUGVAR Var [ChannelArmForProccessStatus] = RUNNING
;include="ROOT/taobin_project/inc/video.inc"
@@ -392,11 +408,13 @@
"/mnt/sdcard/coffeevending/wav/click.wav"
SoundVolume
+ SAVELOG " SmoothieProcessState press "
Var SmoothieProcessState = "press"
If DoorCupPosition = "top" Then
Else
- Var CountDownCertainConfuse = 5
+ Var CountDownCupStageRunningTimeout = 15
+ Var CountDownCertainConfuse = 2
Var ArmIDForMakeOrderStr = "" + ArmIDForMakeOrder
DEBUGVAR ArmIDForMakeOrderStr
__CMD "UseArm" ArmIDForMakeOrderStr "-" "-"
@@ -456,7 +474,9 @@
"/mnt/sdcard/coffeevending/wav/click.wav"
SoundVolume
- If DoorCupPosition = "top" Then
+ SAVELOG " Cancel order press "
+
+ If DoorCupPosition = "bottom" Then
Var OpenFromXML = "ROOT/taobin_project/inter/tha/xml/page_smoothie_suggest_and_process.xml"
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
diff --git a/ui/lang.tsv b/ui/lang.tsv
index 55459631..889d3839 100644
--- a/ui/lang.tsv
+++ b/ui/lang.tsv
@@ -255,8 +255,8 @@
001024 Please get a drink at the door below. กรุณารับเครื่องดื่มที่ช่องด้านล่าง 请从下方出货口取走饮品 Please get a drink at the door below. ကျေးဇူးပြုပြီး အောက်တံခါးမှာ သောက်ပါ။
Font=Roboto,Type=Medium,Size=75,Color=0x513C2F Font=Roboto,Type=Medium,Size=75,Color=0x513C2F Font=Roboto,Type=Regular,Size=48,Color=0x513C2F Font=Roboto,Type=Medium,Size=75,Color=0x513C2F Font=Roboto,Type=Medium,Size=75,Color=0x513C2F
001524 Pull the cup straight out. ดึงแก้วออกตรงๆ ไม่ต้องยกแก้วค่ะ 将杯子直接取出 Pull the cup straight out. ခွက်ကို တည့်တည့်ဆွဲထုတ်ပါ။
-
-
+001525 Please take a cup. กรุณานำแก้วออกก่อนครับ/ค่ะ 请拿杯子。 ကျေးဇူးပြုပြီး ဖန်ခွက်ကို အရင်ထုတ်ပါ။
+001526 Press button for take a cup. กรุณากดปุ่ม แล้วนำแก้วออกก่อนครับ/ค่ะ 按按钮取杯子。 ကျေးဇူးပြုပြီး ဖန်ခွက်ကို အရင်ထုတ်ပါ။
diff --git a/xml/vending_info.xml b/xml/vending_info.xml
index 1db627af..7e0e3287 100644
--- a/xml/vending_info.xml
+++ b/xml/vending_info.xml
@@ -181,6 +181,7 @@
DEBUGVAR TestArrary[2]
DEBUGVAR TestArrary[3]
+ Var CountTouchButton = 0
1000
@@ -327,7 +328,40 @@
info_3Y
"ROOT/taobin_project/image/tab_1.png"
- OpenInst 4 ""
+ If CountTouchButton = 4 Then
+
+ Var TimeOutSmoothiesProcess = 181
+ Var SelectDrink = "12-00-07-0000"
+ Var Seeker.selected_a_drink = SelectDrink
+ Var Seeker.TNumberTaobinCredit = "0899999999"
+ Var Seeker.StoreCreditFlag = 0
+ Var Seeker.CoffeePinNumber = ""
+ Var Seeker.VendingTSI = ""
+
+ Var RemainAmountStr = "Free###size=150"
+
+ Var RoadShowMarketCode = "EFR01"
+
+ Var Seeker.VendingCode = RoadShowMarketCode
+ DEBUGVAR RoadShowMarketCode
+
+ Var Seeker.IntVendingCampaign = PriceDrink
+ Var Seeker.FreeVendingCampaign = 1
+ Var Seeker.CodeChannel = 1
+ Var Seeker.CodeNumber = IDNum
+
+ If New_Payment = 1 Then
+ Var Seeker.ORDER_ID = ""
+ GenHashWithTimeStamp Seeker.ORDER_ID
+ __CMD "SetPay" "coffee-payment" Seeker.VendingTSID Seeker.ORDER_ID
+ EndIf
+
+
+ OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/page_smoothie_suggest_and_process.xml"
+
+ TopView "show"
+ Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"
+ EndIf