Page 1 of 1

Script or MCode for home X & Y axis at end of print job.

Posted: Sat May 14, 2016 5:45 pm
by jdmech
Hi folks -
I have noticed that whenever I create a print file (gcode) for my Prusa I3 machine,
the hot-end will stop right on top of the printed part when the print is finished, cool off, and get stuck.
I checked the settings in S3D and it seems that there is no code telling the X & Y axis to go home after the print has finished.
I used to use Cura exclusively and the X & Y always homed at the end, leaving the part accessible.
Can someone help me out with what mcode to put in the 'end script' tab? I'm not very gcode savvy
so this is a bit of a mystery.

Thanks! - JD

Re: Script or MCode for home X & Y axis at end of print job.

Posted: Sat May 14, 2016 6:54 pm
by yiancar
Hey JD

G28 is the gcode to home all axes.
If you want to home a specific axis use the name of the axis after the code.

eg. G28 X ;homes X axis
G28 X Y ;homes X and Y

If at any point you want a detailed definition of all Gcodes you can have a look here: http://reprap.org/wiki/G-code#G28:_Move ... .28Home.29

Re: Script or MCode for home X & Y axis at end of print job.

Posted: Sun May 22, 2016 8:28 pm
by jdmech
OK great! I'll try that out, and thanks for the info.

Cheers - jdmech