Remove block NCIC07_EVENT_CNT and update play-list

This commit is contained in:
wanlop run 2023-10-05 08:43:58 +07:00
parent cddb610548
commit 12e1b630d5
25 changed files with 130 additions and 149 deletions

View file

@ -227,13 +227,7 @@
Else
;stop_now
If NETCORE_LOST_CNT > 120 Then
Var stop_now = "true"
Var MachineErrorDetailAll = "???"
SAVELOG "NETCORE_LOST_CNT"
Open "ROOT/taobin_project/xml/page_back_to_error.xml"
EndIf
EndIf

View file

@ -227,13 +227,7 @@
Else
;stop_now
If NETCORE_LOST_CNT > 120 Then
Var stop_now = "true"
Var MachineErrorDetailAll = "???"
SAVELOG "NETCORE_LOST_CNT"
Open "ROOT/taobin_project/xml/page_back_to_error.xml"
EndIf
EndIf

View file

@ -227,13 +227,7 @@
Else
;stop_now
If NETCORE_LOST_CNT > 120 Then
Var stop_now = "true"
Var MachineErrorDetailAll = "???"
SAVELOG "NETCORE_LOST_CNT"
Open "ROOT/taobin_project/xml/page_back_to_error.xml"
EndIf
EndIf

View file

@ -70,13 +70,7 @@
Else
;stop_now
If NETCORE_LOST_CNT > 120 Then
Var stop_now = "true"
Var MachineErrorDetailAll = "???"
SAVELOG "NETCORE_LOST_CNT"
Open "ROOT/taobin_project/xml/page_back_to_error.xml"
EndIf
EndIf

View file

@ -639,7 +639,6 @@
Var show_lang = "THAI"
Var NETCORE_EVENT_CNT_X = 0
Var NETCORE_EVENT_CNT_TMP = NCIC07_EVENT_CNT
@ -899,7 +898,7 @@
EndIf
EndIf
Var NETCORE_LOST_COUNT_UP = 0
</EventOpen>
@ -996,9 +995,12 @@
If NCIC07_EVENT_CNT = NETCORE_EVENT_CNT_TMP Then
Var NETCORE_EVENT_CNT_X = NETCORE_EVENT_CNT_X + 1
DEBUGVAR NETCORE_EVENT_CNT_X
If NETCORE_EVENT_CNT_X >= 30 Then
If NETCORE_EVENT_CNT_X > 600 Then
Var stop_now = "true"
Var stop_now_from_netcore_event = 1
Var MachineErrorDetailAll = "Netcore Lost"
SAVELOG "Netcore Lost NCIC07_EVENT_CNT"
DEBUGVAR NCIC07_EVENT_CNT

View file

@ -218,13 +218,7 @@
Else
;stop_now
If NETCORE_LOST_CNT > 120 Then
Var stop_now = "true"
Var MachineErrorDetailAll = "???"
SAVELOG "NETCORE_LOST_CNT"
Open "ROOT/taobin_project/xml/page_back_to_error.xml"
EndIf
EndIf

View file

@ -210,13 +210,7 @@
Else
;stop_now
If NETCORE_LOST_CNT > 120 Then
Var stop_now = "true"
Var MachineErrorDetailAll = "???"
SAVELOG "NETCORE_LOST_CNT"
Open "ROOT/taobin_project/xml/page_back_to_error.xml"
EndIf
EndIf

View file

@ -210,13 +210,7 @@
Else
;stop_now
If NETCORE_LOST_CNT > 120 Then
Var stop_now = "true"
Var MachineErrorDetailAll = "???"
SAVELOG "NETCORE_LOST_CNT"
Open "ROOT/taobin_project/xml/page_back_to_error.xml"
EndIf
EndIf

View file

