Jump to content

SOLVED: What is wrong with my G-Code: doesn't print


deonholt

Recommended Posts

Posted (edited) · SOLVED: What is wrong with my G-Code: doesn't print

Hi and thank you for your help.

Currently using PrusaSlicer but have seen some nice tutorials from a couple of Cura users and want to give it a go.

My setup:

Ender 5 Pro

Duet WiFi 2.0 board

RepRap firmware

 

Form some reason my prints don't start. It runs through bed & nozzle heating, ABL & prints the line on the left. And then the nozzle goes to the back right corner and switches off the bed and hot end. My suspicion is that it has something to do with my G-Code. I copied and pasted my start & end code from PS and realised I had to change the settings bed & material temperatures.

I will appreciate your help.

Thanks.

Here is my current scarting code:

 

; start code

T0 ; select tool 1
G28 ; home all
M104 S{material_print_temperature} ; set extruder temp
M140 S{material_bed_temperature} ; set bed temp
M190 S{material_bed_temperature} ; wait for bed temp
M109 S{material_print_temperature} ; wait for extruder temp
G29 ; do abl
; G29 S1 ; use stored bed mesh
; G91
G1 E0 F10 ; feed 91mm of filament
G1 E90 F500
G1 Z5 F5000 ; lift nozzle 5mm
G1 X4 Y10 F3000
G1 Z0.28 F240
G92 E0
G1 Y190 E15 F1500 ; intro line
G1 X4 F5000
G92 E0
G1 Y10 E15 F1200 ; intro line
G92 E0

 

; end code

G91 ; change to relative positioning

G1 E-90 F1000 ; Retract filament 90mm

G1 Z20 F500 ; lower bed 20mm from current position

G90 ; change to absolute positioning

G1 X200 Y200 ; move tool to back right

M140 S0 ; turn off heatbed

M104 S0 ; turn off temperature

;M107 ; turn off fan

M84 X Y E ; disable motors

Edited by deonholt
  • Link to post
    Share on other sites

    • deonholt changed the title to SOLVED: What is wrong with my G-Code: doesn't print
    Posted · SOLVED: What is wrong with my G-Code: doesn't print

    I'll ignore it after I make a suggestion...

    Change the beginning of the StartUp Gcode to this:

     

    ; start code

    T0 ; select tool 1

    M140 S{material_bed_temperature_layer_0}

    M109 S150 ;heat the hot end to 150
    G28 ; home all
    G29 ; do abl
    M109 S{material_print_temperature_layer_0} ; set extruder temp and wait
    M190 S{material_bed_temperature_layer_0} ; wait for bed temp
    ; G29 S1 ; use stored bed mesh

    etc, etc,

     

    1. Setting the hot end to a temperature below the "ooze" temperature can keep the bed clean during the ABL stuff.
    2. If you decide to go to different "Print Temperature Initial Layer" or "Bed Temperature Initial Layer" then adding the "_layer_0" to the replacement words will get those "Initial Temperatures" to turn up in the gcode.

    I added "M220 S100" and "M221 S100" to my end gcode in case I tune the flow or feedrate during a print.  It will reset them to 100%.  If I roll right into another print then changes I might have made won't carry over.

    • 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 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
        • 16 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...