Commit b52ccd30 张东亮

存储机构-当采集不到图像时,返回-1

1 个父辈 3959b19b
...@@ -501,6 +501,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -501,6 +501,8 @@ namespace OnlineStore.DeviceLibrary
{ {
int flag; int flag;
markCoor = new EyemOcsFXYR(); markCoor = new EyemOcsFXYR();
if (bitmap == null)
return -1;
EyemImage tpDstImg; EyemImage tpDstImg;
EyemImage image = eyemCvtToEyemImage(bitmap); EyemImage image = eyemCvtToEyemImage(bitmap);
flag = eyemMarkerTracing(image, 120, ref markCoor, out tpDstImg); flag = eyemMarkerTracing(image, 120, ref markCoor, out tpDstImg);
......
...@@ -248,6 +248,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -248,6 +248,7 @@ namespace OnlineStore.DeviceLibrary
MoveAxisToP3(); MoveAxisToP3();
PullAxis_UpdownToLowP4(); PullAxis_UpdownToLowP4();
UpdownAxisTo_P6_P12(); UpdownAxisTo_P6_P12();
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(3000));
break; break;
case StepEnum.SI_08_ToPosition: case StepEnum.SI_08_ToPosition:
if(CamCheckReelPosition()) if(CamCheckReelPosition())
......
...@@ -58,6 +58,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -58,6 +58,7 @@ namespace OnlineStore.DeviceLibrary
ComAxis_To_P2(); ComAxis_To_P2();
XAxis_To_P3(); XAxis_To_P3();
MiddleAxis_To_P3(); MiddleAxis_To_P3();
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(3000));
break; break;
case StepEnum.SO_02_ToPosition: case StepEnum.SO_02_ToPosition:
if(CamCheckReelPosition()) if(CamCheckReelPosition())
......
...@@ -656,9 +656,15 @@ namespace OnlineStore.DeviceLibrary ...@@ -656,9 +656,15 @@ namespace OnlineStore.DeviceLibrary
CamDetectError = true; CamDetectError = true;
return false; return false;
} }
else if(res==-1)
{
SetWarnMsg($"相机检查库位异常[code={res}],取像失败。库位号:{MoveInfo.MoveParam.PosInfo.PosId}");
CamDetectError = true;
return false;
}
else else
{ {
SetWarnMsg($"相机检查库位异常[code={res}],未找到Mark点。库位号:{MoveInfo.MoveParam.PosInfo.PosId}"); SetWarnMsg($"相机检查库位异常[code={res}]。库位号:{MoveInfo.MoveParam.PosInfo.PosId}");
CamDetectError = true; CamDetectError = true;
return false; return false;
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!