Commit 244838bf 张东亮

开放出库料盘厚度检测参数

1 个父辈 9734331e
...@@ -47,7 +47,7 @@ namespace OnlineStore.Common ...@@ -47,7 +47,7 @@ namespace OnlineStore.Common
#region 料盘高度计算参数 #region 料盘高度计算参数
[MyConfigComment("启用自定义厚度计算策略")] [MyConfigComment("启用自定义厚度计算策略")]
public static MyConfig<bool> Switch_UseCustHeightList = true; public static MyConfig<bool> Switch_UseCustHeightList = false;
/// <summary> /// <summary>
/// 宽度15料盘,厚度自减mm /// 宽度15料盘,厚度自减mm
/// </summary> /// </summary>
...@@ -63,5 +63,12 @@ namespace OnlineStore.Common ...@@ -63,5 +63,12 @@ namespace OnlineStore.Common
[MyConfigComment("自定义厚度列表")] [MyConfigComment("自定义厚度列表")]
public static MyConfig<string[]> Param_CalHeight_HeightList = new string[] { "12=12#16", "16=16#24", "24=24#32", "32=32#44", "44=44#56", "56=56#60" }; public static MyConfig<string[]> Param_CalHeight_HeightList = new string[] { "12=12#16", "16=16#24", "24=24#32", "32=32#44", "44=44#56", "56=56#60" };
#endregion #endregion
[MyConfigComment("出库厚度检测下偏差的值")]
public static MyConfig<int> OutstoreHeightCheckLowerDeviation = 5;
[MyConfigComment("出库厚度检测上偏差的值")]
public static MyConfig<int> OutstoreHeightCheckUpperDeviation = 3;
[MyConfigComment("出库料盘定位信号对射触发位置高度偏差")]
public static MyConfig<int> ReelCheckTriggerDeviation = 5;
} }
} }
...@@ -387,12 +387,14 @@ namespace DeviceLibrary ...@@ -387,12 +387,14 @@ namespace DeviceLibrary
var heightcheck = (LastOutDownPosition - Batch_Axis.GetAclPosition()) / Config.Batch_PoToMM; var heightcheck = (LastOutDownPosition - Batch_Axis.GetAclPosition()) / Config.Batch_PoToMM;
StringMoveInfo.log($"LastOutDownPosition={LastOutDownPosition},CurrentPosition={Batch_Axis.GetAclPosition()},heightcheck={heightcheck}"); StringMoveInfo.log($"LastOutDownPosition={LastOutDownPosition},CurrentPosition={Batch_Axis.GetAclPosition()},heightcheck={heightcheck}");
int height = StringMoveInfo.MoveParam.PlateH + 3; int height = StringMoveInfo.MoveParam.PlateH + 3;
if (heightcheck <= 5) int outstoreHeightCheckLowDevia = Setting_Init.OutstoreHeightCheckLowerDeviation;
int outstoreHeightCheckUpDevia = Setting_Init.OutstoreHeightCheckUpperDeviation;
if (heightcheck <= Setting_Init.ReelCheckTriggerDeviation)
{ {
Msg.add(crc.GetString(L.outstore_abnormal_reel, "出库时料盘未成功放入料串,请检查"), MsgLevel.alarm); Msg.add(crc.GetString(L.outstore_abnormal_reel, "出库时料盘未成功放入料串,请检查"), MsgLevel.alarm);
RobotManage.UserPause(crc.GetString(L.outstore_abnormal_reel, "出库时料盘未成功放入料串,请检查")); RobotManage.UserPause(crc.GetString(L.outstore_abnormal_reel, "出库时料盘未成功放入料串,请检查"));
} }
else if ((heightcheck < height - 3) || (heightcheck > height + 3)) else if ((heightcheck < height - outstoreHeightCheckLowDevia) || (heightcheck > height + outstoreHeightCheckUpDevia))//
{ {
Msg.add(crc.GetString(L.outstore_abnormal_reel, "出库时料盘未成功放入料串,请检查"), MsgLevel.alarm); Msg.add(crc.GetString(L.outstore_abnormal_reel, "出库时料盘未成功放入料串,请检查"), MsgLevel.alarm);
RobotManage.UserPause(crc.GetString(L.outstore_abnormal_reel, "出库时料盘未成功放入料串,请检查")); RobotManage.UserPause(crc.GetString(L.outstore_abnormal_reel, "出库时料盘未成功放入料串,请检查"));
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!