按源修正外部单位换算

结论:依据 LinuxCNC emccanon.cc 与 units.h,GET_EXTERNAL_LENGTH_UNITS 返回 user-units-per-mm 而非当前程序单位;新增 G20/G21 后 G92.3 恢复覆盖,native/source-link/test-native 均通过。
This commit is contained in:
cnc
2026-06-06 08:26:21 +08:00
parent ccd51ff373
commit 25cb6885bf
4 changed files with 70 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
G20 G90 G17
(Source basis: LinuxCNC src/emc/rs274ngc/interp_convert.cc convert_length_units rescales G92 axis offsets, and convert_axis_offsets restores #5211-#5219 through USER_TO_PROGRAM_LEN and USER_TO_PROGRAM_ANG on G92.3.)
G92 X1 Y2 Z3 A4 B5 C6
G21
G92.2
G92.3
M30