diff --git a/src/svelte-components/src/dialogs/ProbeDialog.svelte b/src/svelte-components/src/dialogs/ProbeDialog.svelte index 1be754e..b39eb90 100644 --- a/src/svelte-components/src/dialogs/ProbeDialog.svelte +++ b/src/svelte-components/src/dialogs/ProbeDialog.svelte @@ -169,8 +169,12 @@ await stepCompleted("Probe", probingComplete, probingFailed); await stepCompleted("Done", userAcknowledged); - if (probeType === "xyz" && !isRotaryActive) { - ControllerMethods.gotoZero("xy"); + if (probeType === "xyz" ) { + if(isRotaryActive){ + executeYOrigin(); + } else { + ControllerMethods.gotoZero("xy"); + } } } catch (err) { if (err.message !== "cancelled") { @@ -280,8 +284,6 @@ const xOffset = probeBlockWidth + cutterDiameter / 2.0; const yOffset = probeBlockLength + cutterDiameter / 2.0; const zOffset = probeBlockHeight; - console.log("probeBlock: ",probeBlockLength, probeBlockWidth, probeBlockHeight); - console.log("cutterDiameterRotaryMetric",cutterDiameterRotaryMetric,cutterDiameter) if (probeType === "z") { ControllerMethods.send(` @@ -373,6 +375,14 @@ } } } + + function executeYOrigin(){ + ControllerMethods.send(` + G53 G0 Z0 + G0 Y0 + M2 + `); + } {/if} - {#if probeType === "xyz" || isRotaryActive} -

The machine will now move to the XY origin.

+ {#if probeType === "xyz"} + {#if isRotaryActive} +

+ The machine will now move to the Y origin. +

+ {:else} +

+ The machine will now move to the XY origin. +

+ {/if}

Watch your hands!

{/if}