|
|
@@ -15,6 +15,8 @@ using HBLConsole.Communication; |
|
|
|
using System.Threading; |
|
|
|
using HBLConsole.Model; |
|
|
|
using HBLConsole.Service; |
|
|
|
using HBLDevice.Coffee; |
|
|
|
using BPA.Message; |
|
|
|
namespace HBLConsole.Debug |
|
|
|
{ |
|
|
|
/// <summary> |
|
|
@@ -22,148 +24,221 @@ namespace HBLConsole.Debug |
|
|
|
/// </summary> |
|
|
|
public partial class Debug_MORKJC : UserControl |
|
|
|
{ |
|
|
|
|
|
|
|
public Debug_MORKJC() |
|
|
|
{ |
|
|
|
InitializeComponent(); |
|
|
|
} |
|
|
|
DateTime dt; |
|
|
|
private void Wait(int value) |
|
|
|
{ |
|
|
|
dt = DateTime.Now; |
|
|
|
while (!((JaKaHelper.GetInstance.Get_RobotAO1() == value) && JaKaHelper.GetInstance.GetProgramStatus() == 0))//判断文件是否已经执行结束 且 文件末端变量值==文件名 |
|
|
|
{ |
|
|
|
Thread.Sleep(5); |
|
|
|
if (DateTime.Now.Subtract(dt).TotalSeconds >= 600) break; |
|
|
|
} |
|
|
|
} |
|
|
|
private AutoResetEvent are = new AutoResetEvent(false); |
|
|
|
private CoffeeMachine coffeeMachine1; |
|
|
|
|
|
|
|
private void CoffeEndCookHandle(IEvent @event, EventBus.EventCallBackHandle callBack) |
|
|
|
{ |
|
|
|
are.Set(); |
|
|
|
} |
|
|
|
private void Btn_Coffee_Click(object sender, RoutedEventArgs e) |
|
|
|
{ |
|
|
|
/*EventBus.GetInstance().Subscribe<CoffeEndCook>(CoffeEndCookHandle); |
|
|
|
are.Reset(); |
|
|
|
System.Configuration.Configuration config = System.Configuration.ConfigurationManager.OpenExeConfiguration(System.Configuration.ConfigurationUserLevel.None); |
|
|
|
var com_Coffee = config.AppSettings.Settings["COM_Coffee"].Value; |
|
|
|
var baud_Coffee = config.AppSettings.Settings["BAUD_Coffee"].Value; |
|
|
|
coffeeMachine1 = new CoffeeMachine(com_Coffee, (BaudRates)Enum.Parse(typeof(BaudRates), baud_Coffee)); |
|
|
|
coffeeMachine1.Start();*/ |
|
|
|
|
|
|
|
int a1=MCUSerialHelper.GetInstance.GetInputStatus(1); |
|
|
|
|
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_初始位); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_初始位)); |
|
|
|
MCUSerialHelper.GetInstance.OutputControl(1, false); |
|
|
|
JaKaHelper.GetInstance.Set_RobotAO1(0); |
|
|
|
Wait(0); |
|
|
|
|
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_取杯); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_取杯)); |
|
|
|
MCUSerialHelper.GetInstance.OutputControl(1, true); |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_取杯检测); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_取杯检测)); |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_接咖啡); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_接咖啡)); |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_放咖啡杯); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_放咖啡杯)); |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_放杯检测); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_放杯检测)); |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_初始位); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_初始位)); |
|
|
|
int a2 = MCUSerialHelper.GetInstance.GetInputStatus(1); |
|
|
|
while (a2 == 3) |
|
|
|
{ |
|
|
|
Thread.Sleep(100); |
|
|
|
a2 = MCUSerialHelper.GetInstance.GetInputStatus(1); |
|
|
|
} |
|
|
|
if (a2==1) |
|
|
|
{ |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_接咖啡); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_接咖啡)); |
|
|
|
new MakeCoffeeEvent() { DrinkCode = DrCoffeeDrinksCode.热水 }.Publish(); //接咖啡控制 |
|
|
|
are.WaitOne(1000 * 60); |
|
|
|
|
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_放咖啡杯); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_放咖啡杯)); |
|
|
|
MCUSerialHelper.GetInstance.OutputControl(1, false); |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_放杯检测); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_放杯检测)); |
|
|
|
} |
|
|
|
int a3 = MCUSerialHelper.GetInstance.GetInputStatus(1); |
|
|
|
while (a3 == 1) |
|
|
|
{ |
|
|
|
Thread.Sleep(100); |
|
|
|
a3 = MCUSerialHelper.GetInstance.GetInputStatus(1); |
|
|
|
} |
|
|
|
if (a3 == 2) |
|
|
|
{ |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_初始位); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_初始位)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
int[] devStatusBy=new int[2] { 0,0}; |
|
|
|
private void Btn_Juicer_Click(object sender, RoutedEventArgs e) |
|
|
|
{ |
|
|
|
|
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_初始位); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_初始位)); |
|
|
|
MCUSerialHelper.GetInstance.OutputControl(1, false); |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_取杯); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_取杯)); |
|
|
|
|
|
|
|
MCUSerialHelper.GetInstance.OutputControl(1, true); |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_取杯检测); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_取杯检测)); |
|
|
|
byte JuicerNum = byte.Parse(txtJuicerNum.Text.Trim().ToString()); |
|
|
|
int JuicerNum1 = int.Parse(txtJuicerNum.Text.Trim().ToString()); |
|
|
|
switch (JuicerNum1) |
|
|
|
int a2 = MCUSerialHelper.GetInstance.GetInputStatus(1); |
|
|
|
while (a2 == 3 || a2 == 2) |
|
|
|
{ |
|
|
|
case 0: |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_接果汁1); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_接果汁1)); |
|
|
|
break; |
|
|
|
case 1: |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_接果汁1); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_接果汁1)); |
|
|
|
break; |
|
|
|
case 2: |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_接果汁2); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_接果汁2)); |
|
|
|
break; |
|
|
|
case 3: |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_接果汁2); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_接果汁2)); |
|
|
|
break; |
|
|
|
case 4: |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_接果汁3); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_接果汁3)); |
|
|
|
break; |
|
|
|
case 5: |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_接果汁3); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_接果汁3)); |
|
|
|
break; |
|
|
|
case 6: |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_接果汁4); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_接果汁4)); |
|
|
|
break; |
|
|
|
case 7: |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_接果汁4); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_接果汁4)); |
|
|
|
break; |
|
|
|
default: |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_接果汁1); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_接果汁1)); |
|
|
|
break; |
|
|
|
Thread.Sleep(100); |
|
|
|
a2 = MCUSerialHelper.GetInstance.GetInputStatus(1); |
|
|
|
} |
|
|
|
var devStatus = JuicerHelper.GetInstance.GetDeviceStatus(); |
|
|
|
var devStatus1 = Convert.ToString(devStatus[0], 2); |
|
|
|
var devStatus2 = devStatus[1]; |
|
|
|
|
|
|
|
if (devStatus1.IndexOf("0") == 1&& devStatus2==0) |
|
|
|
if (a2 == 1) |
|
|
|
{ |
|
|
|
JuicerHelper.GetInstance.StartCook(JuicerNum); |
|
|
|
Thread.Sleep(100); |
|
|
|
devStatusBy = JuicerHelper.GetInstance.GetDeviceStatus(); |
|
|
|
while (!(devStatusBy[1]==0)) |
|
|
|
{ |
|
|
|
Thread.Sleep(100); |
|
|
|
devStatusBy = JuicerHelper.GetInstance.GetDeviceStatus(); |
|
|
|
while (devStatusBy.Length != 2) |
|
|
|
{ |
|
|
|
Thread.Sleep(100); |
|
|
|
devStatusBy = JuicerHelper.GetInstance.GetDeviceStatus(); |
|
|
|
} |
|
|
|
} |
|
|
|
devStatusBy = JuicerHelper.GetInstance.GetDeviceStatus(); |
|
|
|
Thread.Sleep(1000); |
|
|
|
byte JuicerNum = byte.Parse(txtJuicerNum.Text.Trim().ToString()); |
|
|
|
int JuicerNum1 = int.Parse(txtJuicerNum.Text.Trim().ToString()); |
|
|
|
switch (JuicerNum1) |
|
|
|
{ |
|
|
|
case 0: |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_放果汁杯1); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_放果汁杯1)); |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_接果汁1); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_接果汁1)); |
|
|
|
break; |
|
|
|
case 1: |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_放果汁杯1); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_放果汁杯1)); |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_接果汁1); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_接果汁1)); |
|
|
|
break; |
|
|
|
case 2: |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_放果汁杯2); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_放果汁杯2)); |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_接果汁2); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_接果汁2)); |
|
|
|
break; |
|
|
|
case 3: |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_放果汁杯2); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_放果汁杯2)); |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_接果汁2); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_接果汁2)); |
|
|
|
break; |
|
|
|
case 4: |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_放果汁杯3); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_放果汁杯3)); |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_接果汁3); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_接果汁3)); |
|
|
|
break; |
|
|
|
case 5: |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_放果汁杯3); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_放果汁杯3)); |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_接果汁3); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_接果汁3)); |
|
|
|
break; |
|
|
|
case 6: |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_放果汁杯4); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_放果汁杯4)); |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_接果汁4); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_接果汁4)); |
|
|
|
break; |
|
|
|
case 7: |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_放果汁杯4); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_放果汁杯4)); |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_接果汁4); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_接果汁4)); |
|
|
|
break; |
|
|
|
default: |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_放果汁杯1); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_放果汁杯1)); |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_接果汁1); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_接果汁1)); |
|
|
|
break; |
|
|
|
} |
|
|
|
var devStatus = JuicerHelper.GetInstance.GetDeviceStatus(); |
|
|
|
var devStatus1 = Convert.ToString(devStatus[0], 2); |
|
|
|
var devStatus2 = devStatus[1]; |
|
|
|
|
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_放杯检测); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_放杯检测)); |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_初始位); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_初始位)); |
|
|
|
if (devStatus1.IndexOf("0") == 1 && devStatus2 == 0) |
|
|
|
{ |
|
|
|
JuicerHelper.GetInstance.StartCook(JuicerNum); |
|
|
|
Thread.Sleep(100); |
|
|
|
devStatusBy = JuicerHelper.GetInstance.GetDeviceStatus(); |
|
|
|
while (!(devStatusBy[1] == 0)) |
|
|
|
{ |
|
|
|
Thread.Sleep(100); |
|
|
|
devStatusBy = JuicerHelper.GetInstance.GetDeviceStatus(); |
|
|
|
while (devStatusBy.Length != 2) |
|
|
|
{ |
|
|
|
Thread.Sleep(100); |
|
|
|
devStatusBy = JuicerHelper.GetInstance.GetDeviceStatus(); |
|
|
|
} |
|
|
|
} |
|
|
|
devStatusBy = JuicerHelper.GetInstance.GetDeviceStatus(); |
|
|
|
Thread.Sleep(1000); |
|
|
|
switch (JuicerNum1) |
|
|
|
{ |
|
|
|
case 0: |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_放果汁杯1); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_放果汁杯1)); |
|
|
|
break; |
|
|
|
case 1: |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_放果汁杯1); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_放果汁杯1)); |
|
|
|
break; |
|
|
|
case 2: |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_放果汁杯2); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_放果汁杯2)); |
|
|
|
break; |
|
|
|
case 3: |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_放果汁杯2); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_放果汁杯2)); |
|
|
|
break; |
|
|
|
case 4: |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_放果汁杯3); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_放果汁杯3)); |
|
|
|
break; |
|
|
|
case 5: |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_放果汁杯3); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_放果汁杯3)); |
|
|
|
break; |
|
|
|
case 6: |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_放果汁杯4); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_放果汁杯4)); |
|
|
|
break; |
|
|
|
case 7: |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_放果汁杯4); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_放果汁杯4)); |
|
|
|
break; |
|
|
|
default: |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_放果汁杯1); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_放果汁杯1)); |
|
|
|
break; |
|
|
|
} |
|
|
|
MCUSerialHelper.GetInstance.OutputControl(1, false); |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_放杯检测); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_放杯检测)); |
|
|
|
int a3 = MCUSerialHelper.GetInstance.GetInputStatus(1); |
|
|
|
while (a3 == 1) |
|
|
|
{ |
|
|
|
Thread.Sleep(100); |
|
|
|
a3 = MCUSerialHelper.GetInstance.GetInputStatus(1); |
|
|
|
} |
|
|
|
if (a3 == 2) |
|
|
|
{ |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_初始位); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_初始位)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
MessageLog.GetInstance.Show("测试流程执行完成"); |
|
|
|
} |
|
|
@@ -178,7 +253,7 @@ namespace HBLConsole.Debug |
|
|
|
Thread.Sleep(1000); |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_取杯检测); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_取杯检测)); |
|
|
|
while (!MCUSerialHelper.GetInstance.GetInputStatus(1)) |
|
|
|
while (!(MCUSerialHelper.GetInstance.GetInputStatus(1)==1)) |
|
|
|
{ |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_取杯); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_取杯)); |
|
|
@@ -199,15 +274,22 @@ namespace HBLConsole.Debug |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_接茶_接水)); |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_接水); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_接水)); |
|
|
|
|
|
|
|
MCUSerialHelper.GetInstance.OutputControl(3, false); |
|
|
|
MCUSerialHelper.GetInstance.OutputControl(2, false); |
|
|
|
Thread.Sleep(100); |
|
|
|
MCUSerialHelper.GetInstance.OutputControl(2,true); |
|
|
|
Thread.Sleep(1000); |
|
|
|
Thread.Sleep(3000); |
|
|
|
MCUSerialHelper.GetInstance.OutputControl(2, false); |
|
|
|
Thread.Sleep(1000); |
|
|
|
Thread.Sleep(100); |
|
|
|
|
|
|
|
MCUSerialHelper.GetInstance.OutputControl(3, false); |
|
|
|
Thread.Sleep(100); |
|
|
|
MCUSerialHelper.GetInstance.OutputControl(3,true); |
|
|
|
Thread.Sleep(1000); |
|
|
|
Thread.Sleep(500); |
|
|
|
MCUSerialHelper.GetInstance.OutputControl(3, false); |
|
|
|
Thread.Sleep(3000); |
|
|
|
|
|
|
|
Thread.Sleep(60000); |
|
|
|
|
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_放水杯); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_放水杯)); |
|
|
|
MCUSerialHelper.GetInstance.OutputControl(1, false); |
|
|
@@ -224,11 +306,11 @@ namespace HBLConsole.Debug |
|
|
|
Wait(0); |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_取杯); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_取杯)); |
|
|
|
MCUSerialHelper.GetInstance.OutputControl(1, true); |
|
|
|
|
|
|
|
Thread.Sleep(1000); |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_取杯检测); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_取杯检测)); |
|
|
|
while (!MCUSerialHelper.GetInstance.GetInputStatus(1)) |
|
|
|
while (!(MCUSerialHelper.GetInstance.GetInputStatus(1)==1)) |
|
|
|
{ |
|
|
|
JaKaHelper.GetInstance.JaKaProgramName(JaKaHelper.SENCE_取杯); |
|
|
|
Wait(int.Parse(JaKaHelper.SENCE_取杯)); |
|
|
|