按规划持续工作

This commit is contained in:
2026-06-09 06:13:28 +08:00
parent 902c6ecaea
commit 2658ee3b72
255 changed files with 12487 additions and 150 deletions

View File

@@ -0,0 +1 @@
Test that line numbers in external subs are correct

View File

@@ -0,0 +1,17 @@
1 N..... USE_LENGTH_UNITS(CANON_UNITS_MM)
2 N..... SET_G5X_OFFSET(1, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
3 N..... SET_G92_OFFSET(0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
4 N..... SET_XY_ROTATION(0.0000)
5 N..... SET_FEED_REFERENCE(CANON_XYZ)
6 N..... ON_RESET()
7 N..... MESSAGE("main: line=7.000000 - expect 7")
8 N..... MESSAGE(" in rm400.ngc line=2.000000 - expect 2")
9 N..... MESSAGE("main: line=9.000000 - expect 9")
10 N..... SET_G5X_OFFSET(1, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
11 N..... SET_XY_ROTATION(0.0000)
12 N..... SET_FEED_MODE(0, 0)
13 N..... SET_FEED_RATE(0.0000)
14 N..... STOP_SPINDLE_TURNING(0)
15 N..... SET_SPINDLE_MODE(0 0.0000)
16 N..... PROGRAM_END()
17 N..... ON_RESET()

View File

@@ -0,0 +1,5 @@
o<rm400> sub
(debug, in rm400.ngc line=#<_line> - expect 2)
o<rm400> endsub
m2
%

View File

@@ -0,0 +1,2 @@
[RS274NGC]
SUBROUTINE_PATH=.

View File

@@ -0,0 +1,10 @@
(debug,main: line=#<_line> - expect 7)
o<rm400>call
(debug,main: line=#<_line> - expect 9)
M2

View File

@@ -0,0 +1,2 @@
#!/bin/bash
exec rs274 -n 0 -i test.ini -g test.ngc