MARLIN GCODE ISSUE and OPTIMIZATION

Post Reply
Cameluntu
Posts: 8
Joined: 16 Sep 2019, 03:35

MARLIN GCODE ISSUE and OPTIMIZATION

Post by Cameluntu »

Hello all,

I am currently on my way to finish building my first corexy with dual extruder and decided to invest on kisslicer.
Specifically I would like to run print jobs in this way:
-homing, g28
-z-steppers auto align, g34
-abl, g29
-e1 dedicated to main filament (pla, abs, nylon)
-e2 dedicated to idrosoluble filament
(switching between e1 and e2 is done without the use of a purge tower but a purge bucket to speed up the process, means hea goes to nozzle park, e1 retract x, e2 purge x, resume print).

I have tried to set it up but unfortunately it does not work extremely well due to:
g34 and g29 are not taking into consideration (i have included them in prefix)
select new extr gcode seems to happen also when starting the print, is it correct?
BONUS: if you have more efficient ways to do this purge bucket, please let me know as it would help me a lot!

Here is my gcode:

PREFIX
; [mm] mode
G21
; absolute mode
G90
; Home
G28
;Z Trim
g34
;ABL
g29
;Nozzle Park
G1 X-20 Y0
; Heated bed control
M190 S<BED>

PREHEAT
;wait hotend temp
M109 S<TEMP>

SELECT NEW
; Select new extruder
T<EXT+0>
;Raise Z to safe height
G1 <Z+10>
;Move to left side of print bed
G1 X-20 Y0 F2000
;Move to back of printer
G1 Y0 F2000
; Warm it up, and wait till it's warm
M109 S<TEMP>
;Reset Extruder
G92 E0
;Purge Hot end
G1 E80 F200
;Wipe the tip
G12 P0
;Reset Extruder
G92 E0

WARM SAME
; Warm it up, and wait till it's warm
M109 S<TEMP>

COOL SAME
; Cool it, no need to wait
M104 S<TEMP>

COOL RETIRE OLD
; Deselect the (same) extruder (usually to cool)
M104 S<TEMP>
;Raise Z to safe height
G1 <Z+10>
;Move to left side of print bed
G1 X-20 F2000
;Move to back of printer
G1 Y0 F2000
; Warm it up, and wait till it's warm
M109 S<TEMP>
;Reset Extruder
G92 E0
;Retract
G1 E-80 F200
;Wipe the tip
G12 P0
;Reset Extruder
G92 E0

POSTFIX
; Maybe cool the bed?
M140 S0
; Maybe move to some safe location?
G1 F1200 X-20 Y0 Z<Z+5.0>

Thank you!
Post Reply