I’d like to print on my Ender 3 (PLA) a Gcode I created through Grasshopper from a curve (svg file).
However, I have problems when printing - the printer seems to stop after the start gcode phase. Do you know why?
What happens is that you print a line from ca 0,20 to 0,200 and then from 0,200 back to ca 0,20
then your own g-code starts with a start point at x ca 95, y ca 106.
I don´t know how big your print area is, and where your x,y 0,0 is located on your printer. If you try to exceed the max printing area the code most likely will stop somewhere - just a guess, as I don´t know anything about your printer. Does the movement from 0,20 to 0,200 and back work?
Is 95,106 in the correct direction from 0,0 ?
{0}
;–START GCODE–
M104 S{material_print_temperature_layer_0} ; Set Extruder temperature
M140 S{material_bed_temperature_layer_0} ; Set Heat Bed temperature
M190 S{material_bed_temperature_layer_0} ; Wait for Heat Bed temperature
M109 S{material_print_temperature_layer_0} ; Wait for Extruder temperature
G28 ; Home all axes
M117 Purge extruder
G92 E0 ; Reset Extruder
G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position
G1 X0.1 Y200.0 Z0.3 F1500.0 E15 ; Draw the first line
G1 X0.4 Y200.0 Z0.3 F5000.0 ; Move to side a little
G1 X0.4 Y20 Z0.3 F1500.0 E30 ; Draw the second line
G92 E0 ; Reset Extruder
G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
;–END OF START GCODE–
G1 F1800 X95.23 Y106.61 Z0 E0
G1 F1800 X95.21 Y105.17 Z0 E1.44
G1 F1800 X91.36 Y108.15 Z0 E6.31
Are you sure that your machine can handle the 1. / 2. etc. in front of you G1 code?
Could you tell me how to internalise the file into Grasshopper ?
I’m printing on a cartesian printer (Ender3). The x,y 0,0 is located on the on the lower left corner.
The build plate’s dimensions are 235 x 235 mm.
It is what I see when I upload the file in NcViewer:
In ncviewer you watch at a 3d view. The line from 0,20 to 0,200 is in y direction, so the views seem to be identical to cura. If the 0,20 to 0,200 and back works, I would try to remove the line numbering like:
to internalise the curve in GH, just right click on the curve node and choose internalise data.
Please remove the svg import, so we don´t have to install add ons…
Arcs should normally be G2 / G3, but you are only producing G1…
not really, according to your code material should be fed.
I don´t know your printer, so can´t really help.
the only difference in g-code I can see is that:
G1 X0.4 Y20 Z0.3 F1500.0 E30 ; Draw the second line
vs
G1 F1800 X95.21 Y105.17 Z0 E1.44
means F is in a different place. And z was 0,3, but is 0 in your code !. Maybe distance between nozzle and plate to small?
Increase z to 0,3 for all…
Your g-code gives E values for feeding material, but the values look weird, as they are constantly increasing. I would have expected a value based on the distance between G1 coordinates…
Look in your Ender manual and check what the Feed values should be…
I found out that there is a difference between absolute and relative positioning.
Thus, It impacts the feeding values…
However I don’t understand how can I switch from one to the other in Grasshopper…
I have been looking at the Ender page, and that the E value constantly increases seems to be correct. There is a slider in the GH definition, where you can modify the material feed rate. Maybe that needs to be increased.
That would be most likely M82 E Absolute or M83 E Relative.
But I don´t see a difference between the start code and the gh code, so don´t believe that this is your problem. You can try to add that in the gh script in start code, or simply with a text editor…