Comand pause e resume from DWC

  • Hi guys, I'm going crazy! I'm trying to make a macro for "Pause" and another for "Resume" that must work through DWC but for prints launched by Host (I mean NOT from SD).
    I can do the macro and if I activate it while printing it regularly moves the head to the Home position but then instead of stopping there and waiting for my "OK" for resume it returns to print. Can you help me? I read the whole forum, I tried different codes but unfortunately goes to the home and does not stop to wait for the command to make resume.
    Thanks to all in advance.

  • Moderator

    Can you pause the gcode sender?

  • Thanks for intervention. I've tried so many gcode and I'm full of notes.
    The "Pause" macro that prints from SD works is this:
    M83; related extruder moves
    G1 E-10 F3600; retract 10mm of filament
    G91; relative positioning
    G1 Z5 F360; lift Z by 5mm
    G90; absolute positioning
    G1 X0 Y0 F6000; go to X = 0 Y = 0

    but if I try to use it in a macro created by me to be able to use it by printing not from SD it works in part, that is it does not stop and waits for my command for resume in X0 and Y0

  • Then with the other "resume" macro he must resume printing and continue from where he paused but I have not yet been able to prove if I do not resolve the pause before

  • Moderator

    But if you're printing via USB, the host is sending a stream of gcode at the duet and the duet is executing it. In order to pause, the gcode sender will have to be paused. The Duet can't tell the USB host to stop.

    What are you using for the USB host?

  • Are you telling me that the macro would work if it weren't for the host that doesn't block itself and continues to send data?
    If so, I hadn't thought of it!

    Host repetier use

    EDIT: If the cause is the host that does not lock in sending data, beyond inserting the pause manually in the gcode, there is no other way?

  • Moderator

    I don't often print via USB, so I'm not really sure how it behaves when trying to pause.

    Is there a reason why you want to print via repetier host rather than just using the DWC and printing via the internal SD card?

  • @phaedrux said in Comand pause e resume from DWC:


    Is there a reason why you want to print via repetier host rather than just using the DWC and printing via the internal SD card?

    I believe none. Maybe it's just a matter of habit. From the first printer (even with marlin) I never wanted to use SD. Bho ... I try to change see if I get used to it.

  • Moderator

    Printing from the SD card is definitely the preferred way to do it with the duet. More reliable and opens some more possibilities.

    Most slicers now let you upload directly to the duet and start the print with a single click.

Log in to reply