Method to disable homing during print
-
Some have suggested: to check if the state.status is "processing" when homing.
Problem: It is always "processing" the moment the print is started, so homing never occurs during the print. Which means, you start the print and then get many not homed errors.
I set a global variable in config.g and checkit in the homing files. Call the enable/disable in the slicer's start gcode and a enabie in the end gcode.
Note: you will get homing failed errors when homing is disabled in the homing files.In config.g:
if !exists(global.DisableHoming) global DisableHoming=false ;create variable for use in homing else set global.DisableHoming=false ;reset variable for use in homing
In the homeing files add at the beginning:
if global.DisableHoming M99
EnableHoming macro:
set global.DisableHoming=false
DisableHoming macro:
set global.DisableHoming=true
In the slicer's start gcode:
M98 P"EnableHoming" G28 ; home all axes M98 P"DisableHoming"
Add M98 P"EnableHoming" in the end gocde in the slicer
-
-
@stephen6309 said in Method to disable homing during print:
Some have suggested: to check if the state.status is "processing" when homing.
Problem: It is always "processing" the moment the print is started, so homing never occurs during the print. Which means, you start the print and then get many not homed errors.
................Umm - I have to ask.......a) why would you want to run homing macros during a print? and b) Why would you want to start a print if the machine had not been homed (resulting in error messages)?Scratch that - I think I've worked it out - I assume this is for the use case where you run homing macros as part of the slicer start code yes?
-
@deckingman Yes. I don't want to have to remember to manually home before starting a print. Slicers have been doing that as a default in the start gcode, since I started with a Prusa 2 linear kit.
-
@stephen6309 you can test the values of moves.axes[N].homed for each axis number N that matters.
-
@dc42 I already test for not homed in bed.g, since they won't work without homing. Also in mesh.g if it has to make the heightmap.csv.
-
@stephen6309 so why not test in start.g too, and home if necessary? Then change the start GCode of the slicer not to home the printer.
-
@dc42 I haven't set up a start.g file. But that's a good idea.
-