Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO827-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
图表
网络
创建新的问题
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 45eb003b
由
LN
编写于
2021-06-28 15:02:06 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
夹爪增加重抓功能
1 个父辈
feb7259e
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
40 行增加
和
17 行删除
source/DeviceLibrary/assemblyLine/LineBean_Partial.cs
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
source/DeviceLibrary/model/StoreStep.cs
source/DeviceLibrary/assemblyLine/LineBean_Partial.cs
查看文件 @
45eb003
...
...
@@ -286,7 +286,7 @@ namespace OnlineStore.DeviceLibrary
//如果正在入库移栽不能操作,其他时候可以
if
(
move
.
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
InStore
))
{
if
(
move
.
MoveInfo
.
MoveStep
>=
LineMoveStep
.
MI_
09
_CylinderBefore
&&
move
.
MoveInfo
.
MoveStep
<=
LineMoveStep
.
MI_14_CylinderAfter
)
if
(
move
.
MoveInfo
.
MoveStep
>=
LineMoveStep
.
MI_
10
_CylinderBefore
&&
move
.
MoveInfo
.
MoveStep
<=
LineMoveStep
.
MI_14_CylinderAfter
)
{
return
false
;
}
...
...
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
查看文件 @
45eb003
...
...
@@ -532,8 +532,7 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
error
(
Name
+
" 启动一个 入库【"
+
posId
+
"】运动失败,当前状态,storeStatus="
+
runStatus
);
}
return
false
;
}
}
protected
override
void
InStoreProcess
()
{
if
(
MoveInfo
.
IsInWait
)
...
...
@@ -559,6 +558,8 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
MI_02_ToLineUp
))
{
//重置夹料次数=0
ClampCount
=
0
;
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_03_CylinderDown
);
InLog
(
"入库 "
+
MoveInfo
.
SLog
+
": 升降下降,顶升上升"
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
200
));
...
...
@@ -600,32 +601,50 @@ namespace OnlineStore.DeviceLibrary
}
else
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_07_WaitHasReel
);
InLog
(
"入库 "
+
MoveInfo
.
SLog
+
": 等待夹爪有料"
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitClampHasReel
());
MoveInfo
.
TimeOutSeconds
=
5
;
//如果是第一次抓料,重复抓料一次
if
(
ClampCount
<=
0
)
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_07_ResetClamp
);
InLog
(
"入库 "
+
MoveInfo
.
SLog
+
": 第一次未抓到料,重新抓一次,夹爪先放松"
);
ClampCount
=
1
;
ClampJwa
.
Relax
(
MoveInfo
);
}
else
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_08_WaitHasReel
);
InLog
(
"入库 "
+
MoveInfo
.
SLog
+
": 等待夹爪有料"
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitClampHasReel
());
MoveInfo
.
TimeOutSeconds
=
5
;
}
}
}
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
MI_07_WaitHasReel
))
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
MI_07_ResetClamp
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_03_CylinderDown
);
InLog
(
"入库 "
+
MoveInfo
.
SLog
+
": 升降下降,顶升上升"
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
200
));
UpdownDownP2Move
(
MoveInfo
.
MoveParam
.
PlateH
,
MoveInfo
.
MoveParam
.
PlateW
);
}
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
MI_08_WaitHasReel
))
{
MI_08_WaitBox
();
}
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
MI_0
8
_WaitBox
))
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
MI_0
9
_WaitBox
))
{
if
(
UpdownIsUp
())
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_
09
_CylinderBefore
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_
10
_CylinderBefore
);
InLog
(
"入库: "
+
MoveInfo
.
SLog
+
" 前后气缸1前进"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
BeforeAfterCylinder_After
,
IO_Type
.
BeforeAfterCylinder_Before
);
}
else
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_0
8
_WaitBox
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_0
9
_WaitBox
);
InLog
(
"入库: "
+
MoveInfo
.
SLog
+
" 升降气缸上升"
);
UpdownUpMove
();
}
}
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
MI_
09
_CylinderBefore
))
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
MI_
10
_CylinderBefore
))
{
if
(
CylinderIsOk
(
IO_Type
.
BeforeAfterCylinder_After
,
IO_Type
.
BeforeAfterCylinder_Before
))
{
...
...
@@ -635,7 +654,7 @@ namespace OnlineStore.DeviceLibrary
}
else
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_
09
_CylinderBefore
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_
10
_CylinderBefore
);
InLog
(
"入库: "
+
MoveInfo
.
SLog
+
" 前后气缸1前进"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
BeforeAfterCylinder_After
,
IO_Type
.
BeforeAfterCylinder_Before
);
}
...
...
@@ -770,7 +789,7 @@ namespace OnlineStore.DeviceLibrary
string
posId
=
MoveInfo
.
MoveParam
!=
null
?
MoveInfo
.
MoveParam
.
PosId
:
""
;
int
num
=
MoveInfo
.
MoveParam
.
TrayNumber
;
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_0
8
_WaitBox
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_0
9
_WaitBox
);
LogInfo
(
"入库【"
+
posId
+
"】 "
+
MoveInfo
.
SLog
+
": 物品已移走,更新托盘【"
+
num
+
"】为空盘,删除入库任务"
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitBoxCanInstore
());
TrayManager
.
UpdateTrayInfo
(
num
);
...
...
source/DeviceLibrary/model/StoreStep.cs
查看文件 @
45eb003
...
...
@@ -162,20 +162,24 @@ namespace OnlineStore.DeviceLibrary
///移载装置入库处理,上下气缸1上升
/// </summary>
MI_06_CylinderUp
,
/// <summary>
/// 入库处理:重新抓料一次,夹爪放松
/// </summary>
MI_07_ResetClamp
,
/// <summary>
/// 移载装置入库处理,等待夹爪有料
/// </summary>
MI_0
7
_WaitHasReel
,
MI_0
8
_WaitHasReel
,
/// <summary>
/// 移载装置入库处理,等待box等待状态才能继续操作
/// </summary>
MI_0
8
_WaitBox
,
MI_0
9
_WaitBox
,
/// <summary>
///移载装置入库处理,,前后气缸1前进
/// </summary>
MI_
09
_CylinderBefore
,
MI_
10
_CylinderBefore
,
/// <summary>
///移载装置入库处理,上下气缸1下降
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论