Query if axis is homed
-
Hello,
I know there is a boolean variable for each axis to determine if it has been homed or not, just cannot find the syntax after searching online.
Something like axis[n].homed (for n being a integer indexed at 0) or similar.
Trying to make simultaneous axes homing for completely independent axes on an E3D Toolchanger (toolhead and XY) which i think requires conditional statements as something like:
G1 H1 Y-400 C-500 F5000 ; SIMULTANEOUS HOME Y AND C
terminates the homing movement program as soon as one axis homes (both use stall detection). Therefore I think conditional if/else statements need to be used.
Ex
if (y is homed){
continue homing C
begin homing X
}else {
continue homing Y and run macro to return C to unlocked position (not sure if this can be done simultaneously)
}I realize the time to home is much much smaller than the time to heat up the printer but still thought it would be fun to optimize a bit.
-
@merlin246 use the Object Model Browser in DWC to see what variables are available.
-
@dc42 thank-you! Never knew that was there, very useful!