Conditional G-Code assistance
-
@arnold_r_clark said in Conditional G-Code assistance:
My order of business for homing is: home X & Y, collect the actuator, home Z, Stow the actuator.
I have a somewhat similar type of removable Z probe.
I keep the Z probe attached most of the time. I remove it to start printing and re-attach it when printing is complete.
This minimizes the number of times the attach/remove process needs to be done.
Frederick
-
This post is deleted! -
@arnold_r_clark said in Conditional G-Code assistance:
The actuator is attached only once during homing/lead screw levelling then never touched again.
When is it detached?
Frederick
-
This post is deleted! -
@arnold_r_clark said in Conditional G-Code assistance:
It is attached to the head after X & Y are homed, it homes Z and then (if only homing) gets stowed back in its frame dock, if carrying out a G32 it completes that (after homing) then gets stowed.
Thanks.
And when creating or loading the heightmap, how is that handled?
Frederick
-
This post is deleted! -
@arnold_r_clark said in Conditional G-Code assistance:
For creating a height map I run a G29 with no switches this runs a mesh.g file, in that file I have it set to run the following files
M98 P"homexy.g" ; Home the X & Y axes M98 P"collectactuator.g" ; Pick up the Z probe actuator M98 P"homez.g" ; Home the Z axis M98 P"bed.g" ; Level the x3 leadscrews G29 S2 ; Clear any height map G29 S0 ; Probe the bed & save the height map M98 P"stowactuator.g" ; Stow the Z probe actuator back in the frame dock
I use the start g code section in my slicer to handle homing and loading the height map
Thanks.
Are you setting the Z=0 Datum in bed.g?
Frederick
-
This post is deleted! -
@arnold_r_clark said in Conditional G-Code assistance:
Yes
Thanks for the feedback.
One thing I forgot to mention, it may be of interest. You are invoking your homing files with M98 which usually works fine. Using G28 has one difference which can be important, it marks the specified axes as un-homed just before executing your homing files.
Frederick
-
This post is deleted!