Import LinuxCNC source tree

This commit is contained in:
Wang Dequan
2026-08-20 06:17:39 +08:00
commit 2c814634c3
9429 changed files with 10556013 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
test for restoring both M7 and M8 after being turned off in a sub
with M73 autorestore set

View File

@@ -0,0 +1,31 @@
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("mist on")
N..... MIST_ON()
N..... COMMENT("flood on")
N..... FLOOD_ON()
N..... COMMENT("mist+flood off")
N..... MIST_OFF()
N..... FLOOD_OFF()
N..... SET_FEED_RATE(0.0000)
N..... SET_SPINDLE_SPEED(0, 0.0000)
N..... MIST_ON()
N..... SET_MOTION_CONTROL_MODE(CANON_CONTINUOUS, 0.000000)
N..... SET_NAIVECAM_TOLERANCE(0.0000)
N..... FLOOD_ON()
N..... COMMENT("mist+flood must be on again here since restored by M73:")
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..... MIST_OFF()
N..... FLOOD_OFF()
N..... PROGRAM_END()
N..... ON_RESET()
N..... ON_RESET()

View File

@@ -0,0 +1,19 @@
;py,from interpreter import *
o1000 sub
M73
M9 (mist+flood off)
o1000 endsub
m7 (mist on)
m8 (flood on)
o1000 call
(mist+flood must be on again here since restored by M73:)
;py,assert this.params["_mist"] == 1.0
;py,assert this.params["_flood"] == 1.0
m2

View File

@@ -0,0 +1,3 @@
#!/bin/bash
rs274 -g test.ngc | awk '{$1=""; print}'
exit "${PIPESTATUS[0]}"