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

      • 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
      • Ultimaker Cura 5.6 stable released
        Cura now supports Method series printers!
         
        A year after the merger of Ultimaker and MakerBotQQ, we have unlocked the ability for users of our Method series printers to slice files using UltiMaker Cura. As of this release, users can find profiles for our Method and Method XL printers, as well as material profiles for ABS-R, ABS-CF, and RapidRinse. Meaning it’s now possible to use either Cura or the existing cloud-slicing software CloudPrint when printing with these printers or materials
        • 48 replies
    ×
    ×
    • Create New...