Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-VMILineClient
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 6136af20
由
LN
编写于
2020-02-17 10:21:16 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
不发Mayleave、MayEnter,相同状态不重发
1 个父辈
f9ebe4ba
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
15 行增加
和
12 行删除
source/DeviceLibrary/agvClient/AgvClient.cs
source/VMILineClient/记录.txt
source/DeviceLibrary/agvClient/AgvClient.cs
查看文件 @
6136af2
...
...
@@ -55,11 +55,11 @@ namespace OnlineStore.DeviceLibrary
public
static
void
SetStatus
(
string
id
,
string
shelfId
=
""
,
ClientAction
action
=
ClientAction
.
None
,
ClientLevel
level
=
ClientLevel
.
Low
)
{
ClientAction
currA
=
GetAction
(
id
);
//
//
相同状态就设置一次
//
if (currA.Equals(action))
//
{
//
return;
//
}
//相同状态就设置一次
if
(
currA
.
Equals
(
action
))
{
return
;
}
agvClient
.
SetStatus
(
id
,
""
,
shelfId
,
action
,
level
);
UpdateAction
(
id
,
action
);
}
...
...
@@ -77,8 +77,8 @@ namespace OnlineStore.DeviceLibrary
{
Task
.
Factory
.
StartNew
(
delegate
{
SetStatus
(
id
,
""
,
ClientAction
.
MayEnter
);
LogUtil
.
info
(
logName
+
"
调用 MayEnter
,等待OutL_InCheck"
);
//
SetStatus(id, "", ClientAction.MayEnter);
LogUtil
.
info
(
logName
+
"
,等待OutL_InCheck"
);
try
{
WaitUtil
.
Wait
(
60000
,
delegate
...
...
@@ -90,7 +90,7 @@ namespace OnlineStore.DeviceLibrary
{
LogUtil
.
error
(
logName
+
":"
+
ex
.
ToString
());
}
//两秒后改为离开状态
Thread
.
Sleep
(
3000
);
LogUtil
.
info
(
logName
+
" ,调用 FinishEnter "
);
...
...
@@ -99,7 +99,7 @@ namespace OnlineStore.DeviceLibrary
Thread
.
Sleep
(
5000
);
LogUtil
.
info
(
logName
+
" ,处理结束 更新状态为None "
);
SetStatus
(
id
,
""
,
ClientAction
.
None
);
});
}
else
...
...
@@ -116,8 +116,8 @@ namespace OnlineStore.DeviceLibrary
{
LineManager
.
VMILine
.
StopIOMove
(
IO_Type
.
InL_OutStopDown
,
3000
);
//agvClient.MayLeave(id);
SetStatus
(
id
,
shefId
,
ClientAction
.
MayLeave
);
LogUtil
.
info
(
logName
+
"下降 InL_OutStopDown ,
调用 MayLeave
"
+
shefId
);
//
SetStatus(id, shefId, ClientAction.MayLeave);
LogUtil
.
info
(
logName
+
"下降 InL_OutStopDown , "
+
shefId
);
Task
.
Factory
.
StartNew
(
delegate
{
...
...
source/VMILineClient/记录.txt
查看文件 @
6136af2
ready是对接上流水线,arrive是在流水线附近等开门,所有节点都会发这两个事件,环形线和vmi只记录arrive的日志
\ No newline at end of file
ready是对接上流水线,arrive是在流水线附近等开门,所有节点都会发这两个事件,环形线和vmi只记录arrive的日志
20200217
Mayleave、MayEnter是包装料仓的,开了门后发,环形线和VMI是不用的。状态不需要重复设置。
\ No newline at end of file
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论