From fd85570cfdb5dbbd66d6df6570c7817a5287c6af Mon Sep 17 00:00:00 2001 From: "andrea.villa" Date: Wed, 18 Jun 2025 15:21:59 +0200 Subject: [PATCH] Corretta disattivazione tastatura --- Common_ONE-PF.NUM.mlpe | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Common_ONE-PF.NUM.mlpe b/Common_ONE-PF.NUM.mlpe index 3068f7a..83cc2be 100644 --- a/Common_ONE-PF.NUM.mlpe +++ b/Common_ONE-PF.NUM.mlpe @@ -612,15 +612,14 @@ function OnMachiningEnd() EMT.PREVTCPOS = EMT.TCPOS -- se tastatura attiva, si disabilita la tastatura - if EMT.PROBE then - -- gestione eventuale tastatura - local bStopProbing = EgtGetValInNotes( EMT.MCHUSERNOTES, 'PROBE', 'b') or EgtGetValInNotes( EMT.MCHUSERNOTES, 'END-PROBE', 'b') - if bStopProbing then - EmtOutput( 'G145 Z-10 EF0') - end + -- gestione eventuale tastatura + local bStopProbing = EgtGetValInNotes( EMT.MCHUSERNOTES, 'PROBE', 'b') or EgtGetValInNotes( EMT.MCHUSERNOTES, 'END-PROBE', 'b') + if bStopProbing then + EmtOutput( 'G145 Z-10 EF0') end EMT.PROBE = nil + -- se taglio finale, aggiorno lunghezza barra if EMT.MCHCUT then EMT.LB = EMT.LT + ( EMT.X_OFF or 0)