按规划持续工作

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,5 @@
named parameters can now reference INI variables; they are retrieved on demand and
cached as global read-only parameters.
Syntax: #<_ini[section]name>

View File

@@ -0,0 +1,13 @@
executing
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..... STRAIGHT_TRAVERSE(10.0000, 20.0000, 30.0000, 0.0000, 0.0000, 0.0000)
8 N..... MESSAGE(" position now: 10.000000 20.000000 30.000000")
9 N..... MESSAGE(" not in INI: ######")
Named parameter #<_ini[nosuchsection]nosuchname> not defined
#4711 = #<_iNI[nosuchsection]nosuchname>
10 N..... ON_RESET()

View File

@@ -0,0 +1,12 @@
[EMC]
DEBUG=0
LOG_LEVEL=0
[RS274NGC]
INI_VARS = 1
[VARS]
TOOLCHANGE_X = 10
TOOLCHANGE_Y = 20
TOOLCHANGE_Z = 30

View File

@@ -0,0 +1,9 @@
G53 G0 x#<_ini[vars]toolchange_x> y#<_InI[vars]toolchange_y> z#<_INi[vars]toolchange_z>
(debug, position now: #<_x> #<_y> #<_z>)
(debug, not in INI: #<_iNi[nosuchsection]nosuchname>)
; now fail referencing an undefined INI variable:
#4711 = #<_iNI[nosuchsection]nosuchname>
M2

View File

@@ -0,0 +1,5 @@
#!/bin/bash
export PYTHONUNBUFFERED=1
rs274 -i test.ini -g test.ngc 2>&1
# this is expected to fail on the undefined INI var
exit 0