Commit efb8006c 张东亮

计算盘高异常误认为放料失败问题

1 个父辈 e82ac874
......@@ -62,7 +62,7 @@ namespace DeviceLibrary
if (enableCheck)
{
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);
if (Math.Abs(aixH - plateH) <= canErrorMM)
{
......@@ -73,7 +73,7 @@ namespace DeviceLibrary
else
{
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;
}
}
......@@ -111,7 +111,7 @@ namespace DeviceLibrary
int currpoint = Left_Batch_Axis.GetAclPosition();
int countPleHight = PlwHight / Config.Right_Batch_ChangeValue * Config.Left_Batch_ChangeValue;
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;
if (targetP1 <= 0)
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!