Jump to content
Ultimaker Community of 3D Printing Experts

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


deonholt
 Share

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
     Share

    • Our picks

      • Ultimaker showcase | April 2022 | 4pm CEST | 10am EDT
        I'm excited because I've personally produced this showcase event, so if you are curious what else I'm up to nowadays, come check it out and say hi in the chat! It would mean a lot! 
          • Thanks
          • Like
        • 4 replies
      • New here? Get ahead with a free onboarding course
        Hi,
         
        Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
        Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.   
        They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access. 
        Ready? Register your product here in just 60 seconds.
          • Like
        • 11 replies
    ×
    ×
    • Create New...