Commit 0145d73d 张东亮

出入库前检查料叉不停止设备,避免料串运动造成误感应

1 个父辈 85c1de37
......@@ -64,7 +64,7 @@ namespace DeviceLibrary
public bool boxTransportIsFree { get => boxTransport.IsComplateOrFree; }
public event Action<string, StoreMoveType, bool> InOutEndProcessEvent;
ServerCommunication ServerCM = new ServerCommunication();
ServerCommunication ServerCM;
/// <summary>
/// 开始运行的时间
/// </summary>
......@@ -192,6 +192,7 @@ namespace DeviceLibrary
ConfigHelper.Config.Set("CamTestReel_debug", false);
ConfigHelper.Config.Get("Device_1315_ReelHeight_Compensation", 0);
initAgv();
ServerCM = new ServerCommunication();
}
private void Crc_LanguageChangeEvent(object sender, EventArgs e)
......
......@@ -70,7 +70,7 @@ namespace DeviceLibrary
//}
//else
Msg.add(crc.GetString("Res0004", "收到出库任务,但料叉上有料,无法启动,请检查"), MsgLevel.alarm);
RobotManage.UserPause(crc.GetString("Res0004", "收到出库任务,但料叉上有料,无法启动,请检查"));
//RobotManage.UserPause(crc.GetString("Res0004", "收到出库任务,但料叉上有料,无法启动,请检查"));
return;
}
else
......
......@@ -100,7 +100,7 @@ namespace DeviceLibrary
}
catch (Exception ex) {
LogUtil.error(ex.ToString());
LogUtil.error("Init ", ex);
LoadFinishEvent?.Invoke(false, ex.Message);
return;
}
......
......@@ -317,7 +317,7 @@ namespace TheMachine
lm.Add(m);
}
SetMsg(lm);
//WindowManager.Show();
WindowManager.Show();
}
void SetMsg(List<Msg> msgs)
{
......
......@@ -54,12 +54,12 @@ namespace TheMachine
private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
{
LogUtil.error(e.ToString());
LogUtil.error($"CurrentDomain_UnhandledException:" +e.ToString());
}
private static void Application_ThreadException(object sender, ThreadExceptionEventArgs e)
{
LogUtil.error(e.ToString());
LogUtil.error($"Application_ThreadException:" +e.ToString());
}
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!