Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
NS200
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
图表
网络
创建新的问题
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit efb8006c
由
张东亮
编写于
2025-09-11 10:06:54 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
计算盘高异常误认为放料失败问题
1 个父辈
e82ac874
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
DeviceLibrary/AutoScanAndLabel/MainMachine _LeftProcess.cs
DeviceLibrary/AutoScanAndLabel/MainMachine _LeftProcess.cs
查看文件 @
efb8006
...
@@ -62,7 +62,7 @@ namespace DeviceLibrary
...
@@ -62,7 +62,7 @@ namespace DeviceLibrary
if
(
enableCheck
)
if
(
enableCheck
)
{
{
var
aixH
=
1f
*
Math
.
Abs
(
_leftBatchAxisPositionWhileTrayCheck
-
curPos
)
/
Config
.
Left_Batch_ChangeValue
;
var
aixH
=
1f
*
Math
.
Abs
(
_leftBatchAxisPositionWhileTrayCheck
-
curPos
)
/
Config
.
Left_Batch_ChangeValue
;
int
plateH
=
PlwHight
/
Config
.
Right_Batch_ChangeValue
*
Config
.
Left_Batch_ChangeValue
;
int
plateH
=
PlwHight
/
Config
.
Right_Batch_ChangeValue
;
var
canErrorMM
=
ConfigHelper
.
Config
.
Get
(
"左侧料盘放料串检查厚度最大偏差值"
,
5
);
var
canErrorMM
=
ConfigHelper
.
Config
.
Get
(
"左侧料盘放料串检查厚度最大偏差值"
,
5
);
if
(
Math
.
Abs
(
aixH
-
plateH
)
<=
canErrorMM
)
if
(
Math
.
Abs
(
aixH
-
plateH
)
<=
canErrorMM
)
{
{
...
@@ -73,7 +73,7 @@ namespace DeviceLibrary
...
@@ -73,7 +73,7 @@ namespace DeviceLibrary
else
else
{
{
LeftMoveInfo
.
log
(
$
"料盘定位信号{IOValue(IO_Type.LeftTop_Check)},批量轴当前位置:{curPos},"
+
LeftMoveInfo
.
log
(
$
"料盘定位信号{IOValue(IO_Type.LeftTop_Check)},批量轴当前位置:{curPos},"
+
$
"上次位置{_leftBatchAxisPositionWhileTrayCheck},批量轴厚度{aixH},料盘厚度{plateH},允许的最大差值{canErrorMM}
.
"
+
$
"{Math.Abs(aixH - plateH)}>{canErrorMM},认为放料串失败"
);
$
"上次位置{_leftBatchAxisPositionWhileTrayCheck},批量轴厚度{aixH},料盘厚度{plateH},允许的最大差值{canErrorMM}
,
"
+
$
"{Math.Abs(aixH - plateH)}>{canErrorMM},认为放料串失败"
);
return
false
;
return
false
;
}
}
}
}
...
@@ -111,7 +111,7 @@ namespace DeviceLibrary
...
@@ -111,7 +111,7 @@ namespace DeviceLibrary
int
currpoint
=
Left_Batch_Axis
.
GetAclPosition
();
int
currpoint
=
Left_Batch_Axis
.
GetAclPosition
();
int
countPleHight
=
PlwHight
/
Config
.
Right_Batch_ChangeValue
*
Config
.
Left_Batch_ChangeValue
;
int
countPleHight
=
PlwHight
/
Config
.
Right_Batch_ChangeValue
*
Config
.
Left_Batch_ChangeValue
;
targetP1
=
currpoint
-
countPleHight
+
5000
;
targetP1
=
currpoint
-
countPleHight
+
5000
;
LeftMoveInfo
.
log
(
$
"出料提升机构,获取到料盘高度脉冲{PlwHight},当前位置{currpoint},计算盘高{countPleHight}"
);
LeftMoveInfo
.
log
(
$
"出料提升机构,获取到料盘高度脉冲{PlwHight},当前位置{currpoint},计算盘高{countPleHight
/ Config.Left_Batch_ChangeValue
}"
);
}
}
int
targetSpeed
=
Config
.
Left_Batch_P1_speed
;
int
targetSpeed
=
Config
.
Left_Batch_P1_speed
;
if
(
targetP1
<=
0
)
if
(
targetP1
<=
0
)
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论