Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
SO815-AutoInOutStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
图表
网络
创建新的问题
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit a26aa0d0
由
几米阳光
编写于
2018-12-10 21:32:38 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
吸盘上升和轴上升分开动作
1 个父辈
ca04aead
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
21 行增加
和
14 行删除
source/DeviceLibrary/acSingleStore/AutomaticBaiting.cs
source/DeviceLibrary/store/StoreMoveStep.cs
source/DeviceLibrary/acSingleStore/AutomaticBaiting.cs
查看文件 @
a26aa0d
...
...
@@ -155,7 +155,7 @@ namespace OnlineStore.DeviceLibrary
if
(
IsNeedStartInout
)
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
AUTO_R03_AutoAxisHome
);
LogUtil
.
info
(
Name
+
"复位中:
匀速向上运动,检测
是否有料盘"
);
LogUtil
.
info
(
Name
+
"复位中:
需要批量入库,检测
是否有料盘"
);
ACAxisSpeedMove
(
StoreManager
.
Config
.
Batch_Axis
,
StoreManager
.
Config
.
Batch_Axis
.
TargetSpeed
);
}
else
...
...
@@ -259,9 +259,8 @@ namespace OnlineStore.DeviceLibrary
if
(
KND
.
IOValue
(
IO_Type
.
SuckingDisc_Air
).
Equals
(
IO_VALUE
.
HIGH
))
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
AUTO_I04_SuckingDisc_Up
);
LogUtil
.
info
(
Name
+
"入料: 吸盘上升,同时上料轴也上升"
);
CylinderMove
(
IO_Type
.
SuckingDisc_Up
,
IO_Type
.
SuckingDisc_Down
,
true
);
ACAxisSpeedMove
(
StoreManager
.
Config
.
Batch_Axis
,
StoreManager
.
Config
.
Batch_Axis
.
TargetSpeed
);
LogUtil
.
info
(
Name
+
"入料: 吸盘上升"
);
CylinderMove
(
IO_Type
.
SuckingDisc_Up
,
IO_Type
.
SuckingDisc_Down
,
true
);
}
else
if
(
SuckingDisc_WorkCount
<
3
)
{
...
...
@@ -272,8 +271,13 @@ namespace OnlineStore.DeviceLibrary
//TODO 报警
WarnMsg
=
"吸盘已经尝试三次,仍然吸不到物料!"
;
}
}
else
if
(
StoreMove
.
MoveStep
.
Equals
(
StoreMoveStep
.
AUTO_I04_SuckingDisc_Up
))
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
AUTO_I05_BatchAxisUp
);
LogUtil
.
info
(
Name
+
"入料: 批量上下料轴上升"
);
ACAxisSpeedMove
(
StoreManager
.
Config
.
Batch_Axis
,
StoreManager
.
Config
.
Batch_Axis
.
TargetSpeed
);
}
else
if
(
StoreMove
.
MoveStep
.
Equals
(
StoreMoveStep
.
AUTO_I0
4_SuckingDisc_
Up
))
else
if
(
StoreMove
.
MoveStep
.
Equals
(
StoreMoveStep
.
AUTO_I0
5_BatchAxis
Up
))
{
if
(
StoreManager
.
Store
.
CanStarInOut
())
{
...
...
@@ -286,7 +290,7 @@ namespace OnlineStore.DeviceLibrary
}
else
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
AUTO_I0
5
_GetPosId
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
AUTO_I0
6
_GetPosId
);
//计算高度
EndMovePosition
=
ACServerManager
.
GetActualtPosition
(
StoreManager
.
Config
.
Batch_Axis
.
DeviceName
,
StoreManager
.
Config
.
Batch_Axis
.
GetAxisValue
());
LastHeight
=
Math
.
Abs
(
EndMovePosition
-
StartMovePosition
)
/
AxisChangeValue
;
...
...
@@ -299,13 +303,12 @@ namespace OnlineStore.DeviceLibrary
}
}
}
else
if
(
StoreMove
.
MoveStep
.
Equals
(
StoreMoveStep
.
AUTO_I05_GetPosId
))
{
else
if
(
StoreMove
.
MoveStep
.
Equals
(
StoreMoveStep
.
AUTO_I06_GetPosId
))
{
//判断是否开始入库
if
(
StoreManager
.
Store
.
StoreMove
.
MoveType
.
Equals
(
StoreMoveType
.
InStore
)
||
(!
LastPosId
.
Equals
(
""
)))
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
AUTO_I0
6
_WaitTrayLeave
);
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
AUTO_I0
7
_WaitTrayLeave
);
LogUtil
.
info
(
Name
+
"入料: 开始入料【"
+
LastPosId
+
"】,等待料盘拿走"
);
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SuckingDisc_Air
,
IO_VALUE
.
LOW
));
}
...
...
@@ -317,7 +320,7 @@ namespace OnlineStore.DeviceLibrary
StoreManager
.
Store
.
StartInStoreMove
(
new
InOutStoreParam
(
""
,
posId
),
true
,
false
);
}
}
else
if
(
StoreMove
.
MoveStep
.
Equals
(
StoreMoveStep
.
AUTO_I0
6
_WaitTrayLeave
))
else
if
(
StoreMove
.
MoveStep
.
Equals
(
StoreMoveStep
.
AUTO_I0
7
_WaitTrayLeave
))
{
if
(
StoreManager
.
Store
.
StoreMove
.
MoveStep
>=
StoreMoveStep
.
SI_07_DeviceBackFromDoor
)
{
...
...
source/DeviceLibrary/store/StoreMoveStep.cs
查看文件 @
a26aa0d
...
...
@@ -416,19 +416,23 @@ namespace OnlineStore.DeviceLibrary
AUTO_I03_SuckingDisc_Work
,
/// <summary>
/// 吸盘上升 ,
同时上料轴也要上升
/// 吸盘上升 ,
/// </summary>
AUTO_I04_SuckingDisc_Up
,
/// <summary>
/// 批量上下料料轴上升
/// </summary>
AUTO_I05_BatchAxisUp
,
/// <summary>
/// 从服务器获取PosID
/// </summary>
AUTO_I0
5
_GetPosId
,
AUTO_I0
6
_GetPosId
,
/// <summary>
/// 等待料盘被叉子拿走
/// </summary>
AUTO_I0
6
_WaitTrayLeave
,
AUTO_I0
7
_WaitTrayLeave
,
/// <summary>
/// 未扫到码:等待操作人员拿走料盘
/// </summary>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论