First 4 gcode lines generate by Cura, where can I setup it?

Hi all,

I am having a problem with gcode generate by Cura.

I have setup my start and end gcode lines at Cura, but always when I do open it on Repetier Host, it has more 4 extra lines at top:

M140 S55.000000
M109 T0 S210.000000
T0
M190 S55.000000

then start a gcode generate by Cura

;Sliced at: Tue 02-12-2014 09:35:06

I want to know where I can change this first 4 lines because I don`t want a M140 code, I want a M190, now every time I have to change it before print.

On gcode start config of Cura don`t have that lines.

Thanks in advance.

I don’t know if you can change that start code generated by cura engine,
but you can put you deired commands in your custom start code.
That would override the cura engine generated ones.

[quote=“ichbinsnur”]I don’t know if you can change that start code generated by cura engine,
but you can put you deired commands in your custom start code.
That would override the cura engine generated ones.[/quote]

Thanks for answer ichbinsnur,

Do you know how can I do this?

Go to cura engine settings in repetier.

You find the custom g-code settings under printing on the g-code tab.

There you can edit the standard g-gode inserted at start/end of print and before/after extruder change

If you set Bed and Extruder Temp in Cura to “0”, Cura will uncomment these commands.
I have done it like this.
For Example, here is the first part of my Cura generated g-code:
;Sliced at: Tue 09-12-2014 21:41:24
;Basic settings: Layer height: 0.14 Walls: 0.8 Fill: 2
;Print time: #P_TIME#
;Filament used: #F_AMNT#m #F_WGHT#g
;Filament cost: #F_COST#
;M190 S0 ;Uncomment to add your own bed temperature line
;M109 S0 ;Uncomment to add your own temperature line

(Here starts my own custom start-g-code)

M140 S40
M109 S150
G28 ; home all axes
G90 ; use absolute coordinates
G21 ; set units to millimeters
G92 E0
M82 ; use absolute distances for extrusion
M109 S215 ; wait for temperature to be reached

To set the extruder Temp for layer 2 to the end of the print, i use the “tweak at z 3.2” plugin that came with cura. Oh, and i use Cura Standalone. I dont know how to use plugins withing Repetier-Host-Cura.

[quote=“cantax”]If you set Bed and Extruder Temp in Cura to “0”, Cura will uncomment these commands.
I have done it like this.
For Example, here is the first part of my Cura generated g-code:
;Sliced at: Tue 09-12-2014 21:41:24
;Basic settings: Layer height: 0.14 Walls: 0.8 Fill: 2
;Print time: #P_TIME#
;Filament used: #F_AMNT#m #F_WGHT#g
;Filament cost: #F_COST#
;M190 S0 ;Uncomment to add your own bed temperature line
;M109 S0 ;Uncomment to add your own temperature line

(Here starts my own custom start-g-code)

M140 S40
M109 S150
G28 ; home all axes
G90 ; use absolute coordinates
G21 ; set units to millimeters
G92 E0
M82 ; use absolute distances for extrusion
M109 S215 ; wait for temperature to be reached

To set the extruder Temp for layer 2 to the end of the print, i use the “tweak at z 3.2” plugin that came with cura. Oh, and i use Cura Standalone. I dont know how to use plugins withing Repetier-Host-Cura.[/quote]

Thank you, I have set the temp to zero and finally I got it the way I want.

All the best