刀具日志增强与PCB钻孔数据大规模更新

本次提交包含以下主要变更:

- 增强了刀具类型、尾号类型及最小直径计算的调试日志,便于问题追踪和数据分析。
- 修正了最小槽刀直径的计算逻辑,EA型槽刀单独处理,提升了判定准确性。
- 针对特殊直径的刀具类型判定增加了专门处理和日志输出。
- 删除了 General_sort.txt 和 s40024079g0-a2-cs-jp-sort.txt 文件内容。
- n40032386g0-a2-cs-jp.drl 文件新增了大量PCB钻孔、槽孔(G85)、外形轮廓等数控加工数据,完善了刀具分组与程序控制指令,满足PCB生产自动化需求。
This commit is contained in:
2025-12-31 15:09:14 +08:00
parent 6361f17598
commit 5e8b989add
6 changed files with 19470 additions and 98 deletions

View File

@@ -220,6 +220,7 @@ namespace DrillTools
Math.Abs(diameter - 3.175) < 0.001 ||
Math.Abs(diameter - 0.499) < 0.001)
{
System.Diagnostics.Debug.WriteLine($"[尾号类型判断] 直径={diameter:F3}: 特殊孔径,尾号类型=钻针");
return ToolSuffixType.Drill; // 固定为圆孔
}
@@ -230,7 +231,7 @@ namespace DrillTools
char lastChar = diameterStr[diameterStr.Length - 1];
int suffix = int.Parse(lastChar.ToString());
return suffix switch
var suffixType = suffix switch
{
0 => ToolSuffixType.Drill,
1 => ToolSuffixType.Slot,
@@ -244,8 +245,12 @@ namespace DrillTools
9 => ToolSuffixType.Drill,
_ => ToolSuffixType.NonStandard
};
System.Diagnostics.Debug.WriteLine($"[尾号类型判断] 直径={diameter:F3}, 字符串={diameterStr}, 尾号={suffix}, 尾号类型={suffixType}");
return suffixType;
}
System.Diagnostics.Debug.WriteLine($"[尾号类型判断] 直径={diameter:F3}: 格式异常,尾号类型=非标刀");
return ToolSuffixType.NonStandard; // 默认为非标刀
}