Jump to content
Ultimaker Community of 3D Printing Experts

Recommended Posts

Posted · start gcode not running 4.9

Hi I have a tevo tarantula that has start and finish gcode under the printer setting to print a line at the start of each print but its not doing anything. Its printing fine just not running the gcode.

G21 ;metric values
G90 ;absolute positioning
M82 ;set extruder to absolute mode
M107 ;start with the fan off
G28 X0 Y0 ;move X/Y to min endstops
G28 Z0 ;move Z to min endstops
G1 Z15.0 F9000 ;move the platform down 15mm
G92 E0 ;zero the extruded length
G1 F200 E3 ;extrude 3mm of feed stock
G92 E0 ;zero the extruded length again
G1 F9000
;Put printing message on LCD screen
M117 Printing...

Any help would be great.

Thanks

  • Link to post
    Share on other sites
    Posted · start gcode not running 4.9

    There are no instructions above to print a line on your print bed.  It should home the axes then move the head 15mm above the bed (where it says "move the platform down 15mm" which is silly since many printers it's the nozzle that moves and homing may be in the other direction but whatever).

     

    Then it extrudes 3mm of filament (in the air - above your print bed) then it starts printing your part.  This is to prime the nozzle.

     

    No "line"

  • Link to post
    Share on other sites
    Posted · start gcode not running 4.9

    🤣 that will explain it I sholud have read it better this is what I have changed it too and It should work

    M117 Cleaning... 
    G21 ;metric values
    G90 ;absolute positioning
    M82 ;set extruder to absolute mode
    M107 ;start with the fan off
    G28 X0 Y0 ;move X/Y to min endstops
    G28 Z0 ;move Z to min endstops
    G0 X1 Y0 Z0.15 F9000  ; Move in 1mm from edge and up [z] 0.15mm
    G92 E0 ;zero the extruded length
    G1 Y290 E100 F500  ; Extrude 100mm filiment along Y axis 290mm long to prime and clean the nozzle
    G92 E0 ;zero the extruded length again
    G1 E-3 F500  ;Retract filament by 3mm
    G1 X3 Y190 Z15 F9000    ; Move over and rise to safe Z height
    G1 X3 Y0 Z15 F9000      ; Move back to front of bed at safe Z height to shear strings
    G1 E3 F500
    M421 S1
    M117 Printing...  ;Put printing message on LCD screen

    Do I nedd to add a heat command or will cura know to heat to temp

  • Link to post
    Share on other sites
    Posted · start gcode not running 4.9

    Looks perfect except E100 is much too much extrusion - this is the distance the filament moves and even if you have 1.75mm filament (would be even worse for 3mm filament) that's much too much extrusion.  You need to do some math.

     

    290mm of travel X (I assume you have 0.4 nozzle) 0.4 X 0.15 = 17.4 cubic mm of filament.  Now assuming 1.75mm filament...

     

    17.4 / (area of filament) = 17.4 / (3.14 * (1.75/2)^2) = 7.24mm

     

    So if you extrude 7.24mm of filament it will be the exact right amount (E7.24 not E100)

     

    However you want to overextrude by 30 to 100% so I'd do E10.

    • Like 1
    Link to post
    Share on other sites
    Posted · start gcode not running 4.9

    I don't know about temperature.  slice and save it as gcode and look at all the M gcodes.  See if it heats up before or after your bit of code.  There are variables you can use and Cura will substitute - something like

     

    M109 S{first_layer_bed_temperature}

     

    See this post for more info:

     

  • Link to post
    Share on other sites
    Posted · start gcode not running 4.9

    If the heat commands are in the Start Gcode with variable names (Cura keywords), then Cura will use them.  They would need to be first in the start-up gcode.  In this case Cura will not add additional heating commands.

    ; Ender 3 Custom Start G-code

    M109 S{material_bed_temperature_layer_0}

    M190 S{material_bed_temperature_layer_0}

    M104 S{material_print_temperature_layer_0}

    M140 S{material_print_temperature_layer_0}

    results in:

    ;Generated with Cura_SteamEngine 4.9.0
    M82 ;absolute extrusion mode
    ; Ender 3 Custom Start G-code
    M109 S50
    M190 S50
    M104 S210
    M140 S210
    G92 E0 ; Reset Extruder
    G28 ; Home all axes

     

    If the heat commands are in the start Gcode and are hard coded then Cura will add it's own heat commands in front of the Start Gcode.  It would look like this:

    ;Generated with Cura_SteamEngine 4.9.0
    M140 S50
    M104 S210
    M105

    M190 S50
    M109 S210
    M82 ;absolute extrusion mode
    ; Ender 3 Custom Start G-code

    M104 S199  ;from the start gcode
    M140 S199  ;from the start gcode
    M109 S27  ;from the start gcode
    M190 S27  ;from the start gcode
    G92 E0 ; Reset Extruder
    G28 ; Home all axes

     

    If the heat commands are absent from the start Gcode then Cura will add heat commands in front of the Start Gcode.

    ;Generated with Cura_SteamEngine 4.9.0
    M140 S50
    M104 S210
    M105     ;this is a temperature check

    M190 S50
    M109 S210
    M82 ;absolute extrusion mode
    ; Ender 3 Custom Start G-code
    G92 E0 ; Reset Extruder
    G28 ; Home all axes

     

    The listing of Cura keywords are HERE.  Much thanks to @ahoeben for putting the list together.

     

    • Like 2
    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 turns 10: A look back
        Ultimaker is turning 10 years old and that means it is story telling time! We'll explore 2010-2014, traveling through the evolution of the business from the Protobox and Ultimaker Original, to the major leaps forward with the Ultimaker 2 and Ultimaker 3.
          • Like
        • 0 replies
      • Ultimaker Transformation Summit
        Visit our virtual showroom and learn more about the Ultimaker ecosystem!
        • 14 replies
      • New here? Register your Ultimaker for free 3D printer onboarding course
        Hi,
         
        Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
        Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.   
        They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access. 
        Ready? Register your product here in just 60 seconds.
          • Like
        • 4 replies
    ×
    ×
    • Create New...