Hi ,
Thanks a lot for the reply. So, the only thing I see in the start code are the Mcodes. So how do I know where to put the G-codes you gave me? I searched, but I cant find the settings 'accel and jerk'. Thanks
Hi ,
Thanks a lot for the reply. So, the only thing I see in the start code are the Mcodes. So how do I know where to put the G-codes you gave me? I searched, but I cant find the settings 'accel and jerk'. Thanks
This is the stock Creality Ender 5 StartUp Gcode from the Machine Settings in Cura. This depends on Cura adding the temperature setting lines. As a result of that, When this code runs the hot end is up to temperature. You could put that code in here anywhere but it is good practice to put it after the G28 command, or G29/M420 if you have ABL.
M201 X500.00 Y500.00 Z100.00 E5000.00 ;Setup machine max acceleration
M203 X500.00 Y500.00 Z10.00 E50.00 ;Setup machine max feedrate
M204 P500.00 R1000.00 T500.00 ;Setup Print/Retract/Travel acceleration
M205 X8.00 Y8.00 Z0.40 E5.00 ;Setup Jerk
M220 S100 ;Reset Feedrate
M221 S100 ;Reset Flowrate
G28 ;Home
G92 E0 ;Reset Extruder
G1 Z2.0 F3000 ;Move Z Axis up
G1 X10.1 Y20 Z0.28 F5000.0 ;Move to start position
G1 X10.1 Y200.0 Z0.28 F1500.0 E15 ;Draw the first line
G1 X10.4 Y200.0 Z0.28 F5000.0 ;Move to side a little
G1 X10.4 Y20 Z0.28 F1500.0 E30 ;Draw the second line
G92 E0 ;Reset Extruder
G1 Z2.0 F3000 ;Move Z Axis up
The new lines are in bold type. I went down a couple of lines to make sure the nozzle has room under it.
G28 ;Home
G92 E0 ;Reset Extruder
G1 Z2.0 F3000 ;Move Z Axis up
G1 F2100 E15 ;extrude 15mm of filament at 35mm/sec
G92 E0 ;reset extruder location
G1 X10.1 Y20 Z0.28 F5000.0 ;Move to start position
Sorry, I found the Gcodes after all. Somehow not alle the text was shown and I couldnt scroll.. I maximized the window and I saw the G-codes. Thanks for the help!
Edited by Amazon62
Recommended Posts
GregValiant 1,344
If you happen to "Tune" a print while it is running (Ex. You use the LCD to slow a print down to 80% feed rate) then that setting will stay active until you change it (or cycle the printer on/off, which will also reset it). So the M220 and M221 lines are a reset in case a print was tuned on the fly.
The M201 and M203 commands are setting up the firmware "speed limits".
The M204 and M205 lines are the numbers that the printer will use in the calculations of movements. If you DO NOT enable Accel and Jerk control in Cura, then the printer will use the numbers in the M203 and M204 lines in it's movement calculations. They are the defaults.
There are a couple of ways to get that prime move in. The simplest is probably:
M82 ;Absolute extrusion - if this line is already in your gcode then you don't need to put it in again.
G92 E0 ;reset extruder location
G1 F2100 E15 ;extrude 15mm of filament at 35mm/sec
G92 E0 ;reset extruder location
Make sure those lines go in AFTER the hot end is at printing temperature, and the print head is located somewhere like the left front corner so the oozing doesn't land on the build plate. The nozzle should be at a Z of 5 or 10 as well so there is room to ooze.
The MarlinFW site has all the Marlin G and M codes listed. You should go over them to familiarize yourself with the common ones.
Edited by GregValiantLink to post
Share on other sites