Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Cura Start and End GCode?

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    3
    5
    3.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Icthusundefined
      Icthus
      last edited by

      I've searched and I can't seem to find anything relevant to this and it could be my simple ignorance to this (As I'm new to the Duet and reprap firmware) but I can't seem to find anyone using 'Suggested' gcode start and end code?

      Can I ask what all you lot out there are using in yours? I'm trying to work out what is needed and not needed now with my new setup.

      This is what I am using now as it was what I used on my old printer

      Start Code

      G21 ;metric values
      G90 ;absolute positioning
      M82 ;set extruder to absolute mode
      M107 ;start with the fan off
      G28
      
      

      End Code

      M104 S0 ; turn off extruder
      M140 S0 ; turn off bed
      G1 X0 Y200 F1000 ; prepare for part removal
      M107 ; Fan Off
      M84 ; disable motors
      
      

      I do get errors on start a print now but I'm not sure whats best to put in there? Should I do G29? As I have the mini IR sensor for auto leveling.

      I'm curious to see what everyone else does for theres

      Thanks

      Gareth

      1 Reply Last reply Reply Quote 0
      • darookeeundefined
        darookee
        last edited by

        My Start-script (using slic3r) is this:

        M140 S[first_layer_bed_temperature] ; set bed temperature with 
        ;M104 S[first_layer_temperature]         ; set extruder temperature tool selection
        M98 P/sys/before_print.g
        
        

        The commented out M104 is so that slic3r thinks it's setting the extruder temperature, when it's actually not.

        /sys/before_print.g looks like this:

        M80 	; turn PSU on
        T0      ; Select tool 0
        M116	; Wait for tools
        
        G32 	; call bed.g
        
        ; Purge line
        G1 Z0.2
        G1 Y2 X25 F15000        ; move out of build volume
        G1 X175.0 E24 F1200     ; finish purge line
        G4 P5000	        ; Wait to let the plastic cool a little 
        G1 X100.0 Y100.0 F15000 ; Move to middle to rip plastic off tip
        G92 E0                  ; reset extruder position to 0
        
        

        and bed.g looks like this, so I probably could replace the G32 with G29 S1…

        ; Clear any bed transform
        M561
        ; Home all axes
        G28
        ; Grid compensation
        G29 S1
        
        

        What this all does is

        • Setting the bed temperature
        • Selecting the first tool (the printer only has one)
        • Waits for all the temperatures to be at the set point
        • loads the mesh compensation map
        • extrudes a bit of filament to the front of the bed
        1 Reply Last reply Reply Quote 0
        • Icthusundefined
          Icthus
          last edited by

          Thank you very much darookee, can I ask what setup you have as well?

          1 Reply Last reply Reply Quote 0
          • burtoogleundefined
            burtoogle
            last edited by

            My cura start/end scripts for a kossel delta (using relative extrusion mode) are:

            [[language]]
            G28 ; home all axes
            G1 X0 Y0 Z25 F8000 ; descend
            
            

            and

            [[language]]
            M83 ; extruder relative mode
            G1 E-2 F2000 ; retract
            M104 S0 ; turn off extruder
            M140 S0 ; turn off bed
            M106 S0 ; turn off fan
            G28 ; home
            M84 ; disable motors
            
            

            Please remember that in cura, the extrusion mode is set to absolute before the scripts are inserted even if relative extrusion mode is enabled in the cura settings. I know this is dumb but the cura devs insisted upon it.

            1 Reply Last reply Reply Quote 0
            • darookeeundefined
              darookee
              last edited by

              @Icthus:

              Thank you very much darookee, can I ask what setup you have as well?

              My printer is a HyperCube-y CoreXY using the extruder of the Wanhao i3 I ripped apart…

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA