Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
SO815-AutoInOutStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
图表
网络
创建新的问题
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 43a11e56
由
LN
编写于
2019-11-11 17:24:01 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
4fb84a47
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
10 行增加
和
7 行删除
source/DeviceLibrary/DeviceLibrary/PanasonicServo/BatchAxisController.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
source/DeviceLibrary/DeviceLibrary/PanasonicServo/BatchAxisController.cs
查看文件 @
43a11e5
...
...
@@ -23,7 +23,7 @@ namespace OnlineStore.DeviceLibrary
{
checkTimer
=
new
System
.
Timers
.
Timer
();
checkTimer
.
AutoReset
=
true
;
checkTimer
.
Interval
+=
49
;
checkTimer
.
Interval
+=
20
;
checkTimer
.
Elapsed
+=
CheckTimer_Elapsed
;
checkTimer
.
Enabled
=
false
;
}
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
查看文件 @
43a11e5
...
...
@@ -846,9 +846,12 @@ namespace OnlineStore.DeviceLibrary
if
(
StoreMove
.
IsBatchInOutStore
)
{
//如果料盘检测信号不亮,不需要下降这么多
if
(
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_LoadMaterial
).
Equals
(
IO_VALUE
.
LOW
)
&&
outDownPosition
>
Config
.
BatchAxis_OutDownPosition
)
//判断是否在P1点
int
acPosition
=
ACServerManager
.
GetActualtPosition
(
Config
.
Batch_Axis
);
bool
isIn
=
Math
.
Abs
(
acPosition
-
Config
.
BatchAxis_P1
)
<
Config
.
Batch_Axis
.
CanErrorCountMax
;
if
(
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_LoadMaterial
).
Equals
(
IO_VALUE
.
LOW
)
&&
outDownPosition
>
Config
.
BatchAxis_OutDownPosition
&&
isIn
)
{
outDownPosition
=
outDownPosition
-
Config
.
BatchAxis_OutDownPosition
;
outDownPosition
=
outDownPosition
-
Config
.
BatchAxis_OutDownPosition
;
}
//上下料机构下降的距离=料盘最低高度+默认的高度
targetValue
=
GetBatchTargetValue
(
outDownPosition
);
...
...
@@ -873,17 +876,17 @@ namespace OnlineStore.DeviceLibrary
}
OutStoreLog
(
"出库:SO_03 走到库位,压紧轴至P3(压紧前点) ,旋转轴至P2(库位点),升降轴至P5(库位出库前点)"
);
ComMoveToPosition
(
moveP
.
ComPress_P3
,
Config
.
CompAxis_P3_Speed
);
ComMoveToPosition
(
moveP
.
ComPress_P3
,
Config
.
CompAxis_P3_Speed
);
ACAxisMove
(
Config
.
Middle_Axis
,
StoreMove
.
MoveParam
.
MoveP
.
Middle_P2
,
Config
.
MiddleAxis_P2_Speed
);
ACAxisMove
(
Config
.
UpDown_Axis
,
StoreMove
.
MoveParam
.
MoveP
.
UpDown_P5
,
Config
.
UpDownAxis_P5_Speed
);
Thread
.
Sleep
(
100
);
if
(
BatchNeedMove
)
{
{
StoreMove
.
TimeOutSeconds
=
120
;
Thread
.
Sleep
(
1000
);
ACAxisMove
(
Config
.
Batch_Axis
,
targetValue
,
Config
.
BatchAxis_P1_Speed
);
OutStoreLog
(
"出库:SO_03 批量轴下降【"
+
outDownPosition
+
"】目标【"
+
targetValue
+
"】 "
);
Thread
.
Sleep
(
100
);
Thread
.
Sleep
(
100
);
}
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_03_ToBagPosition
)
...
...
@@ -969,7 +972,7 @@ namespace OnlineStore.DeviceLibrary
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_21_OpenDoor
);
OutStoreLog
(
"出库:SO_21打开仓门,压紧轴至P3(压紧前点),定位气缸下降"
);
ComMoveToPosition
(
StoreMove
.
MoveParam
.
MoveP
.
ComPress_P3
,
Config
.
CompAxis_P3_Speed
);
ComMoveToPosition
(
StoreMove
.
MoveParam
.
MoveP
.
ComPress_P3
,
Config
.
CompAxis_P3_Speed
);
OpenDoorAndWait
();
LocationDownAndWait
();
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论