This commit is contained in:
TD 2025-03-28 08:35:29 +08:00
parent b19feb5a44
commit fbd5eb6da7

View File

@ -591,7 +591,7 @@ namespace DHSoftware
//计数清零 //计数清零
PieceCount = 0; PieceCount = 0;
Thread.Sleep(100);
if (PLC?.Enable == true) if (PLC?.Enable == true)
{ {
PLC.OnNewPieces -= MainMotion_NewPieces; PLC.OnNewPieces -= MainMotion_NewPieces;
@ -605,7 +605,18 @@ namespace DHSoftware
cam.SnapshotCount = 0; cam.SnapshotCount = 0;
} }
}); });
Cameras.ForEach(d => {
if (d is CameraBase cam)
{
cam.SnapshotCount = 0;
}
});
HKCameras.ForEach(d => {
if (d is CameraBase cam)
{
cam.SnapshotCount = 0;
}
});
//PrepareBatchNO(); //PrepareBatchNO();
// isInPositionChecking = false; // isInPositionChecking = false;
//isFullTrayChecking = false; //isFullTrayChecking = false;