Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
SO1057_XLC_Store
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 0b5d64bf
由
张东亮
编写于
2025-10-16 17:19:53 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
扫码检查是否是CB开头
1 个父辈
f4e69dc4
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
12 行增加
和
2 行删除
DeviceLibrary/theMachine/InOutDevice_IN.cs
DeviceLibrary/theMachine/InOutDevice_IN.cs
查看文件 @
0b5d64b
...
...
@@ -3,6 +3,7 @@ using OnlineStore.Common;
using
OnlineStore.LoadCSVLibrary
;
using
System
;
using
System.Collections.Generic
;
using
System.Globalization
;
using
System.Linq
;
using
System.Threading.Tasks
;
...
...
@@ -129,10 +130,18 @@ namespace DeviceLibrary
}
else
{
var
codes
=
x
.
Select
((
a
)
=>
a
.
CodeStr
);
if
(
codes
.
Any
(
s
=>
!
string
.
IsNullOrEmpty
(
s
)
&&
s
.
ToUpper
().
StartsWith
(
"CB"
)))
{
MoveInfo
.
NextMoveStep
(
MoveStep
.
In05
);
Lift
.
LiftDown
(
MoveInfo
);
MoveInfo
.
log
(
$
"放下入料阻挡"
);
}
else
{
Msg
.
add
(
$
"扫到的料箱条码无CB开头,请确认:{string.Join("
,
", codes)}"
,
MsgLevel
.
critical
);
}
}
}
else
if
(
MoveInfo
.
IsTimeOut
(
10
))
...
...
@@ -228,7 +237,8 @@ namespace DeviceLibrary
else
if
(
MoveInfo
.
IsTimeOut
(
15
))
{
isScanErrorTimes
++;
if
(
isScanErrorTimes
<
3
)
{
if
(
isScanErrorTimes
<
3
)
{
MoveInfo
.
NextMoveStep
(
MoveStep
.
In03
);
}
else
...
...
@@ -281,7 +291,7 @@ namespace DeviceLibrary
MoveInfo
.
NextMoveStep
(
MoveStep
.
InNG3
);
Line
.
LineStop
(
"work"
);
MoveInfo
.
log
(
$
"料箱抵达出口"
);
if
(
isScanErrorTimes
>
2
)
if
(
isScanErrorTimes
>
2
)
Msg
.
add
(
"入库周转箱扫码失败,请确认料箱方向后重试"
,
MsgLevel
.
critical
);
else
Msg
.
add
(
"入库周转箱超重,已退出,请处理"
,
MsgLevel
.
critical
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论