按规划持续工作
This commit is contained in:
3
wasm-port/vendor/linuxcnc/tests/remap/posargs.0/README
vendored
Normal file
3
wasm-port/vendor/linuxcnc/tests/remap/posargs.0/README
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
Exercise passing positional parameters to an NGC remap procedure
|
||||
|
||||
Verify ordering and argument count
|
||||
18
wasm-port/vendor/linuxcnc/tests/remap/posargs.0/expected
vendored
Normal file
18
wasm-port/vendor/linuxcnc/tests/remap/posargs.0/expected
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
N..... USE_LENGTH_UNITS(CANON_UNITS_MM)
|
||||
N..... SET_G5X_OFFSET(1, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_G92_OFFSET(0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(0.0000)
|
||||
N..... SET_FEED_REFERENCE(CANON_XYZ)
|
||||
N..... ON_RESET()
|
||||
N..... MESSAGE(" in rg881: n_args=3.000000 [1.000000] [2.000000] [3.000000] [0.000000] [0.000000]")
|
||||
N..... MESSAGE(" in rg881: n_args=4.000000 [1.000000] [2.000000] [3.000000] [4.000000] [0.000000]")
|
||||
N..... MESSAGE(" in rg881: n_args=4.000000 [1.000000] [2.000000] [3.000000] [5.000000] [0.000000]")
|
||||
N..... MESSAGE(" in rg881: n_args=5.000000 [1.000000] [2.000000] [3.000000] [4.000000] [5.000000]")
|
||||
N..... SET_G5X_OFFSET(1, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(0.0000)
|
||||
N..... SET_FEED_MODE(0, 0)
|
||||
N..... SET_FEED_RATE(0.0000)
|
||||
N..... STOP_SPINDLE_TURNING(0)
|
||||
N..... SET_SPINDLE_MODE(0 0.0000)
|
||||
N..... PROGRAM_END()
|
||||
N..... ON_RESET()
|
||||
5
wasm-port/vendor/linuxcnc/tests/remap/posargs.0/rg881.ngc
vendored
Normal file
5
wasm-port/vendor/linuxcnc/tests/remap/posargs.0/rg881.ngc
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
o<rg881> sub
|
||||
(debug, in rg881: n_args=#<n_args> [#1] [#2] [#3] [#4] [#5])
|
||||
o<rg881> endsub
|
||||
m2
|
||||
%
|
||||
9
wasm-port/vendor/linuxcnc/tests/remap/posargs.0/test.ini
vendored
Normal file
9
wasm-port/vendor/linuxcnc/tests/remap/posargs.0/test.ini
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
[EMC]
|
||||
DEBUG=0
|
||||
LOG_LEVEL=0
|
||||
|
||||
[RS274NGC]
|
||||
SUBROUTINE_PATH = .
|
||||
OWORD_NARGS = 1
|
||||
|
||||
REMAP=G88.1 modalgroup=1 argspec=@XYZpq ngc=rg881
|
||||
7
wasm-port/vendor/linuxcnc/tests/remap/posargs.0/test.ngc
vendored
Normal file
7
wasm-port/vendor/linuxcnc/tests/remap/posargs.0/test.ngc
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
G88.1 X1 Y2 Z3
|
||||
; NB: with positional argument calling it is impossible to tell which
|
||||
; one of several optional parameters was passed!
|
||||
G88.1 X1 Y2 Z3 P4
|
||||
G88.1 X1 Y2 Z3 Q5
|
||||
G88.1 X1 Y2 Z3 P4 Q5
|
||||
M2
|
||||
3
wasm-port/vendor/linuxcnc/tests/remap/posargs.0/test.sh
vendored
Executable file
3
wasm-port/vendor/linuxcnc/tests/remap/posargs.0/test.sh
vendored
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
rs274 -i test.ini -n 0 -g test.ngc| awk '{$1=""; print}'
|
||||
exit "${PIPESTATUS[0]}"
|
||||
Reference in New Issue
Block a user