Commit 63511bf5 LN

扫码日志修改

1 个父辈 35a504a0
...@@ -521,11 +521,12 @@ namespace OnlineStore.DeviceLibrary ...@@ -521,11 +521,12 @@ namespace OnlineStore.DeviceLibrary
if (IOValue(IO_Type.ExitTray_Check3).Equals(IO_VALUE.LOW)) if (IOValue(IO_Type.ExitTray_Check3).Equals(IO_VALUE.LOW))
{ {
UpdateScanInfo(IO_VALUE.LOW,""); UpdateScanInfo(IO_VALUE.LOW,"");
List<string> LastCodeList = CodeManager.CameraScan(Config.GetCameraList(), hengyiName, true); List<string> LastCodeList = CodeManager.CameraScan(Config.GetCameraList(), "", true);
LastCode = SServerManager.ProcessCodeList(LastCodeList); LastCode = SServerManager.ProcessCodeList(LastCodeList);
if (LastCodeList.Count > 0) if (LastCodeList.Count > 0)
{ {
UpdateScanInfo(IO_VALUE.HIGH, LastCode); UpdateScanInfo(IO_VALUE.HIGH, LastCode);
LogUtil.info(hengyiName + "ExitTray_Check3不亮,但扫到条码,更改为有料: " + LastCode);
} }
IsInScanCode = false; IsInScanCode = false;
......
...@@ -115,8 +115,10 @@ namespace OnlineStore.DeviceLibrary ...@@ -115,8 +115,10 @@ namespace OnlineStore.DeviceLibrary
} }
ScanCount++; ScanCount++;
DateTime startTime = DateTime.Now; DateTime startTime = DateTime.Now;
if (deviceName != "")
{
LogUtil.info(deviceName + " 【" + cameraName + "】开始取图片"); LogUtil.info(deviceName + " 【" + cameraName + "】开始取图片");
}
HalconDotNet.HObject ho_Image = null; HalconDotNet.HObject ho_Image = null;
bool findRightCode = false; bool findRightCode = false;
try try
...@@ -129,7 +131,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -129,7 +131,7 @@ namespace OnlineStore.DeviceLibrary
continue; continue;
} }
LogUtil.info(deviceName + " 【" + cameraName + "】取图片完成,开始扫码"); LogUtil.debug(deviceName + " 【" + cameraName + "】取图片完成,开始扫码");
List<CodeInfo> cc = new List<CodeInfo>(); List<CodeInfo> cc = new List<CodeInfo>();
string r = ""; string r = "";
foreach (string codeType in codeTypeList) foreach (string codeType in codeTypeList)
...@@ -166,7 +168,10 @@ namespace OnlineStore.DeviceLibrary ...@@ -166,7 +168,10 @@ namespace OnlineStore.DeviceLibrary
{ {
// SaveImageToFile(deviceName, cameraName, bit); // SaveImageToFile(deviceName, cameraName, bit);
} }
LogUtil.info(deviceName + " 【" + cameraName + "】扫码完成【" + FormUtil.GetSpanStr(DateTime.Now - startTime) + "】["+ findRightCode + "]" + ScanCount + " :" + r); if (deviceName != "" || r != "")
{
LogUtil.info(deviceName + " 【" + cameraName + "】扫码完成【" + FormUtil.GetSpanStr(DateTime.Now - startTime) + "】[" + findRightCode + "]" + ScanCount + " :" + r);
}
} }
catch (AccessViolationException e) catch (AccessViolationException e)
{ {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!