Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
SO815-AutoInOutStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
图表
网络
创建新的问题
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 051c7bb6
由
LN
编写于
2020-06-26 19:43:24 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
上料改为绝对运动
1 个父辈
d95ac4c9
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
15 行增加
和
5 行删除
source/DeviceLibrary/acSingleStore/AutomaticBaiting.cs
source/DeviceLibrary/acSingleStore/AutomaticBaiting.cs
查看文件 @
051c7bb
...
...
@@ -552,7 +552,7 @@ namespace OnlineStore.DeviceLibrary
LastHeight
=
(
int
)
Math
.
Ceiling
(
1F
*
(
cha
)
/
AxisChangeValue
);
int
addHeight
=
0
;
//如果检测信号未亮,极限亮了,需要补充高
if
(
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_LoadMaterial
).
Equals
(
IO_VALUE
.
LOW
))
if
(
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_LoadMaterial
).
Equals
(
IO_VALUE
.
LOW
)
&&
BatchAxisInP3
()
)
{
addHeight
=
StoreManager
.
Config
.
LastTrayAddHeight
;
}
...
...
@@ -642,9 +642,10 @@ namespace OnlineStore.DeviceLibrary
else
{
//判断是否到达目标位置
int
targetP
=
ACServerManager
.
GetActualtPosition
(
StoreManager
.
Config
.
Batch_Axis
);
int
cha
=
Math
.
Abs
(
targetP
-
StoreManager
.
Config
.
BatchAxis_P3
);
if
(
cha
<
StoreManager
.
Config
.
Batch_Axis
.
CanErrorCountMax
)
//int targetP = ACServerManager.GetActualtPosition(StoreManager.Config.Batch_Axis);
//int cha = Math.Abs(targetP - StoreManager.Config.BatchAxis_P3);
//if (cha < StoreManager.Config.Batch_Axis.CanErrorCountMax)
if
(
BatchAxisInP3
())
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
AUTO_I11_BatchAxisHome
);
InStoreLog
(
" 批量轴到达P3,已经没有料盘,直接回待机点P2【"
+
StoreManager
.
Config
.
BatchAxis_P2
+
"】"
);
...
...
@@ -659,7 +660,16 @@ namespace OnlineStore.DeviceLibrary
}
}
private
static
bool
BatchAxisInP3
()
{
int
targetP
=
ACServerManager
.
GetActualtPosition
(
StoreManager
.
Config
.
Batch_Axis
);
int
cha
=
Math
.
Abs
(
targetP
-
StoreManager
.
Config
.
BatchAxis_P3
);
if
(
cha
<
StoreManager
.
Config
.
Batch_Axis
.
CanErrorCountMax
)
{
return
true
;
}
return
false
;
}
#
endregion
#
region
出库流程
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论