按源验证当前位置命名参数

This commit is contained in:
cnc
2026-06-06 08:51:20 +08:00
parent de5f28f7ee
commit 92562db29f
3 changed files with 50 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
G21 G90 G17
(Source basis: LinuxCNC src/emc/rs274ngc/interp_namedparams.cc maps readonly #<_x> through #<_w> aliases to current X/Y/Z/A/B/C/U/V/W positions.)
F100
G1 X1 Y2 Z3 A4 B5 C6 U7 V8 W9
O10 if [[#<_x> EQ 1] AND [#<_y> EQ 2] AND [#<_z> EQ 3] AND [#<_a> EQ 4] AND [#<_b> EQ 5] AND [#<_c> EQ 6] AND [#<_u> EQ 7] AND [#<_v> EQ 8] AND [#<_w> EQ 9]]
G1 X10
O10 endif
M30