Page 1 of 1

Custom z axis homing

Posted: Sat Jan 06, 2018 9:08 pm
by stevothedivo
Hello all - n00b here who'd like a hand figuring out the following custom G-code for a Wanhao Mini (Cocoon Model Maker sold by Aldi in Australia)

Printing journey is coming along great - the homing is giving me heartache though. Broke a few prints messing about with it, so took a deep breath and decided it was worth asking for help from fellow users, This what I'd like the code to do
A. raise the z axis to the top of the machine
B. home X and Y
C. present the bed for scraping
D. disable motors

So you don't think I'm outright lazy, this is what I've figured out thus far
A. No idea - searched and couldn't find a reply that doesn't factor the position of the Z axis in its code - I would like a code that goes to the same location (the further the z axis will raise basically) irrespective if I print 4 layers or 276). At the moment I am raising this through the turnwheel setting before I remove it and I've set the code to raise the "arm" 10mm - it's fine, but it's not what I truly really need it to do.
B. G28;
C. G1 X0 Y180 F9000; PROBLEM with this is again it doesn't push it out to its maximum extension - I'd like it to move out to present all the way irrespective of where the bed is when the print finishes
D. M84;

So I'm halfway there but could use the help to figure out the other two (which appear to be absolute settings. I use Simplify3D trial version with 1.75mm PLA filament and my print area is 120x135x100 if that makes any difference (I believe this holds the key to my settings but I can't figure it out, sorry).

In gratitude
The Divo
:D :D :D

Re: Custom z axis homing

Posted: Mon Jan 08, 2018 5:23 pm
by horst.w
A) G1 Z123
I don't know your printer and the used firmware therefore test it in moderate steps. <123> is the placeholder for your machines Z-high in millimeter (100?).
It is very importend to be sure the command G1 Z ... is a absolute value. There fore set a additional command line with the command M82
together:

M82
G1 Z...

The contrary to M82 > Absolute Mode< ist M 83 > Relative Mode< . If the printer is running in Relative Mode than G1 Z... mouves the printhead for <123> mm, added to the actualy Z-position - and that maybe cause a crash !!! The Absolute Mode raise the printhead only to the level of <123> mm

B) G28 X0 Y0 (G28 without spezifications for X,Y,Z mouves all axes to 0)

C) If Z-home is Z= 0 than also G28 Z0 . There are perhaps also settings in the firmware possible to go deeper than Z=0 Try it out by using the printers display, there is probably a point like "Home all axis", switch OFF after homing and push / pull the printhead to the printbed. Normally there is a distance of the nozzle to the bed of ca. 0,15 mm = thickness of a letter paper.

D) M84

This is my Ending Script: (the printer is always running in Absolute Mode!)

G28 X0 ; home the X-axis (the Y-position is the position of the last command to print)
; M104 S0 T1 ; turn off right extruder >>> deactivated (";") because I don't use the right extruder at the moment
M104 S0 T0 ; turn off left extruder
M140 S0 ; turn off bed

G1 Z180 (only when the print is not higher than 180 mm (!!!) , 290 mm possible)
M84 ; disable motors

Regards
horst.w
GER