Jump to content

Gcode Pause


bob-hepple

Recommended Posts

Hi All I hope someone can help me with this Im wanting to pause my print at a given place and  I use a a few lines of code that basically does a retract move away from print and pause then resume

 

;pause 1
G1 E-0.50 F1800 ; Retract :start of bobs stop
G1 Z20 F3000 X20 Y50
M0 S30  ; pause
G1 E1.0 F1000 ; purge 1mm fillament
G92 E0.0
G1 Z2.930
G1 X152.300 Y169.949 E202.6365 F1380
G1 X151.577 Y170.329 E202.6717
G1 X85.990 Y104.742 E206.6637
G1 X86.300 Y106.156 E206.7260

but 

 

line 

G1 X152.300 Y169.949 E202.6365 F1380 does not print, it moves to the x and y coordinates but the extruder is not moving until the next line could some explain where Im going wrong 

  • Link to post
    Share on other sites

    50 minutes ago, bob-hepple said:

    G1 E-0.50 F1800 ; Retract :start of bobs stop

     

    Some thoughts...

     

    Do you use relative coordinates for the e-axis? I see no M83 / M82 in your snippet.

    This can be a very long retraction if this is an absolute e value...

     

    54 minutes ago, bob-hepple said:

    G92 E0.0

     

    (re-)sets the e coordinate to zero

     

    55 minutes ago, bob-hepple said:

    G1 X152.300 Y169.949 E202.6365 F1380

     

    and here it tries to extrude 202.6365 mm at once.

     

    1 hour ago, bob-hepple said:

    it moves to the x and y coordinates but the extruder is not moving until the next line could some explain where Im going wrong

     

    Which printer is it? There's probably a feature in the firmware that prevents extrusion if a certain length is exceeded.

     

    I think, you should temporary use relative moves for the e axis (retraction and purge), and you probably don't want to use the G92 command at all.

    But of course it depends on the coordinate mode that is used at the moment your pause occurs.

     

  • Link to post
    Share on other sites

    Posted · Gcode Pause

    Tinkergnome 

     

    thank you for taking the time to respond it is appreciated.. My apologies  my original code had been modified  to take out the incremental and absolute commands (suggested by some else) below is directly from my sd card

     

     

     

     

     

     

     

     

     

     

  • Link to post
    Share on other sites

    Posted · Gcode Pause

    ;pause 1
    G91 ; set Relative
    G1 E-0.50 F1800 ; Retract :start of bobs stop
    G1 Z20 F3000 X20 Y50; move to Z100 X145 Y150 at F4000 speed
    M0 S30  ; pause
    G1 E1.0 F1000 ; purge 1mm fillament
    G90 ; Set absolute
    G92 E0.0
    G1 X85.679 Y103.328 F2000 these are taken from next feature
    G1 Z2.930
    G1 X152.300 Y169.949 E202.6365 F1380
    G1 X151.577 Y170.329 E202.6717
    G1 X85.990 Y104.742 E206.6637
    G1 X86.300 Y106.156 E206.7260
    G1 X150.854 Y170.709 E210.6551
    G1 X150.131 Y171.089 E210.6902
    G1 X86.611 Y107.569 E214.5564

     

    I looked at the code and decided where the pause would be there's two pauses in the complete programme,  the print is in absolute (start of G code) I had two issues 1 unless I put the G92 in the filament would be completely retracted ruining the print and when I could get it to re print the line 

    G1 X152.300 Y169.949 E202.6365 F1380   would go to the X and Y coordinates but the extruder was not extruding but the next line it started to extrude,,

     

    i'm working on two projects both need a pause in it 1 on the Ultimaker 2 and the other on Taz 6 the code above is running on Taz 6 i'm reluctant to do anymore prints until I know where I'm going wrong Taz 6 uses Marlin.

     

    I wondered if the reason there was no movement from the extruder was something todo with the E202.6365 with me placing the G92 E0.0 (did this re set extruder length to 0 ?? 

     

    any advise greatly received..

    Bob

  • Link to post
    Share on other sites

    Posted (edited) · Gcode Pause
    3 hours ago, bob-hepple said:

    I wondered if the reason there was no movement from the extruder was something todo with the E202.6365 with me placing the G92 E0.0 (did this re set extruder length to 0 ??

     

    yes, it sets the extruder position to 0.0 - which is probably not what you want.

     

    You should use the last e coordinate from before the pause instead of 0.0
     

    http://marlinfw.org/docs/gcode/G092.html

     

    Just out of curiosity:

    Why are you inserting those things manually? Which slicer do you use? Doesn't it offer some support for pause scripts?

    And why exactly 30 seconds pause? Wouldn't it be better to wait for a keystroke or such...? Or lacks the taz 6 a display?

    Edited by tinkergnome
  • Link to post
    Share on other sites

    Posted (edited) · Gcode Pause

    I think that the problem is with the "LAYER" comment.  It is in the wrong place.  Here is a typical CURA gcode.

     

    ;MESH:NONMESH
    G0 F600 X66.713 Y38.689 Z1.8
    G0 F7200 X66.333 Y40.555
    G0 X62.31 Y40.63
    G0 X25.674 Y42.11
    G0 X24.195 Y42.115
    G0 X20.932 Y42.197
    G0 X20.933 Y42.048
    ;TIME_ELAPSED:3908.320706
    ;LAYER:10
    ;TYPE:FILL
    ;MESH:Enclosure.stl
    G1 F1500 E3249.63696
    G1 F6000 X24.262 Y45.377 E3249.7544
    G1 X24.332 Y45.447
    G0 F7200 X24.123 Y45.447
    G0 X22.434 Y42.193
    G0 X22.435 Y42.051
    G1 F6000 X19.283 Y45.203 E3249.8656

     

    Normally if you allow CURA to insert the script, it inserts it at the LAYER comment, but notice that the layer really begins at the MESH NOMESH comment.  I always insert my pause after the MESH NOMESH comment  and then Z is restored.

     

    Here is my pause code:

     

    ; Begin Pause Code
    G0 X0 Y0            ;  Insert just before Layer Number at MESH:NONMESH
    G0 Z50
    M25                 ; Pause Print - Remember to just press continue button !!!!!
    ; End Pause Code

     

    Edited by chputney
    added comment
  • Link to post
    Share on other sites

    Posted · Gcode Pause

    Tinkergnome

     

    thanks again for the reply,

     

    I tried just doing a pause but M0,  but there seems to be some discrepancy this works on the ultimaker but not on the Taz or the Prusa  on the Prusa it defaults to some 10 sec then re starts, so I tried to standardise the command across all the printers 30s gives just enough time to insert lead weights and magnets.

     

    Im using S3D to slice, I have never used Cura and I think im starting to pay the price when you look at Cura / Slicer they are leaving S3D behind..

     

    So going back  do you think this should work,  I altered the E from the last line before the pause and re instated it to the G92 

    G1 X85.679 Y103.328 E198.5816
    ;pause 1
    G91 ; set Relative
    G1 E-0.50 F1800 ; Retract :start of bobs stop
    G1 Z20 F3000 X20 Y50; move to Z20 X20 Y50 at F3000 speed
    M0 S30  ; pause
    G1 E1.0 F1000 ; purge 1mm fillament
    G90 ; Set absolute
    G92 E198.5816
    G1 X85.679 Y103.328 F2000 these are taken from last line before pause
    G1 Z2.930
    G1 X152.300 Y169.949 E202.6365 F1380
    G1 X151.577 Y170.329 E202.6717
    G1 X85.990 Y104.742 E206.6637
    G1 X86.300 Y106.156 E206.7260
    G1 X150.854 Y170.709 E210.6551
    G1 X150.131 Y171.089 E210.6902
    G1 X86.611 Y107.569 E214.5564

     

    Can you see anything that should retract all my filament ??

     

    Again Thank you for the Advise.

    Bob

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

  • Link to post
    Share on other sites

    Once you set absolute again with G90, then I think you should use G1 E198.5186 to state the extruder position and not G92.  Use Notepad++ to insert this code on a small 5 minute job at a layer to check.  Also, if your slicer is inserting this script for you, use Notepad++ to check where it is placing it.

  • Link to post
    Share on other sites

    Posted · Gcode Pause

    chputney 

     

    thank you for your advise I use notepad ++  and I place the pause where I want it,  I will try the G1 instead of the G92 thank you for your input..

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • UltiMaker Cura 5.8 Stable released 🎉
        In the Cura 5.8 stable release, everyone can now tune their Z seams to look better than ever. Method series users get access to new material profiles, and the base Method model now has a printer profile, meaning the whole Method series is now supported in Cura!
        • 5 replies
      • Introducing the UltiMaker Factor 4
        We are happy to announce the next evolution in the UltiMaker 3D printer lineup: the UltiMaker Factor 4 industrial-grade 3D printer, designed to take manufacturing to new levels of efficiency and reliability. Factor 4 is an end-to-end 3D printing solution for light industrial applications
          • Thanks
          • Like
        • 3 replies
    ×
    ×
    • Create New...