Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
1053_CycleLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 41b4f765
由
刘韬
编写于
2023-01-09 20:08:02 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
fdcb7292
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
15 行增加
和
2 行删除
DeviceLibrary/theMachine/TrayManager.cs
DeviceLibrary/theMachine/sub/TrayStop.cs
DeviceLibrary/theMachine/TrayManager.cs
查看文件 @
41b4f76
...
...
@@ -60,6 +60,7 @@ namespace DeviceLibrary
Traylist
[
rfid
].
LoadType
=
(
TrayTypeE
)
Enum
.
Parse
(
typeof
(
TrayTypeE
),
requestLoadInfo
.
TrayType
);
Traylist
[
rfid
].
TrayParam
=
requestLoadInfo
.
LoadParam
.
clone
();
Traylist
[
rfid
].
DestinationAddr
=
GetAddrByGroupName
(
requestLoadInfo
.
DeviceGroupName
);
LogUtil
.
info
(
"设置托盘信息:"
+
Traylist
[
rfid
].
LoadType
+
","
+
Traylist
[
rfid
].
TrayParam
.
ToStr
()
+
","
+
requestLoadInfo
.
DeviceGroupName
);
}
SaveTrayInfo
();
}
...
...
@@ -197,7 +198,7 @@ namespace DeviceLibrary
public
static
void
TrayRelease
(
RemoteLoad
remoteLoad
)
{
var
requestLoadInfo
=
remoteLoad
.
RequestLoadInfo
;
LogUtil
.
info
(
$
"TrayRelease:{remoteLoad.GroupName}
{requestLoadInfo.DeviceGroupName
},{requestLoadInfo?.LoadParam.ToStr()}"
);
LogUtil
.
info
(
$
"TrayRelease:{remoteLoad.GroupName}
,{requestLoadInfo.DeviceGroupName},{requestLoadInfo.IsEmpty
},{requestLoadInfo?.LoadParam.ToStr()}"
);
lock
(
requestLoadInfo
)
{
var
device
=
TrayStop
.
DeviceList
[
remoteLoad
.
GroupName
];
...
...
@@ -229,6 +230,11 @@ namespace DeviceLibrary
var
device
=
TransplantMove
.
DeviceList
[
remoteLoad
.
GroupName
];
return
device
.
IsFree
();
}
if
(
TrayStop
.
DeviceList
.
ContainsKey
(
remoteLoad
.
GroupName
))
{
var
device
=
TrayStop
.
DeviceList
[
remoteLoad
.
GroupName
];
return
device
.
IsFree
();
}
}
return
false
;
}
...
...
@@ -303,6 +309,7 @@ namespace DeviceLibrary
public
DirectionE
Direction
{
get
=>
(
Destination
==
StoreCID
.
AMH_ML5_1
||
Destination
==
StoreCID
.
AMH_ML5_2
)
?
DirectionE
.
Out
:
DirectionE
.
In
;
}
public
bool
isOnline
=
true
;
public
void
SetToEmpty
()
{
LogUtil
.
info
(
"清空托盘信息,原信息:"
+
Direction
+
","
+
TrayParam
?.
ToStr
()+
","
+
LoadType
+
","
+
LoadType
+
","
);
LoadType
=
TrayTypeE
.
None
;
DestinationAddr
=
-
1
;
TrayParam
=
new
ReelParam
();
...
...
DeviceLibrary/theMachine/sub/TrayStop.cs
查看文件 @
41b4f76
...
...
@@ -284,6 +284,7 @@ namespace DeviceLibrary
isalivetrytimes
++;
if
(
isalivetrytimes
>
4
)
{
TrayManager
.
Traylist
[
CurrrentRFID
].
SetToEmpty
();
MoveInfo
.
NextMoveStep
(
MoveStep
.
TrayStop_04
);
MoveInfo
.
log
(
$
"{GroupName} 料仓状态不明:{result}"
);
}
...
...
@@ -339,7 +340,12 @@ namespace DeviceLibrary
public
bool
IsFree
()
{
throw
new
NotImplementedException
();
if
(
MoveInfo
.
MoveStep
==
MoveStep
.
TrayStop_WaitLoadProcess
)
{
return
false
;
}
return
true
;
}
}
}
\ No newline at end of file
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论