@ -219,13 +219,7 @@
Else
;stop_now
If NETCORE_LOST_CNT > 120 Then
Var stop_now = "true"
Var MachineErrorDetailAll = "???"
SAVELOG "NETCORE_LOST_CNT"
Open "ROOT/taobin_project/xml/page_back_to_error.xml"
EndIf
EndIf

View file

@ -210,13 +210,7 @@
Else
;stop_now
If NETCORE_LOST_CNT > 120 Then
Var stop_now = "true"
Var MachineErrorDetailAll = "???"
SAVELOG "NETCORE_LOST_CNT"
Open "ROOT/taobin_project/xml/page_back_to_error.xml"
EndIf
EndIf

View file

@ -208,13 +208,7 @@
Else
;stop_now
If NETCORE_LOST_CNT > 120 Then
Var stop_now = "true"
Var MachineErrorDetailAll = "???"
SAVELOG "NETCORE_LOST_CNT"
Open "ROOT/taobin_project/xml/page_back_to_error.xml"
EndIf
EndIf

View file

@ -206,13 +206,7 @@
Else
;stop_now
If NETCORE_LOST_CNT > 120 Then
Var stop_now = "true"
Var MachineErrorDetailAll = "???"
SAVELOG "NETCORE_LOST_CNT"
Open "ROOT/taobin_project/xml/page_back_to_error.xml"
EndIf
EndIf

View file

@ -209,13 +209,7 @@
Else
;stop_now
If NETCORE_LOST_CNT > 120 Then
Var stop_now = "true"
Var MachineErrorDetailAll = "???"
SAVELOG "NETCORE_LOST_CNT"
Open "ROOT/taobin_project/xml/page_back_to_error.xml"
EndIf
EndIf

View file

@ -206,13 +206,7 @@
Else
;stop_now
If NETCORE_LOST_CNT > 120 Then
Var stop_now = "true"
Var MachineErrorDetailAll = "???"
SAVELOG "NETCORE_LOST_CNT"
Open "ROOT/taobin_project/xml/page_back_to_error.xml"
EndIf
EndIf

View file

@ -204,13 +204,7 @@
Else
;stop_now
If NETCORE_LOST_CNT > 120 Then
Var stop_now = "true"
Var MachineErrorDetailAll = "???"
SAVELOG "NETCORE_LOST_CNT"
Open "ROOT/taobin_project/xml/page_back_to_error.xml"
EndIf
EndIf

View file

@ -216,13 +216,7 @@
Else
;stop_now
If NETCORE_LOST_CNT > 120 Then
Var stop_now = "true"
Var MachineErrorDetailAll = "???"
SAVELOG "NETCORE_LOST_CNT"
Open "ROOT/taobin_project/xml/page_back_to_error.xml"
EndIf
EndIf

View file

@ -227,13 +227,7 @@
Else
;stop_now
If NETCORE_LOST_CNT > 120 Then
Var stop_now = "true"
Var MachineErrorDetailAll = "???"
SAVELOG "NETCORE_LOST_CNT"
Open "ROOT/taobin_project/xml/page_back_to_error.xml"
EndIf
EndIf

View file

@ -206,13 +206,7 @@
Else
;stop_now
If NETCORE_LOST_CNT > 120 Then
Var stop_now = "true"
Var MachineErrorDetailAll = "???"
SAVELOG "NETCORE_LOST_CNT"
Open "ROOT/taobin_project/xml/page_back_to_error.xml"
EndIf
EndIf

View file

@ -210,13 +210,7 @@
Else
;stop_now
If NETCORE_LOST_CNT > 120 Then
Var stop_now = "true"
Var MachineErrorDetailAll = "???"
SAVELOG "NETCORE_LOST_CNT"
Open "ROOT/taobin_project/xml/page_back_to_error.xml"
EndIf
EndIf

View file

@ -215,13 +215,7 @@
Else
;stop_now
If NETCORE_LOST_CNT > 120 Then
Var stop_now = "true"
Var MachineErrorDetailAll = "???"
SAVELOG "NETCORE_LOST_CNT"
Open "ROOT/taobin_project/xml/page_back_to_error.xml"
EndIf
EndIf

