Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO664-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit e54748c8
由
LN
编写于
2023-03-09 09:26:01 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
-NG口夹爪上升感应到料以后再放行托盘
1 个父辈
b5e600ac
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
21 行增加
和
15 行删除
source/DeviceLibrary/assemblyLine/HY/HY_Coveryor_Partial.cs
source/DeviceLibrary/assemblyLine/HY/HY_Coveryor_Partial.cs
查看文件 @
e54748c
...
@@ -632,7 +632,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -632,7 +632,7 @@ namespace OnlineStore.DeviceLibrary
}
}
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
JM_01_UpdownToP1
))
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
JM_01_UpdownToP1
))
{
{
JM_02_CylinderTake
();
JM_02_CylinderTake
();
}
}
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
JM_02_CylinderTake
))
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
JM_02_CylinderTake
))
{
{
...
@@ -643,12 +643,12 @@ namespace OnlineStore.DeviceLibrary
...
@@ -643,12 +643,12 @@ namespace OnlineStore.DeviceLibrary
}
}
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
JM_03_UpdownToP2
))
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
JM_03_UpdownToP2
))
{
{
// MoveInfo.NextMoveStep(LineMoveStep.JM_04_DownWait);
// MoveInfo.NextMoveStep(LineMoveStep.JM_04_DownWait);
// OutLog(logName + MoveInfo.SLog + ":等待0.3秒后再夹紧 ");
// OutLog(logName + MoveInfo.SLog + ":等待0.3秒后再夹紧 ");
// MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(300));
// MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(300));
//}
//}
//else if (MoveInfo.IsStep(LineMoveStep.JM_04_DownWait))
//else if (MoveInfo.IsStep(LineMoveStep.JM_04_DownWait))
//{
//{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
JM_05_ClampWork
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
JM_05_ClampWork
);
OutLog
(
logName
+
MoveInfo
.
SLog
+
":夹料气缸夹紧 "
);
OutLog
(
logName
+
MoveInfo
.
SLog
+
":夹料气缸夹紧 "
);
CylinderMove
(
MoveInfo
,
IO_Type
.
HY_ClampCylinder_Relax
,
IO_Type
.
HY_ClampCylinder_Work
);
CylinderMove
(
MoveInfo
,
IO_Type
.
HY_ClampCylinder_Relax
,
IO_Type
.
HY_ClampCylinder_Work
);
...
@@ -660,7 +660,11 @@ namespace OnlineStore.DeviceLibrary
...
@@ -660,7 +660,11 @@ namespace OnlineStore.DeviceLibrary
OutLog
(
logName
+
MoveInfo
.
SLog
+
":升降轴到P1 ["
+
Config
.
UpDownAxisP1
+
"],更新 getTrayReelOk=true,更新当前出库托盘号="
+
OutTrayNum
);
OutLog
(
logName
+
MoveInfo
.
SLog
+
":升降轴到P1 ["
+
Config
.
UpDownAxisP1
+
"],更新 getTrayReelOk=true,更新当前出库托盘号="
+
OutTrayNum
);
UpdownAxis
.
AbsMove
(
MoveInfo
,
Config
.
UpDownAxisP1
,
Config
.
UpdownAxis_P1Speed
);
UpdownAxis
.
AbsMove
(
MoveInfo
,
Config
.
UpDownAxisP1
,
Config
.
UpdownAxis_P1Speed
);
getTrayReelOk
=
true
;
getTrayReelOk
=
true
;
TrayCanGo
();
//如果不是NG口,提前放托盘离开
if
(!
IsNgPro
())
{
TrayCanGo
();
}
}
}
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
JM_06_UpdownToP1
))
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
JM_06_UpdownToP1
))
{
{
...
@@ -689,8 +693,9 @@ namespace OnlineStore.DeviceLibrary
...
@@ -689,8 +693,9 @@ namespace OnlineStore.DeviceLibrary
//TrayCanGo();
//TrayCanGo();
if
(
IsNgPro
())
if
(
IsNgPro
())
{
{
TrayCanGo
();
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
JM_11_CylinderGive
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
JM_11_CylinderGive
);
OutLog
(
logName
+
MoveInfo
.
SLog
+
": 托盘离开,接驳台气缸放料 "
);
OutLog
(
logName
+
MoveInfo
.
SLog
+
":
放
托盘离开,接驳台气缸放料 "
);
CylinderMove
(
MoveInfo
,
IO_Type
.
HY_MoveCylinder_Take
,
IO_Type
.
HY_MoveCylinder_Give
);
CylinderMove
(
MoveInfo
,
IO_Type
.
HY_MoveCylinder_Take
,
IO_Type
.
HY_MoveCylinder_Give
);
}
}
else
else
...
@@ -700,7 +705,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -700,7 +705,7 @@ namespace OnlineStore.DeviceLibrary
JM_11_CylinderGive
();
JM_11_CylinderGive
();
}
}
else
else
{
{
JM_10_WaitJNoReel
();
JM_10_WaitJNoReel
();
}
}
}
}
...
@@ -736,7 +741,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -736,7 +741,7 @@ namespace OnlineStore.DeviceLibrary
{
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
JM_15_ClampCheck
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
JM_15_ClampCheck
);
OutLog
(
logName
+
MoveInfo
.
SLog
+
":夹爪料盘检测无料,接驳台有料 "
);
OutLog
(
logName
+
MoveInfo
.
SLog
+
":夹爪料盘检测无料,接驳台有料 "
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
HY_ClampCylinder_Check
,
IO_VALUE
.
LOW
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
HY_ClampCylinder_Check
,
IO_VALUE
.
LOW
));
}
}
else
else
{
{
...
@@ -772,7 +777,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -772,7 +777,7 @@ namespace OnlineStore.DeviceLibrary
}
}
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
JM_15_ClampCheck
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
JM_15_ClampCheck
);
OutLog
(
logName
+
MoveInfo
.
SLog
+
":夹爪料盘检测无料 "
,
1
);
OutLog
(
logName
+
MoveInfo
.
SLog
+
":夹爪料盘检测无料 "
,
1
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
HY_ClampCylinder_Check
,
IO_VALUE
.
LOW
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
HY_ClampCylinder_Check
,
IO_VALUE
.
LOW
));
}
}
//MoveInfo.NextMoveStep(LineMoveStep.JM_15_ClampCheck);
//MoveInfo.NextMoveStep(LineMoveStep.JM_15_ClampCheck);
...
@@ -793,8 +798,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -793,8 +798,8 @@ namespace OnlineStore.DeviceLibrary
if
(
MoveInfo
.
MoveParam
.
urgentReel
)
if
(
MoveInfo
.
MoveParam
.
urgentReel
)
{
{
OutLog
(
logName
+
MoveInfo
.
SLog
+
",紧急料已放入NG箱,发送 afterPutCut "
);
OutLog
(
logName
+
MoveInfo
.
SLog
+
",紧急料已放入NG箱,发送 afterPutCut "
);
TaskData
taskData
;
TaskData
taskData
;
string
msg
=
SServerManager
.
afterPutCut
(
Name
,
"BN"
,
code
,
""
,
1
,
out
taskData
);
string
msg
=
SServerManager
.
afterPutCut
(
Name
,
"BN"
,
code
,
""
,
1
,
out
taskData
);
afterPutCutOK
=
true
;
afterPutCutOK
=
true
;
}
}
//else if (!MoveInfo.MoveParam.IsNG)
//else if (!MoveInfo.MoveParam.IsNG)
...
@@ -867,8 +872,9 @@ namespace OnlineStore.DeviceLibrary
...
@@ -867,8 +872,9 @@ namespace OnlineStore.DeviceLibrary
{
{
if
(
IsNgPro
())
if
(
IsNgPro
())
{
{
TrayCanGo
();
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
JM_11_CylinderGive
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
JM_11_CylinderGive
);
OutLog
(
logName
+
MoveInfo
.
SLog
+
": 托盘离开,接驳台气缸放料 "
);
OutLog
(
logName
+
MoveInfo
.
SLog
+
":
放
托盘离开,接驳台气缸放料 "
);
CylinderMove
(
MoveInfo
,
IO_Type
.
HY_MoveCylinder_Take
,
IO_Type
.
HY_MoveCylinder_Give
);
CylinderMove
(
MoveInfo
,
IO_Type
.
HY_MoveCylinder_Take
,
IO_Type
.
HY_MoveCylinder_Give
);
}
}
else
else
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论