Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
AutoCountMachine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 0b925597
由
LN
编写于
2020-06-10 17:10:24 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
增加点料测试按钮
1 个父辈
a3f88ef6
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
41 行增加
和
3 行删除
RC1266-AutoCountMachine/dll/X-Ray/CountImage.dll
RC1266-AutoCountMachine/source/AutoCountClient/App.config
RC1266-AutoCountMachine/source/AutoCountClient/AutoCountClient.csproj
RC1266-AutoCountMachine/source/AutoCountClient/FrmXRay.Designer.cs
RC1266-AutoCountMachine/source/AutoCountClient/FrmXRay.cs
RC1266-AutoCountMachine/source/Common/Setting_Init.cs
RC1266-AutoCountMachine/source/DeviceLibrary/bean/BatchMoveBean_Partial.cs
RC1266-AutoCountMachine/source/DeviceLibrary/bean/X_RAY_Equip.cs
RC1266-AutoCountMachine/source/DeviceLibrary/bean/X_RAY_Equip_Partial.cs
RC1266-AutoCountMachine/dll/X-Ray/CountImage.dll
查看文件 @
0b92559
此文件类型无法预览
RC1266-AutoCountMachine/source/AutoCountClient/App.config
查看文件 @
0b92559
...
...
@@ -49,6 +49,7 @@
<
add
key
=
"NeedPrintLabel"
value
=
"0"
/>
<!--
XRay
射线最后一次使用时间-->
<
add
key
=
"XRay_Data"
value
=
"2020-6-2"
/>
<
add
key
=
"ThresholdValue"
value
=
"30"
/>
</
appSettings
>
<
log4net
>
...
...
RC1266-AutoCountMachine/source/AutoCountClient/AutoCountClient.csproj
查看文件 @
0b92559
...
...
@@ -67,6 +67,9 @@
<Reference Include="CodeLibrary">
<HintPath>..\..\dll\CodeLibrary.dll</HintPath>
</Reference>
<Reference Include="CountImage">
<HintPath>..\..\dll\X-Ray\CountImage.dll</HintPath>
</Reference>
<Reference Include="DeviceLib">
<HintPath>..\..\dll\DeviceLib.dll</HintPath>
</Reference>
...
...
RC1266-AutoCountMachine/source/AutoCountClient/FrmXRay.Designer.cs
查看文件 @
0b92559
此文件的差异被折叠,
点击展开。
RC1266-AutoCountMachine/source/AutoCountClient/FrmXRay.cs
查看文件 @
0b92559
...
...
@@ -43,6 +43,7 @@ namespace OnlineStore.AutoCountClient
lblData
.
Text
=
"最后使用时间:"
+
ConfigAppSettings
.
GetValue
(
Setting_Init
.
XRay_Data
);
lblLastS
.
Text
=
equipBean
.
LastXRayState
;
lblName
.
Text
=
equipBean
.
Name
;
numTh
.
Value
=
equipBean
.
ThresholdValue
;
IsLoad
=
true
;
}
...
...
@@ -415,6 +416,35 @@ namespace OnlineStore.AutoCountClient
string
fileName
=
equipBean
.
CapImage
();
MessageBox
.
Show
(
"获取图片完成:"
+
fileName
);
}
private
void
btnWorkTest_Click
(
object
sender
,
EventArgs
e
)
{
LogUtil
.
info
(
equipBean
.
Name
+
"用户点击 点料测试 "
);
btnWorkTest
.
Enabled
=
false
;
try
{
txtResult
.
Text
=
"点料中..."
;
int
th
=(
int
)
numTh
.
Value
;
int
outCount
=
0
;
equipBean
.
countImage
.
GetCount
(
th
,
out
outCount
);
txtResult
.
Text
=
outCount
.
ToString
();
LogUtil
.
info
(
equipBean
.
Name
+
"用户点击 点料测试["
+
th
+
"] 结果:"
+
outCount
);
}
catch
(
Exception
ex
)
{
LogUtil
.
error
(
"点料测试出错:"
+
ex
.
ToString
());
}
btnWorkTest
.
Enabled
=
true
;
}
private
void
btnSaveTh_Click
(
object
sender
,
EventArgs
e
)
{
int
th
=
(
int
)
numTh
.
Value
;
ConfigAppSettings
.
SaveValue
(
Setting_Init
.
ThresholdValue
,
th
);
equipBean
.
ThresholdValue
=
th
;
MessageBox
.
Show
(
"保存阈值["
+
th
+
"]成功!"
);
LogUtil
.
info
(
"用户点击:保存阈值["
+
th
+
"]成功!"
);
}
}
}
...
...
RC1266-AutoCountMachine/source/Common/Setting_Init.cs
查看文件 @
0b92559
...
...
@@ -81,5 +81,7 @@ namespace OnlineStore.Common
public
static
string
NeedPrintLabel
=
"NeedPrintLabel"
;
public
static
string
XRay_Data
=
"XRay_Data"
;
public
static
string
ThresholdValue
=
"ThresholdValue"
;
}
}
RC1266-AutoCountMachine/source/DeviceLibrary/bean/BatchMoveBean_Partial.cs
查看文件 @
0b92559
...
...
@@ -209,7 +209,7 @@ namespace OnlineStore.DeviceLibrary
else
if
(
MoveInfo
.
IsStep
(
StepEnum
.
IB22_LocationDown
))
{
MoveInfo
.
NextMoveStep
(
StepEnum
.
IB23_ShelfOut
);
MoveInfo
.
TimeOutSeconds
=
3
0
;
MoveInfo
.
TimeOutSeconds
=
4
0
;
MoveInfo
.
OneWaitCanEndStep
=
true
;
WorkLog
(
"上料完成 :通知agv来取料串,等待料串离开"
);
AgvClient
.
NeedLeave
(
AgvName
,
CurrShelfId
,
ClientLevel
.
High
);
...
...
RC1266-AutoCountMachine/source/DeviceLibrary/bean/X_RAY_Equip.cs
查看文件 @
0b92559
...
...
@@ -31,6 +31,8 @@ namespace OnlineStore.DeviceLibrary
public
string
LastXRayState
=
"未知"
;
public
bool
InXWork
=
false
;
public
int
ThresholdValue
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
ThresholdValue
);
private
string
path_XRAY
=
Application
.
StartupPath
+
@"\XRAY\"
;
private
string
path1_tif
=
Application
.
StartupPath
+
@"\XRAY\tif"
;
private
string
path2_png
=
Application
.
StartupPath
+
@"\XRAY\png"
;
...
...
RC1266-AutoCountMachine/source/DeviceLibrary/bean/X_RAY_Equip_Partial.cs
查看文件 @
0b92559
...
...
@@ -335,9 +335,9 @@ namespace OnlineStore.DeviceLibrary
xRay
.
Stop
();
}
int
count
=
99999
;
countImage
.
GetCount
(
out
count
);
countImage
.
GetCount
(
ThresholdValue
,
out
count
);
InXWork
=
false
;
WorkLog
(
"点料:获取点料结果
,
【"
+
count
+
"】,保存并上传结果"
);
WorkLog
(
"点料:获取点料结果
["
+
ThresholdValue
+
"]=
【"
+
count
+
"】,保存并上传结果"
);
if
(
Work_ReelInfo
.
WareCount
<=
0
)
{
MoveInfo
.
MoveParam
.
WareCount
=
count
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论