diff --git a/Rs.SkyLine/Commom/Ops.cs b/Rs.SkyLine/Commom/Ops.cs index 01f2855..8d8ca4a 100644 --- a/Rs.SkyLine/Commom/Ops.cs +++ b/Rs.SkyLine/Commom/Ops.cs @@ -227,7 +227,7 @@ namespace Rs.MotionPlat.Commom } } - public static void Stop() + public static void Stop(Action act=null) { if(MachineManage.Instance.MachineStatus== EMachineStatus.Working) { @@ -252,7 +252,7 @@ namespace Rs.MotionPlat.Commom HomeFlow.Instance.CancleHome(); MachineManage.Instance.SetLocalMachineStatus(EMachineStatus.HomeFail); } - + act?.Invoke(); } public static void GoHome() diff --git a/Rs.SkyLine/Flow/TestCenter.cs b/Rs.SkyLine/Flow/TestCenter.cs index 1671bf4..c2ccef3 100644 --- a/Rs.SkyLine/Flow/TestCenter.cs +++ b/Rs.SkyLine/Flow/TestCenter.cs @@ -246,6 +246,13 @@ namespace Rs.MotionPlat.Flow case EInstruction.ChangeState: SchedulingResult cs = JsonConvert.DeserializeObject(msg); client.Send(cs.ToString()); + if(cs.State== ERunState.Error) + { + MessageQueue.Instance.Insert("中控报警"); + Ops.Stop(() => { + LightManger.Instance.SetStatus(ELightStatus.Red); + }); + } ReplayTaskEvent?.Invoke(cs.ToString()); break; case EInstruction.ShowMessage: diff --git a/Rs.SkyLine/Properties/AssemblyInfo.cs b/Rs.SkyLine/Properties/AssemblyInfo.cs index b2868b2..23e7476 100644 --- a/Rs.SkyLine/Properties/AssemblyInfo.cs +++ b/Rs.SkyLine/Properties/AssemblyInfo.cs @@ -31,6 +31,6 @@ using System.Runtime.InteropServices; // //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 //通过使用 "*",如下所示: - [assembly: AssemblyVersion("3.20.24.22")] + [assembly: AssemblyVersion("3.20.24.24")] //[assembly: AssemblyVersion("1.0.0.0")] //[assembly: AssemblyFileVersion("1.0.0.0")]