Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 50d16e46
由
LN
编写于
2021-03-01 09:20:08 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
料仓出库和料串入库 放料到托盘 时,如果是大于7寸的料盘,夹爪放松后夹紧一次,再放松。
1 个父辈
20c16f74
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
130 行增加
和
63 行删除
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
...
@@ -677,7 +677,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -677,7 +677,7 @@ namespace OnlineStore.DeviceLibrary
if
(
CurrShelfId
.
EndsWith
(
"00"
))
if
(
CurrShelfId
.
EndsWith
(
"00"
))
{
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_
3
3_BatchAxisToP1
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_
5
3_BatchAxisToP1
);
InLog
(
"料架号【"
+
CurrShelfId
+
"】无效,送出料架,"
+
MoveInfo
.
SLog
+
":提升伺服到P1点,定位气缸下降"
);
InLog
(
"料架号【"
+
CurrShelfId
+
"】无效,送出料架,"
+
MoveInfo
.
SLog
+
":提升伺服到P1点,定位气缸下降"
);
BatchAxis
.
AbsMove
(
MoveInfo
,
Config
.
BatchAxisP1
,
Config
.
BatchAxis_P1Speed
);
BatchAxis
.
AbsMove
(
MoveInfo
,
Config
.
BatchAxisP1
,
Config
.
BatchAxis_P1Speed
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_LocationCylinder_Up
,
IO_Type
.
SL_LocationCylinder_Down
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_LocationCylinder_Up
,
IO_Type
.
SL_LocationCylinder_Down
);
...
@@ -977,24 +977,48 @@ namespace OnlineStore.DeviceLibrary
...
@@ -977,24 +977,48 @@ namespace OnlineStore.DeviceLibrary
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_27_CylinderRelax
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_27_CylinderRelax
))
{
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_28_WaitCylinderUp
);
if
(
LastWidth
>
7
)
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_28_CylinderWork
);
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":大料,夹爪气缸夹紧"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_MoveCylinder_Slack
,
IO_Type
.
SL_MoveCylinder_Tighten
);
}
else
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_30_WaitCylinderUp
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
100
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SL_MoveCylinder_Down
,
IO_VALUE
.
LOW
));
CylinderMove
(
null
,
IO_Type
.
SL_MoveCylinder_Down
,
IO_Type
.
SL_MoveCylinder_Up
);
TrayPreMove
();
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_28_CylinderWork
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_29_CylinderRelax2
);
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":大料,上料气缸再次放松"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_MoveCylinder_Tighten
,
IO_Type
.
SL_MoveCylinder_Slack
);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_29_CylinderRelax2
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_30_WaitCylinderUp
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
100
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
100
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SL_MoveCylinder_Down
,
IO_VALUE
.
LOW
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SL_MoveCylinder_Down
,
IO_VALUE
.
LOW
));
CylinderMove
(
null
,
IO_Type
.
SL_MoveCylinder_Down
,
IO_Type
.
SL_MoveCylinder_Up
);
CylinderMove
(
null
,
IO_Type
.
SL_MoveCylinder_Down
,
IO_Type
.
SL_MoveCylinder_Up
);
TrayPreMove
();
TrayPreMove
();
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_28_WaitCylinderUp
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_30_WaitCylinderUp
))
{
{
//判断是小盘就直接放行,
//判断是小盘就直接放行,
if
(
LastWidth
.
Equals
(
7
)
||
(
Config
.
SidesWayNum
!=
2
))
if
(
LastWidth
.
Equals
(
7
)
||
(
Config
.
SidesWayNum
!=
2
))
{
{
TrayMoveOk
();
TrayMoveOk
();
}
}
FI_
29
_CylinderUp
();
FI_
31
_CylinderUp
();
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_
29
_CylinderUp
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_
31
_CylinderUp
))
{
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_3
0
_UpDownAxisToP1
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_3
2
_UpDownAxisToP1
);
// InLog("料盘移栽" + MoveInfo.SLog + ":升降伺服到P1点");
// InLog("料盘移栽" + MoveInfo.SLog + ":升降伺服到P1点");
TrayMoveOk
(
true
);
TrayMoveOk
(
true
);
if
(!
UpdownAxis
.
IsInPosition
(
Config
.
UpDownAxisP1
))
if
(!
UpdownAxis
.
IsInPosition
(
Config
.
UpDownAxisP1
))
...
@@ -1007,7 +1031,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1007,7 +1031,7 @@ namespace OnlineStore.DeviceLibrary
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":升降轴已在P1点,托盘放行"
);
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":升降轴已在P1点,托盘放行"
);
}
}
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_3
0
_UpDownAxisToP1
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_3
2
_UpDownAxisToP1
))
{
{
if
(
getPosTask
==
null
||
getPosTask
.
IsCompleted
)
if
(
getPosTask
==
null
||
getPosTask
.
IsCompleted
)
{
{
...
@@ -1031,49 +1055,49 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1031,49 +1055,49 @@ namespace OnlineStore.DeviceLibrary
#
region
未检测到托盘或放料完成
#
region
未检测到托盘或放料完成
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_
3
1_BatchAxisToP2
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_
5
1_BatchAxisToP2
))
{
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_
3
2_TrayLocationCylinder_After
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_
5
2_TrayLocationCylinder_After
);
InLog
(
"上料完成"
+
MoveInfo
.
SLog
+
": 升降盘定位气缸后退, 清理料架信息clearPutInRfid["
+
CurrShelfId
+
"]"
);
InLog
(
"上料完成"
+
MoveInfo
.
SLog
+
": 升降盘定位气缸后退, 清理料架信息clearPutInRfid["
+
CurrShelfId
+
"]"
);
TrayLCylinderAfter
(
MoveInfo
);
TrayLCylinderAfter
(
MoveInfo
);
SServerManager
.
clearPutInRfid
(
Name
,
CurrShelfId
);
SServerManager
.
clearPutInRfid
(
Name
,
CurrShelfId
);
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_
3
2_TrayLocationCylinder_After
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_
5
2_TrayLocationCylinder_After
))
{
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_
3
3_BatchAxisToP1
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_
5
3_BatchAxisToP1
);
InLog
(
"上料完成"
+
MoveInfo
.
SLog
+
":提升伺服到P1点,定位气缸下降"
);
InLog
(
"上料完成"
+
MoveInfo
.
SLog
+
":提升伺服到P1点,定位气缸下降"
);
BatchAxis
.
AbsMove
(
MoveInfo
,
Config
.
BatchAxisP1
,
Config
.
BatchAxis_P1Speed
);
BatchAxis
.
AbsMove
(
MoveInfo
,
Config
.
BatchAxisP1
,
Config
.
BatchAxis_P1Speed
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_LocationCylinder_Up
,
IO_Type
.
SL_LocationCylinder_Down
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_LocationCylinder_Up
,
IO_Type
.
SL_LocationCylinder_Down
);
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_
3
3_BatchAxisToP1
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_
5
3_BatchAxisToP1
))
{
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_
3
4_OutCheck
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_
5
4_OutCheck
);
InLog
(
"上料完成"
+
MoveInfo
.
SLog
+
",等待出料线体无料架"
);
InLog
(
"上料完成"
+
MoveInfo
.
SLog
+
",等待出料线体无料架"
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SL_Out_Check
,
IO_VALUE
.
LOW
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SL_Out_Check
,
IO_VALUE
.
LOW
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SL_Out_StopDown
,
IO_VALUE
.
LOW
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SL_Out_StopDown
,
IO_VALUE
.
LOW
));
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_
3
4_OutCheck
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_
5
4_OutCheck
))
{
{
if
(!
ProcessShelfOut
)
if
(!
ProcessShelfOut
)
{
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_
3
5_OutTopCylinder_Up
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_
5
5_OutTopCylinder_Up
);
InLog
(
"上料完成"
+
MoveInfo
.
SLog
+
",出口顶升气缸上升,出料缓冲阻挡上升"
);
InLog
(
"上料完成"
+
MoveInfo
.
SLog
+
",出口顶升气缸上升,出料缓冲阻挡上升"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_OutTopCylinder_Down
,
IO_Type
.
SL_OutTopCylinder_Up
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_OutTopCylinder_Down
,
IO_Type
.
SL_OutTopCylinder_Up
);
IOMove
(
IO_Type
.
SL_Out_StopDown
,
IO_VALUE
.
LOW
);
IOMove
(
IO_Type
.
SL_Out_StopDown
,
IO_VALUE
.
LOW
);
}
}
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_
3
5_OutTopCylinder_Up
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_
5
5_OutTopCylinder_Up
))
{
{
//TODO
//TODO
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_
3
6_SideWayLineRun
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_
5
6_SideWayLineRun
);
InLog
(
"上料完成"
+
MoveInfo
.
SLog
+
", 线体横移电机运转,等待料架离开上料工位"
);
InLog
(
"上料完成"
+
MoveInfo
.
SLog
+
", 线体横移电机运转,等待料架离开上料工位"
);
IOMove
(
IO_Type
.
SL_LocationSideWay_Run
,
IO_VALUE
.
HIGH
);
IOMove
(
IO_Type
.
SL_LocationSideWay_Run
,
IO_VALUE
.
HIGH
);
IOMove
(
IO_Type
.
SL_OutSideWay_Run
,
IO_VALUE
.
HIGH
);
IOMove
(
IO_Type
.
SL_OutSideWay_Run
,
IO_VALUE
.
HIGH
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SL_Location_Check
,
IO_VALUE
.
LOW
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SL_Location_Check
,
IO_VALUE
.
LOW
));
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_
3
6_SideWayLineRun
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_
5
6_SideWayLineRun
))
{
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_
3
7_WaitShelfGo
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_
5
7_WaitShelfGo
);
InLog
(
"上料完成"
+
MoveInfo
.
SLog
+
", 线体横移电机运转,等待料架到达出口"
);
InLog
(
"上料完成"
+
MoveInfo
.
SLog
+
", 线体横移电机运转,等待料架到达出口"
);
IOMove
(
IO_Type
.
SL_LocationSideWay_Run
,
IO_VALUE
.
HIGH
);
IOMove
(
IO_Type
.
SL_LocationSideWay_Run
,
IO_VALUE
.
HIGH
);
IOMove
(
IO_Type
.
SL_OutSideWay_Run
,
IO_VALUE
.
HIGH
);
IOMove
(
IO_Type
.
SL_OutSideWay_Run
,
IO_VALUE
.
HIGH
);
...
@@ -1081,24 +1105,24 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1081,24 +1105,24 @@ namespace OnlineStore.DeviceLibrary
//MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(10000));
//MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(10000));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SL_Out_Check
,
IO_VALUE
.
HIGH
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SL_Out_Check
,
IO_VALUE
.
HIGH
));
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_
3
7_WaitShelfGo
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_
5
7_WaitShelfGo
))
{
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_
3
8_LineStop
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_
5
8_LineStop
);
InLog
(
"上料完成"
+
MoveInfo
.
SLog
+
", 料架到达出口,线体横移电机停止 "
);
InLog
(
"上料完成"
+
MoveInfo
.
SLog
+
", 料架到达出口,线体横移电机停止 "
);
IOMove
(
IO_Type
.
SL_LocationSideWay_Run
,
IO_VALUE
.
LOW
);
IOMove
(
IO_Type
.
SL_LocationSideWay_Run
,
IO_VALUE
.
LOW
);
IOMove
(
IO_Type
.
SL_OutSideWay_Run
,
IO_VALUE
.
LOW
);
IOMove
(
IO_Type
.
SL_OutSideWay_Run
,
IO_VALUE
.
LOW
);
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_
3
8_LineStop
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_
5
8_LineStop
))
{
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_
3
9_TopDown
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_
5
9_TopDown
);
InLog
(
"上料完成"
+
MoveInfo
.
SLog
+
", 料架到达出口,出口顶升下降 ,清理缓存料架RFID "
);
InLog
(
"上料完成"
+
MoveInfo
.
SLog
+
", 料架到达出口,出口顶升下降 ,清理缓存料架RFID "
);
UpdateLastShelfID
();
UpdateLastShelfID
();
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_OutTopCylinder_Up
,
IO_Type
.
SL_OutTopCylinder_Down
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_OutTopCylinder_Up
,
IO_Type
.
SL_OutTopCylinder_Down
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
300
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
300
));
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_
3
9_TopDown
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_
5
9_TopDown
))
{
{
MoveEndS
();
MoveEndS
();
// MoveInfo.NextMoveStep(LineMoveStep.FI_39_OutLineRun);
// MoveInfo.NextMoveStep(LineMoveStep.FI_39_OutLineRun);
...
@@ -1172,9 +1196,9 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1172,9 +1196,9 @@ namespace OnlineStore.DeviceLibrary
});
});
}
}
private
void
FI_
29
_CylinderUp
()
private
void
FI_
31
_CylinderUp
()
{
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_
29
_CylinderUp
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_
31
_CylinderUp
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_MoveCylinder_Down
,
IO_Type
.
SL_MoveCylinder_Up
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_MoveCylinder_Down
,
IO_Type
.
SL_MoveCylinder_Up
);
//如果是小料盘,且升降轴需要上升,
//如果是小料盘,且升降轴需要上升,
...
@@ -1374,7 +1398,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1374,7 +1398,7 @@ namespace OnlineStore.DeviceLibrary
}
}
//无料盘
//无料盘
MoveInfo
.
ShelfNoTray
=
true
;
MoveInfo
.
ShelfNoTray
=
true
;
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_
3
1_BatchAxisToP2
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_
5
1_BatchAxisToP2
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
3000
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
3000
));
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":未检测到料盘,提升伺服到P2点"
);
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":未检测到料盘,提升伺服到P2点"
);
BatchAxis
.
SuddenStop
();
BatchAxis
.
SuddenStop
();
...
...
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
请
注册
或
登录
后发表评论