Jump to content

start gcode not running 4.9


javajoeuk

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

      • Introducing Universal Cura Projects in the UltiMaker Cura 5.7 beta
        Strap in for the first Cura release of 2024! This 5.7 beta release brings new material profiles as well as cloud printing for Method series printers, and introduces a powerful new way of sharing print settings using printer-agnostic project files! Also, if you want to download the cute dinosaur card holder featured below, it was specially designed for this release and can be found on Thingiverse! 
          • Like
        • 10 replies
      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
         
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
    ×
    ×
    • Create New...