Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
3D-FeederLineClient
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit e3365578
由
张东亮
编写于
2021-09-28 16:06:00 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
佳世达3楼备料
1 个父辈
6edd37af
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
21 行增加
和
27 行删除
source/DeviceLibrary/acFeederLine/FeederLineBean.cs
source/DeviceLibrary/agvClient/AgvClient.cs
source/DeviceLibrary/acFeederLine/FeederLineBean.cs
查看文件 @
e336557
...
@@ -301,7 +301,6 @@ namespace OnlineStore.DeviceLibrary
...
@@ -301,7 +301,6 @@ namespace OnlineStore.DeviceLibrary
{
{
il_outstopCheckWarch
.
Stop
();
il_outstopCheckWarch
.
Stop
();
LogUtil
.
info
(
" 出料线体出口无料架 ,更改["
+
Config
.
L2_AgvName
+
"] 状态[None] "
);
LogUtil
.
info
(
" 出料线体出口无料架 ,更改["
+
Config
.
L2_AgvName
+
"] 状态[None] "
);
agvClient
.
OutLine_RFID
=
""
;
agvClient
.
OutLine_None
(
LastOutShelfId
);
agvClient
.
OutLine_None
(
LastOutShelfId
);
}
}
...
...
source/DeviceLibrary/agvClient/AgvClient.cs
查看文件 @
e336557
...
@@ -23,7 +23,6 @@ namespace OnlineStore.DeviceLibrary
...
@@ -23,7 +23,6 @@ namespace OnlineStore.DeviceLibrary
private
static
string
InLine_Name
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
InLine_Name
);
private
static
string
InLine_Name
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
InLine_Name
);
private
static
string
OutLine_Name
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
OutLine_Name
);
private
static
string
OutLine_Name
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
OutLine_Name
);
public
string
OutLine_RFID
{
get
;
set
;
}
=
""
;
#
region
InLine
Action
#
region
InLine
Action
/// <summary>
/// <summary>
/// 无状态
/// 无状态
...
@@ -45,7 +44,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -45,7 +44,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// <summary>
/// 无状态
/// 无状态
/// </summary>
/// </summary>
public
void
OutLine_None
(
string
rfid
=
""
)
public
void
OutLine_None
(
string
rfid
=
""
)
{
{
SetStatus
(
OutLine_Name
,
rfid
,
ClientAction
.
None
);
SetStatus
(
OutLine_Name
,
rfid
,
ClientAction
.
None
);
}
}
...
@@ -55,12 +54,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -55,12 +54,7 @@ namespace OnlineStore.DeviceLibrary
/// </summary>
/// </summary>
public
void
OutLine_NeedLeave
(
string
rfid
)
public
void
OutLine_NeedLeave
(
string
rfid
)
{
{
if
(!
OutLine_RFID
.
Equals
(
rfid
))
SetStatus
(
OutLine_Name
,
rfid
,
ClientAction
.
NeedLeave
);
{
OutLine_RFID
=
rfid
;
SetStatus
(
OutLine_Name
,
rfid
,
ClientAction
.
NeedLeave
);
}
}
}
#
endregion
#
endregion
...
@@ -110,6 +104,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -110,6 +104,7 @@ namespace OnlineStore.DeviceLibrary
if
(
IOManager
.
IOValue
(
IO_Type
.
L1_InCheck
).
Equals
(
IO_VALUE
.
LOW
)
&&
!
InLine_InProcess
&&
name
.
Equals
(
InLine_Name
))
if
(
IOManager
.
IOValue
(
IO_Type
.
L1_InCheck
).
Equals
(
IO_VALUE
.
LOW
)
&&
!
InLine_InProcess
&&
name
.
Equals
(
InLine_Name
))
{
{
MayEnter
(
InLine_Name
);
MayEnter
(
InLine_Name
);
LineManager
.
feederLine
.
UpdateSleep
(
false
);
Task
.
Factory
.
StartNew
(
delegate
Task
.
Factory
.
StartNew
(
delegate
{
{
Feeder_In_Msg
=
"Feeder In: 等待 L1_InCheck=HIGH"
;
Feeder_In_Msg
=
"Feeder In: 等待 L1_InCheck=HIGH"
;
...
@@ -163,9 +158,9 @@ namespace OnlineStore.DeviceLibrary
...
@@ -163,9 +158,9 @@ namespace OnlineStore.DeviceLibrary
//}
//}
if
(
IOManager
.
IOValue
(
IO_Type
.
L2_OutCheck
).
Equals
(
IO_VALUE
.
HIGH
)
&&
!
OutLine_InProcess
&&
name
.
Equals
(
OutLine_Name
))
if
(
IOManager
.
IOValue
(
IO_Type
.
L2_OutCheck
).
Equals
(
IO_VALUE
.
HIGH
)
&&
!
OutLine_InProcess
&&
name
.
Equals
(
OutLine_Name
))
{
{
MayLeave
(
OutLine_Name
,
OutLine_RFID
);
MayLeave
(
OutLine_Name
,
""
);
//
LineManager.feederLine.UpdateSleep(false);
LineManager
.
feederLine
.
UpdateSleep
(
false
);
LineManager
.
feederLine
.
StopIOMove
(
IO_Type
.
L2_OutStopDown
,
15
00
);
LineManager
.
feederLine
.
StopIOMove
(
IO_Type
.
L2_OutStopDown
,
20
00
);
//agvClient.MayLeave(id);
//agvClient.MayLeave(id);
// SetStatus(id, shefId, ClientAction.MayLeave);
// SetStatus(id, shefId, ClientAction.MayLeave);
Feeder_Out_Msg
=
"Feeder Out: 允许流出料架"
;
Feeder_Out_Msg
=
"Feeder Out: 允许流出料架"
;
...
@@ -177,7 +172,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -177,7 +172,7 @@ namespace OnlineStore.DeviceLibrary
Thread
.
Sleep
(
10000
);
Thread
.
Sleep
(
10000
);
Feeder_Out_Msg
=
"Feeder Out: 调用 FinishLeave "
;
Feeder_Out_Msg
=
"Feeder Out: 调用 FinishLeave "
;
LogUtil
.
info
(
Feeder_Out_Msg
);
LogUtil
.
info
(
Feeder_Out_Msg
);
FinishLeave
(
OutLine_Name
,
OutLine_RFID
);
FinishLeave
(
OutLine_Name
,
""
);
Thread
.
Sleep
(
5000
);
Thread
.
Sleep
(
5000
);
Feeder_Out_Msg
=
"Feeder Out: 处理结束 更新状态为None "
;
Feeder_Out_Msg
=
"Feeder Out: 处理结束 更新状态为None "
;
...
@@ -303,21 +298,21 @@ namespace OnlineStore.DeviceLibrary
...
@@ -303,21 +298,21 @@ namespace OnlineStore.DeviceLibrary
// return false;
// return false;
// }
// }
if
(
actionMap
.
ContainsKey
(
name
))
//
if (actionMap.ContainsKey(name))
{
//
{
ClientAction
currA
=
actionMap
[
name
];
//相同状态就设置一次
//
ClientAction currA = actionMap[name]; //相同状态就设置一次
if
(
currA
.
Equals
(
action
)
&&
(
shelfId
==
"000"
))
//
if (currA.Equals(action) && (shelfId == "000"))
{
//
{
return
false
;
//
return false;
}
//
}
actionMap
[
name
]
=
action
;
//
actionMap[name] = action;
agvClient
.
SetStatus
(
name
,
shelfId
,
action
,
level
);
//
agvClient.SetStatus(name, shelfId, action, level);
LogUtil
.
info
(
"设置 "
+
name
+
" ["
+
shelfId
+
"] "
+
action
.
ToString
());
//
LogUtil.info("设置 " + name + " [" + shelfId + "] " + action.ToString());
return
true
;
//
return true;
}
//
}
agvClient
.
SetStatus
(
name
,
shelfId
,
action
,
level
);
agvClient
.
SetStatus
(
name
,
shelfId
,
action
,
level
);
actionMap
.
Add
(
name
,
action
);
//
actionMap.Add(name, action);
LogUtil
.
info
(
"设置 "
+
name
+
" ["
+
shelfId
+
"] "
+
action
.
ToString
());
LogUtil
.
info
(
"设置 "
+
name
+
" ["
+
shelfId
+
"] "
+
action
.
ToString
());
return
true
;
return
true
;
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论