Import LinuxCNC source tree
This commit is contained in:
2
tests/m70-m73/m73-flood-mist-restore.0/README
Normal file
2
tests/m70-m73/m73-flood-mist-restore.0/README
Normal file
@@ -0,0 +1,2 @@
|
||||
test for restoring both M7 and M8 after being turned off in a sub
|
||||
with M73 autorestore set
|
||||
31
tests/m70-m73/m73-flood-mist-restore.0/expected
Normal file
31
tests/m70-m73/m73-flood-mist-restore.0/expected
Normal 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()
|
||||
19
tests/m70-m73/m73-flood-mist-restore.0/test.ngc
Normal file
19
tests/m70-m73/m73-flood-mist-restore.0/test.ngc
Normal 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
|
||||
3
tests/m70-m73/m73-flood-mist-restore.0/test.sh
Normal file
3
tests/m70-m73/m73-flood-mist-restore.0/test.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
rs274 -g test.ngc | awk '{$1=""; print}'
|
||||
exit "${PIPESTATUS[0]}"
|
||||
Reference in New Issue
Block a user