Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
SO815-AutoInOutStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
图表
网络
创建新的问题
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 83c2c13c
由
LN
编写于
2019-10-17 09:14:34 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
测高修改。
1 个父辈
030ca6f6
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
25 行增加
和
24 行删除
source/DeviceLibrary/acSingleStore/AutomaticBaiting.cs
source/DeviceLibrary/acSingleStore/AutomaticBaiting.cs
查看文件 @
83c2c13
...
@@ -533,7 +533,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -533,7 +533,8 @@ namespace OnlineStore.DeviceLibrary
{
{
EndMovePosition
=
ACServerManager
.
GetActualtPosition
(
StoreManager
.
Config
.
Batch_Axis
);
EndMovePosition
=
ACServerManager
.
GetActualtPosition
(
StoreManager
.
Config
.
Batch_Axis
);
}
}
LastHeight
=
(
int
)
Math
.
Ceiling
(
1F
*
(
EndMovePosition
-
StartMovePosition
)
/
AxisChangeValue
);
int
cha
=
EndMovePosition
-
StartMovePosition
;
LastHeight
=
(
int
)
Math
.
Ceiling
(
1F
*
(
cha
)
/
AxisChangeValue
);
int
addHeight
=
0
;
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
))
...
@@ -541,36 +542,36 @@ namespace OnlineStore.DeviceLibrary
...
@@ -541,36 +542,36 @@ namespace OnlineStore.DeviceLibrary
addHeight
=
StoreManager
.
Config
.
LastTrayAddHeight
;
addHeight
=
StoreManager
.
Config
.
LastTrayAddHeight
;
}
}
LastHeight
+=
addHeight
;
LastHeight
+=
addHeight
;
string
msg
=
Name
+
" 计算盘高:
上升前【"
+
StartMovePosition
+
"】实时【"
+
EndMovePosition
+
"】补充【"
+
addHeight
+
"】计算后【"
+
LastHeight
+
"】"
;
string
msg
=
Name
+
" 计算盘高:
脉冲值 ["
+
EndMovePosition
+
"-"
+
StartMovePosition
+
"]=["
+
cha
+
"] ,补充["
+
addHeight
+
"]计算后["
+
LastHeight
+
"]"
;
if
(
LastHeight
<
0
)
if
(
LastHeight
<
0
)
{
{
LastHeight
=
StoreManager
.
Config
.
GetDefaultHeight
();
LastHeight
=
StoreManager
.
Config
.
GetDefaultHeight
();
}
}
if
(
StoreManager
.
Config
.
Default_TrayWidth
.
Equals
(
7
))
//if (StoreManager.Config.Default_TrayWidth.Equals(7))
{
//{
//高度=8的料盘容易被测成12的,判断如果计算的高度<12都认为是8mm,
//高度=8的料盘容易被测成12的,判断如果计算的高度<12都认为是8mm,
if
(
LastHeight
>=
20
)
//if (LastHeight >= 20)
{
//{
LastHeight
=
24
;
// LastHeight = 24;
}
//}
else
if
(
LastHeight
>=
12
)
//else if (LastHeight >= 12)
{
//{
LastHeight
=
12
;
// LastHeight = 12;
}
//}
else
//else
{
//{
LastHeight
=
8
;
// LastHeight = 8;
}
//}
}
//}
//else
//{
if
(
LastHeight
<=
8
)
{
LastHeight
=
8
;
}
else
else
{
{
if
(
LastHeight
<=
8
)
{
LastHeight
=
8
;
}
LastHeight
=
(
int
)
Math
.
Floor
(
1F
*
LastHeight
/
4
)
*
4
;
else
{
LastHeight
=
(
int
)
Math
.
Ceiling
(
1F
*
LastHeight
/
4
)
*
4
;
}
}
}
LogUtil
.
info
(
msg
+
",归类为"
+
LastHeight
);
//}
LogUtil
.
info
(
msg
+
",归类为"
+
LastHeight
);
return
LastHeight
;
return
LastHeight
;
}
}
private
static
List
<
AutoStorePosition
>
AllPosList
=
null
;
private
static
List
<
AutoStorePosition
>
AllPosList
=
null
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论