Run a second gcode file without homing after first gcode file?
-
There is no requirement to home your printer before starting a print but in most cases it is the safe thing to do.
But whatever is homing your printer is under your control.
Either the code generated by the slicer or code that you have created to be executed at the start of a print is doing the homing.
You could create a global boolean variable that controlled if homing was done and one or two macros to set the state of the variable.
Or you could use an M291 to query if homing should be done.
Frederick
-
Thanks for the replies. I'll check the the config files and try a few experiments tonight.
-
@mrehorstdmd most likely your slicer is adding a M18 or M84 command at the end of the generated GCode file. That will turn off current to the motors and flag them as not homed.
-
When I am running 'mass production', such as when I was doing repeat prints of PPE a year ago, I never re-homed the printer for a month. If you don't turn off the motors, it should be fine.
-
@dc42 I think that's it. I append M18 commands to the ends of files to kill the noise that the motors make when they are idle. I'll try running without the M18 commands.
-
@mrehorstdmd said in Run a second gcode file without homing after first gcode file?:
@dc42 I think that's it. I append M18 commands to the ends of files to kill the noise that the motors make when they are idle. I'll try running without the M18 commands.
I've heard others doing the same.
I wonder why that happens as the fans on the power supplies of my printers mask any noise the steppers may be making.
What sort of noise are you hearing?
Thanks.
Frederick
-
@mrehorstdmd might you be able to just reduce the current to a very low value instead of off with M906 ?
-
@sinned6915 I'm using integrated servomotors, so there's no firmware control of the idle current. They make the usual hissy/whiny sounds that steppers make when they're idle. There are no fans in the machine- it's a sand table that sits in my livingroom, so it needs to be as quiet as possible. You can see/hear it operating here.
@fcwilt @dc42 Yes, it was the M18 commands at the ends of the files that were preventing running a new file.
-
@mrehorstdmd if you want to turn off the motors, but have the patterns work as you expect then you will need to use G92 to set the position of the axis. Of course if there is any movement of the axis under the table while the motors are off then you could crash into the axis limits as the pattern gets to the edges....
-