|
|
@@ -39,7 +39,9 @@ namespace BPASmartClient.JXJFoodSmallStation.ViewModel |
|
|
|
VisibilityBtn3 = Visibility.Hidden; |
|
|
|
GVL_SmallStation.GetInstance.ManualIssueRecipe = false; |
|
|
|
NoticeDemoViewModel.OpenMsg(EnumPromptType.Success, App.MainWindow, "提示", $"手动点击按钮,AGV送托盘完成"); |
|
|
|
}, () => CanManualGetTray()); |
|
|
|
|
|
|
|
}, () => { return Delay.GetInstance("CanManualGetTray").Start(GVL_SmallStation.GetInstance.ManualIssueRecipe, 10); }); |
|
|
|
|
|
|
|
Test2Command = new RelayCommand(() => |
|
|
|
{ |
|
|
|
ActionManage.GetInstance.Send("PLCWrite", new HKDeviceWrite() { Address = "DB4.DBX4.0", PlcVarType = PlcVarType.Bool, Value = true }); |
|
|
@@ -66,6 +68,7 @@ namespace BPASmartClient.JXJFoodSmallStation.ViewModel |
|
|
|
VisibilityBtn3 = Visibility.Hidden; |
|
|
|
NoticeDemoViewModel.OpenMsg(EnumPromptType.Success, App.MainWindow, "提示", $"手动点击按钮,AGV取托盘完成"); |
|
|
|
}); |
|
|
|
|
|
|
|
Test4Command = new RelayCommand(() => |
|
|
|
{ |
|
|
|
ActionManage.GetInstance.Send("PLCWrite", new HKDeviceWrite() { Address = "DB4.DBX1.5", PlcVarType = PlcVarType.Bool, Value = true }); |
|
|
@@ -375,14 +378,6 @@ namespace BPASmartClient.JXJFoodSmallStation.ViewModel |
|
|
|
|
|
|
|
private static Visibility _VisibilityBtn3 = Visibility.Hidden; |
|
|
|
|
|
|
|
//延迟10s后才可以执行手动点击送托盘完成操作。 |
|
|
|
private bool CanManualGetTray() |
|
|
|
{ |
|
|
|
if (Delay.GetInstance("CanManualGetTray").Start(GVL_SmallStation.GetInstance.ManualIssueRecipe,10)) |
|
|
|
{ |
|
|
|
return true; |
|
|
|
} |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |