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)