diff --git a/BPASmartClient.MorkF/Control_MorkF.cs b/BPASmartClient.MorkF/Control_MorkF.cs index 49ec2bcd..abff1ff1 100644 --- a/BPASmartClient.MorkF/Control_MorkF.cs +++ b/BPASmartClient.MorkF/Control_MorkF.cs @@ -14,6 +14,7 @@ using System.Text; using System.Collections.Concurrent; using System.Windows.Documents; using BPASmartClient.Business; +using Microsoft.CodeAnalysis; namespace BPASmartClient.MorkF { @@ -466,11 +467,32 @@ namespace BPASmartClient.MorkF { if (list_int.Count == 2) { - SetNowPosition(list_int[0], list_int[1]); + SetArmPosition(list_int[0], list_int[1]); } } }), "SetNowPosition"); }), "SetNowPosition"); + ActionManage.GetInstance.Register(new Action((list) => + { + ThreadManage.GetInstance().Start(new Action(() => + { + if (list is List list_object) + { + if (list_object.Count != 3) + { + return; + } + + if (list_object[0] is string No && list_object[1] is int x && list_object[2] is int y) + { + if (SetArmPosition(x, y)) + { + ActionManage.GetInstance.Send("CalibrationCallBack", new List { No });//设定机械臂当前位置 + } + } + } + }), "CalibrationCoordination"); + }), "CalibrationCoordination"); #endregion //ActionManage.GetInstance.Register(PLCInite, "InitCommand"); #region 配料控制 diff --git a/BPASmartClient.MorkF/View/MaterialCalibration.xaml b/BPASmartClient.MorkF/View/MaterialCalibration.xaml new file mode 100644 index 00000000..ce2e698a --- /dev/null +++ b/BPASmartClient.MorkF/View/MaterialCalibration.xaml @@ -0,0 +1,685 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +