@execute only after previous command ack'ed

I think it would be valuable to have synchronous @execute commands.

I have a buffer of n commands and one command within is @execute so it'll be executed before the real g-code occur.

For example, I want to home X & Y, center, home Z, go back to home, start bed heating, play a sound, start extruder heating, play a sound, then begin print.
With a buffer of 8 both sounds are played right after print session starts so I don't know when bed temperature is reached nor when print really starts.

Hope it can be added in next release

Many thanks for you great work.

Comments

  • No, that is not so easy.

    Server does not know what firmware is doing and it also has a buffer of send commands. If it is so crucial, you need 
    M400
    M105
    M105
    M105
    M105
    M105
    M105
    M105
    M105
    M105
    M105
    M105
    M105
    M105
    M105
    M105
    M105
    M105
    M105

    Before the @execute. M400 to wait until buffers are empty and M105 just to fill up buffer so M400 is executed when @execute gets executed. You need more M105 then buffer size.

  • Nice trick, going to do that.
    I always forget Repetier Server can be used with other firmware, it's so easy with repetier firmware ;).

    Thanks for the help.
Sign In or Register to comment.