1
This commit is contained in:
parent
cc7f45c9da
commit
bdf54be496
@ -1795,6 +1795,10 @@ namespace ViewModel
|
||||
ExcepStop(ex.Message);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
FrontStationSend.Safe = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1830,6 +1834,7 @@ namespace ViewModel
|
||||
break;
|
||||
case GengralProcessEnum.Step2:
|
||||
RobotSafe = true;
|
||||
FrontStationSend.Safe = true;
|
||||
//下视觉检查
|
||||
if (DownVisionRun(DownVisionFlow))
|
||||
{
|
||||
@ -1838,7 +1843,7 @@ namespace ViewModel
|
||||
}
|
||||
break;
|
||||
case GengralProcessEnum.Step3:
|
||||
|
||||
FrontStationSend.Safe = true;
|
||||
if (CurrXizui.State.StatusBackground == ColorStr.Yellow) //放缓存皮带
|
||||
{
|
||||
AnalysisFlow = new FlowModel("产品分选");
|
||||
@ -1863,6 +1868,7 @@ namespace ViewModel
|
||||
break;
|
||||
case GengralProcessEnum.Step4:
|
||||
RobotSafe = true;
|
||||
FrontStationSend.Safe = true;
|
||||
//测试盒取出
|
||||
if (BoxOutPutRun(BoxOutPutFlow))
|
||||
{
|
||||
@ -1881,6 +1887,7 @@ namespace ViewModel
|
||||
}
|
||||
break;
|
||||
case GengralProcessEnum.Step5:
|
||||
FrontStationSend.Safe = true;
|
||||
//获取可以投入的测试盒
|
||||
CurrBox = TestBenchBox.Where(w => w.State.StatusBackground == ColorStr.Blue).FirstOrDefault();
|
||||
if (CurrBox != null)
|
||||
@ -1894,6 +1901,7 @@ namespace ViewModel
|
||||
break;
|
||||
case GengralProcessEnum.Step6:
|
||||
RobotSafe = true;
|
||||
FrontStationSend.Safe = true;
|
||||
//测试盒投入
|
||||
if (BoxInPutRun(BoxInPutFlow))
|
||||
{
|
||||
@ -1905,6 +1913,7 @@ namespace ViewModel
|
||||
break;
|
||||
case GengralProcessEnum.Step7:
|
||||
RobotSafe = true;
|
||||
FrontStationSend.Safe = true;
|
||||
//产品分选
|
||||
if (AnalysisRun(AnalysisFlow))
|
||||
{
|
||||
@ -2105,6 +2114,7 @@ namespace ViewModel
|
||||
}
|
||||
break;
|
||||
case GengralProcessEnum.Step11:
|
||||
FrontStationSend.Safe = true;
|
||||
//等待前站撤销请求,取料交互完成
|
||||
if (!FrontStationReceive.RequestOut && FrontStationReceive.Running || OfflineMode)
|
||||
{
|
||||
@ -5434,6 +5444,15 @@ namespace ViewModel
|
||||
break;
|
||||
case GengralProcessEnum.Step2:
|
||||
//产品流到出料检知
|
||||
|
||||
if (CacheLineList[0].State.StatusBackground == ColorStr.White) {
|
||||
|
||||
MyFlow.RunStep = GengralProcessEnum.Step1;
|
||||
MyFlow.RunTime = DateTime.Now;
|
||||
|
||||
}
|
||||
else
|
||||
|
||||
if (MyFlow.OutSignal.LightUp)
|
||||
{
|
||||
CacheLineList[0].State.StatusBackground = ColorStr.White;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user