Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 83e4ac3e
由
LN
编写于
2020-05-08 13:01:48 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
入料条码错乱修改。
1 个父辈
34609464
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
32 行增加
和
19 行删除
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
查看文件 @
83e4ac3
...
...
@@ -887,28 +887,34 @@ namespace OnlineStore.DeviceLibrary
{
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":上料机构下降, 托盘号【"
+
currTrayNum
+
"】,获取库位号,更新托盘信息 ,"
);
}
Task
.
Factory
.
StartNew
(
delegate
{
//更新托盘条码信息
getPosTask
=
Task
.
Factory
.
StartNew
(
delegate
{
//更新托盘条码信息
string
code
=
CodeManager
.
ProcessCode
(
LastCodeList
);
lastcode
=
code
;
// TrayManager.UpdateTrayInfo(currTrayNum, true, 1, code, "", LastHeight, LastWidth);
if
(
code
.
Equals
(
""
))
{
InOutParam
param
=
new
InOutParam
(
currTrayNum
,
code
,
""
,
LastHeight
,
LastWidth
,
true
);
TrayManager
.
UpdateTrayInfo
(
currTrayNum
,
true
,
ReelType
.
InStore
,
param
,
"扫码失败"
);
try
{
if
(
code
.
Equals
(
""
))
{
InOutParam
param
=
new
InOutParam
(
currTrayNum
,
code
,
""
,
LastHeight
,
LastWidth
,
true
);
TrayManager
.
UpdateTrayInfo
(
currTrayNum
,
true
,
ReelType
.
InStore
,
param
,
"扫码失败"
);
}
//从服务器获取库位号
string
result
=
SServerManager
.
CodeReceived
(
Name
,
currTrayNum
,
LastCodeList
,
LastHeight
,
LastWidth
,
CurrShelfId
,
DeviceID
);
if
(!
result
.
Equals
(
""
))
{
InOutParam
param
=
new
InOutParam
(
currTrayNum
,
code
,
""
,
LastHeight
,
LastWidth
,
true
);
param
.
rfid
=
CurrShelfId
;
TrayManager
.
UpdateTrayInfo
(
currTrayNum
,
true
,
ReelType
.
InStore
,
param
,
result
);
// TrayManager.UpdateInStoreNG(currTrayNum, true, result);
LogUtil
.
error
(
Name
+
"托盘【"
+
currTrayNum
+
"】"
+
result
);
}
}
//从服务器获取库位号
string
result
=
SServerManager
.
CodeReceived
(
Name
,
currTrayNum
,
LastCodeList
,
LastHeight
,
LastWidth
,
CurrShelfId
,
DeviceID
);
if
(!
result
.
Equals
(
""
))
catch
(
Exception
ex
)
{
InOutParam
param
=
new
InOutParam
(
currTrayNum
,
code
,
""
,
LastHeight
,
LastWidth
,
true
);
param
.
rfid
=
CurrShelfId
;
TrayManager
.
UpdateTrayInfo
(
currTrayNum
,
true
,
ReelType
.
InStore
,
param
,
result
);
// TrayManager.UpdateInStoreNG(currTrayNum, true, result);
LogUtil
.
error
(
Name
+
"托盘【"
+
currTrayNum
+
"】"
+
result
);
LogUtil
.
error
(
Name
+
"托盘【"
+
currTrayNum
+
"】【"
+
code
+
"】获取库位号报错:"
+
ex
.
ToString
());
}
});
}
else
if
(
MoveInfo
.
IsTimeOut
(
180
))
{
...
...
@@ -960,8 +966,15 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_28_UpDownAxisToP1
))
{
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":上料横移机构上升已到位 "
);
CheckHasTray
();
if
(
getPosTask
==
null
||
getPosTask
.
IsCompleted
)
{
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":上料横移机构上升已到位 "
);
CheckHasTray
();
}
else
{
LogUtil
.
error
(
Name
+
"["
+
MoveInfo
.
MoveType
+
"]["
+
MoveInfo
.
SLog
+
"] 获取库位号还未完成,状态:"
+
getPosTask
.
Status
);
}
}
#
endregion
...
...
@@ -1044,7 +1057,7 @@ namespace OnlineStore.DeviceLibrary
#
endregion
}
private
Task
getPosTask
=
null
;
private
void
FI_27_CylinderUp
()
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_27_CylinderUp
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论