This commit is contained in:
Admin 2026-03-16 19:04:50 +08:00
parent 99775156e7
commit e5e165dc2b

View File

@ -4407,6 +4407,8 @@ namespace ViewModel
// return;
//}
ShowStatu.StatusBackground = ColorStr.Yellow;
ShowStatu.StatusForeground = ColorStr.Red;
@ -4418,14 +4420,65 @@ namespace ViewModel
OutputList[3].Switchs = true; //蜂鸣器
//记录异常信息
try
//try
//{
// RecordLog(showMag);
//}
//catch (Exception ex)
//{
// MessageBox.Show(ex.ToString());
//}
ExcepNoIng = true;
}
catch
{
}
}
public void ExcepNoStopClear(string showMag)
{
try
{
//if (ExcepNoIng)
//{
// return;
//}
if (ShowStatu.StatuInfo == showMag)
{
RecordLog(showMag);
ShowStatu.StatusBackground = ColorStr.Green;
ShowStatu.StatuInfo = "运行中";
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
else {
ShowStatu.StatuInfo = "停止中";
}
ShowStatu.StatusForeground = ColorStr.Black;
ShowStatu.StatuInfo = showMag;
// OutputList[0].Switchs = true; //红灯
OutputList[1].Switchs = false; //黄灯
//OutputList[2].Switchs = true; //绿灯
OutputList[3].Switchs = false; //蜂鸣器
////记录异常信息
//try
//{
// RecordLog(showMag);
//}
//catch (Exception ex)
//{
// MessageBox.Show(ex.ToString());
//}
ExcepNoIng = true;
}
@ -5383,7 +5436,7 @@ namespace ViewModel
//后站要料,出料
if (NextStationReceive.RequestCache && NextStationReceive.Running)
{
NextStationSend.RequestCache = true; //回复出料信号
MyFlow.RunStep++;
MyFlow.RunTime = DateTime.Now;
}