Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 794fac15
由
LN
编写于
2020-03-14 11:59:45 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
>30高的托盘处理修改
1 个父辈
4ba25353
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
45 行增加
和
15 行删除
dll/CodeLibrary.dll
source/AssemblyLineClient/记录.txt
source/DeviceLibrary/assemblyLine/DischargeLine.cs
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
source/DeviceLibrary/assemblyLine/ProvidingEquip_Partial.cs
dll/CodeLibrary.dll
查看文件 @
794fac1
此文件类型无法预览
source/AssemblyLineClient/记录.txt
查看文件 @
794fac1
...
...
@@ -298,8 +298,9 @@ IO_Value增加None的定义,防止误操作
上料1模块,等待500ms再下降顶升气缸
20200313
进仓模块:高度大于30的盘,出库时托盘先不顶升,待料盘到达托盘上方后,顶升再上升。
出料机构:如果是7寸盘
...
...
source/DeviceLibrary/assemblyLine/DischargeLine.cs
查看文件 @
794fac1
...
...
@@ -76,7 +76,11 @@ namespace OnlineStore.DeviceLibrary
{
return
false
;
}
if
(
IOValue
(
IO_Type
.
DLine_SuddenStop
).
Equals
(
IO_VALUE
.
LOW
))
{
SetWarnMsg
(
Name
+
"启动失败:急停未开"
);
return
false
;
}
mainTimer
.
Stop
();
MoveInfo
.
EndMove
();
SecondMoveInfo
.
EndMove
();
...
...
@@ -98,6 +102,15 @@ namespace OnlineStore.DeviceLibrary
/// </summary>
public
override
bool
Reset
()
{
if
(
CanStartRun
().
Equals
(
false
))
{
return
false
;
}
if
(
IOValue
(
IO_Type
.
DLine_SuddenStop
).
Equals
(
IO_VALUE
.
LOW
))
{
SetWarnMsg
(
Name
+
"复位失败:急停未开"
);
return
false
;
}
StopMove
();
runStatus
=
LineRunStatus
.
Reset
;
MoveInfo
.
NewMove
(
LineMoveType
.
Reset
);
...
...
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
查看文件 @
794fac1
...
...
@@ -139,7 +139,7 @@ namespace OnlineStore.DeviceLibrary
int
trayNum
=
SecondMoveInfo
.
MoveParam
.
TrayNumber
;
//去掉直接丢盘处理
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_58_CylinderDown
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 夹具检测编码完成, 上下气缸下降 ,更新料盘位置【"
+
MoveInfo
.
MoveParam
.
WareCode
+
"】【INLINE】【"
+
trayNum
+
"】"
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 夹具检测编码完成, 上下气缸下降 ,更新料盘位置【"
+
MoveInfo
.
MoveParam
.
WareCode
+
"】【INLINE】【"
+
trayNum
+
"】
,顶升气缸上升
"
);
if
(
MoveInfo
.
MoveParam
!=
null
)
{
MoveInfo
.
MoveParam
.
TrayNumber
=
trayNum
;
...
...
@@ -152,6 +152,7 @@ namespace OnlineStore.DeviceLibrary
//更新料盘位置
SServerManager
.
UpdateTrayLoc
(
Name
,
MoveInfo
.
MoveParam
.
WareCode
,
LocStatus
.
INLINE
,
"E"
+
trayNum
.
ToString
().
PadLeft
(
2
,
'0'
));
UpdownDownP2Move
(
MoveInfo
.
MoveParam
.
PlateH
,
MoveInfo
.
MoveParam
.
PlateW
);
CylinderMove
(
MoveInfo
,
IO_Type
.
TopCylinder_Down
,
IO_Type
.
TopCylinder_UP
);
}
//}
//else if (MoveInfo.IsTimeOut(180))
...
...
@@ -262,9 +263,10 @@ namespace OnlineStore.DeviceLibrary
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MI_05_ToLineUp
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_06_CylinderDown
);
InLog
(
"入库 "
+
MoveInfo
.
SLog
+
": 升降下降"
);
InLog
(
"入库 "
+
MoveInfo
.
SLog
+
": 升降下降
,顶升上升
"
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
200
));
UpdownDownP2Move
(
MoveInfo
.
MoveParam
.
PlateH
,
MoveInfo
.
MoveParam
.
PlateW
);
CylinderMove
(
MoveInfo
,
IO_Type
.
TopCylinder_Down
,
IO_Type
.
TopCylinder_UP
);
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MI_06_CylinderDown
))
{
...
...
@@ -429,7 +431,7 @@ namespace OnlineStore.DeviceLibrary
/// <param name="currMoveTrayNum"></param>
/// <returns></returns>
private
bool
CheckIsNeedOutStore
()
{
{
if
(
currTrayNum
<=
0
)
{
return
false
;
...
...
@@ -441,7 +443,7 @@ namespace OnlineStore.DeviceLibrary
&&
(!
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_60_CylinderUp
)))
{
if
(
isFull
.
Equals
(
false
))
{
{
LogInfo
(
" 出库中,拦截空托盘【 "
+
currTrayNum
+
"】~"
);
return
true
;
}
...
...
@@ -620,7 +622,7 @@ namespace OnlineStore.DeviceLibrary
//判断是否需要顶升
bool
isNeed
=
false
;
UpdateTrayNum
();
bool
isFull
=
TrayManager
.
TrayIsFull
(
currTrayNum
);
bool
isFull
=
TrayManager
.
TrayIsFull
(
currTrayNum
);
if
(
TrayManager
.
RightTrayCode
(
currTrayNum
,
preTrayNum
,
false
))
{
//出库中,需要拦盘
...
...
@@ -666,9 +668,17 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_05_WaitTime
))
{
//如果是出库,且盘高大于30,暂不顶升
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_06_TopUp
);
CheckLog
(
"托盘阻挡"
+
SecondMoveInfo
.
SLog
+
" 顶升气缸上 升 )"
);
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
TopCylinder_Down
,
IO_Type
.
TopCylinder_UP
);
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
OutStore
)
&&
MoveInfo
.
MoveParam
.
PlateH
>=
30
)
{
CheckLog
(
"托盘阻挡"
+
SecondMoveInfo
.
SLog
+
" 出库托盘,高度>30,暂不顶升上升"
);
}
else
{
CheckLog
(
"托盘阻挡"
+
SecondMoveInfo
.
SLog
+
" 顶升气缸上 升 )"
);
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
TopCylinder_Down
,
IO_Type
.
TopCylinder_UP
);
}
}
else
if
(
SecondMoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MIO_06_TopUp
))
{
...
...
source/DeviceLibrary/assemblyLine/ProvidingEquip_Partial.cs
查看文件 @
794fac1
...
...
@@ -112,7 +112,7 @@ namespace OnlineStore.DeviceLibrary
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_14_TopDown
);
if
(
Config
.
SidesWayNum
<=
0
)
{
if
(
CylinderIsOk
(
IO_Type
.
TopCylinder_UP
,
IO_Type
.
TopCylinder_Down
))
if
(
!
CylinderIsOk
(
IO_Type
.
TopCylinder_UP
,
IO_Type
.
TopCylinder_Down
))
{
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
TopCylinder_UP
,
IO_Type
.
TopCylinder_Down
);
}
...
...
@@ -482,7 +482,11 @@ namespace OnlineStore.DeviceLibrary
OutLog
(
"出料 "
+
MoveInfo
.
SLog
+
" : 上下气缸上升,皮带线准备出料"
);
UpdownUpMove
();
StartLineOut
(
MoveInfo
.
MoveParam
);
if
(
Config
.
SidesWayNum
<=
0
)
if
(
MoveInfo
.
MoveParam
.
PlateW
.
Equals
(
7
))
{
MO_14_TopCylinder_Down
();
}
else
if
(
Config
.
SidesWayNum
<=
0
)
{
CylinderMove
(
null
,
IO_Type
.
TopCylinder_UP
,
IO_Type
.
TopCylinder_Down
);
}
...
...
@@ -494,9 +498,11 @@ namespace OnlineStore.DeviceLibrary
LogInfo
(
"出料 【"
+
posId
+
"】"
+
MoveInfo
.
SLog
+
" 更新托盘【"
+
num
+
"】为空"
);
// MoveInfo.WaitList.Add(WaitResultInfo.WaitProvidingEquipCanOut());
TrayManager
.
UpdateTrayInfo
(
num
);
//阻挡气缸移动
MO_14_TopCylinder_Down
();
if
(
SecondMoveInfo
.
MoveStep
<
LineMoveStep
.
MO_14_TopDown
)
{
//阻挡气缸移动
MO_14_TopCylinder_Down
();
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_05_WaitBox
))
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论