按规划持续工作
This commit is contained in:
28
wasm-port/vendor/linuxcnc/tests/interp/rotation/abs-pts/expected
vendored
Normal file
28
wasm-port/vendor/linuxcnc/tests/interp/rotation/abs-pts/expected
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
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("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("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")
|
||||
48
wasm-port/vendor/linuxcnc/tests/interp/rotation/abs-pts/test.ngc
vendored
Normal file
48
wasm-port/vendor/linuxcnc/tests/interp/rotation/abs-pts/test.ngc
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
; Repeatedly move to 0,0,0 and 1,2,3 in machine coordinates,
|
||||
; but with different offsets in effect; check that in each case,
|
||||
; the values in #544x match the just-commanded g53 move
|
||||
o<coords> sub
|
||||
g53g0x0y0z0
|
||||
(debug,#<_abs_x> #<_abs_y> #<_abs_z>)
|
||||
g53g0x1y2z3
|
||||
(debug,#<_abs_x> #<_abs_y> #<_abs_z>)
|
||||
o<coords> endsub
|
||||
|
||||
o<suite> sub
|
||||
g54
|
||||
g92.2
|
||||
g10l2p1x0y0z0r0
|
||||
o<coords> call
|
||||
|
||||
g10l2p1x3y7z0r0
|
||||
o<coords> call
|
||||
|
||||
g10l2p1x0y0r45
|
||||
o<coords> call
|
||||
|
||||
g10l2p1x3y7z0r45
|
||||
o<coords> call
|
||||
|
||||
g10l2p1x0y0z0r0
|
||||
g92x3y7
|
||||
o<coords> call
|
||||
g92.2
|
||||
|
||||
g10l2p1x3y7z0r0
|
||||
g92x3y7
|
||||
o<coords> call
|
||||
g92.2
|
||||
|
||||
g10l2p1x3y7z0r45
|
||||
g92x3y7
|
||||
o<coords> call
|
||||
g92.2
|
||||
o<suite> endsub
|
||||
|
||||
g20
|
||||
o<suite> call
|
||||
|
||||
g21
|
||||
o<suite> call
|
||||
|
||||
m2
|
||||
3
wasm-port/vendor/linuxcnc/tests/interp/rotation/abs-pts/test.sh
vendored
Normal file
3
wasm-port/vendor/linuxcnc/tests/interp/rotation/abs-pts/test.sh
vendored
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
wasm-port/vendor/linuxcnc/tests/interp/rotation/abs-pts/test.tbl
vendored
Normal file
1
wasm-port/vendor/linuxcnc/tests/interp/rotation/abs-pts/test.tbl
vendored
Normal file
@@ -0,0 +1 @@
|
||||
t1 p1 x0 y0 z0
|
||||
27
wasm-port/vendor/linuxcnc/tests/interp/rotation/g28/expected
vendored
Normal file
27
wasm-port/vendor/linuxcnc/tests/interp/rotation/g28/expected
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
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..... COMMENT("interpreter: setting coordinate system origin")
|
||||
8 N..... COMMENT("interpreter: setting coordinate system origin")
|
||||
9 N..... SET_G5X_OFFSET(2, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
10 N..... SET_G92_OFFSET(0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
11 N..... SET_XY_ROTATION(45.0000)
|
||||
12 N..... COMMENT("G55 10,10")
|
||||
13 N..... STRAIGHT_TRAVERSE(10.0000, 10.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
14 N..... COMMENT("G55 G28")
|
||||
15 N..... STRAIGHT_TRAVERSE(10.0000, 10.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
16 N..... STRAIGHT_TRAVERSE(10.0000, 10.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
17 N..... SET_G5X_OFFSET(3, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
18 N..... SET_G92_OFFSET(0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
19 N..... SET_XY_ROTATION(0.0000)
|
||||
20 N..... COMMENT("G56 cp")
|
||||
21 N..... STRAIGHT_TRAVERSE(0.0000, 14.1421, 0.0000, 1.0000, 0.0000, 0.0000)
|
||||
22 N..... COMMENT("G56 G28")
|
||||
23 N..... STRAIGHT_TRAVERSE(0.0000, 14.1421, 0.0000, 1.0000, 0.0000, 0.0000)
|
||||
24 N..... STRAIGHT_TRAVERSE(0.0000, 14.1421, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
25 N..... FINISH()
|
||||
26 N..... ON_RESET()
|
||||
27 N..... ON_RESET()
|
||||
15
wasm-port/vendor/linuxcnc/tests/interp/rotation/g28/g28.ngc
vendored
Normal file
15
wasm-port/vendor/linuxcnc/tests/interp/rotation/g28/g28.ngc
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
%
|
||||
G10 L2 P2 X0 Y0 R45; G55
|
||||
G10 L2 P3 X0 Y0; G56
|
||||
G55
|
||||
(G55 10,10)
|
||||
G0 x10 y10
|
||||
G28.1
|
||||
(G55 G28)
|
||||
G28
|
||||
G56
|
||||
(G56 cp)
|
||||
G0 a1
|
||||
(G56 G28)
|
||||
G28
|
||||
%
|
||||
3
wasm-port/vendor/linuxcnc/tests/interp/rotation/g28/test.sh
vendored
Executable file
3
wasm-port/vendor/linuxcnc/tests/interp/rotation/g28/test.sh
vendored
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
rs274 -g g28.ngc | sed 's/-0\.0000/0.0000/g'
|
||||
exit "${PIPESTATUS[0]}"
|
||||
30
wasm-port/vendor/linuxcnc/tests/interp/rotation/g53/expected
vendored
Normal file
30
wasm-port/vendor/linuxcnc/tests/interp/rotation/g53/expected
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
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..... COMMENT("interpreter: setting coordinate system origin")
|
||||
8 N..... COMMENT("interpreter: setting coordinate system origin")
|
||||
9 N..... SET_G5X_OFFSET(2, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
10 N..... SET_G92_OFFSET(0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
11 N..... SET_XY_ROTATION(45.0000)
|
||||
12 N..... COMMENT("g55 to 1,1")
|
||||
13 N..... STRAIGHT_TRAVERSE(1.0000, 1.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
14 N..... COMMENT("g53 + g55 to 1,1")
|
||||
15 N..... STRAIGHT_TRAVERSE(1.4142, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
16 N..... SET_G92_OFFSET(1.4142, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
17 N..... COMMENT("g55 + g92 to 1,1")
|
||||
18 N..... STRAIGHT_TRAVERSE(1.0000, 1.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
19 N..... COMMENT("g53 + g55 + g92 to 1,1")
|
||||
20 N..... STRAIGHT_TRAVERSE(0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
21 N..... SET_G5X_OFFSET(3, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
22 N..... SET_G92_OFFSET(1.4142, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
23 N..... SET_XY_ROTATION(0.0000)
|
||||
24 N..... COMMENT("g56 + g92 to cp")
|
||||
25 N..... STRAIGHT_TRAVERSE(-0.4142, 1.0000, 0.0000, 1.0000, 0.0000, 0.0000)
|
||||
26 N..... COMMENT("g53 + g56 + g92 to 1,1")
|
||||
27 N..... STRAIGHT_TRAVERSE(-0.4142, 1.0000, 0.0000, 1.0000, 0.0000, 0.0000)
|
||||
28 N..... FINISH()
|
||||
29 N..... ON_RESET()
|
||||
30 N..... ON_RESET()
|
||||
19
wasm-port/vendor/linuxcnc/tests/interp/rotation/g53/g53.ngc
vendored
Normal file
19
wasm-port/vendor/linuxcnc/tests/interp/rotation/g53/g53.ngc
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
%
|
||||
g10 l2 p2 x0 y0 z0 r45; g55
|
||||
g10 l2 p3 x0 y0 z0 r0; g56
|
||||
g55
|
||||
(g55 to 1,1)
|
||||
g0 x1 y1
|
||||
(g53 + g55 to 1,1)
|
||||
g53 x1 y1
|
||||
g92 x0 y0
|
||||
(g55 + g92 to 1,1)
|
||||
g0 x1 y1
|
||||
(g53 + g55 + g92 to 1,1)
|
||||
g53 g0 x1 y1
|
||||
g56
|
||||
(g56 + g92 to cp)
|
||||
g0 a1
|
||||
(g53 + g56 + g92 to 1,1)
|
||||
g53 g0 x1 y1
|
||||
%
|
||||
3
wasm-port/vendor/linuxcnc/tests/interp/rotation/g53/test.sh
vendored
Executable file
3
wasm-port/vendor/linuxcnc/tests/interp/rotation/g53/test.sh
vendored
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
rs274 -g g53.ngc | sed 's/-0\.0000/0.0000/g'
|
||||
exit "${PIPESTATUS[0]}"
|
||||
Reference in New Issue
Block a user