Commit b52ccd30 张东亮

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

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