View file

@ -206,13 +206,7 @@
Else
;stop_now
If NETCORE_LOST_CNT > 120 Then
Var stop_now = "true"
Var MachineErrorDetailAll = "???"
SAVELOG "NETCORE_LOST_CNT"
Open "ROOT/taobin_project/xml/page_back_to_error.xml"
EndIf
EndIf

View file

@ -40,6 +40,7 @@
Var EmergencyStop = "-"
If EmergencyStop = "true" Then
If DoorCupPosition = "bottom" Then
; It normal
@ -81,8 +82,34 @@
DEBUGVAR NETCORE_EVENT_CNT_TMP
If NCIC07_EVENT_CNT = NETCORE_EVENT_CNT_TMP Then
Var NETCORE_LOST_COUNT_UP = NETCORE_LOST_COUNT_UP + 1
DEBUGVAR NETCORE_LOST_COUNT_UP
If NETCORE_LOST_COUNT_UP > 900 Then
If textStep > 3 Then
Var textStep = 0
Var MachineErrorDetailAll = MachineErrorDetailAll + " !"
EndIf
If textStep = 3 Then
Var MachineErrorDetailAll = MachineErrorDetailAll + " !!"
EndIf
If textStep = 2 Then
Var MachineErrorDetailAll = MachineErrorDetailAll + " !!!"
EndIf
If textStep = 1 Then
Var MachineErrorDetailAll = MachineErrorDetailAll + " !!!!"
EndIf
EndIf
Else
If stop_now_from_netcore_event = 1 Then
Var stop_now = "false"
SAVELOG "stop_now_from_netcore_event is set"
Var stop_now_from_netcore_event = 0
EndIf
If MachineStage = "" Then
Var LEDSet = "false"
@ -105,7 +132,7 @@
If MachineStage = "drink-failed" Then
Var FirstOpen = 1
Var LEDSet = "true"
;Open "ROOT/taobin_project/xml/page_show_error.lxml"
;Open "ROOT/taobin_project/xml/page_show_error.xml"
Refresh
EndIf
@ -114,7 +141,7 @@
If MachineStage = "close-maintenance" Then
Var LEDSet = "true"
;Open "ROOT/taobin_project/xml/page_show_error.lxml"
;Open "ROOT/taobin_project/xml/page_show_error.xml"
Refresh
EndIf
@ -127,6 +154,7 @@
EndIf
Var TimeOut = TimeOut + 1
If TimeOut > 60 Then
Var TimeOut = 0

View file

@ -192,8 +192,36 @@
DEBUGVAR NETCORE_EVENT_CNT_TMP
If NCIC07_EVENT_CNT = NETCORE_EVENT_CNT_TMP Then
Var NETCORE_LOST_COUNT_UP = NETCORE_LOST_COUNT_UP + 1
DEBUGVAR NETCORE_LOST_COUNT_UP
If NETCORE_LOST_COUNT_UP > 300 Then
SAVELOG " NETCORE_LOST_COUNT_UP out !"
Reboot
EndIf
If textStep > 3 Then
Var textStep = 0
Var MachineErrorDetailAll = MachineErrorDetailAll + " !"
EndIf
If textStep = 3 Then
Var MachineErrorDetailAll = MachineErrorDetailAll + " !!"
EndIf
If textStep = 2 Then
Var MachineErrorDetailAll = MachineErrorDetailAll + " !!!"
EndIf
If textStep = 1 Then
Var MachineErrorDetailAll = MachineErrorDetailAll + " !!!!"
EndIf
Else
If stop_now_from_netcore_event = 1 Then
Var stop_now = "false"
SAVELOG "stop_now_from_netcore_event is set"
Var stop_now_from_netcore_event = 0
EndIf
If MachineStage = "" Then
Var LEDSet = "false"