Expand LinuxCNC interpreter regression coverage
This commit is contained in:
161
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l1-l10/expected
vendored
Normal file
161
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l1-l10/expected
vendored
Normal file
@@ -0,0 +1,161 @@
|
||||
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..... USE_LENGTH_UNITS(CANON_UNITS_INCHES)
|
||||
N..... SET_G5X_OFFSET(1, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(0.0000)
|
||||
N..... COMMENT("interpreter: continuing to use same coordinate system")
|
||||
N..... MESSAGE("G10 L1: set tool offsets direct")
|
||||
N..... MESSAGE(" part 1")
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SELECT_TOOL(1)
|
||||
N..... STOP_SPINDLE_TURNING(0)
|
||||
N..... CHANGE_TOOL()
|
||||
N..... USE_TOOL_LENGTH_OFFSET(0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE(" should be 0 0 0: 0.000000 0.000000 0.000000")
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, 1.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, 1.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... USE_TOOL_LENGTH_OFFSET(1.0000 0.0000 0.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE(" should be 1 0 0: 1.000000 0.000000 0.000000")
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, 1.0000 2.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, 1.0000 2.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... USE_TOOL_LENGTH_OFFSET(1.0000 2.0000 0.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE(" should be 1 2 0: 1.000000 2.000000 0.000000")
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, 1.0000 2.0000 3.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, 1.0000 2.0000 3.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... USE_TOOL_LENGTH_OFFSET(1.0000 2.0000 3.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE(" should be 1 2 3: 1.000000 2.000000 3.000000")
|
||||
N..... USE_TOOL_LENGTH_OFFSET(0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE(" part 2")
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... USE_TOOL_LENGTH_OFFSET(0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE(" should be 0 0 0: 0.000000 0.000000 0.000000")
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, 1.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, 1.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... USE_TOOL_LENGTH_OFFSET(1.0000 0.0000 0.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE(" should be 1 0 0: 1.000000 0.000000 0.000000")
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, 1.0000 2.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, 1.0000 2.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... USE_TOOL_LENGTH_OFFSET(1.0000 2.0000 0.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE(" should be 1 2 0: 1.000000 2.000000 0.000000")
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, 1.0000 2.0000 3.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, 1.0000 2.0000 3.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... USE_TOOL_LENGTH_OFFSET(1.0000 2.0000 3.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE(" should be 1 2 3: 1.000000 2.000000 3.000000")
|
||||
N..... USE_TOOL_LENGTH_OFFSET(0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE("G10 L10: set tool offsets relative to position")
|
||||
N..... MESSAGE(" part 1")
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SELECT_TOOL(1)
|
||||
N..... STOP_SPINDLE_TURNING(0)
|
||||
N..... CHANGE_TOOL()
|
||||
N..... USE_TOOL_LENGTH_OFFSET(0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... STRAIGHT_TRAVERSE(0.1000, 0.2000, 0.3000, 0.0000, 0.0000, 0.0000)
|
||||
N..... MESSAGE(" should be 0 0 0: 0.000000 0.000000 0.000000")
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, -0.9000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, -0.9000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... USE_TOOL_LENGTH_OFFSET(-0.9000 0.0000 0.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE(" should be -.9 0 0: -0.900000 0.000000 0.000000")
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, -0.9000 -1.8000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, -0.9000 -1.8000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... USE_TOOL_LENGTH_OFFSET(-0.9000 -1.8000 0.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE(" should be -.9 -1.8 0: -0.900000 -1.800000 0.000000")
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, -0.9000 -1.8000 -2.7000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, -0.9000 -1.8000 -2.7000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... USE_TOOL_LENGTH_OFFSET(-0.9000 -1.8000 -2.7000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE(" should be -.9 -1.8 -2.7: -0.900000 -1.800000 -2.700000")
|
||||
N..... USE_TOOL_LENGTH_OFFSET(0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE(" part 2")
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, 0.1000 0.2000 0.3000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, 0.1000 0.2000 0.3000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... USE_TOOL_LENGTH_OFFSET(0.1000 0.2000 0.3000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE(" should be .1 .2 .3: 0.100000 0.200000 0.300000")
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, -0.9000 0.2000 0.3000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, -0.9000 0.2000 0.3000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... USE_TOOL_LENGTH_OFFSET(-0.9000 0.2000 0.3000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE(" should be -.9 0.2 .3: -0.900000 0.200000 0.300000")
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, -0.9000 -1.8000 0.3000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, -0.9000 -1.8000 0.3000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... USE_TOOL_LENGTH_OFFSET(-0.9000 -1.8000 0.3000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE(" should be -.9 -1.8 .3: -0.900000 -1.800000 0.300000")
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, -0.9000 -1.8000 -2.7000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, -0.9000 -1.8000 -2.7000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... USE_TOOL_LENGTH_OFFSET(-0.9000 -1.8000 -2.7000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE(" should be -.9 -1.8 -2.7: -0.900000 -1.800000 -2.700000")
|
||||
N..... USE_TOOL_LENGTH_OFFSET(0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE("G10 L10: set tool offsets relative to position + 45 deg. rotation")
|
||||
N..... SET_G5X_OFFSET(1, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(45.0000)
|
||||
N..... STRAIGHT_TRAVERSE(0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SELECT_TOOL(1)
|
||||
N..... STOP_SPINDLE_TURNING(0)
|
||||
N..... CHANGE_TOOL()
|
||||
N..... USE_TOOL_LENGTH_OFFSET(0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE(" should be 0 0 0: 0.000000 0.000000 0.000000")
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, -0.7071 -0.7071 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, -0.7071 -0.7071 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... USE_TOOL_LENGTH_OFFSET(-0.7071 -0.7071 0.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE(" should be -.707 -.707 0: -0.707107 -0.707107 0.000000")
|
||||
N..... MESSAGE(" should be 1 0: 1.000000 0.000000")
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, 0.0000 -1.4142 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, 0.0000 -1.4142 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... USE_TOOL_LENGTH_OFFSET(0.0000 -1.4142 0.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE(" should be 0 -1.414 0: 0.000000 -1.414214 0.000000")
|
||||
N..... MESSAGE(" should be 1 1: 1.000000 1.000000")
|
||||
N..... USE_TOOL_LENGTH_OFFSET(0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE("G10 L10: set tool offsets relative to position with rotation")
|
||||
N..... SET_G5X_OFFSET(1, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(45.0000)
|
||||
N..... STRAIGHT_TRAVERSE(0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SELECT_TOOL(1)
|
||||
N..... STOP_SPINDLE_TURNING(0)
|
||||
N..... CHANGE_TOOL()
|
||||
N..... USE_TOOL_LENGTH_OFFSET(0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE(" should be 0 0 0: 0.000000 0.000000 0.000000")
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, -0.7071 -0.7071 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, -0.7071 -0.7071 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, 0.0000 -1.4142 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, 0.0000 -1.4142 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... MESSAGE(" G10 alone does not apply offset, should still be 0 0 0: 0.000000 0.000000 0.000000")
|
||||
N..... USE_TOOL_LENGTH_OFFSET(0.0000 -1.4142 0.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE(" should be 0 -1.414 0: 0.000000 -1.414214 0.000000")
|
||||
N..... MESSAGE(" should be 1 1: 1.000000 1.000000")
|
||||
N..... USE_TOOL_LENGTH_OFFSET(0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE("Model B contract: M6 alone and G10 alone do not change tool offset params")
|
||||
N..... USE_TOOL_LENGTH_OFFSET(0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SELECT_TOOL(1)
|
||||
N..... STOP_SPINDLE_TURNING(0)
|
||||
N..... CHANGE_TOOL()
|
||||
N..... MESSAGE(" after M6 alone, should be 0 0 0: 0.000000 0.000000 0.000000")
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, 5.0000 6.0000 7.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, 5.0000 6.0000 7.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... MESSAGE(" after G10 alone, should still be 0 0 0: 0.000000 0.000000 0.000000")
|
||||
N..... USE_TOOL_LENGTH_OFFSET(5.0000 6.0000 7.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE(" after G43, should be 5 6 7: 5.000000 6.000000 7.000000")
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, 8.0000 6.0000 7.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, 8.0000 6.0000 7.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... MESSAGE(" after G10 modifying loaded tool, should still be 5 6 7: 5.000000 6.000000 7.000000")
|
||||
N..... USE_TOOL_LENGTH_OFFSET(8.0000 6.0000 7.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE(" after G43, should be 8 6 7: 8.000000 6.000000 7.000000")
|
||||
N..... USE_TOOL_LENGTH_OFFSET(0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... SET_G5X_OFFSET(1, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(45.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()
|
||||
115
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l1-l10/test.ngc
vendored
Normal file
115
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l1-l10/test.ngc
vendored
Normal file
@@ -0,0 +1,115 @@
|
||||
g20
|
||||
g10 l2 p1 x0 y0 z0
|
||||
g54
|
||||
|
||||
|
||||
(debug,G10 L1: set tool offsets direct)
|
||||
(debug, part 1)
|
||||
g10 l1 p1 x0 y0 z0
|
||||
t1 m6 g43
|
||||
(debug, should be 0 0 0: #5401 #5402 #5403)
|
||||
g10 l1 p1 x1
|
||||
g43
|
||||
(debug, should be 1 0 0: #5401 #5402 #5403)
|
||||
g10 l1 p1 y2
|
||||
g43
|
||||
(debug, should be 1 2 0: #5401 #5402 #5403)
|
||||
g10 l1 p1 z3
|
||||
g43
|
||||
(debug, should be 1 2 3: #5401 #5402 #5403)
|
||||
g49
|
||||
(debug, part 2)
|
||||
g10 l1 p1 x0 y0 z0
|
||||
g43
|
||||
(debug, should be 0 0 0: #5401 #5402 #5403)
|
||||
g10 l1 p1 x1
|
||||
g43
|
||||
(debug, should be 1 0 0: #5401 #5402 #5403)
|
||||
g10 l1 p1 y2
|
||||
g43
|
||||
(debug, should be 1 2 0: #5401 #5402 #5403)
|
||||
g10 l1 p1 z3
|
||||
g43
|
||||
(debug, should be 1 2 3: #5401 #5402 #5403)
|
||||
g49
|
||||
|
||||
|
||||
(debug,G10 L10: set tool offsets relative to position)
|
||||
(debug, part 1)
|
||||
g10 l1 p1 x0 y0 z0
|
||||
t1 m6 g43
|
||||
g0 x.1 y.2 z.3
|
||||
(debug, should be 0 0 0: #5401 #5402 #5403)
|
||||
g10 l10 p1 x1
|
||||
g43
|
||||
(debug, should be -.9 0 0: #5401 #5402 #5403)
|
||||
g10 l10 p1 y2
|
||||
g43
|
||||
(debug, should be -.9 -1.8 0: #5401 #5402 #5403)
|
||||
g10 l10 p1 z3
|
||||
g43
|
||||
(debug, should be -.9 -1.8 -2.7: #5401 #5402 #5403)
|
||||
g49
|
||||
(debug, part 2)
|
||||
g10 l10 p1 x0 y0 z0
|
||||
g43
|
||||
(debug, should be .1 .2 .3: #5401 #5402 #5403)
|
||||
g10 l10 p1 x1
|
||||
g43
|
||||
(debug, should be -.9 0.2 .3: #5401 #5402 #5403)
|
||||
g10 l10 p1 y2
|
||||
g43
|
||||
(debug, should be -.9 -1.8 .3: #5401 #5402 #5403)
|
||||
g10 l10 p1 y2 z3
|
||||
g43
|
||||
(debug, should be -.9 -1.8 -2.7: #5401 #5402 #5403)
|
||||
g49
|
||||
|
||||
|
||||
(debug,G10 L10: set tool offsets relative to position + 45 deg. rotation)
|
||||
g10 l2 p1 r45
|
||||
g0 x0 y0 z0
|
||||
g10 l10 p1 x0 y0 z0
|
||||
t1 m6 g43
|
||||
(debug, should be 0 0 0: #5401 #5402 #5403)
|
||||
g10 l10 p1 x1
|
||||
g43
|
||||
(debug, should be -.707 -.707 0: #5401 #5402 #5403)
|
||||
(debug, should be 1 0: #5420 #5421)
|
||||
g10 l10 p1 y1
|
||||
g43
|
||||
(debug, should be 0 -1.414 0: #5401 #5402 #5403)
|
||||
(debug, should be 1 1: #5420 #5421)
|
||||
g49
|
||||
|
||||
|
||||
(debug,G10 L10: set tool offsets relative to position with rotation)
|
||||
g10 l2 p1 r45
|
||||
g0 x0 y0 z0
|
||||
g10 l10 p1 x0 y0 z0
|
||||
t1 m6 g43
|
||||
(debug, should be 0 0 0: #5401 #5402 #5403)
|
||||
g10 l10 p1 x1
|
||||
g10 l10 p1 y1
|
||||
(debug, G10 alone does not apply offset, should still be 0 0 0: #5401 #5402 #5403)
|
||||
g43
|
||||
(debug, should be 0 -1.414 0: #5401 #5402 #5403)
|
||||
(debug, should be 1 1: #5420 #5421)
|
||||
g49
|
||||
|
||||
|
||||
(debug,Model B contract: M6 alone and G10 alone do not change tool offset params)
|
||||
g49
|
||||
g10 l1 p1 x0 y0 z0
|
||||
t1 m6
|
||||
(debug, after M6 alone, should be 0 0 0: #5401 #5402 #5403)
|
||||
g10 l1 p1 x5 y6 z7
|
||||
(debug, after G10 alone, should still be 0 0 0: #5401 #5402 #5403)
|
||||
g43
|
||||
(debug, after G43, should be 5 6 7: #5401 #5402 #5403)
|
||||
g10 l1 p1 x8
|
||||
(debug, after G10 modifying loaded tool, should still be 5 6 7: #5401 #5402 #5403)
|
||||
g43
|
||||
(debug, after G43, should be 8 6 7: #5401 #5402 #5403)
|
||||
g49
|
||||
m2
|
||||
3
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l1-l10/test.sh
vendored
Executable file
3
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l1-l10/test.sh
vendored
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
rs274 -g test.ngc -t test.tbl | awk '{$1=""; print}' | sed 's/-0\.0000/0.0000/g'
|
||||
exit "${PIPESTATUS[0]}"
|
||||
1
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l1-l10/test.tbl
vendored
Normal file
1
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l1-l10/test.tbl
vendored
Normal file
@@ -0,0 +1 @@
|
||||
T1 P1 X0 Y0 Z0 ;
|
||||
66
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l11/expected
vendored
Normal file
66
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l11/expected
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
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..... USE_LENGTH_UNITS(CANON_UNITS_INCHES)
|
||||
N..... SET_G5X_OFFSET(1, 1.0000, 2.0000, -3.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(10.0000)
|
||||
N..... COMMENT("interpreter: setting coordinate system origin")
|
||||
N..... COMMENT("interpreter: setting coordinate system origin")
|
||||
N..... COMMENT("interpreter: setting coordinate system origin")
|
||||
N..... COMMENT("interpreter: setting coordinate system origin")
|
||||
N..... COMMENT("interpreter: setting coordinate system origin")
|
||||
N..... COMMENT("interpreter: setting coordinate system origin")
|
||||
N..... COMMENT("interpreter: setting coordinate system origin")
|
||||
N..... COMMENT("interpreter: setting coordinate system origin")
|
||||
N..... COMMENT("interpreter: continuing to use same coordinate system")
|
||||
N..... STRAIGHT_TRAVERSE(-1.3321, -1.7960, -27.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, 0.0000 0.0000 -3.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, 0.0000 0.0000 -3.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SELECT_TOOL(1)
|
||||
N..... STOP_SPINDLE_TURNING(0)
|
||||
N..... CHANGE_TOOL()
|
||||
N..... USE_TOOL_LENGTH_OFFSET(0.0000 0.0000 -3.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE("-3.000000")
|
||||
N..... SET_G5X_OFFSET(2, 4.0000, 5.0000, -6.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(20.0000)
|
||||
N..... STRAIGHT_TRAVERSE(-5.4689, -3.3304, -21.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, 0.0000 0.0000 -4.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, 0.0000 0.0000 -4.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... USE_TOOL_LENGTH_OFFSET(0.0000 0.0000 -4.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE("-4.000000")
|
||||
N..... SET_G5X_OFFSET(3, 7.0000, 8.0000, -9.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(30.0000)
|
||||
N..... SET_G92_OFFSET(-43.0622, -47.4282, -72.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_G5X_OFFSET(1, 1.0000, 2.0000, -3.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_G92_OFFSET(-43.0622, -47.4282, -72.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(10.0000)
|
||||
N..... STRAIGHT_TRAVERSE(41.7301, 45.6322, 49.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, 0.0000 0.0000 -3.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, 0.0000 0.0000 -3.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SELECT_TOOL(1)
|
||||
N..... STOP_SPINDLE_TURNING(0)
|
||||
N..... CHANGE_TOOL()
|
||||
N..... USE_TOOL_LENGTH_OFFSET(0.0000 0.0000 -3.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE("-3.000000")
|
||||
N..... SET_G5X_OFFSET(2, 4.0000, 5.0000, -6.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_G92_OFFSET(-43.0622, -47.4282, -72.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(20.0000)
|
||||
N..... STRAIGHT_TRAVERSE(37.5933, 44.0978, 51.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_TOOL_TABLE_ENTRY(1, 1, 0.0000 0.0000 -4.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... SET_TOOL_TABLE_ENTRY(0, 1, 0.0000 0.0000 -4.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000, 0.0000, 0.0000, 0)
|
||||
N..... USE_TOOL_LENGTH_OFFSET(0.0000 0.0000 -4.0000, 0.0000 0.0000 0.0000, 0.0000 0.0000 0.0000)
|
||||
N..... MESSAGE("-4.000000")
|
||||
N..... SET_G5X_OFFSET(1, 1.0000, 2.0000, -3.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(10.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()
|
||||
41
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l11/test.ngc
vendored
Normal file
41
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l11/test.ngc
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
g20
|
||||
g10 l2 p1 x1 y2 z-3 r10
|
||||
g10 l2 p2 x4 y5 z-6 r20
|
||||
g10 l2 p3 x7 y8 z-9 r30
|
||||
g10 l2 p4 x10 y11 z-12 r40
|
||||
g10 l2 p5 x13 y14 z-15 r50
|
||||
g10 l2 p6 x16 y17 z-18 r60
|
||||
g10 l2 p7 x19 y20 z-21 r70
|
||||
g10 l2 p8 x22 y23 z-24 r80
|
||||
|
||||
; touch off fixture:
|
||||
g10 l2 p9 x25 y26 z-27 r0
|
||||
|
||||
g54
|
||||
g0 g53 z-30
|
||||
g10 l11 p1 z0 ; length should be -3
|
||||
t1 m6
|
||||
g43
|
||||
(debug,#5403)
|
||||
g55
|
||||
g0 g53 z-30
|
||||
g10 l11 p1 z1 ; length should be -4
|
||||
g43
|
||||
(debug,#5403)
|
||||
|
||||
g56
|
||||
g92 x33 y44 z55 ; add some g92 to all g5x: g92 shouldn't affect the tool touchoff fixture
|
||||
|
||||
g54
|
||||
g0 g53 z-30
|
||||
g10 l11 p1 z0 ; ... so the length should still be -3
|
||||
t1 m6
|
||||
g43
|
||||
(debug,#5403)
|
||||
g55
|
||||
g0 g53 z-30
|
||||
g10 l11 p1 z1 ; ... so the length should still be -4
|
||||
g43
|
||||
(debug,#5403)
|
||||
|
||||
m2
|
||||
3
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l11/test.sh
vendored
Executable file
3
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l11/test.sh
vendored
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
rs274 -g test.ngc -t test.tbl | awk '{$1=""; print}' | sed 's/-0\.0000/0.0000/g'
|
||||
exit "${PIPESTATUS[0]}"
|
||||
1
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l11/test.tbl
vendored
Normal file
1
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l11/test.tbl
vendored
Normal file
@@ -0,0 +1 @@
|
||||
T1 P1 X0 Y0 Z0 ;
|
||||
45
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l2-while-active/expected
vendored
Normal file
45
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l2-while-active/expected
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
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("interpreter: continuing to use same coordinate system")
|
||||
N..... USE_LENGTH_UNITS(CANON_UNITS_INCHES)
|
||||
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_RATE(60.0000)
|
||||
N..... STRAIGHT_FEED(0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... MESSAGE(" Should be 0 0: 0.000000 0.000000")
|
||||
N..... SET_G5X_OFFSET(1, 1.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(0.0000)
|
||||
N..... MESSAGE(" Should be -1 0: -1.000000 0.000000")
|
||||
N..... STRAIGHT_FEED(0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... MESSAGE(" Should be 0 0: 0.000000 0.000000")
|
||||
N..... SET_G5X_OFFSET(1, 1.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(-45.0000)
|
||||
N..... MESSAGE(" Should be 0 0: 0.000000 0.000000")
|
||||
N..... STRAIGHT_FEED(0.0000, 1.4142, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... MESSAGE(" Should be 0 1.414214: 0.000000 1.414214")
|
||||
N..... SET_G5X_OFFSET(1, 2.0000, 1.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(90.0000)
|
||||
N..... MESSAGE(" Should be 0 0: 0.000000 0.000000")
|
||||
N..... STRAIGHT_FEED(0.0000, 3.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... MESSAGE(" Should be 0 3: 0.000000 3.000000")
|
||||
N..... SET_G5X_OFFSET(1, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(90.0000)
|
||||
N..... MESSAGE(" Should be 1 1: 1.000000 1.000000")
|
||||
N..... STRAIGHT_FEED(0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... MESSAGE(" Should be 0 0: 0.000000 0.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..... MESSAGE(" Should be 0 0: 0.000000 0.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()
|
||||
N..... ON_RESET()
|
||||
24
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l2-while-active/test.ngc
vendored
Normal file
24
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l2-while-active/test.ngc
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
g54
|
||||
g20
|
||||
g10 l2 p1 x0 y0 z0 r0
|
||||
g1 x0 y0 z0 f60
|
||||
(debug, Should be 0 0: #5420 #5421)
|
||||
g10 l2 p1 x1
|
||||
(debug, Should be -1 0: #5420 #5421)
|
||||
g1 x0 y0 z0
|
||||
(debug, Should be 0 0: #5420 #5421)
|
||||
g10 l2 p1 r-45
|
||||
(debug, Should be 0 0: #5420 #5421)
|
||||
g1 y sqrt[2]
|
||||
(debug, Should be 0 1.414214: #5420 #5421)
|
||||
g10 l2 p1 x2 y1 r90
|
||||
(debug, Should be 0 0: #5420 #5421)
|
||||
g1 y3
|
||||
(debug, Should be 0 3: #5420 #5421)
|
||||
g10 l2 p1 x0 y0
|
||||
(debug, Should be 1 1: #5420 #5421)
|
||||
g1 x0 y0
|
||||
(debug, Should be 0 0: #5420 #5421)
|
||||
g10 l2 p1 r0
|
||||
(debug, Should be 0 0: #5420 #5421)
|
||||
m2
|
||||
3
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l2-while-active/test.sh
vendored
Executable file
3
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l2-while-active/test.sh
vendored
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
rs274 -g test.ngc | awk '{$1=""; print}'
|
||||
exit "${PIPESTATUS[0]}"
|
||||
40
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l20-while-active/expected
vendored
Normal file
40
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l20-while-active/expected
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
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("interpreter: continuing to use same coordinate system")
|
||||
N..... USE_LENGTH_UNITS(CANON_UNITS_INCHES)
|
||||
N..... SET_G5X_OFFSET(1, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(45.0000)
|
||||
N..... STRAIGHT_TRAVERSE(0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... MESSAGE(" Should be 0 0: 0.000000 0.000000")
|
||||
N..... SET_G5X_OFFSET(1, 0.7071, 0.7071, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(45.0000)
|
||||
N..... MESSAGE(" Should be -1 0: -1.000000 0.000000")
|
||||
N..... SET_FEED_RATE(60.0000)
|
||||
N..... STRAIGHT_FEED(0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... MESSAGE(" Should be 0 0: 0.000000 0.000000")
|
||||
N..... SET_G5X_OFFSET(1, 0.0000, 1.4142, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(45.0000)
|
||||
N..... MESSAGE(" Should be 0 -1: 0.000000 -1.000000")
|
||||
N..... STRAIGHT_FEED(0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... MESSAGE(" Should be 0 0: 0.000000 0.000000")
|
||||
N..... SET_G5X_OFFSET(1, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(45.0000)
|
||||
N..... MESSAGE(" Should be 1 1: 1.000000 1.000000")
|
||||
N..... STRAIGHT_FEED(0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... MESSAGE(" Should be 0 0: 0.000000 0.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..... MESSAGE(" Should be 0 0: 0.000000 0.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()
|
||||
N..... ON_RESET()
|
||||
20
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l20-while-active/test.ngc
vendored
Normal file
20
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l20-while-active/test.ngc
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
g54
|
||||
g20
|
||||
g10 l2 p1 x0 y0 z0 r45
|
||||
g0 g53 x0 y0 z0
|
||||
(debug, Should be 0 0: #5420 #5421)
|
||||
g10 l20 p1 x-1
|
||||
(debug, Should be -1 0: #5420 #5421)
|
||||
g1 x0 f60
|
||||
(debug, Should be 0 0: #5420 #5421)
|
||||
g10 l20 p1 y -1
|
||||
(debug, Should be 0 -1: #5420 #5421)
|
||||
g1 y0
|
||||
(debug, Should be 0 0: #5420 #5421)
|
||||
g10 l20 p1 x1 y1
|
||||
(debug, Should be 1 1: #5420 #5421)
|
||||
g1 x0 y0
|
||||
(debug, Should be 0 0: #5420 #5421)
|
||||
g10 l2 p1 r0
|
||||
(debug, Should be 0 0: #5420 #5421)
|
||||
m2
|
||||
3
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l20-while-active/test.sh
vendored
Executable file
3
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l20-while-active/test.sh
vendored
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
rs274 -g test.ngc | awk '{$1=""; print}' | sed 's/-0\.0000/0.0000/g'
|
||||
exit "${PIPESTATUS[0]}"
|
||||
127
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-with-g92/expected
vendored
Normal file
127
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-with-g92/expected
vendored
Normal file
@@ -0,0 +1,127 @@
|
||||
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..... SET_G92_OFFSET(0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... USE_LENGTH_UNITS(CANON_UNITS_MM)
|
||||
N..... SET_G5X_OFFSET(1, 1.0000, 2.0000, 3.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(10.0000)
|
||||
N..... COMMENT("interpreter: setting coordinate system origin")
|
||||
N..... COMMENT("interpreter: setting coordinate system origin")
|
||||
N..... COMMENT("interpreter: setting coordinate system origin")
|
||||
N..... COMMENT("interpreter: setting coordinate system origin")
|
||||
N..... COMMENT("interpreter: setting coordinate system origin")
|
||||
N..... COMMENT("interpreter: setting coordinate system origin")
|
||||
N..... COMMENT("interpreter: setting coordinate system origin")
|
||||
N..... COMMENT("interpreter: setting coordinate system origin")
|
||||
N..... COMMENT("interpreter: continuing to use same coordinate system")
|
||||
N..... SET_G5X_OFFSET(2, 4.0000, 5.0000, 6.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(20.0000)
|
||||
N..... SET_G5X_OFFSET(3, 7.0000, 8.0000, 9.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(30.0000)
|
||||
N..... SET_G5X_OFFSET(4, 10.0000, 11.0000, 12.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(40.0000)
|
||||
N..... SET_G5X_OFFSET(5, 13.0000, 14.0000, 15.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(50.0000)
|
||||
N..... SET_G5X_OFFSET(6, 16.0000, 17.0000, 18.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(60.0000)
|
||||
N..... SET_G5X_OFFSET(7, 19.0000, 20.0000, 21.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(70.0000)
|
||||
N..... SET_G5X_OFFSET(8, 22.0000, 23.0000, 24.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(80.0000)
|
||||
N..... SET_G5X_OFFSET(9, 25.0000, 26.0000, 27.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_G5X_OFFSET(1, 1.0000, 2.0000, 3.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(10.0000)
|
||||
N..... STRAIGHT_TRAVERSE(0.0000, 0.0000, -10.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_G92_OFFSET(-0.1000, -0.2000, -10.3000, 0.0000, 0.0000, 0.0000)
|
||||
N..... MESSAGE(" X0.100000 Y0.200000 Z0.300000")
|
||||
N..... SET_G5X_OFFSET(2, 4.0000, 5.0000, 6.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_G92_OFFSET(-0.1000, -0.2000, -10.3000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(20.0000)
|
||||
N..... MESSAGE(" X-3.745138 Y-1.593017 Z-2.700000")
|
||||
N..... SET_G5X_OFFSET(3, 7.0000, 8.0000, 9.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_G92_OFFSET(-0.1000, -0.2000, -10.3000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(30.0000)
|
||||
N..... MESSAGE(" X-8.096152 Y-1.996152 Z-5.700000")
|
||||
N..... SET_G5X_OFFSET(4, 10.0000, 11.0000, 12.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_G92_OFFSET(-0.1000, -0.2000, -10.3000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(40.0000)
|
||||
N..... MESSAGE(" X-12.579488 Y-0.909312 Z-8.700000")
|
||||
N..... SET_G5X_OFFSET(5, 13.0000, 14.0000, 15.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_G92_OFFSET(-0.1000, -0.2000, -10.3000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(50.0000)
|
||||
N..... MESSAGE(" X-16.805985 Y1.679082 Z-11.700000")
|
||||
N..... SET_G5X_OFFSET(6, 16.0000, 17.0000, 18.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_G92_OFFSET(-0.1000, -0.2000, -10.3000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(60.0000)
|
||||
N..... MESSAGE(" X-20.390381 Y5.690381 Z-14.700000")
|
||||
N..... SET_G5X_OFFSET(7, 19.0000, 20.0000, 21.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_G92_OFFSET(-0.1000, -0.2000, -10.3000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(70.0000)
|
||||
N..... MESSAGE(" X-22.970830 Y10.958105 Z-17.700000")
|
||||
N..... SET_G5X_OFFSET(8, 22.0000, 23.0000, 24.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_G92_OFFSET(-0.1000, -0.2000, -10.3000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(80.0000)
|
||||
N..... MESSAGE(" X-24.227575 Y17.234351 Z-20.700000")
|
||||
N..... SET_G5X_OFFSET(9, 25.0000, 26.0000, 27.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_G92_OFFSET(-0.1000, -0.2000, -10.3000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(0.0000)
|
||||
N..... MESSAGE(" X-23.900000 Y-23.800000 Z-23.700000")
|
||||
N..... SET_G5X_OFFSET(1, 1.0000, 2.0000, 3.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_G92_OFFSET(-0.1000, -0.2000, -10.3000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(10.0000)
|
||||
N..... SET_G92_OFFSET(0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... MESSAGE(" X0.000000 Y0.000000 Z-10.000000")
|
||||
N..... SET_G5X_OFFSET(2, 4.0000, 5.0000, 6.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(20.0000)
|
||||
N..... MESSAGE(" X-3.845138 Y-1.793017 Z-13.000000")
|
||||
N..... SET_G5X_OFFSET(3, 7.0000, 8.0000, 9.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(30.0000)
|
||||
N..... MESSAGE(" X-8.196152 Y-2.196152 Z-16.000000")
|
||||
N..... SET_G5X_OFFSET(4, 10.0000, 11.0000, 12.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(40.0000)
|
||||
N..... MESSAGE(" X-12.679488 Y-1.109312 Z-19.000000")
|
||||
N..... SET_G5X_OFFSET(5, 13.0000, 14.0000, 15.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(50.0000)
|
||||
N..... MESSAGE(" X-16.905985 Y1.479082 Z-22.000000")
|
||||
N..... SET_G5X_OFFSET(6, 16.0000, 17.0000, 18.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(60.0000)
|
||||
N..... MESSAGE(" X-20.490381 Y5.490381 Z-25.000000")
|
||||
N..... SET_G5X_OFFSET(7, 19.0000, 20.0000, 21.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(70.0000)
|
||||
N..... MESSAGE(" X-23.070830 Y10.758105 Z-28.000000")
|
||||
N..... SET_G5X_OFFSET(8, 22.0000, 23.0000, 24.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(80.0000)
|
||||
N..... MESSAGE(" X-24.327575 Y17.034351 Z-31.000000")
|
||||
N..... SET_G5X_OFFSET(9, 25.0000, 26.0000, 27.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..... MESSAGE(" X-24.000000 Y-24.000000 Z-34.000000")
|
||||
N..... SET_G5X_OFFSET(1, 1.0000, 2.0000, 3.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(10.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()
|
||||
61
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-with-g92/test.ngc
vendored
Normal file
61
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-with-g92/test.ngc
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
g92.1
|
||||
g21
|
||||
g10 l2 p1 x1 y2 z3 r10
|
||||
g10 l2 p2 x4 y5 z6 r20
|
||||
g10 l2 p3 x7 y8 z9 r30
|
||||
g10 l2 p4 x10 y11 z12 r40
|
||||
g10 l2 p5 x13 y14 z15 r50
|
||||
g10 l2 p6 x16 y17 z18 r60
|
||||
g10 l2 p7 x19 y20 z21 r70
|
||||
g10 l2 p8 x22 y23 z24 r80
|
||||
g10 l2 p9 x25 y26 z27 r0
|
||||
g54
|
||||
g55
|
||||
g56
|
||||
g57
|
||||
g58
|
||||
g59
|
||||
g59.1
|
||||
g59.2
|
||||
g59.3
|
||||
g54
|
||||
g0 x0 y0 z-10
|
||||
g92 x.1 y.2 z.3
|
||||
(debug, X#5420 Y#5421 Z#5422)
|
||||
g55
|
||||
(debug, X#5420 Y#5421 Z#5422)
|
||||
g56
|
||||
(debug, X#5420 Y#5421 Z#5422)
|
||||
g57
|
||||
(debug, X#5420 Y#5421 Z#5422)
|
||||
g58
|
||||
(debug, X#5420 Y#5421 Z#5422)
|
||||
g59
|
||||
(debug, X#5420 Y#5421 Z#5422)
|
||||
g59.1
|
||||
(debug, X#5420 Y#5421 Z#5422)
|
||||
g59.2
|
||||
(debug, X#5420 Y#5421 Z#5422)
|
||||
g59.3
|
||||
(debug, X#5420 Y#5421 Z#5422)
|
||||
|
||||
g54
|
||||
g92.1
|
||||
(debug, X#5420 Y#5421 Z#5422)
|
||||
g55
|
||||
(debug, X#5420 Y#5421 Z#5422)
|
||||
g56
|
||||
(debug, X#5420 Y#5421 Z#5422)
|
||||
g57
|
||||
(debug, X#5420 Y#5421 Z#5422)
|
||||
g58
|
||||
(debug, X#5420 Y#5421 Z#5422)
|
||||
g59
|
||||
(debug, X#5420 Y#5421 Z#5422)
|
||||
g59.1
|
||||
(debug, X#5420 Y#5421 Z#5422)
|
||||
g59.2
|
||||
(debug, X#5420 Y#5421 Z#5422)
|
||||
g59.3
|
||||
(debug, X#5420 Y#5421 Z#5422)
|
||||
m2
|
||||
3
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-with-g92/test.sh
vendored
Executable file
3
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-with-g92/test.sh
vendored
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
rs274 -g test.ngc -t test.tbl | awk '{$1=""; print}'
|
||||
exit "${PIPESTATUS[0]}"
|
||||
1
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-with-g92/test.tbl
vendored
Normal file
1
wasm-port/vendor/linuxcnc/tests/interp/g10/g10-with-g92/test.tbl
vendored
Normal file
@@ -0,0 +1 @@
|
||||
t1 p1 x0 y0 z0
|
||||
Reference in New Issue
Block a user