0、版本号:3.20.24.59

1、等待料盘到位光电时增加超时报警机制,超时感应不到信号则报警
2、优化当启动检测到穴位无料时,清空内存中的有料状态
develop
lhiven 6 months ago
parent 954bc863d4
commit 316b933a7d

@ -374,7 +374,7 @@ namespace Rs.MotionPlat.Flow
/// <returns></returns>
public TurnoverInfo GetTestUnloadTask(int fromIndex)
{
return testUnloadTaskList.Where(t => t.FromIndex == fromIndex-1).First();
return testUnloadTaskList.Where(t => t.FromIndex == fromIndex-1).FirstOrDefault();
}
/// <summary>

@ -529,14 +529,52 @@ namespace Rs.AutoDischarge.V3.Flow
public void LoadedOK()
{
actionFinishedEvent.WaitOne();
Stopwatch tm = new Stopwatch();
tm.Start();
while( true ) {
if (Ops.IsOn($"{(int)m_stockType}号料仓料盘到位光电检测") || GlobalVar.VirtualAxis)
if(tm.ElapsedMilliseconds<5000)
{
break;
if (Ops.IsOn($"{(int)m_stockType}号料仓料盘到位光电检测") || GlobalVar.VirtualAxis)
{
break;
}
else
{
Thread.Sleep(100);
}
}
else
{
Thread.Sleep(100);
tm.Stop();
switch (m_stockType)
{
case ETrayType.Empty1:
alarmEntity = AlarmCollection.Get(AlarmConstID.1).Transform(m_stockType.ToString());
break;
case ETrayType.Input:
alarmEntity = AlarmCollection.Get(AlarmConstID.2).Transform(m_stockType.ToString());
break;
case ETrayType.Ok:
alarmEntity = AlarmCollection.Get(AlarmConstID.3).Transform(m_stockType.ToString());
break;
case ETrayType.Ng:
alarmEntity = AlarmCollection.Get(AlarmConstID.4).Transform(m_stockType.ToString());
break;
case ETrayType.Multi:
alarmEntity = AlarmCollection.Get(AlarmConstID.5).Transform(m_stockType.ToString());
break;
case ETrayType.Empty2:
alarmEntity = AlarmCollection.Get(AlarmConstID.6).Transform(m_stockType.ToString());
break;
default:
break;
}
if (alarmEntity != null)
{
MessageQueue.Instance.Warn(GetClassName() + alarmEntity.CN);
AlarmMessageBox.ShowDialog(alarmEntity, ETipButton.Retry, null);
tm.Restart();
}
}
}
}

@ -2,6 +2,7 @@
using Rs.AutoDischarge.V3.Flow;
using Rs.Framework;
using Rs.MotionPlat.Commom;
using Rs.MotionPlat.Entitys.Trays;
using Rs.MotionPlat.Flow.Camera;
using Rs.MotionPlat.Flow.SafePosFlow;
using Rs.MotionPlat.Flow.SubFlow;
@ -392,6 +393,7 @@ namespace Rs.MotionPlat.Flow
MessageQueue.Instance.Insert($"测试{i}号穴位无料");
Ops.Off($"测试{i}号穴位真空吸");
LogHelper.Debug($"关闭测试{i}号穴位真空吸");
TestTrayManager.Instance.Slot(i).ResetStatus();
}
}
if (dischargeNozzles.Count > 0 || turnoverNozzles.Count > 0 || turnoverTraySlots.Count > 0 || socketSlots.Count > 0)

@ -31,6 +31,6 @@ using System.Runtime.InteropServices;
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
[assembly: AssemblyVersion("3.20.24.57")]
[assembly: AssemblyVersion("3.20.24.59")]
//[assembly: AssemblyVersion("1.0.0.0")]
//[assembly: AssemblyFileVersion("1.0.0.0")]

Loading…
Cancel
Save