Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 50d16e46
由
LN
编写于
2021-03-01 09:20:08 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
料仓出库和料串入库 放料到托盘 时,如果是大于7寸的料盘,夹爪放松后夹紧一次,再放松。
1 个父辈
20c16f74
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
79 行增加
和
36 行删除
source/AssemblyLineClient/记录.txt
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
source/DeviceLibrary/assemblyLine/LineBean_Partial.cs
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
source/DeviceLibrary/model/KTK_Store.cs
source/DeviceLibrary/model/StoreStep.cs
source/AssemblyLineClient/记录.txt
查看文件 @
50d16e4
...
@@ -6,6 +6,9 @@
...
@@ -6,6 +6,9 @@
3.启用托盘会清理托盘信息,需拿走托盘上的物料。
3.启用托盘会清理托盘信息,需拿走托盘上的物料。
4.有托盘被禁用时,发送报警信息到服务器。
4.有托盘被禁用时,发送报警信息到服务器。
5.料仓出库和料串入库 放料到托盘 时,如果是大于7寸的料盘,夹爪放松后夹紧一次,再放松。
20200225
20200225
1.托盘增加禁用功能,禁用的托盘可在(设备调试->查看禁用托盘)界面手动启用。
1.托盘增加禁用功能,禁用的托盘可在(设备调试->查看禁用托盘)界面手动启用。
2.进仓界面增加启用托盘检测的勾选配置。
2.进仓界面增加启用托盘检测的勾选配置。
...
...
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
查看文件 @
50d16e4
此文件的差异被折叠,
点击展开。
source/DeviceLibrary/assemblyLine/LineBean_Partial.cs
查看文件 @
50d16e4
...
@@ -1162,11 +1162,11 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1162,11 +1162,11 @@ namespace OnlineStore.DeviceLibrary
//前进后退气缸后退以后才可以出库
//前进后退气缸后退以后才可以出库
else
if
(
move
.
runStatus
.
Equals
(
LineRunStatus
.
Busy
)
&&
move
.
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
OutStore
))
else
if
(
move
.
runStatus
.
Equals
(
LineRunStatus
.
Busy
)
&&
move
.
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
OutStore
))
{
{
if
(
move
.
MoveInfo
.
MoveStep
>=
(
LineMoveStep
.
MO_
58
_CylinderDown
))
if
(
move
.
MoveInfo
.
MoveStep
>=
(
LineMoveStep
.
MO_
62
_CylinderDown
))
{
{
return
true
;
return
true
;
}
}
else
if
(
move
.
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_
57
_CylinderAfter
)
&&
move
.
MoveInfo
.
IsInWait
.
Equals
(
false
)
else
if
(
move
.
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_
61
_CylinderAfter
)
&&
move
.
MoveInfo
.
IsInWait
.
Equals
(
false
)
&&
move
.
CylinderIsOk
(
IO_Type
.
BeforeAfterCylinder_Before
,
IO_Type
.
BeforeAfterCylinder_After
))
&&
move
.
CylinderIsOk
(
IO_Type
.
BeforeAfterCylinder_Before
,
IO_Type
.
BeforeAfterCylinder_After
))
{
{
return
true
;
return
true
;
...
...
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
查看文件 @
50d16e4
...
@@ -170,7 +170,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -170,7 +170,7 @@ namespace OnlineStore.DeviceLibrary
#
endregion
#
endregion
#
region
移载装置,放物品到流水线操作
#
region
移载装置,放物品到流水线操作
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_
57
_CylinderAfter
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_
61
_CylinderAfter
))
{
{
if
(
CylinderIsOk
(
IO_Type
.
BeforeAfterCylinder_Before
,
IO_Type
.
BeforeAfterCylinder_After
))
if
(
CylinderIsOk
(
IO_Type
.
BeforeAfterCylinder_Before
,
IO_Type
.
BeforeAfterCylinder_After
))
{
{
...
@@ -178,7 +178,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -178,7 +178,7 @@ namespace OnlineStore.DeviceLibrary
{
{
int
trayNum
=
SecondMoveInfo
.
MoveParam
.
TrayNumber
;
int
trayNum
=
SecondMoveInfo
.
MoveParam
.
TrayNumber
;
//去掉直接丢盘处理
//去掉直接丢盘处理
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
58
_CylinderDown
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
62
_CylinderDown
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 拦截到空托盘【"
+
trayNum
+
"】, 上下气缸下降 ,顶升气缸上升"
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 拦截到空托盘【"
+
trayNum
+
"】, 上下气缸下降 ,顶升气缸上升"
);
if
(
MoveInfo
.
MoveParam
!=
null
)
if
(
MoveInfo
.
MoveParam
!=
null
)
{
{
...
@@ -194,7 +194,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -194,7 +194,7 @@ namespace OnlineStore.DeviceLibrary
}
}
}
}
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_
58
_CylinderDown
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_
62
_CylinderDown
))
{
{
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 夹料气缸放松 "
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 夹料气缸放松 "
);
int
trayNum
=
MoveInfo
.
MoveParam
.
TrayNumber
;
int
trayNum
=
MoveInfo
.
MoveParam
.
TrayNumber
;
...
@@ -206,17 +206,40 @@ namespace OnlineStore.DeviceLibrary
...
@@ -206,17 +206,40 @@ namespace OnlineStore.DeviceLibrary
//出库全部完成
//出库全部完成
lineStatus
=
LineStatus
.
StoreOnline
;
lineStatus
=
LineStatus
.
StoreOnline
;
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
59
_CylinderRelax
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
63
_CylinderRelax
);
CylinderMove
(
MoveInfo
,
IO_Type
.
ClampCylinder_Slack
,
IO_Type
.
ClampCylinder_Tighten
);
CylinderMove
(
MoveInfo
,
IO_Type
.
ClampCylinder_Slack
,
IO_Type
.
ClampCylinder_Tighten
);
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_
59
_CylinderRelax
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_
63
_CylinderRelax
))
{
{
this
.
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_60_CylinderUp
);
if
(
MoveInfo
.
MoveParam
.
PlateW
>
7
)
{
this
.
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_64_CylinderWork
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 夹紧气缸夹紧"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
ClampCylinder_Tighten
,
IO_Type
.
ClampCylinder_Slack
);
}
else
{
this
.
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_66_CylinderUp
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 上下气缸上升,同时顶升气缸先下降"
);
UpdownUpMove
();
CylinderMove
(
null
,
IO_Type
.
TopCylinder_UP
,
IO_Type
.
TopCylinder_Down
);
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_64_CylinderWork
))
{
this
.
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_65_CylinderRelax2
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 夹紧气缸再次放松"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
ClampCylinder_Slack
,
IO_Type
.
ClampCylinder_Tighten
);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_65_CylinderRelax2
))
{
this
.
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_66_CylinderUp
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 上下气缸上升,同时顶升气缸先下降"
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 上下气缸上升,同时顶升气缸先下降"
);
UpdownUpMove
();
UpdownUpMove
();
CylinderMove
(
null
,
IO_Type
.
TopCylinder_UP
,
IO_Type
.
TopCylinder_Down
);
CylinderMove
(
null
,
IO_Type
.
TopCylinder_UP
,
IO_Type
.
TopCylinder_Down
);
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_6
0
_CylinderUp
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_6
6
_CylinderUp
))
{
{
// 减去需要的盘数
// 减去需要的盘数
// TrayManager.DelNeedEmptyTrayNum();
// TrayManager.DelNeedEmptyTrayNum();
...
@@ -239,7 +262,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -239,7 +262,7 @@ namespace OnlineStore.DeviceLibrary
}
}
private
void
MO_57_CylinderAfter
()
private
void
MO_57_CylinderAfter
()
{
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
57
_CylinderAfter
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_
61
_CylinderAfter
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
200
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
200
));
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 前后气缸后退"
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 前后气缸后退"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
BeforeAfterCylinder_Before
,
IO_Type
.
BeforeAfterCylinder_After
);
CylinderMove
(
MoveInfo
,
IO_Type
.
BeforeAfterCylinder_Before
,
IO_Type
.
BeforeAfterCylinder_After
);
...
@@ -542,9 +565,9 @@ namespace OnlineStore.DeviceLibrary
...
@@ -542,9 +565,9 @@ namespace OnlineStore.DeviceLibrary
}
}
bool
isFull
=
TrayManager
.
TrayIsFull
(
currTrayNum
);
bool
isFull
=
TrayManager
.
TrayIsFull
(
currTrayNum
);
bool
moveOk
=
(
IsBigStore
()
&&
MoveInfo
.
MoveStep
>=
LineMoveStep
.
MO_55_CylinderUp
)
||
MoveInfo
.
MoveStep
>=
LineMoveStep
.
MO_
57
_CylinderAfter
;
bool
moveOk
=
(
IsBigStore
()
&&
MoveInfo
.
MoveStep
>=
LineMoveStep
.
MO_55_CylinderUp
)
||
MoveInfo
.
MoveStep
>=
LineMoveStep
.
MO_
61
_CylinderAfter
;
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
OutStore
)
&&
moveOk
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
OutStore
)
&&
moveOk
&&
(!
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_6
0
_CylinderUp
)))
&&
(!
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_6
6
_CylinderUp
)))
{
{
if
(
isFull
.
Equals
(
false
))
if
(
isFull
.
Equals
(
false
))
{
{
...
@@ -569,9 +592,9 @@ namespace OnlineStore.DeviceLibrary
...
@@ -569,9 +592,9 @@ namespace OnlineStore.DeviceLibrary
{
{
return
false
;
return
false
;
}
}
bool
moveOk
=
(
IsBigStore
()
&&
MoveInfo
.
MoveStep
>=
LineMoveStep
.
MO_55_CylinderUp
)
||
MoveInfo
.
MoveStep
>=
LineMoveStep
.
MO_
57
_CylinderAfter
;
bool
moveOk
=
(
IsBigStore
()
&&
MoveInfo
.
MoveStep
>=
LineMoveStep
.
MO_55_CylinderUp
)
||
MoveInfo
.
MoveStep
>=
LineMoveStep
.
MO_
61
_CylinderAfter
;
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
OutStore
)
&&
moveOk
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
OutStore
)
&&
moveOk
&&
(!
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_6
0
_CylinderUp
)))
&&
(!
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_6
6
_CylinderUp
)))
{
{
return
true
;
return
true
;
}
}
...
...
source/DeviceLibrary/model/KTK_Store.cs
查看文件 @
50d16e4
...
@@ -494,7 +494,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -494,7 +494,7 @@ namespace OnlineStore.DeviceLibrary
//如果是进仓门口 夹紧
//如果是进仓门口 夹紧
if
(
baseConfig
.
DType
.
Equals
(
DeviceType
.
MoveEquip
)
&&
(
IoHighType
.
Equals
(
IO_Type
.
ClampCylinder_Slack
)))
if
(
baseConfig
.
DType
.
Equals
(
DeviceType
.
MoveEquip
)
&&
(
IoHighType
.
Equals
(
IO_Type
.
ClampCylinder_Slack
)))
{
{
moveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
5
00
));
moveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
8
00
));
moveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IoLowType
,
IO_VALUE
.
LOW
));
moveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IoLowType
,
IO_VALUE
.
LOW
));
}
}
else
if
(
baseConfig
.
DType
.
Equals
(
DeviceType
.
MoveEquip
)
&&
(
IoHighType
.
Equals
(
IO_Type
.
ClampCylinder_Tighten
)))
else
if
(
baseConfig
.
DType
.
Equals
(
DeviceType
.
MoveEquip
)
&&
(
IoHighType
.
Equals
(
IO_Type
.
ClampCylinder_Tighten
)))
...
...
source/DeviceLibrary/model/StoreStep.cs
查看文件 @
50d16e4
...
@@ -383,20 +383,28 @@ namespace OnlineStore.DeviceLibrary
...
@@ -383,20 +383,28 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// <summary>
/// 移栽装置出库处理。 前后气缸1后退
/// 移栽装置出库处理。 前后气缸1后退
/// </summary>
/// </summary>
MO_
57
_CylinderAfter
,
MO_
61
_CylinderAfter
,
/// <summary>
/// <summary>
/// 移载(流水线)装置出库处理,上下气缸1下降
/// 移载(流水线)装置出库处理,上下气缸1下降
/// </summary>
/// </summary>
MO_
58
_CylinderDown
,
MO_
62
_CylinderDown
,
/// <summary>
/// <summary>
/// 移载(流水线)装置出库处理,夹
料气缸1
放松
/// 移载(流水线)装置出库处理,夹
爪
放松
/// </summary>
/// </summary>
MO_59_CylinderRelax
,
MO_63_CylinderRelax
,
/// <summary>
/// 移载(流水线)装置出库处理,夹爪夹紧
/// </summary>
MO_64_CylinderWork
,
/// <summary>
/// 移载(流水线)装置出库处理,夹爪放松
/// </summary>
MO_65_CylinderRelax2
,
/// <summary>
/// <summary>
/// 移载(流水线)装置出库处理,上下气缸1上升
/// 移载(流水线)装置出库处理,上下气缸1上升
/// </summary>
/// </summary>
MO_6
0
_CylinderUp
,
MO_6
6
_CylinderUp
,
#
region
入料模块,紧急出料移栽处理
#
region
入料模块,紧急出料移栽处理
...
@@ -751,74 +759,83 @@ namespace OnlineStore.DeviceLibrary
...
@@ -751,74 +759,83 @@ namespace OnlineStore.DeviceLibrary
/// </summary>
/// </summary>
FI_27_CylinderRelax
,
FI_27_CylinderRelax
,
/// <summary>
/// <summary>
/// 料盘移栽: 上料气缸夹紧
/// </summary>
FI_28_CylinderWork
,
/// <summary>
/// 料盘移栽: 上料气缸再次放松
/// </summary>
FI_29_CylinderRelax2
,
/// <summary>
/// 料盘移栽: 上料横移机构上升
/// 料盘移栽: 上料横移机构上升
/// </summary>
/// </summary>
FI_
28
_WaitCylinderUp
,
FI_
30
_WaitCylinderUp
,
/// <summary>
/// <summary>
/// 料盘移栽:上料横移机构上升,定位或者顶升可以先下降
/// 料盘移栽:上料横移机构上升,定位或者顶升可以先下降
/// </summary>
/// </summary>
FI_
29
_CylinderUp
,
FI_
31
_CylinderUp
,
/// <summary>
/// <summary>
/// 料盘移栽:升降伺服到P1点
/// 料盘移栽:升降伺服到P1点
/// </summary>
/// </summary>
FI_3
0
_UpDownAxisToP1
,
FI_3
2
_UpDownAxisToP1
,
/// <summary>
/// <summary>
/// 上料完成,未检测到料盘,提升伺服到P2点
/// 上料完成,未检测到料盘,提升伺服到P2点
/// </summary>
/// </summary>
FI_
31_BatchAxisToP2
=
1103
1
,
FI_
51_BatchAxisToP2
=
1105
1
,
/// <summary>
/// <summary>
/// 上料完成,升降盘定位气缸后退
/// 上料完成,升降盘定位气缸后退
/// </summary>
/// </summary>
FI_
3
2_TrayLocationCylinder_After
,
FI_
5
2_TrayLocationCylinder_After
,
/// <summary>
/// <summary>
/// 上料完成,提升伺服到P1点
/// 上料完成,提升伺服到P1点
/// </summary>
/// </summary>
FI_
3
3_BatchAxisToP1
,
FI_
5
3_BatchAxisToP1
,
/// <summary>
/// <summary>
/// 上料完成,等待出料线体无料架
/// 上料完成,等待出料线体无料架
/// </summary>
/// </summary>
FI_
3
4_OutCheck
,
FI_
5
4_OutCheck
,
/// <summary>
/// <summary>
/// 上料完成,出口顶升气缸上升
/// 上料完成,出口顶升气缸上升
/// </summary>
/// </summary>
FI_
3
5_OutTopCylinder_Up
,
FI_
5
5_OutTopCylinder_Up
,
/// <summary>
/// <summary>
///上料完成, 线体横移电机运转,等待料架到达出口
///上料完成, 线体横移电机运转,等待料架到达出口
/// </summary>
/// </summary>
FI_
3
6_SideWayLineRun
,
FI_
5
6_SideWayLineRun
,
/// <summary>
/// <summary>
///上料完成,等待料架到达出口
///上料完成,等待料架到达出口
/// </summary>
/// </summary>
FI_
3
7_WaitShelfGo
,
FI_
5
7_WaitShelfGo
,
/// <summary>
/// <summary>
///上料完成, 料架到达出口,线体横移电机停止
///上料完成, 料架到达出口,线体横移电机停止
/// </summary>
/// </summary>
FI_
3
8_LineStop
,
FI_
5
8_LineStop
,
/// <summary>
/// <summary>
///上料完成, 料架到达出口,出口顶升下降,定位气缸下降,
///上料完成, 料架到达出口,出口顶升下降,定位气缸下降,
/// </summary>
/// </summary>
FI_
3
9_TopDown
,
FI_
5
9_TopDown
,
/// <summary>
/// <summary>
///上料完成, 出口线体运转,料架到达出口处, 通知AGV取空料架
///上料完成, 出口线体运转,料架到达出口处, 通知AGV取空料架
/// </summary>
/// </summary>
FI_
39
_OutLineRun
,
FI_
61
_OutLineRun
,
/// <summary>
/// <summary>
///上料完成, AGV到达,继续转动出口线体,送走出料料架,
///上料完成, AGV到达,继续转动出口线体,送走出料料架,
/// </summary>
/// </summary>
FI_
40
_OutLineRun
,
FI_
62
_OutLineRun
,
/// <summary>
/// <summary>
///上料完成, 料架送出,
///上料完成, 料架送出,
/// </summary>
/// </summary>
FI_
41
_OutLineRun
,
FI_
63
_OutLineRun
,
#
endregion
#
endregion
#
region
入料装置出料处理,
12000
开始
#
region
入料装置出料处理,
12000
开始
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论