jdmech
Posts: 5
Joined: Sun Nov 29, 2015 3:58 pm

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

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
yiancar
Posts: 3
Joined: Thu May 12, 2016 12:43 pm

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

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
jdmech
Posts: 5
Joined: Sun Nov 29, 2015 3:58 pm

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

OK great! I'll try that out, and thanks for the info.

Cheers - jdmech

Return to “General Discussion and Tips”