1. Got a question or need help troubleshooting? Post to the troubleshooting forum or Search the forums!

I have perfected my gCode-driven pause function for

Discussion in 'Show and Tell' started by Morichalion, Jan 9, 2016.

  1. Morichalion

    Morichalion Member

    Joined:
    Dec 1, 2015
    Messages:
    79
    Likes Received:
    25
    Unless you're looking very close, and know exactly what to look for, you won't see where it paused.

    YAY!!!
     
    Mike Kelly likes this.
  2. ParamedicStan

    ParamedicStan Member

    Joined:
    Jul 21, 2015
    Messages:
    31
    Likes Received:
    21
    I have had no luck with this.... Would you be willing to share it?

    Stan
     
  3. Sloan32

    Sloan32 Member

    Joined:
    Dec 9, 2015
    Messages:
    48
    Likes Received:
    2
    I agree. Please share!
     
  4. Morichalion

    Morichalion Member

    Joined:
    Dec 1, 2015
    Messages:
    79
    Likes Received:
    25
    Stan, Sloan,

    Here's the code I have. Basically, "Pause" is started with an M25 command, and you have to use an M24 to restart the print.

    There's some things that happen before to make it easier to get to the box to drop your payload. There's some things that happen after to reset everything to create a more seamless startup for your print.

    It's not as user-friendly as I'd like it to be. There's some variable-placeholders that need to be changed before it'll work as intended. I mean, it works, it's just not as complete as I'd like it to be.

    ;Custom Pause Code

    ;Paste this whole file in a slic3r-generated file, just before a new layer starts (Look for a Z value somewhere).



    ;Pre-pause moves

    G91; Relative coords
    G1 E-2; Retract the filament. Releases pressure and reduces stringing.
    G1 Z2; Move the printhead up
    G90; Absolute coords
    G1 Y200 X200; Move bed forward, printhead to the side.

    ;End Pre-pause moves.

    M25;Pause

    ;To start up again, you need to send an M24 command to the printer

    ;Startup Moves

    ;Print Head Reset
    ;Look above this custom code for the last values of movement commands.
    ;You'll need to replace the "nnn" placeholders with whatever the last G1 command sent them to.

    G1 Xnnn Ynnn; Last X and Y position of the head
    G1 Znnn; Last Z position of the head
    ;End Print Head Reset

    ;Filament Reset
    G91; Relative Coords
    G1 E2.1; Filament back in position. You may need to play with this value a bit to get perfect results, but it should be close to whatever the retract value above was.
    G90; Absolute coords
    ;End Filament Reset


    ;End Startup Moves

    ;End Custom Pause Code​
     
    sesl and Mike Kelly like this.
  5. Sloan32

    Sloan32 Member

    Joined:
    Dec 9, 2015
    Messages:
    48
    Likes Received:
    2
    Looks pretty good! Might give it a try soon
     
  6. sesl

    sesl New Member

    Joined:
    Nov 19, 2015
    Messages:
    15
    Likes Received:
    9
    I've been trying to nail down a good pausing and resume script for OctoPrint and this worked perfectly! Thanks for the share!
     

Share This Page