Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO664-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 0d2f642a
由
LN
编写于
2022-12-01 09:48:37 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
接驳台优化
1 个父辈
1e6e9763
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
74 行增加
和
46 行删除
source/DeviceLibrary/assemblyLine/HY/HY_Coveryor_Partial.cs
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
source/DeviceLibrary/assemblyLine/HY/HY_Coveryor_Partial.cs
查看文件 @
0d2f642
...
@@ -194,9 +194,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -194,9 +194,10 @@ namespace OnlineStore.DeviceLibrary
else
if
(
ReelNeedToNG
())
else
if
(
ReelNeedToNG
())
{
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
JHY_07_TopUp
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
JHY_07_TopUp
);
CheckLog
(
" 接驳台托盘"
+
SecondMoveInfo
.
SLog
+
":需要移到NG箱,顶升气缸上升,横移电机停止"
);
CheckLog
(
" 接驳台托盘"
+
SecondMoveInfo
.
SLog
+
":需要移到NG箱,顶升气缸上升,横移电机停止
,同时定位气缸上升
"
);
LineStop
(
SecondMoveInfo
);
LineStop
(
SecondMoveInfo
);
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
HY_TopCylinder_Down
,
IO_Type
.
HY_TopCylinder_Up
);
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
HY_TopCylinder_Down
,
IO_Type
.
HY_TopCylinder_Up
);
LocationCylinderUp
(
SecondMoveInfo
);
}
}
else
else
{
{
...
@@ -208,33 +209,22 @@ namespace OnlineStore.DeviceLibrary
...
@@ -208,33 +209,22 @@ namespace OnlineStore.DeviceLibrary
}
}
else
if
(
SecondMoveInfo
.
IsStep
(
LineMoveStep
.
JHY_07_TopUp
))
else
if
(
SecondMoveInfo
.
IsStep
(
LineMoveStep
.
JHY_07_TopUp
))
{
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
JHY_08_LocationUp
);
if
(
IsLocationCylinderUp
())
CheckLog
(
" 接驳台托盘"
+
SecondMoveInfo
.
SLog
+
":料盘需要横移,定位上升"
);
{
LocationCylinderUp
(
SecondMoveInfo
);
JHY_09_WaitProcessReel
();
}
else
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
JHY_08_LocationUp
);
CheckLog
(
" 接驳台托盘"
+
SecondMoveInfo
.
SLog
+
":料盘需要横移,定位上升"
);
LocationCylinderUp
(
SecondMoveInfo
);
}
}
}
else
if
(
SecondMoveInfo
.
IsStep
(
LineMoveStep
.
JHY_08_LocationUp
))
else
if
(
SecondMoveInfo
.
IsStep
(
LineMoveStep
.
JHY_08_LocationUp
))
{
{
JHY_09_WaitProcessReel
();
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
))
{
bool
result
=
StartOutStoreMove
(
SecondMoveInfo
.
MoveParam
);
if
(
result
)
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
JHY_09_WaitProcessReel
);
CheckLog
(
" 接驳台托盘"
+
SecondMoveInfo
.
SLog
+
":等待拿走料盘"
+
MoveInfo
.
MoveParam
.
ToShortStr
());
ClearTimeoutAlarm
(
"等待移栽机构开始抓料超时"
);
}
else
if
(
SecondMoveInfo
.
IsTimeOut
())
{
MoveTimeoutAlarm
(
SecondMoveInfo
,
"等待移栽机构开始抓料超时"
);
}
}
else
if
(
SecondMoveInfo
.
IsTimeOut
())
{
MoveTimeoutAlarm
(
SecondMoveInfo
,
"等待移栽机构开始抓料超时"
);
}
}
}
else
if
(
SecondMoveInfo
.
IsStep
(
LineMoveStep
.
JHY_09_WaitProcessReel
))
else
if
(
SecondMoveInfo
.
IsStep
(
LineMoveStep
.
JHY_09_WaitProcessReel
))
{
{
...
@@ -320,7 +310,29 @@ namespace OnlineStore.DeviceLibrary
...
@@ -320,7 +310,29 @@ namespace OnlineStore.DeviceLibrary
{
{
LogUtil
.
error
(
Name
+
"FixtureProcess 未找到["
+
SecondMoveInfo
.
MoveType
+
"]["
+
SecondMoveInfo
.
MoveStep
+
"]的处理"
);
LogUtil
.
error
(
Name
+
"FixtureProcess 未找到["
+
SecondMoveInfo
.
MoveType
+
"]["
+
SecondMoveInfo
.
MoveStep
+
"]的处理"
);
}
}
}
private
void
JHY_09_WaitProcessReel
()
{
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
))
{
bool
result
=
StartOutStoreMove
(
SecondMoveInfo
.
MoveParam
);
if
(
result
)
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
JHY_09_WaitProcessReel
);
CheckLog
(
" 接驳台托盘"
+
SecondMoveInfo
.
SLog
+
":等待拿走料盘"
+
MoveInfo
.
MoveParam
.
ToShortStr
());
ClearTimeoutAlarm
(
"等待移栽机构开始抓料超时"
);
}
else
if
(
SecondMoveInfo
.
IsTimeOut
())
{
MoveTimeoutAlarm
(
SecondMoveInfo
,
"等待移栽机构开始抓料超时"
);
}
}
else
if
(
SecondMoveInfo
.
IsTimeOut
())
{
MoveTimeoutAlarm
(
SecondMoveInfo
,
"等待移栽机构开始抓料超时"
);
}
}
}
private
void
JHY_11_TopDown
()
private
void
JHY_11_TopDown
()
...
@@ -357,9 +369,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -357,9 +369,10 @@ namespace OnlineStore.DeviceLibrary
if
(
LastWidth
>
0
)
if
(
LastWidth
>
0
)
{
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
JHY_07_TopUp
);
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
JHY_07_TopUp
);
CheckLog
(
" 接驳台托盘"
+
SecondMoveInfo
.
SLog
+
":横移电机停止,顶升气缸上升"
);
CheckLog
(
" 接驳台托盘"
+
SecondMoveInfo
.
SLog
+
":横移电机停止,顶升气缸上升
,同时定位气缸上升
"
);
LineStop
(
SecondMoveInfo
);
LineStop
(
SecondMoveInfo
);
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
HY_TopCylinder_Down
,
IO_Type
.
HY_TopCylinder_Up
);
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
HY_TopCylinder_Down
,
IO_Type
.
HY_TopCylinder_Up
);
LocationCylinderUp
(
SecondMoveInfo
);
}
}
else
else
{
{
...
@@ -525,6 +538,33 @@ namespace OnlineStore.DeviceLibrary
...
@@ -525,6 +538,33 @@ namespace OnlineStore.DeviceLibrary
return
false
;
return
false
;
}
}
}
}
private
void
JM_02_CylinderTake
()
{
if
(
CylinderIsOk
(
IO_Type
.
HY_MoveCylinder_Give
,
IO_Type
.
HY_MoveCylinder_Take
))
{
int
p2
=
Config
.
GetUpdownP2Detial
(
MoveInfo
.
MoveParam
.
PlateH
,
MoveInfo
.
MoveParam
.
PlateW
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
JM_03_UpdownToP2
);
OutLog
(
logName
+
MoveInfo
.
SLog
+
":横移气缸已在取料端,升降轴下降到取料点P2 ["
+
p2
+
"]"
);
UpdownAxis
.
AbsMove
(
MoveInfo
,
p2
,
Config
.
UpdownAxis_P2Speed
);
}
else
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
JM_02_CylinderTake
);
CylinderMove
(
MoveInfo
,
IO_Type
.
HY_MoveCylinder_Give
,
IO_Type
.
HY_MoveCylinder_Take
);
if
(
IsNgPro
())
{
OutLog
(
logName
+
MoveInfo
.
SLog
+
":横移气缸取料端"
);
}
else
{
OutLog
(
logName
+
MoveInfo
.
SLog
+
":横移气缸取料端 ,暂不等待接驳台无料"
);
//MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.HY_TrayCheck1, IO_VALUE.LOW));
//MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.HY_TrayCheck2, IO_VALUE.LOW));
//MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.HY_TrayCheck3, IO_VALUE.LOW));
//MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.HY_TrayCheck4, IO_VALUE.LOW));
}
}
}
string
logName
=
""
;
string
logName
=
""
;
/// <summary>
/// <summary>
/// 紧急料,afterPut是否发送完成
/// 紧急料,afterPut是否发送完成
...
@@ -535,8 +575,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -535,8 +575,7 @@ namespace OnlineStore.DeviceLibrary
/// </summary>
/// </summary>
private
bool
getTrayReelOk
=
true
;
private
bool
getTrayReelOk
=
true
;
protected
override
void
OutStoreProcess
()
protected
override
void
OutStoreProcess
()
{
{
if
(
MoveInfo
.
IsInWait
)
if
(
MoveInfo
.
IsInWait
)
{
{
CheckWait
(
MoveInfo
);
CheckWait
(
MoveInfo
);
...
@@ -547,20 +586,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -547,20 +586,7 @@ namespace OnlineStore.DeviceLibrary
}
}
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
JM_01_UpdownToP1
))
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
JM_01_UpdownToP1
))
{
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
JM_02_CylinderTake
);
JM_02_CylinderTake
();
CylinderMove
(
MoveInfo
,
IO_Type
.
HY_MoveCylinder_Give
,
IO_Type
.
HY_MoveCylinder_Take
);
if
(
IsNgPro
())
{
OutLog
(
logName
+
MoveInfo
.
SLog
+
":横移气缸取料端"
);
}
else
{
OutLog
(
logName
+
MoveInfo
.
SLog
+
":横移气缸取料端 ,暂不等待接驳台无料"
);
//MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.HY_TrayCheck1, IO_VALUE.LOW));
//MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.HY_TrayCheck2, IO_VALUE.LOW));
//MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.HY_TrayCheck3, IO_VALUE.LOW));
//MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.HY_TrayCheck4, IO_VALUE.LOW));
}
}
}
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
JM_02_CylinderTake
))
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
JM_02_CylinderTake
))
{
{
...
@@ -587,6 +613,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -587,6 +613,8 @@ namespace OnlineStore.DeviceLibrary
OutLog
(
logName
+
MoveInfo
.
SLog
+
":升降轴到P1 ["
+
Config
.
UpDownAxisP1
+
"],更新 getTrayReelOk=true"
);
OutLog
(
logName
+
MoveInfo
.
SLog
+
":升降轴到P1 ["
+
Config
.
UpDownAxisP1
+
"],更新 getTrayReelOk=true"
);
UpdownAxis
.
AbsMove
(
MoveInfo
,
Config
.
UpDownAxisP1
,
Config
.
UpdownAxis_P1Speed
);
UpdownAxis
.
AbsMove
(
MoveInfo
,
Config
.
UpDownAxisP1
,
Config
.
UpdownAxis_P1Speed
);
getTrayReelOk
=
true
;
getTrayReelOk
=
true
;
TrayCanGo
();
}
}
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
JM_06_UpdownToP1
))
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
JM_06_UpdownToP1
))
{
{
...
@@ -598,8 +626,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -598,8 +626,8 @@ namespace OnlineStore.DeviceLibrary
}
}
else
else
{
{
OutLog
(
logName
+
MoveInfo
.
SLog
+
":夹爪料盘检测有料,超时时间
10
00 "
);
OutLog
(
logName
+
MoveInfo
.
SLog
+
":夹爪料盘检测有料,超时时间
5
00 "
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
10
00
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
5
00
));
MoveInfo
.
OneWaitCanEndStep
=
true
;
MoveInfo
.
OneWaitCanEndStep
=
true
;
}
}
}
}
...
@@ -611,7 +639,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -611,7 +639,7 @@ namespace OnlineStore.DeviceLibrary
getTrayReelOk
=
false
;
getTrayReelOk
=
false
;
LogInfo
(
"从托盘["
+
currTrayNum
+
"]上抓取无料失败,夹爪气缸料盘检测信号=LOW"
);
LogInfo
(
"从托盘["
+
currTrayNum
+
"]上抓取无料失败,夹爪气缸料盘检测信号=LOW"
);
}
}
TrayCanGo
();
//
TrayCanGo();
if
(
IsNgPro
())
if
(
IsNgPro
())
{
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
JM_11_CylinderGive
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
JM_11_CylinderGive
);
...
...
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
查看文件 @
0d2f642
...
@@ -154,7 +154,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -154,7 +154,7 @@ namespace OnlineStore.DeviceLibrary
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 夹爪料盘检测信号=LOW"
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 夹爪料盘检测信号=LOW"
);
}
}
if
(
IOValue
(
IO_Type
.
ClampCylinder_Check
).
Equals
(
IO_VALUE
.
HIGH
))
if
(
IOValue
(
IO_Type
.
ClampCylinder_Check
).
Equals
(
IO_VALUE
.
HIGH
)
||
ClampCount
>
0
)
{
{
if
(
IsBigStore
())
if
(
IsBigStore
())
{
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论