Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC30-AutoInOutStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit e2bf183f
由
LN
编写于
2019-08-16 09:14:23 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
p/n 的码是P打头,SKID码是2T475打头
1 个父辈
5a3867e6
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
55 行增加
和
3 行删除
source/ACSingleStore/记录.txt
source/DeviceLibrary/acSingleStore/AutomaticBaiting_Partial.cs
source/ACSingleStore/记录.txt
查看文件 @
e2bf183
...
@@ -214,3 +214,13 @@ IO模块读取时间改为可配置。
...
@@ -214,3 +214,13 @@ IO模块读取时间改为可配置。
报警消息WarnMsg 改为WarnIfo对象。
报警消息WarnMsg 改为WarnIfo对象。
后面自动上下料 RC1252 修改。
DI9 不要,只判断DI10
压紧轴改为伺服,压紧轴计量检测信号去掉。
20190814修改:
匈牙利条码拼接修改,如果有2T475则拼接,没有的话按原来的方式返回。
// p/n 的码是P打头,SKID码是2T475打头
// RI;PN;QTY
\ No newline at end of file
\ No newline at end of file
source/DeviceLibrary/acSingleStore/AutomaticBaiting_Partial.cs
查看文件 @
e2bf183
...
@@ -374,6 +374,40 @@ namespace OnlineStore.DeviceLibrary
...
@@ -374,6 +374,40 @@ namespace OnlineStore.DeviceLibrary
// StoreManager.Store.onCodeReceived(message);
// StoreManager.Store.onCodeReceived(message);
});
});
}
}
public
static
string
ProcessBarcode
(
List
<
string
>
codeList
)
{
// p/n 的码是P打头,SKID码是2T475打头
// RI;PN;QTY
string
split
=
";"
;
string
result
=
""
;
try
{
List
<
string
>
rCodes
=
new
List
<
string
>();
string
pCode
=
GetCodeByStart
(
codeList
,
"P"
);
string
riCode
=
GetCodeByStart
(
codeList
,
"2T475"
);
if
(
riCode
.
Equals
(
""
))
{
return
result
;
}
else
{
result
=
riCode
+
split
+
pCode
+
split
+
"1"
;
}
}
catch
(
Exception
ex
)
{
LogUtil
.
error
(
"ProcessBarcode出错:"
+
ex
.
ToString
());
}
return
result
;
}
private
static
string
GetCodeByStart
(
List
<
string
>
codeList
,
string
start
)
{
List
<
string
>
pCode
=
(
from
m
in
codeList
where
m
.
StartsWith
(
start
)
select
m
).
ToList
<
string
>();
if
(
pCode
.
Count
>
0
)
{
return
pCode
[
0
];
}
return
""
;
}
#
endregion
#
endregion
private
static
void
CylinderMove
(
string
highType
,
string
lowType
,
bool
isWait
)
private
static
void
CylinderMove
(
string
highType
,
string
lowType
,
bool
isWait
)
...
@@ -393,13 +427,21 @@ namespace OnlineStore.DeviceLibrary
...
@@ -393,13 +427,21 @@ namespace OnlineStore.DeviceLibrary
//string[] codeArray = LastCode.Split(new string[] { spiltStr});
//string[] codeArray = LastCode.Split(new string[] { spiltStr});
if
(
LastCodeList
.
Count
>
0
)
if
(
LastCodeList
.
Count
>
0
)
{
{
foreach
(
string
code
in
LastCodeList
)
string
codeInfo
=
ProcessBarcode
(
LastCodeList
);
if
(
codeInfo
.
Equals
(
""
))
{
{
if
(!
code
.
Equals
(
""
)
)
foreach
(
string
code
in
LastCodeList
)
{
{
msg
=
msg
+
"=1+0x0-"
+
LastWidth
+
"x"
+
LastHeight
+
"="
+
code
+
spiltStr
;
if
(!
code
.
Equals
(
""
))
{
msg
=
msg
+
"=1+0x0-"
+
LastWidth
+
"x"
+
LastHeight
+
"="
+
code
+
spiltStr
;
}
}
}
}
}
else
{
msg
=
"=1+0x0-"
+
LastWidth
+
"x"
+
LastHeight
+
"="
+
codeInfo
;
}
}
}
else
if
(!
LastCode
.
Equals
(
""
))
else
if
(!
LastCode
.
Equals
(
""
))
{
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论