Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO827-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
图表
网络
创建新的问题
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 48a794a3
由
LN
编写于
2021-08-23 11:16:13 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
拦截空托盘增加验证
1 个父辈
abe4ab16
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
30 行增加
和
19 行删除
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
查看文件 @
48a794a
...
...
@@ -20,21 +20,25 @@ namespace OnlineStore.DeviceLibrary
{
return
false
;
}
bool
isFull
=
TrayManager
.
TrayIsFull
(
currTrayNum
);
if
(
isFull
)
{
return
false
;
}
}
bool
moveOk
=
(
IsBigStore
()
&&
MoveInfo
.
MoveStep
>=
LineMoveStep
.
MO_62_WaitTray
)
||
MoveInfo
.
MoveStep
>=
LineMoveStep
.
MO_63_CylinderAfter
;
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
OutStore
)
&&
moveOk
&&
(!
MoveInfo
.
IsStep
(
LineMoveStep
.
MO_67_CylinderUp
)))
{
if
(
isFull
.
Equals
(
false
))
bool
checkOk
=
(
CheckCanPutOK
&&
(
checkCanPutTask
==
null
||
checkCanPutTask
.
IsCompleted
));
if
(
checkOk
)
{
LogInfo
(
" 出库中,拦截空托盘【 "
+
currTrayNum
+
"】~"
);
return
true
;
}
if
(
isFull
.
Equals
(
false
))
{
LogInfo
(
" 出库中,拦截空托盘【 "
+
currTrayNum
+
"】~"
);
return
true
;
}
}
}
return
false
;
}
...
...
@@ -470,22 +474,29 @@ namespace OnlineStore.DeviceLibrary
{
if
(
CylinderIsOk
(
IO_Type
.
BeforeAfterCylinder_Before
,
IO_Type
.
BeforeAfterCylinder_After
))
{
if
(
TrayIsOk
()
)
if
(
checkCanPutTask
==
null
||
checkCanPutTask
.
IsCompleted
)
{
int
trayNum
=
SecondMoveInfo
.
MoveParam
.
TrayNumber
;
//去掉直接丢盘处理
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_65_CylinderDown
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 拦截到空托盘【"
+
trayNum
+
"】, 上下气缸下降 ,顶升气缸上升"
);
if
(
MoveInfo
.
MoveParam
!=
null
)
if
(
TrayIsOk
())
{
MoveInfo
.
MoveParam
.
TrayNumber
=
trayNum
;
}
else
{
MoveInfo
.
MoveParam
=
SecondMoveInfo
.
MoveParam
;
int
trayNum
=
SecondMoveInfo
.
MoveParam
.
TrayNumber
;
//去掉直接丢盘处理
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_65_CylinderDown
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 拦截到空托盘【"
+
trayNum
+
"】, 上下气缸下降 ,顶升气缸上升"
);
if
(
MoveInfo
.
MoveParam
!=
null
)
{
MoveInfo
.
MoveParam
.
TrayNumber
=
trayNum
;
}
else
{
MoveInfo
.
MoveParam
=
SecondMoveInfo
.
MoveParam
;
}
UpdownDownP2Move
(
MoveInfo
.
MoveParam
.
PlateH
,
MoveInfo
.
MoveParam
.
PlateW
);
CylinderMove
(
MoveInfo
,
IO_Type
.
TopCylinder_Down
,
IO_Type
.
TopCylinder_Up
);
}
UpdownDownP2Move
(
MoveInfo
.
MoveParam
.
PlateH
,
MoveInfo
.
MoveParam
.
PlateW
);
CylinderMove
(
MoveInfo
,
IO_Type
.
TopCylinder_Down
,
IO_Type
.
TopCylinder_Up
);
}
else
if
(
MoveInfo
.
IsTimeOut
(
30
))
{
MoveTimeOut
(
MoveInfo
,
"等待料盘可以放入托盘超时"
);
}
}
else
if
(
MoveInfo
.
IsTimeOut
(
20
))
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论