|
@@ -28,12 +28,12 @@ namespace BPASmartClient.JXJFoodSmallStation.ViewModel |
|
|
time = GVL_SmallStation.GetInstance.Time; |
|
|
time = GVL_SmallStation.GetInstance.Time; |
|
|
Test1Command = new RelayCommand(() => |
|
|
Test1Command = new RelayCommand(() => |
|
|
{ |
|
|
{ |
|
|
//if (!Delay.GetInstance("CanManualGetTray").Start(GVL_SmallStation.GetInstance.ManualIssueRecipe, 10)) |
|
|
|
|
|
//{ |
|
|
|
|
|
// NoticeDemoViewModel.OpenMsg(EnumPromptType.Error, App.MainWindow, "提示", $"手动下发订单间隔不足10秒,请稍后再点击。"); |
|
|
|
|
|
// return; |
|
|
|
|
|
//} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (DateTime.Now.Subtract(GVL_SmallStation.GetInstance.LatestIssueRecipe).TotalSeconds<=10) |
|
|
|
|
|
{ |
|
|
|
|
|
NoticeDemoViewModel.OpenMsg(EnumPromptType.Error, App.MainWindow, "提示", $"最后一次手动下发订单间隔不足10秒,请稍后再点击。"); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
ActionManage.GetInstance.Send("PLCWrite", new HKDeviceWrite() { Address = "DB4.DBX8.0", PlcVarType = PlcVarType.Bool, Value = true }); |
|
|
ActionManage.GetInstance.Send("PLCWrite", new HKDeviceWrite() { Address = "DB4.DBX8.0", PlcVarType = PlcVarType.Bool, Value = true }); |
|
|
//Thread.Sleep(200); |
|
|
//Thread.Sleep(200); |
|
|
//ActionManage.GetInstance.Send("PLCWrite", new HKDeviceWrite() { Address = "DB4.DBX8.0", PlcVarType = PlcVarType.Bool, Value = false }); |
|
|
//ActionManage.GetInstance.Send("PLCWrite", new HKDeviceWrite() { Address = "DB4.DBX8.0", PlcVarType = PlcVarType.Bool, Value = false }); |
|
@@ -43,7 +43,6 @@ namespace BPASmartClient.JXJFoodSmallStation.ViewModel |
|
|
VisibilityBtn1 = Visibility.Hidden; |
|
|
VisibilityBtn1 = Visibility.Hidden; |
|
|
VisibilityBtn2 = Visibility.Visible; |
|
|
VisibilityBtn2 = Visibility.Visible; |
|
|
VisibilityBtn3 = Visibility.Hidden; |
|
|
VisibilityBtn3 = Visibility.Hidden; |
|
|
GVL_SmallStation.GetInstance.ManualIssueRecipe = false; |
|
|
|
|
|
NoticeDemoViewModel.OpenMsg(EnumPromptType.Success, App.MainWindow, "提示", $"手动点击按钮,AGV送托盘完成"); |
|
|
NoticeDemoViewModel.OpenMsg(EnumPromptType.Success, App.MainWindow, "提示", $"手动点击按钮,AGV送托盘完成"); |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|