sábado, 15 de abril de 2023

3D PRINT - GCODE para a Creality Ender3Pro

 3D PRINT - GCODE para a Creality Ender3Pro

Como diz o titulo, aqui fica o G-code que estou a utilizar na Creality Ender3Pro.

Nota: Como tenho o AutoLev tem o G29, a seguir ao G28 no Start Gcode.

(Utilizo no Cura e no Pursa Slicer)

START GCODE:

; Ender 3 Custom Start G-code

G92 E0 ; Reset Extruder

G28 ; Home all axes

G29

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

G1 X5 Y20 Z0.3 F5000.0 ; Move over to prevent blob squish


END GCODE:


G91 ;Relative positioning

G1 E-2 F2700 ;Retract a bit

G1 E-2 Z0.2 F2400 ;Retract and raise Z

G1 X5 Y5 F3000 ;Wipe out

G1 Z10 ;Raise Z more

G90 ;Absolute positioning


G1 X0 Y{machine_depth} ;Present print

M106 S0 ;Turn-off fan

M104 S0 ;Turn-off hotend

M140 S0 ;Turn-off bed


M84 X Y E ;Disable all steppers but Z


Basicamente:
A impressora primeiro aquece, depois faz o auto nivelamento, depois faz a linha lateral.
Imprime. No Final, sobe um pouco o Z, a mesa vem para a frente. E desliga os "aquecimentos" & steppers. 


Espero que dê para ajudar alguem.


Nota:
Segue abaixo os G-Codes Originais do Pursa Slicer.


START GCODE:

G90 ; use absolute coordinates

M83 ; extruder relative mode

M140 S{first_layer_bed_temperature[0]} ; set final bed temp

M104 S150 ; set temporary nozzle temp to prevent oozing during homing

G4 S10 ; allow partial nozzle warmup

G28 ; home all axis

g29

G1 Z50 F240

G1 X2 Y10 F3000

M104 S{first_layer_temperature[0]} ; set final nozzle temp

M190 S{first_layer_bed_temperature[0]} ; wait for bed temp to stabilize

M109 S{first_layer_temperature[0]} ; wait for nozzle temp to stabilize

G1 Z0.28 F240

G92 E0

G1 Y140 E10 F1500 ; prime the nozzle

G1 X2.3 F5000

G92 E0

G1 Y10 E10 F1200 ; prime the nozzle

G92 E0


END GCODE:

{if max_layer_z < max_print_height}G1 Z{z_offset+min(max_layer_z+2, max_print_height)} F600 ; Move print head up{endif}

G1 X5 Y{print_bed_max[1]*0.8} F{travel_speed*60} ; present print

{if max_layer_z < max_print_height-10}G1 Z{z_offset+min(max_layer_z+70, max_print_height-10)} F600 ; Move print head further up{endif}

{if max_layer_z < max_print_height*0.6}G1 Z{max_print_height*0.6} F600 ; Move print head further up{endif}

M140 S0 ; turn off heatbed

M104 S0 ; turn off temperature

M107 ; turn off fan

M84 X Y E ; disable motors