From d6e49ca9fa4476e0cf8c51a19420425188a3506a Mon Sep 17 00:00:00 2001 From: tippfehlr Date: Sat, 18 Nov 2023 18:39:11 +0100 Subject: [PATCH 1/2] feat(probe/safety): require probe to be touched before probing --- app/wizards/probe/probev2.js | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/app/wizards/probe/probev2.js b/app/wizards/probe/probev2.js index c331e49..33315d1 100644 --- a/app/wizards/probe/probev2.js +++ b/app/wizards/probe/probev2.js @@ -390,8 +390,18 @@ function probetype(type) { } function confirmProbeInPlace(operation) { - $('#confirmNewProbeBtn').addClass("disabled") - $('#runNewProbeBtn').removeClass("disabled").focus(); + $('#confirmNewProbeBtn').addClass("disabled"); + $('#confirmNewProbeBtn')[0].innerHTML = "Touch Probe..."; + let timeoutFunction = () => { + if (laststatus.machine.inputs.contains("P")) { + $('#confirmNewProbeBtn').addClass("disabled"); + $('#confirmNewProbeBtn')[0].innerHTML = "Touched"; + $('#runNewProbeBtn').removeClass("disabled").focus(); + } else { + setTimeout(timeoutFunction, 50); + } + } + setTimeout(timeoutFunction, 50); } function resetJogModeAfterProbe() { @@ -411,6 +421,7 @@ function resetJogModeAfterProbe() { function runProbeNew() { + $('#confirmNewProbeBtn')[0].innerHTML = "Confirm Probe Position"; resetJogModeAfterProbe() $("#consoletab").click() probemode.stock.x = $("#stockwidth").val(); @@ -690,4 +701,4 @@ function saveEditCustomProbe() { }; localStorage.setItem('customProbe', JSON.stringify(customprobeplate)); probetype('custom'); -} \ No newline at end of file +} From dae612feac65d12cd0228fac8ba0162699de7f0a Mon Sep 17 00:00:00 2001 From: tippfehlr Date: Mon, 12 Aug 2024 14:49:55 +0200 Subject: [PATCH 2/2] make probe touch optional --- app/index.html | 14 ++++++------- app/wizards/probe/probev2.js | 40 ++++++++++++++++++++++-------------- 2 files changed, 32 insertions(+), 22 deletions(-) diff --git a/app/index.html b/app/index.html index 3360267..2fa8190 100644 --- a/app/index.html +++ b/app/index.html @@ -1591,37 +1591,37 @@ determine endmill diameter.
Position the endmill above the hole in the probe plate as shown, just above the plate, clip - the magnet to the collet, then click the Confirm Probe Position button to continue... + the magnet to the collet, then click the Confirm Probe Position button or touch the probe to enable the Probe button.
XYZ Probe Routine: This routine is used to find the XYZ origins
Position the endmill above the hole in the probe plate as shown, just above the plate, clip - the magnet to the collet, then click the Confirm Probe Position button to continue... + the magnet to the collet, then click the Confirm Probe Position button or touch the probe to enable the Probe button.