Jump to content

Start Gcode


Suggy

Recommended Posts

I'm using the latest cure. Marlin 2.1.1 Im setting up a profile and my start scrips is this

G28 ; Home all axis

G1 Z20 X1 Y1 F3000 ; move to wait position

G130 X20 Y20 Z20 A20 ; lower stepper Vrefs while heating

M140 ; Heat Bed

M190 ; stabilize bed temperature

M104 ; Heat Extrued

M109 ; stabilize extruder temperature

G130 X127 Y127 Z40 A127 B127 ; default stepper Vrefs

G1 Z-0 ; Raise Bed ?

G1 E0 100 F900 ; purge nozzle

G1 X140 F1200 ; slow wipe

 

But when I run a print it wont follow the code. It starts by heating the head and bed before running the script.

I'm guessing there's a box that need tick or unticking?? but unable to find it.

 

Can someone please please help me?

  • Link to post
    Share on other sites

    Posted · Start Gcode

    Just looking at the start off the gcode after its sliced and there are comands tell the printer to start heating. dont know why there there as my settings are under it.

    ;FLAVOR:Marlin
    ;TIME:1060
    ;Filament used: 1.1685m
    ;Layer height: 0.15
    ;MINX:62.2
    ;MINY:62.2
    ;MINZ:0.3
    ;MAXX:97.8
    ;MAXY:97.8
    ;MAXZ:19.95
    ;Generated with Cura_SteamEngine 4.10.0
    M140 S60
    M105
    M190 S60
    M104 S200
    M105
    M109 S200
    M82 ;absolute extrusion mode
     

    G28 ; Home all axis
    G1 Z20 X1 Y1 F3000  ; move to wait position
    G130 X20 Y20 Z20 A20 ; lower stepper Vrefs while heating
    M140 ; Heat Bed
    M190 ; stabilize bed temperature
    M104 ; Heat Extrued
    M109 ; stabilize extruder temperature
    G130 X127 Y127 Z40 A127 B127 ; default stepper Vrefs
    G1 Z-0 ; Raise Bed ?
    G1 E0 100 F900 ; purge nozzle
    G1 X140 F1200 ; slow wipe
    G92 E0
    G92 E0
    G1 F1500 E-6.5

  • Link to post
    Share on other sites

    Posted (edited) · Start Gcode

    If the temperatures aren't mentioned in the Startup Gcode then Cura will add them before the StartUp as a safety to prevent cold extrusions.  Your startup gcode is missing the S parameters from the heating lines.  Syntax errors will be ignored by the firmware.

    From what I see on the MarlinFW site, Marlin doesn't use "G130" to set the stepper motor voltage.  You might need to use M907 instead.  The syntax for a dual extruder printer would be "M907 X20 Y20 Z20 E20 B20".  "E" would be Extruder0 and "B" would be Extruder1.  Frankly, I've never seen the stepper Vrefs adjusted in the StartUp gcode.

     

    You can use Cura replacement patterns (keywords) that Cura will replace with the correct numbers when the Gcode is created.

    M104 S{material_print_temperature_layer_0} ;Start heating the nozzle.

    M140 S{material_bed_temperature_layer_0} ;Start heating the hot end.

    M109 S{material_print_temperature_layer_0} ;Wait for the nozzle to get to the set point.

    M190 S{material_bed_temperature_layer_0} ;Wait for the bed to get to the set point.

    You can see that the S parameter is in there.  The Curly brackets tell Cura that there are keywords in there.

     

    Something like this would work.  It would be a bit different if an ABL is involved:

    G21 ;Metric values

    G90 ;Absolute Movement

    M82 ;Absolute Extrusion

    M220 S100 ;set feed rate to 100% in case a previous print was tuned from the LCD.

    M221 S100 ;set flow rate to 100%

    G28 ; Home all axis

    G0 F3000 X1 Y1 Z20 ; move to wait position

    G130 X20 Y20 Z20 A20 ; lower stepper Vrefs while heating  or  M907 X20 Y20 Z20 E20 B20

    M104 S{material_print_temperature_layer_0} ;Start heating the nozzle.

    M140 S{material_bed_temperature_layer_0} ;Start heating the bed.

    M105 ;Report temperatures

    M109 S{material_print_temperature_layer_0} ;Wait for the nozzle to get to the set point.

    M190 S{material_bed_temperature_layer_0} ;Wait for the bed to get to the set point.

    G130 X127 Y127 Z40 A127 B127 ; default stepper Vrefs or M907 X127 Y127 Z40 E127 B127

    G92 E0 ;zero the extruder

    G1 F900 E10 ; purge nozzle

    G92 E0 ;zero after purge

    G0 F3000 X10 ; move over

    G0 F2400  X25 Z.3 ; drop to wipe height

    G0 X140 Y1 ;Slow wipe

    G0 F2400 Z10 ; Raise Z

     

     

    Edited by GregValiant
    • Like 1
    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 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
      • UltiMaker Cura 5.7 stable released
        Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
         
          • Like
        • 26 replies
    ×
    ×
    • Create New...