Import LinuxCNC source tree
This commit is contained in:
13
tests/interp/machine-coord-params/expected
Normal file
13
tests/interp/machine-coord-params/expected
Normal file
@@ -0,0 +1,13 @@
|
||||
N..... MESSAGE("0.000000 0.000000 0.000000")
|
||||
N..... MESSAGE("1.000000 2.000000 3.000000")
|
||||
N..... MESSAGE("0.000000 0.000000 0.000000")
|
||||
N..... MESSAGE("1.000000 2.000000 3.000000")
|
||||
N..... MESSAGE("0.000000 0.000000 0.000000")
|
||||
N..... MESSAGE("1.000000 2.000000 3.000000")
|
||||
N..... MESSAGE("0.000000 0.000000 0.000000")
|
||||
N..... MESSAGE("1.000000 2.000000 3.000000")
|
||||
N..... MESSAGE("0.000000 0.000000 0.000000")
|
||||
N..... MESSAGE("1.000000 2.000000 3.000000")
|
||||
N..... MESSAGE("1.000000 2.000000 3.000000")
|
||||
N..... MESSAGE("1.000000 1.000000")
|
||||
N..... MESSAGE("3.000000 3.000000")
|
||||
48
tests/interp/machine-coord-params/test.ngc
Normal file
48
tests/interp/machine-coord-params/test.ngc
Normal file
@@ -0,0 +1,48 @@
|
||||
; Verify #5021-#5029 (current absolute machine position) report the
|
||||
; commanded G53 location regardless of the active coordinate system,
|
||||
; G92/G52, coordinate rotation or tool length offset, and that the
|
||||
; numbered set matches the #<_abs_*> named parameters.
|
||||
|
||||
o<coords> sub
|
||||
g53 g0 x0 y0 z0
|
||||
(debug,#5021 #5022 #5023)
|
||||
g53 g0 x1 y2 z3
|
||||
(debug,#5021 #5022 #5023)
|
||||
o<coords> endsub
|
||||
|
||||
o<suite> sub
|
||||
g54
|
||||
g92.2
|
||||
g10 l2 p1 x0 y0 z0 r0
|
||||
o<coords> call
|
||||
|
||||
g10 l2 p1 x3 y7 z0 r0
|
||||
o<coords> call
|
||||
|
||||
g10 l2 p1 x0 y0 z0 r45
|
||||
o<coords> call
|
||||
|
||||
g10 l2 p1 x3 y7 z0 r45
|
||||
o<coords> call
|
||||
|
||||
g10 l2 p1 x0 y0 z0 r0
|
||||
g92 x3 y7
|
||||
o<coords> call
|
||||
g92.2
|
||||
o<suite> endsub
|
||||
|
||||
g21
|
||||
o<suite> call
|
||||
|
||||
; tool length offset must not change the machine position
|
||||
g43.1 z5
|
||||
g53 g0 x1 y2 z3
|
||||
(debug,#5021 #5022 #5023)
|
||||
g49
|
||||
|
||||
; numbered set agrees with the named set
|
||||
g53 g0 x1 y2 z3
|
||||
(debug,#5021 #<_abs_x>)
|
||||
(debug,#5023 #<_abs_z>)
|
||||
|
||||
m2
|
||||
3
tests/interp/machine-coord-params/test.sh
Normal file
3
tests/interp/machine-coord-params/test.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
rs274 -g test.ngc -t test.tbl | awk '/MESSAGE/ {$1=""; print}' | sed 's/-0\.0000/0.0000/g'
|
||||
exit "${PIPESTATUS[0]}"
|
||||
1
tests/interp/machine-coord-params/test.tbl
Normal file
1
tests/interp/machine-coord-params/test.tbl
Normal file
@@ -0,0 +1 @@
|
||||
t1 p1 x0 y0 z0
|
||||
Reference in New Issue
Block a user