Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 60811acd
由
LN
编写于
2021-02-25 09:24:04 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
出库时位置和托盘信息一起更新
1 个父辈
a0d0cea9
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
10 行增加
和
7 行删除
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
查看文件 @
60811ac
...
@@ -173,13 +173,13 @@ namespace OnlineStore.DeviceLibrary
...
@@ -173,13 +173,13 @@ namespace OnlineStore.DeviceLibrary
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_57_CylinderAfter
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_57_CylinderAfter
))
{
{
if
(
CylinderIsOk
(
IO_Type
.
BeforeAfterCylinder_Before
,
IO_Type
.
BeforeAfterCylinder_After
))
if
(
CylinderIsOk
(
IO_Type
.
BeforeAfterCylinder_Before
,
IO_Type
.
BeforeAfterCylinder_After
))
{
{
if
(
TrayIsOk
())
if
(
TrayIsOk
())
{
{
int
trayNum
=
SecondMoveInfo
.
MoveParam
.
TrayNumber
;
int
trayNum
=
SecondMoveInfo
.
MoveParam
.
TrayNumber
;
//去掉直接丢盘处理
//去掉直接丢盘处理
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_58_CylinderDown
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_58_CylinderDown
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
":
夹具检测编码完成, 上下气缸下降 ,更新料盘位置【"
+
MoveInfo
.
MoveParam
.
WareCode
+
"】【INLINE】【"
+
trayNum
+
"】
,顶升气缸上升"
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
":
拦截到空托盘【"
+
trayNum
+
"】, 上下气缸下降
,顶升气缸上升"
);
if
(
MoveInfo
.
MoveParam
!=
null
)
if
(
MoveInfo
.
MoveParam
!=
null
)
{
{
MoveInfo
.
MoveParam
.
TrayNumber
=
trayNum
;
MoveInfo
.
MoveParam
.
TrayNumber
=
trayNum
;
...
@@ -188,18 +188,21 @@ namespace OnlineStore.DeviceLibrary
...
@@ -188,18 +188,21 @@ namespace OnlineStore.DeviceLibrary
{
{
MoveInfo
.
MoveParam
=
SecondMoveInfo
.
MoveParam
;
MoveInfo
.
MoveParam
=
SecondMoveInfo
.
MoveParam
;
}
}
//更新料盘位置
SServerManager
.
UpdateTrayLoc
(
Name
,
MoveInfo
.
MoveParam
.
WareCode
,
LocStatus
.
INLINE
,
"E"
+
trayNum
.
ToString
().
PadLeft
(
2
,
'0'
));
UpdownDownP2Move
(
MoveInfo
.
MoveParam
.
PlateH
,
MoveInfo
.
MoveParam
.
PlateW
);
UpdownDownP2Move
(
MoveInfo
.
MoveParam
.
PlateH
,
MoveInfo
.
MoveParam
.
PlateW
);
CylinderMove
(
MoveInfo
,
IO_Type
.
TopCylinder_Down
,
IO_Type
.
TopCylinder_UP
);
CylinderMove
(
MoveInfo
,
IO_Type
.
TopCylinder_Down
,
IO_Type
.
TopCylinder_UP
);
}
}
}
}
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_58_CylinderDown
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_58_CylinderDown
))
{
{
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 夹料气缸放松,更新托盘【"
+
MoveInfo
.
MoveParam
.
TrayNumber
+
"】,有料盘,OutStore,【"
+
MoveInfo
.
MoveParam
.
ToStr
()
+
"】"
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 夹料气缸放松 "
);
int
trayNum
=
MoveInfo
.
MoveParam
.
TrayNumber
;
//更新料盘位置
SServerManager
.
UpdateTrayLoc
(
Name
,
MoveInfo
.
MoveParam
.
WareCode
,
LocStatus
.
INLINE
,
"E"
+
trayNum
.
ToString
().
PadLeft
(
2
,
'0'
));
TrayManager
.
UpdateTrayInfo
(
MoveInfo
.
MoveParam
.
TrayNumber
,
true
,
ReelType
.
OutStore
,
MoveInfo
.
MoveParam
);
TrayManager
.
UpdateTrayInfo
(
MoveInfo
.
MoveParam
.
TrayNumber
,
true
,
ReelType
.
OutStore
,
MoveInfo
.
MoveParam
);
TrayInfo
tray
=
TrayManager
.
GetTrayInfo
(
trayNum
);
LogInfo
(
"出库 "
+
MoveInfo
.
SLog
+
": 夹料气缸放松,更新料盘位置【"
+
MoveInfo
.
MoveParam
.
WareCode
+
"】【INLINE】更新托盘【"
+
trayNum
+
"】 "
+
tray
.
ToStr
()
+
""
);
//出库全部完成
//出库全部完成
lineStatus
=
LineStatus
.
StoreOnline
;
lineStatus
=
LineStatus
.
StoreOnline
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论