Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

start gcode placed unfortunate in the middle of initialization #1038

Closed
JohK opened this issue Mar 5, 2013 · 4 comments
Closed

start gcode placed unfortunate in the middle of initialization #1038

JohK opened this issue Mar 5, 2013 · 4 comments

Comments

@JohK
Copy link

JohK commented Mar 5, 2013

The way the start gcode is currently wedged in between some initialization commands doesn't allow to switch on the power supply (M80), nor does it allow custom pre-print extrusion (i.e. to mimic cura behaviour of lifting the nozzle before printing).

M107
M190 S85 ; wait for bed temperature to be reached
M104 S235 ; set temperature
M80 ; turn on power    << custom start gcode, nahnahnah too late
G28 ; home all axes    << custom start gcode
M109 S235 ; wait for temperature to be reached
G90 ; use absolute coordinates
G21 ; set units to millimeters
...
@alranel
Copy link
Member

alranel commented Mar 9, 2013

Put the following in your start G-code:

G90 ; use absolute coordinates
G21 ; set units to millimeters
M80 ; turn on power
M140 S[first_layer_bed_temperature] ; start heating bed
G28 ; home all axes
G1 Z5 F3000 ; lift nozzle
M190 S[first_layer_bed_temperature] ; wait until bed finishes heating
M109 S[first_layer_temperature] ; heat extruder

I've been considering to make this the default start G-code for a while.

@alranel alranel closed this as completed Mar 9, 2013
@JohK
Copy link
Author

JohK commented Mar 9, 2013

Thanks for that code I put it in as start gcode. It works now, but there is still an additional G21 command inserted in front of the start gcode.

G21 ; set units to millimeters << where comes this line from? M107 G90 ; use absolute coordinates G21 ; set units to millimeters M80 ; turn on power M140 S85 ; start heating bed G28 ; home all axes G1 Z5 F3000 ; lift nozzle M190 S85 ; wait until bed finishes heating M109 S235 ; heat extruder

@alranel
Copy link
Member

alranel commented Mar 9, 2013

What's the problem with it?

@JohK
Copy link
Author

JohK commented Mar 10, 2013

It's not a problem, just wasn't sure if this was intended behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants