Expand LinuxCNC interpreter regression coverage
This commit is contained in:
47
wasm-port/vendor/linuxcnc/tests/ccomp/mill-line-arc-entry/expected
vendored
Normal file
47
wasm-port/vendor/linuxcnc/tests/ccomp/mill-line-arc-entry/expected
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
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..... COMMENT("this is the program describing entry moves for")
|
||||
N..... COMMENT("radius compensation in Figure 3 of the Handbook")
|
||||
N..... COMMENT("http://www.linuxcnc.org/handbook/RS274NGC_3/RS274NGC_38a.html#999268")
|
||||
N..... SET_FEED_RATE(60.0000)
|
||||
N..... USE_LENGTH_UNITS(CANON_UNITS_INCHES)
|
||||
N..... COMMENT("first, no compensation so we can see the part outline")
|
||||
N..... STRAIGHT_TRAVERSE(1.0000, 5.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... STRAIGHT_FEED(1.0000, 4.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... ARC_FEED(2.0000, 3.0000, 2.0000, 4.0000, 1, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... ARC_FEED(3.0000, 2.0000, 2.0000, 2.0000, -1, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... STRAIGHT_FEED(3.0000, -1.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... ARC_FEED(2.0000, -2.0000, 2.0000, -1.0000, -1, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... STRAIGHT_FEED(-2.0000, -2.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... ARC_FEED(-2.6000, -0.2000, -2.0000, -1.0000, -1, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... STRAIGHT_FEED(1.4000, 2.8000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... ARC_FEED(2.0000, 3.0000, 2.0000, 2.0000, -1, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... COMMENT("with compensation")
|
||||
N..... SELECT_TOOL(4)
|
||||
N..... STOP_SPINDLE_TURNING(0)
|
||||
N..... CHANGE_TOOL()
|
||||
N..... STRAIGHT_TRAVERSE(1.0000, 5.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... COMMENT("interpreter: cutter radius compensation on left")
|
||||
N..... STRAIGHT_FEED(1.5000, 4.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... ARC_FEED(2.0000, 3.5000, 2.0000, 4.0000, 1, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... ARC_FEED(3.5000, 2.0000, 2.0000, 2.0000, -1, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... STRAIGHT_FEED(3.5000, -1.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... ARC_FEED(2.0000, -2.5000, 2.0000, -1.0000, -1, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... STRAIGHT_FEED(-2.0000, -2.5000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... ARC_FEED(-2.9000, 0.2000, -2.0000, -1.0000, -1, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... STRAIGHT_FEED(1.1000, 3.2000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... ARC_FEED(2.0000, 3.5000, 2.0000, 2.0000, -1, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... COMMENT("interpreter: cutter radius compensation off")
|
||||
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()
|
||||
N..... ON_RESET()
|
||||
33
wasm-port/vendor/linuxcnc/tests/ccomp/mill-line-arc-entry/test.ngc
vendored
Normal file
33
wasm-port/vendor/linuxcnc/tests/ccomp/mill-line-arc-entry/test.ngc
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
(this is the program describing entry moves for)
|
||||
(radius compensation in Figure 3 of the Handbook)
|
||||
(http://www.linuxcnc.org/handbook/RS274NGC_3/RS274NGC_38a.html#999268)
|
||||
|
||||
g20 f60
|
||||
|
||||
(first, no compensation so we can see the part outline)
|
||||
g0 x1 y5
|
||||
g1 y4
|
||||
g3 x2 y3 i1
|
||||
g2 x3 y2 j-1
|
||||
g1 y-1
|
||||
g2 x2 y-2 i-1
|
||||
g1 x-2
|
||||
g2 x-2.6 y-0.2 j1
|
||||
g1 x1.4 y2.8
|
||||
g2 x2 y3 i.6 j-.8
|
||||
|
||||
(with compensation)
|
||||
t4 m6
|
||||
g0 x1 y5
|
||||
g41 g1 y4
|
||||
g3 x2 y3 i1
|
||||
g2 x3 y2 j-1
|
||||
g1 y-1
|
||||
g2 x2 y-2 i-1
|
||||
g1 x-2
|
||||
g2 x-2.6 y-0.2 j1
|
||||
g1 x1.4 y2.8
|
||||
g2 x2 y3 i.6 j-.8
|
||||
g40
|
||||
|
||||
m2
|
||||
3
wasm-port/vendor/linuxcnc/tests/ccomp/mill-line-arc-entry/test.sh
vendored
Normal file
3
wasm-port/vendor/linuxcnc/tests/ccomp/mill-line-arc-entry/test.sh
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
rs274 -t test.tbl -g test.ngc | awk '{$1=""; print}'
|
||||
exit "${PIPESTATUS[0]}"
|
||||
5
wasm-port/vendor/linuxcnc/tests/ccomp/mill-line-arc-entry/test.tbl
vendored
Normal file
5
wasm-port/vendor/linuxcnc/tests/ccomp/mill-line-arc-entry/test.tbl
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
T1 P1 Z0.5 D0.0625;first tool
|
||||
T2 P2 Z0.7 D0.125;
|
||||
T3 P3 Z0.5 D0.25;
|
||||
T4 P4 Z0.7 D1.0;
|
||||
T32 P32 Z0.5 D0.0;last tool
|
||||
Reference in New Issue
Block a user