Modify g code program while it's being executed

edited May 2022 in General
Is it possible to add to or modify the the program after it has started? Example- I start a print then decide at layer 100, 5 hours into the print I want to add an M0 (along with the required code to resume) to install a captured nut. Can i do this and if so how far ahead of the currently executed commands can I do this? In case it matters I'm using Marlin FW.Thanks

Comments

  • No you can't. At print start a copy is made for execution. So when you edit it would be for the next print started.

    For pauses you better should use
    @pause Message
    and configure pause script to move away. That way host controls pause and not the printer.
  • Thanks for the clarification and advice. I will look in to using the pause script
Sign In or Register to comment.