Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 31f643d3
由
LN
编写于
2020-05-06 18:59:10 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
入料口托盘放行优化
1 个父辈
b9e3113c
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
77 行增加
和
58 行删除
source/DeviceLibrary/agvClient/AgvClient.cs
source/DeviceLibrary/assemblyLine/FeedingEquip.cs
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
source/DeviceLibrary/assemblyLine/FeedingEquip_OutStore.cs
source/DeviceLibrary/model/StoreStep.cs
source/DeviceLibrary/agvClient/AgvClient.cs
查看文件 @
31f643d
...
...
@@ -54,9 +54,9 @@ namespace OnlineStore.DeviceLibrary
agvClient
.
CancelState
=
isCancel
;
}
public
static
void
SetStatus
(
string
id
,
string
shelfId
=
""
,
ClientAction
action
=
ClientAction
.
None
,
ClientLevel
level
=
ClientLevel
.
Low
,
bool
isMust
=
false
)
{
{
if
(!
isMust
)
if
(!
isMust
&&
level
.
Equals
(
ClientLevel
.
Low
)
)
{
if
(
actionMap
.
ContainsKey
(
id
))
{
...
...
source/DeviceLibrary/assemblyLine/FeedingEquip.cs
查看文件 @
31f643d
...
...
@@ -281,10 +281,10 @@ namespace OnlineStore.DeviceLibrary
if
(
IOValue
(
IO_Type
.
SL_Location_Check
).
Equals
(
IO_VALUE
.
HIGH
))
{
level
=
ClientLevel
.
Middle
;
if
(
Config
.
IsCanOut
.
Equals
(
1
))
{
level
=
ClientLevel
.
High
;
}
}
if
(
Config
.
IsCanOut
.
Equals
(
1
))
{
level
=
ClientLevel
.
High
;
}
LogInfo
(
"重置完成,出口检测到有料架,调用 "
+
Config
.
AgvOutName
+
" AgvClient.NeedLeave"
);
AgvClient
.
NeedLeave
(
Config
.
AgvOutName
,
LastOutShelfId
,
level
);
...
...
@@ -827,7 +827,7 @@ namespace OnlineStore.DeviceLibrary
}
//等待200毫秒后停止转动
Thread
.
Sleep
(
5000
);
if
(
MoveInfo
.
Move
Type
.
Equals
(
LineMoveStep
.
FI_03_LineStart
))
if
(
MoveInfo
.
Move
Step
.
Equals
(
LineMoveStep
.
FI_03_LineStart
))
{
LogUtil
.
info
(
logName
+
" 等待5000后, MoveInfo.MoveType= FI_03_LineStart 不需要停止链条转动"
);
}
...
...
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
查看文件 @
31f643d
...
...
@@ -446,9 +446,14 @@ namespace OnlineStore.DeviceLibrary
}
}
}
private
void
TrayMoveOk
()
private
void
TrayMoveOk
(
bool
needCheck
=
false
)
{
if
(
needCheck
&&
(!
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_11_CodeRember
)))
{
return
;
}
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_12_MoveOk
);
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
","
+
SecondMoveInfo
.
SLog
+
":托盘开始放行"
);
if
(
Config
.
SidesWayNum
>
0
)
{
if
(
CylinderIsOk
(
IO_Type
.
SW_LocationCylinder_Up
,
IO_Type
.
SW_LocationCylinder_Down
))
...
...
@@ -871,11 +876,6 @@ namespace OnlineStore.DeviceLibrary
{
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_11_CodeRember
))
{
// MoveInfo.NextMoveStep(LineMoveStep.FI_21_UpdownAxisToP2);
//int targetPositon = Config.GetUpdownP2Detial(LastHeight, LastWidth);
//InLog("料盘移栽" + MoveInfo.SLog + ":移栽伺服下降到P2:" + targetPositon + ",托盘号【" + currTrayNum + "】,获取库位号,更新托盘信息");
//UpdownAxis.AbsMove(MoveInfo, targetPositon, Config.UpdownAxis_P2Speed);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_24_CylinderDown
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_MoveCylinder_Up
,
IO_Type
.
SL_MoveCylinder_Down
);
if
(!
MoveInfo
.
ShelfNoTray
)
...
...
@@ -933,50 +933,32 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_25_CylinderRelax
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_26_CylinderUp
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_MoveCylinder_Down
,
IO_Type
.
SL_MoveCylinder_Up
);
if
(
IOValue
(
IO_Type
.
SL_AxisLocationCheck
).
Equals
(
IO_VALUE
.
LOW
)
&&
MoveInfo
.
ShelfNoTray
.
Equals
(
false
))
if
(
Config
.
SidesWayNum
.
Equals
(
1
))
{
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":上料横移机构上升,上料轴开始慢速上升到P3点,等待检测到料盘"
);
BatchAxisToP3
(
false
);
FI_27_CylinderUp
();
}
else
{
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":上料横移机构上升 "
);
}
if
(
Config
.
SidesWayNum
>
0
)
{
InLog
(
MoveInfo
.
SLog
+
" 提前下降顶升气缸 ,环形线定位气缸先下降"
);
CylinderMove
(
null
,
IO_Type
.
SW_LocationCylinder_Up
,
IO_Type
.
SW_LocationCylinder_Down
);
if
(
Config
.
SidesWayNum
.
Equals
(
1
))
{
Task
.
Factory
.
StartNew
(
delegate
{
//需要等待500再下降
Thread
.
Sleep
(
500
);
CylinderMove
(
null
,
IO_Type
.
SW_TopCylinder_Up
,
IO_Type
.
SW_TopCylinder_Down
);
});
}
}
else
{
InLog
(
MoveInfo
.
SLog
+
" 提前顶升下降, 顶升气缸下降)"
);
CylinderMove
(
null
,
IO_Type
.
FL_TopCylinder_Up
,
IO_Type
.
FL_TopCylinder_Down
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_26_WaitCylinderUp
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
300
));
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_26_CylinderUp
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_26_
Wait
CylinderUp
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_27_UpDownAxisToP1
);
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":升降伺服到P1点,托盘开始放行"
);
FI_27_CylinderUp
();
TrayMoveOk
();
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_27_CylinderUp
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_28_UpDownAxisToP1
);
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":升降伺服到P1点"
);
TrayMoveOk
(
true
);
UpdownAxis
.
AbsMove
(
MoveInfo
,
Config
.
UpDownAxisP1
,
Config
.
UpdownAxis_P1Speed
);
// SecondMoveInfo.NextMoveStep(LineMoveStep.MO_12_MoveOk);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_2
7
_UpDownAxisToP1
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_2
8
_UpDownAxisToP1
))
{
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":上料横移机构上升已到位 "
);
CheckHasTray
();
...
...
@@ -1062,6 +1044,44 @@ namespace OnlineStore.DeviceLibrary
#
endregion
}
private
void
FI_27_CylinderUp
()
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_27_CylinderUp
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_MoveCylinder_Down
,
IO_Type
.
SL_MoveCylinder_Up
);
if
(
IOValue
(
IO_Type
.
SL_AxisLocationCheck
).
Equals
(
IO_VALUE
.
LOW
)
&&
MoveInfo
.
ShelfNoTray
.
Equals
(
false
))
{
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":上料横移机构上升,上料轴开始慢速上升到P3点,等待检测到料盘"
);
BatchAxisToP3
(
false
);
}
else
{
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":上料横移机构上升 "
);
}
}
private
void
TrayPreMove
()
{
if
(
Config
.
SidesWayNum
>
0
)
{
InLog
(
MoveInfo
.
SLog
+
" 提前下降顶升气缸 ,环形线定位气缸先下降"
);
CylinderMove
(
null
,
IO_Type
.
SW_LocationCylinder_Up
,
IO_Type
.
SW_LocationCylinder_Down
);
if
(
Config
.
SidesWayNum
.
Equals
(
1
))
{
Task
.
Factory
.
StartNew
(
delegate
{
//需要等待500再下降
Thread
.
Sleep
(
500
);
CylinderMove
(
null
,
IO_Type
.
SW_TopCylinder_Up
,
IO_Type
.
SW_TopCylinder_Down
);
});
}
}
else
{
InLog
(
MoveInfo
.
SLog
+
" 提前顶升下降, 顶升气缸下降)"
);
CylinderMove
(
null
,
IO_Type
.
FL_TopCylinder_Up
,
IO_Type
.
FL_TopCylinder_Down
);
}
}
private
void
FI_21_BatchAxisDown
()
{
// MoveInfo.NextMoveStep(LineMoveStep.FI_21_BatchAxisDown);
...
...
source/DeviceLibrary/assemblyLine/FeedingEquip_OutStore.cs
查看文件 @
31f643d
...
...
@@ -466,7 +466,7 @@ namespace OnlineStore.DeviceLibrary
MoveEndS
();
// MoveInfo.NextMoveStep(LineMoveStep.FO_39_OutLineRun);
OutLog
(
"送出料串: "
+
MoveInfo
.
SLog
+
", 出口线体运转,料架到达出口处, 通知AGV取空料架, 出料结束"
);
AgvClient
.
NeedLeave
(
Config
.
AgvOutName
,
LastOutShelfId
,
Asa
.
ClientLevel
.
Low
);
AgvClient
.
NeedLeave
(
Config
.
AgvOutName
,
LastOutShelfId
,
Asa
.
ClientLevel
.
High
);
}
else
if
(
MoveInfo
.
MoveStep
>=
LineMoveStep
.
FO_211_AxisDownMove
&&
MoveInfo
.
MoveStep
<
LineMoveStep
.
FO_30_BatchAxisToP2
)
{
...
...
source/DeviceLibrary/model/StoreStep.cs
查看文件 @
31f643d
...
...
@@ -529,7 +529,7 @@ namespace OnlineStore.DeviceLibrary
///// </summary>
//FR_10_OutTopCylinder_Down = 10010,
#
endregion
#
region
入料装置入料处理,
11000
开始
...
...
@@ -669,21 +669,20 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 料盘移栽: 上料气缸放松
/// </summary>
FI_25_CylinderRelax
,
FI_25_CylinderRelax
,
/// <summary>
/// 料盘移栽: 上料横移机构上升
/// </summary>
FI_26_WaitCylinderUp
,
/// <summary>
/// 料盘移栽:上料横移机构上升,定位或者顶升可以先下降
/// </summary>
FI_2
6
_CylinderUp
,
FI_2
7
_CylinderUp
,
/// <summary>
/// 料盘移栽:升降伺服到P1点
/// </summary>
FI_27_UpDownAxisToP1
,
///// <summary>
///// 料盘移栽:上料横移机构到取料端
///// </summary>
//FI_23_MoveCylinder_Take = 11023,
FI_28_UpDownAxisToP1
,
/// <summary>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论