Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 4a0d06d5
由
LN
编写于
2020-02-17 10:21:04 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
不发Mayleave、MayEnter,相同状态不重发
1 个父辈
871c943a
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
12 行增加
和
29 行删除
source/AssemblyLineClient/记录.txt
source/DeviceLibrary/agvClient/AgvClient.cs
source/DeviceLibrary/assemblyLine/FeedingEquip.cs
source/AssemblyLineClient/记录.txt
查看文件 @
4a0d06d
...
...
@@ -102,4 +102,5 @@ D2(上料模块出口)
启动流水线后,再点击调试模式,阻挡没有下降。
20200217
Mayleave、MayEnter是包装料仓的,开了门后发,环形线和VMI是不用的。状态不需要重复设置。
source/DeviceLibrary/agvClient/AgvClient.cs
查看文件 @
4a0d06d
...
...
@@ -58,21 +58,16 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
error
(
"初始化agvClient "
+
ServerIp
+
" 出错:"
,
ex
);
}
}
//private static void AgvClient_GetRFID(string name, byte[] content)
//{
// RFIDData data = new RFIDData(content);
// LogUtil.info("收到 AgvClient_GetRFID [" + name + "] [" + data.ToData() + "] ");
//}
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;
//
}
ClientAction
currA
=
GetAction
(
id
);
//相同状态就设置一次
if
(
currA
.
Equals
(
action
))
{
return
;
}
agvClient
.
SetStatus
(
id
,
""
,
shelfId
,
action
,
level
);
UpdateAction
(
id
,
action
);
}
...
...
@@ -155,20 +150,7 @@ namespace OnlineStore.DeviceLibrary
return
true
;
}
return
false
;
}
//internal static void MayEnter(string NodeName, string shelfId = "")
//{
// SetStatus(NodeName, shelfId, ClientAction.MayEnter, ClientLevel.High);
//}
//internal static void FinishEnter(string NodeName, string shelfId = "")
//{
// SetStatus(NodeName, shelfId, ClientAction.FinishEnter, ClientLevel.High);
//}
//internal static void MayLeave(string NodeName, string shelfId = "")
//{
// SetStatus(NodeName, shelfId, ClientAction.MayLeave, ClientLevel.High);
//}
}
private
static
bool
isLog
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
Agv_Log_Open
).
Equals
(
1
);
private
static
void
AgvClient_Log
(
string
s
)
...
...
source/DeviceLibrary/assemblyLine/FeedingEquip.cs
查看文件 @
4a0d06d
...
...
@@ -676,7 +676,7 @@ namespace OnlineStore.DeviceLibrary
if
(
IOValue
(
IO_Type
.
SL_Out_Check
).
Equals
(
IO_VALUE
.
HIGH
))
{
LogUtil
.
info
(
logName
+
"开始"
);
AgvClient
.
SetStatus
(
Config
.
AgvOutName
,
""
,
ClientAction
.
MayLeave
,
ClientLevel
.
High
);
//
AgvClient.SetStatus(Config.AgvOutName,"",ClientAction.MayLeave,ClientLevel.High);
ProcessShelfOut
=
true
;
//出口阻挡下降,出口线体转动
IOMove
(
IO_Type
.
SL_Out_StopDown
,
IO_VALUE
.
HIGH
);
...
...
@@ -731,7 +731,7 @@ namespace OnlineStore.DeviceLibrary
if
(
IOValue
(
IO_Type
.
SL_Entry_Check
).
Equals
(
IO_VALUE
.
LOW
))
{
LogUtil
.
info
(
logName
+
" 开始"
);
AgvClient
.
SetStatus
(
Config
.
AgvInName
,
""
,
ClientAction
.
MayEnter
,
ClientLevel
.
High
);
//
AgvClient.SetStatus(Config.AgvInName,"",ClientAction.MayEnter,ClientLevel.High);
ProcessShelfEnter
=
true
;
////进料阻挡上升
//IOMove(IO_Type.SL_Entry_StopDown, IO_VALUE.LOW);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论