Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
SO815-AutoInOutStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
图表
网络
创建新的问题
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit cce296ab
由
LN
编写于
2019-09-20 16:31:21 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
20190920修改:
1.密码默认值改为配置值。 2.相机名称 未配置时可以自动默认配置。
1 个父辈
907df38e
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
40 行增加
和
14 行删除
source/ACSingleStore/App.config
source/ACSingleStore/FrmPwd.cs
source/ACSingleStore/FrmStoreBox.Designer.cs
source/ACSingleStore/记录.txt
source/Common/Setting_Init.cs
source/DeviceLibrary/DeviceLibrary/halcon/CodeManager.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
source/ACSingleStore/App.config
查看文件 @
cce296a
...
...
@@ -48,6 +48,7 @@
<
add
key
=
"SinglePosId"
value
=
"1#AC2_1_1_6"
/>
<!--配置文件的表头格式,
0
=中文,
1
=英文-->
<
add
key
=
"LibNameType"
value
=
"0"
/>
<
add
key
=
"DefaultPWD"
value
=
"123456"
/>
</
appSettings
>
<
log4net
>
<
appender
name
=
"RollingLogFileAppender"
type
=
"log4net.Appender.RollingFileAppender"
>
...
...
source/ACSingleStore/FrmPwd.cs
查看文件 @
cce296a
...
...
@@ -26,6 +26,7 @@ namespace OnlineStore.AutoInOutStore
private
void
FrmPwd_Load
(
object
sender
,
EventArgs
e
)
{
this
.
DialogResult
=
DialogResult
.
None
;
txtPwd
.
Text
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
DefaultPWD
);
}
private
void
btnNext_Click
(
object
sender
,
EventArgs
e
)
...
...
source/ACSingleStore/FrmStoreBox.Designer.cs
查看文件 @
cce296a
...
...
@@ -1658,7 +1658,7 @@
//
this
.
btnInStore
.
Enabled
=
false
;
this
.
btnInStore
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnInStore
.
Location
=
new
System
.
Drawing
.
Point
(
183
,
388
);
this
.
btnInStore
.
Location
=
new
System
.
Drawing
.
Point
(
252
,
304
);
this
.
btnInStore
.
Name
=
"btnInStore"
;
this
.
btnInStore
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
38
);
this
.
btnInStore
.
TabIndex
=
102
;
...
...
source/ACSingleStore/记录.txt
查看文件 @
cce296a
...
...
@@ -206,10 +206,7 @@ IO模块读取时间改为可配置。
20190613
报警消息WarnMsg 改为WarnIfo对象。
后面自动上下料 RC1252 修改。
DI9 不要,只判断DI10
...
...
@@ -223,4 +220,10 @@ IO配置修改,改为新的IO配置。
linePositions可以中英文切换(默认中文)
位置,优先级,高度,宽度,料仓ID,支持批量操作,中轴位置P2,升降轴库位出料前点P5,升降轴库位出料缓冲点P6,升降轴库位入料前点P3,升降轴库位入料缓冲点P4,进出轴库位点取料点P3,压紧轴压紧点P2,压紧轴压紧前点P3,进出轴仓门出料点P4,进出轴吸盘取料点P2
PositionNum,Priority,Height,Width,StoreID,SupportBatch,MiddleAxis_Position_P2,UpDownAxis_OHPosition_P5,UpDownAxis_OLPosition_P6,UpDownAxis_IHPosition_P3,UpDownAxis_ILPosition_P4,InOutAxis_Position_P3,CompressAxis_Position_P2,CompressAxis_CPosition_P3,InOutAxis_DoorOutPosition_P4,InOutAxis_Batch_P2
\ No newline at end of file
PositionNum,Priority,Height,Width,StoreID,SupportBatch,MiddleAxis_Position_P2,UpDownAxis_OHPosition_P5,UpDownAxis_OLPosition_P6,UpDownAxis_IHPosition_P3,UpDownAxis_ILPosition_P4,InOutAxis_Position_P3,CompressAxis_Position_P2,CompressAxis_CPosition_P3,InOutAxis_DoorOutPosition_P4,InOutAxis_Batch_P2
20190920修改:
1.密码默认值改为配置值。
2.相机名称 未配置时可以自动默认配置。
source/Common/Setting_Init.cs
查看文件 @
cce296a
...
...
@@ -97,5 +97,6 @@ namespace OnlineStore.Common
public
static
string
DeCodeType
=
"DeCodeType"
;
public
static
string
LibNameType
=
"LibNameType"
;
public
static
string
DefaultPWD
=
"DefaultPWD"
;
}
}
source/DeviceLibrary/DeviceLibrary/halcon/CodeManager.cs
查看文件 @
cce296a
...
...
@@ -24,11 +24,11 @@ namespace OnlineStore.DeviceLibrary
private
static
char
spiltChar
=
'#'
;
/// <summary>
/// 初始化摄像机名称和二维码类型
/// </summary>
/// <param name="nameStr">摄像机名称,多个用#分割</param>
/// <param name="codeStr">二维码类型,多个用#分割</param>
public
static
void
LoadConfig
(
string
nameStr
,
string
codeStr
)
/// </summary>
public
static
void
LoadConfig
(
)
{
string
nameStr
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
CameraName
);
string
codeStr
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
CodeType
);
cameraNameList
=
new
List
<
string
>();
codeTypeList
=
new
List
<
string
>();
HDLogUtil
.
LogName
=
"RollingLogFileAppender"
;
...
...
@@ -37,12 +37,20 @@ namespace OnlineStore.DeviceLibrary
string
[]
nameArray
=
nameStr
.
Split
(
spiltChar
);
foreach
(
string
str
in
nameArray
)
{
LogUtil
.
info
(
"加载到配置摄像机名称:"
+
str
.
Trim
());
if
(
str
.
Trim
().
Equals
(
""
))
{
continue
;
}
//LogUtil.info("加载到配置摄像机名称:" + str.Trim());
cameraNameList
.
Add
(
str
.
Trim
());
}
string
[]
codeArray
=
codeStr
.
Split
(
spiltChar
);
foreach
(
string
str
in
codeArray
)
{
if
(
str
.
Trim
().
Equals
(
""
))
{
continue
;
}
LogUtil
.
info
(
"加载到配置二维码类型:"
+
str
.
Trim
());
codeTypeList
.
Add
(
str
.
Trim
());
}
...
...
@@ -50,6 +58,19 @@ namespace OnlineStore.DeviceLibrary
LoadCamera
(
false
);
CodeLibrary
.
HDCodeLearnHelper
.
LoadConfig
(
nameStr
,
codeStr
);
//如果未加载到配置相机,自动配置
if
(
cameraNameList
.
Count
<=
0
&&
hikNameList
.
Count
>
0
)
{
cameraNameList
=
new
List
<
string
>(
hikNameList
);
string
cameraStr
=
""
;
foreach
(
string
name
in
hikNameList
)
{
cameraStr
+=
name
+
spiltChar
;
}
cameraStr
=
cameraStr
.
Substring
(
0
,
cameraStr
.
Length
-
1
);
ConfigAppSettings
.
SaveValue
(
Setting_Init
.
CameraName
,
cameraStr
);
LogUtil
.
info
(
"未配置扫码相机,默认【"
+
Setting_Init
.
CameraName
+
"】=【"
+
cameraStr
+
"】"
);
}
}
catch
(
Exception
ex
)
{
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
查看文件 @
cce296a
...
...
@@ -70,9 +70,8 @@ namespace OnlineStore.DeviceLibrary
}
//初始化摄像机配置
string
nameStr
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
CameraName
);
string
codeStr
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
CodeType
);
CodeManager
.
LoadConfig
(
nameStr
,
codeStr
);
CodeManager
.
LoadConfig
(
);
AutomaticBaiting
.
Init
();
IOManager
.
Init
();
//初始化 //连接设备
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论