Origin Movement after Probing
This commit is contained in:
@@ -169,8 +169,12 @@
|
|||||||
await stepCompleted("Probe", probingComplete, probingFailed);
|
await stepCompleted("Probe", probingComplete, probingFailed);
|
||||||
await stepCompleted("Done", userAcknowledged);
|
await stepCompleted("Done", userAcknowledged);
|
||||||
|
|
||||||
if (probeType === "xyz" && !isRotaryActive) {
|
if (probeType === "xyz" ) {
|
||||||
ControllerMethods.gotoZero("xy");
|
if(isRotaryActive){
|
||||||
|
executeYOrigin();
|
||||||
|
} else {
|
||||||
|
ControllerMethods.gotoZero("xy");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err.message !== "cancelled") {
|
if (err.message !== "cancelled") {
|
||||||
@@ -280,8 +284,6 @@
|
|||||||
const xOffset = probeBlockWidth + cutterDiameter / 2.0;
|
const xOffset = probeBlockWidth + cutterDiameter / 2.0;
|
||||||
const yOffset = probeBlockLength + cutterDiameter / 2.0;
|
const yOffset = probeBlockLength + cutterDiameter / 2.0;
|
||||||
const zOffset = probeBlockHeight;
|
const zOffset = probeBlockHeight;
|
||||||
console.log("probeBlock: ",probeBlockLength, probeBlockWidth, probeBlockHeight);
|
|
||||||
console.log("cutterDiameterRotaryMetric",cutterDiameterRotaryMetric,cutterDiameter)
|
|
||||||
|
|
||||||
if (probeType === "z") {
|
if (probeType === "z") {
|
||||||
ControllerMethods.send(`
|
ControllerMethods.send(`
|
||||||
@@ -373,6 +375,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function executeYOrigin(){
|
||||||
|
ControllerMethods.send(`
|
||||||
|
G53 G0 Z0
|
||||||
|
G0 Y0
|
||||||
|
M2
|
||||||
|
`);
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Dialog
|
<Dialog
|
||||||
@@ -499,8 +509,16 @@
|
|||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if probeType === "xyz" || isRotaryActive}
|
{#if probeType === "xyz"}
|
||||||
<p>The machine will now move to the XY origin.</p>
|
{#if isRotaryActive}
|
||||||
|
<p>
|
||||||
|
The machine will now move to the Y origin.
|
||||||
|
</p>
|
||||||
|
{:else}
|
||||||
|
<p>
|
||||||
|
The machine will now move to the XY origin.
|
||||||
|
</p>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<p>Watch your hands!</p>
|
<p>Watch your hands!</p>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user