Page 1 of 1

Help with start/end gcode

Posted: 25 Jul 2017, 04:17
by alil2096
Hi guys, i'm trying the new version of KS and i'm very very satisfied.

But i've a very big problem with the strat gcode.. i'm using an Ultimaker 2 with a e3d v6 hotend, and this is my prefix:

G21 ;metric values
G90 ;absolute positioning
M82 ;set extruder to absolute mode
G28 Z0 ;move Z to bottom endstops
G28 X0 Y0 ;move X/Y to endstops
G1 X15 Y0 F4000 ;move X/Y to front of printer
G1 Z15 F9000 ;move the platform to 15mm
G92 E0 ;zero the extruder length
G1 F200 E10 ;extrude 10mm of feed stock
G1 F900 E20 ;extrude 20mm of feed stock
G92 E0 ;zero the extruder lenght again
M117 Printing... ;write "printing..." on LCD


And preheat:

M140 S<TEMP> ;imposta la temperatura del piano di stampa
M190 ;aspetta fio a quantdo la temperatura del piano non viene raggiunta
; heat the extruder without waiting
M104 S<TEMP> T<EXT+0>
; Leave this blank to disable preheat

When the print starting, the hotend reach the temperature, but the bed no.. also the comand with purge is ignored.. So, what can i do? :D

Re: Help with start/end gcode

Posted: 25 Jul 2017, 07:40
by pjr
Humm. There are a few issues there.

You are homing Z and then moving X and Y, without lowering the bed. Possibility of scraping the nozzle across the bed.

You are extruding 10mm and then a further 10mm (absolute mode) before you heat the nozzle, so extrusion will be prevented.

M140 S<BED> not <TEMP>
M190 by itself will turn off the bed - M190 S<BED>
M109 S<TEMP> will set extruder temp and wait for temp; M104 will not wait and therefore you will not be able to print until temp is achieved.

Peter

Re: Help with start/end gcode

Posted: 25 Jul 2017, 08:13
by alil2096
Thanks for the reply..

OK, now edit the code ;)

SO, there is difference between write in "prefix" or "preheat"?
You are homing Z and then moving X and Y, without lowering the bed. Possibility of scraping the nozzle across the bed.
No, because the zero of z is lower, i print at abount z=200.. The endstop is lower ;)

Re: Help with start/end gcode

Posted: 25 Jul 2017, 10:31
by pjr
G21 ;metric values
G90 ;absolute positioning
M82 ;set extruder to absolute mode
G28 Z0 ;move Z to bottom endstops
G1 Z5 F300; to save the bed when the end stop is set incorrectly...
G28 X0 Y0 ;move X/Y to endstops
G1 X15 Y0 F4000 ;move X/Y to front of printer
G1 Z15 F9000 ;move the platform to 15mm
M140 S<BED> ; Heat the bed (don't wait)
M109 S<TEMP> T<EXT> ; Heat Extruder (and wait till it's hot)
M190 S<BED> ; Heat the bed (and wait till it's hot)
G92 E0 ;zero the extruder length
G1 F200 E10 ;extrude 10mm of feed stock
G1 F900 E30 ;extrude 20mm of feed stock
G92 E0 ;zero the extruder length again
M117 Printing... ;write "printing..." on LCD

Peter

Re: Help with start/end gcode

Posted: 25 Jul 2017, 10:40
by alil2096
Peter, you are a wizard :D
Tnk a lot ;)