Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO664-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit d93c5c2b
由
LN
编写于
2022-06-07 10:30:14 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
日志修改
1 个父辈
18314631
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
17 行增加
和
6 行删除
source/DeviceLibrary/assemblyLine/HY/HY_C1Line.cs
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
source/DeviceLibrary/server/LineServer.cs
source/DeviceLibrary/assemblyLine/HY/HY_C1Line.cs
查看文件 @
d93c5c2
...
@@ -368,7 +368,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -368,7 +368,7 @@ namespace OnlineStore.DeviceLibrary
else
else
{
{
//未检测到信号或阻挡下降失败,结束处理
//未检测到信号或阻挡下降失败,结束处理
LogInfo
(
MoveInfo
.
SLog
+
"未等到信号 HY_FrontStopCheck=LOW 或 HY_TrayCheck=
LOW
结束处理 "
);
LogInfo
(
MoveInfo
.
SLog
+
"未等到信号 HY_FrontStopCheck=LOW 或 HY_TrayCheck=
HIGH
结束处理 "
);
MoveEndS
();
MoveEndS
();
}
}
}
}
...
@@ -385,7 +385,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -385,7 +385,7 @@ namespace OnlineStore.DeviceLibrary
else
else
{
{
//未检测到信号或阻挡下降失败,结束处理
//未检测到信号或阻挡下降失败,结束处理
LogInfo
(
MoveInfo
.
SLog
+
"未等到信号 HY_TrayCheck=
LOW
结束处理 "
);
LogInfo
(
MoveInfo
.
SLog
+
"未等到信号 HY_TrayCheck=
HIGH
结束处理 "
);
MoveEndS
();
MoveEndS
();
}
}
}
}
...
...
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
查看文件 @
d93c5c2
...
@@ -475,7 +475,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -475,7 +475,8 @@ namespace OnlineStore.DeviceLibrary
}
}
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
MI_15_SendPosToStore
))
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
MI_15_SendPosToStore
))
{
{
if
(!
LineServer
.
IsInStorePro
(
DeviceID
,
MoveInfo
.
MoveParam
.
PosId
))
String
notOkMsg
=
""
;
if
(!
LineServer
.
IsInStorePro
(
DeviceID
,
MoveInfo
.
MoveParam
.
PosId
,
out
notOkMsg
))
{
{
//InLog("入库 " + MoveInfo.SLog + " , 送料流程完成,料仓还未开始入库,再次发送starIn命令");
//InLog("入库 " + MoveInfo.SLog + " , 送料流程完成,料仓还未开始入库,再次发送starIn命令");
//LineServer.StartInStore(DeviceID, MoveInfo.MoveParam);
//LineServer.StartInStore(DeviceID, MoveInfo.MoveParam);
...
@@ -488,7 +489,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -488,7 +489,7 @@ namespace OnlineStore.DeviceLibrary
if
(
sendCount
>=
3
)
if
(
sendCount
>=
3
)
{
{
SetWarnMsg
(
MoveInfo
.
Name
+
"["
+
MoveInfo
.
MoveStep
+
"] "
+
" 等待BOX开始入库超时 已发送"
+
sendCount
+
"次"
,
"等待BOX开始入库超时"
);
SetWarnMsg
(
MoveInfo
.
Name
+
"["
+
MoveInfo
.
MoveStep
+
"] "
+
" 等待BOX开始入库超时
"
+
notOkMsg
+
"
已发送"
+
sendCount
+
"次"
,
"等待BOX开始入库超时"
);
//WarnMsg = MoveInfo.Name + "[" + MoveInfo.MoveStep + "] " + " 等待BOX开始入库超时 已发送" + sendCount + "次";
//WarnMsg = MoveInfo.Name + "[" + MoveInfo.MoveStep + "] " + " 等待BOX开始入库超时 已发送" + sendCount + "次";
//LogUtil.error(WarnMsg);
//LogUtil.error(WarnMsg);
Alarm
(
LineAlarmType
.
IoSingleTimeOut
);
Alarm
(
LineAlarmType
.
IoSingleTimeOut
);
...
...
source/DeviceLibrary/server/LineServer.cs
查看文件 @
d93c5c2
...
@@ -89,11 +89,11 @@ namespace OnlineStore.DeviceLibrary
...
@@ -89,11 +89,11 @@ namespace OnlineStore.DeviceLibrary
}
}
return
false
;
return
false
;
}
}
public
static
bool
IsInStorePro
(
int
id
,
string
posId
)
public
static
bool
IsInStorePro
(
int
id
,
string
posId
,
out
string
NotOkMsg
)
{
{
BoxInfo
box
=
GetBoxInfo
(
id
);
BoxInfo
box
=
GetBoxInfo
(
id
);
TimeSpan
span
=
DateTime
.
Now
-
box
.
LastMsgTime
;
TimeSpan
span
=
DateTime
.
Now
-
box
.
LastMsgTime
;
NotOkMsg
=
" [料仓"
+
id
+
":离线] "
;
if
(
box
!=
null
&&
span
.
TotalSeconds
<
ClientKeepSecond
)
if
(
box
!=
null
&&
span
.
TotalSeconds
<
ClientKeepSecond
)
{
{
...
@@ -106,11 +106,21 @@ namespace OnlineStore.DeviceLibrary
...
@@ -106,11 +106,21 @@ namespace OnlineStore.DeviceLibrary
{
{
if
(
box
.
WaitInStoreList
!=
null
&&
box
.
WaitInStoreList
.
Contains
(
posId
))
if
(
box
.
WaitInStoreList
!=
null
&&
box
.
WaitInStoreList
.
Contains
(
posId
))
{
{
NotOkMsg
=
" [料仓"
+
id
+
":库位["
+
posId
+
"]还在入库等待列表中] "
;
LogUtil
.
error
(
"IsInStorePro["
+
id
+
"]["
+
posId
+
"],库位还在入库等待列表中,返回false"
);
LogUtil
.
error
(
"IsInStorePro["
+
id
+
"]["
+
posId
+
"],库位还在入库等待列表中,返回false"
);
return
false
;
return
false
;
}
}
NotOkMsg
=
""
;
return
true
;
return
true
;
}
}
else
{
NotOkMsg
=
" [料仓"
+
id
+
":status="
+
status
+
"]"
;
}
}
else
{
NotOkMsg
=
" [料仓"
+
id
+
":runs="
+
runs
+
"]"
;
}
}
}
}
return
false
;
return
false
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论