Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 729bab4b
由
LN
编写于
2020-09-25 14:30:44 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
关闭保存扫码失败图片功能。去掉清理内存代码
1 个父辈
d6856b42
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
19 行增加
和
7 行删除
source/AssemblyLineClient/App.config
source/AssemblyLineClient/FrmLineStore.cs
source/AssemblyLineClient/记录.txt
source/Common/Setting_Init.cs
source/DeviceLibrary/deviceLibrary/halcon/CodeManager.cs
source/AssemblyLineClient/App.config
查看文件 @
729bab4
...
@@ -58,10 +58,11 @@
...
@@ -58,10 +58,11 @@
<
add
key
=
"Agv_Log_Open"
value
=
"0"
/>
<
add
key
=
"Agv_Log_Open"
value
=
"0"
/>
<
add
key
=
"NeedCheckTray"
value
=
"0"
/>
<
add
key
=
"NeedCheckTray"
value
=
"0"
/>
<
add
key
=
"Feed_LastShelfID_101"
value
=
"B19"
/>
<
add
key
=
"Feed_LastShelfID_101"
value
=
"B19"
/>
<
add
key
=
"Feed_LastShelfID_102"
value
=
"B3"
/>
<
add
key
=
"Feed_LastShelfID_102"
value
=
"B
2
3"
/>
<
add
key
=
"Feed_LastShelfID_103"
value
=
"B5"
/>
<
add
key
=
"Feed_LastShelfID_103"
value
=
"B
2
5"
/>
<
add
key
=
"Feed_LastShelfID_104"
value
=
"B
24
"
/>
<
add
key
=
"Feed_LastShelfID_104"
value
=
"B
7
"
/>
<
add
key
=
"Brush_Delay_Seconds"
value
=
"5"
/>
<
add
key
=
"Brush_Delay_Seconds"
value
=
"5"
/>
<
add
key
=
"SaveErrorImageToFile"
value
=
"1"
/>
</
appSettings
>
</
appSettings
>
<!-- <
log4net
> -->
<!-- <
log4net
> -->
<!-- <
appender
name
=
"RollingLogFileAppender"
type
=
"log4net.Appender.RollingFileAppender"
> -->
<!-- <
appender
name
=
"RollingLogFileAppender"
type
=
"log4net.Appender.RollingFileAppender"
> -->
...
...
source/AssemblyLineClient/FrmLineStore.cs
查看文件 @
729bab4
...
@@ -510,7 +510,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -510,7 +510,7 @@ namespace OnlineStore.AssemblyLine
LogUtil
.
info
(
sbResult
.
ToString
());
LogUtil
.
info
(
sbResult
.
ToString
());
}
}
}
}
ClearMemory
();
//
ClearMemory();
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
...
...
source/AssemblyLineClient/记录.txt
查看文件 @
729bab4
20200902
20200925
1.去掉清理内存代码。
2.扫码失败保存图片的功能暂时关闭。
3.halcon的dll更新为18的版本
20200902
增加分流横移2,位置在进仓4-5,进仓14-15中间。
增加分流横移2,位置在进仓4-5,进仓14-15中间。
横移条件:
横移条件:
1,进仓,15,16,17,18 ,料仓入库
1,进仓,15,16,17,18 ,料仓入库
...
...
source/Common/Setting_Init.cs
查看文件 @
729bab4
...
@@ -95,5 +95,7 @@ namespace OnlineStore.Common
...
@@ -95,5 +95,7 @@ namespace OnlineStore.Common
public
static
string
Feed_LastShelfID_
=
"Feed_LastShelfID_"
;
public
static
string
Feed_LastShelfID_
=
"Feed_LastShelfID_"
;
public
static
string
Brush_Delay_Seconds
=
"Brush_Delay_Seconds"
;
public
static
string
Brush_Delay_Seconds
=
"Brush_Delay_Seconds"
;
public
static
string
SaveErrorImageToFile
=
"SaveErrorImageToFile"
;
}
}
}
}
source/DeviceLibrary/deviceLibrary/halcon/CodeManager.cs
查看文件 @
729bab4
...
@@ -165,9 +165,9 @@ namespace OnlineStore.DeviceLibrary
...
@@ -165,9 +165,9 @@ namespace OnlineStore.DeviceLibrary
break
;
break
;
}
}
}
}
if
(!
findRightCode
)
if
(!
findRightCode
&&
SaveErrorImageToFile
.
Equals
(
1
)
)
{
{
SaveImageToFile
(
deviceName
,
cameraName
,
ho_Image
);
SaveImageToFile
(
deviceName
,
cameraName
,
ho_Image
);
}
}
if
(
deviceName
!=
""
||
r
!=
""
)
if
(
deviceName
!=
""
||
r
!=
""
)
{
{
...
@@ -209,6 +209,9 @@ namespace OnlineStore.DeviceLibrary
...
@@ -209,6 +209,9 @@ namespace OnlineStore.DeviceLibrary
}
}
return
codeList
;
return
codeList
;
}
}
private
static
int
SaveErrorImageToFile
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
SaveErrorImageToFile
);
private
static
void
SaveImageToFile
(
string
deviceName
,
string
cameraName
,
HalconDotNet
.
HObject
bitmap
)
private
static
void
SaveImageToFile
(
string
deviceName
,
string
cameraName
,
HalconDotNet
.
HObject
bitmap
)
{
{
string
date
=
deviceName
.
Trim
().
Replace
(
'_'
,
'-'
)
+
"-"
+
DateTime
.
Now
.
ToString
(
"yyyyMMdd-HHmmss"
)
+
"-"
+
DateTime
.
Now
.
Millisecond
.
ToString
().
PadLeft
(
4
,
'0'
);
string
date
=
deviceName
.
Trim
().
Replace
(
'_'
,
'-'
)
+
"-"
+
DateTime
.
Now
.
ToString
(
"yyyyMMdd-HHmmss"
)
+
"-"
+
DateTime
.
Now
.
Millisecond
.
ToString
().
PadLeft
(
4
,
'0'
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论