From 51e2180b1566ff5d79b178b125fc358b7dee5a2f Mon Sep 17 00:00:00 2001 From: "andrea.villa" Date: Mon, 26 Jan 2026 15:54:43 +0100 Subject: [PATCH] =?UTF-8?q?Nella=20G101=20il=20parametro=20EE=20era=20semp?= =?UTF-8?q?re=20a=204=20perch=C3=A8=20la=20variabile=20veniva=20settata=20?= =?UTF-8?q?dopo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Common_FAST.NUM.mlpe | 6 +++--- Common_FAST.NUM_PLUS.mlpe | 6 +++--- UpdateLog.txt | 3 +++ Version.lua | 2 +- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Common_FAST.NUM.mlpe b/Common_FAST.NUM.mlpe index 7dc99a7..527278f 100644 --- a/Common_FAST.NUM.mlpe +++ b/Common_FAST.NUM.mlpe @@ -609,6 +609,9 @@ function OnRapid() MyBackupAxes() -- se primo movimento della lavorazione, gestione speciale if EMT.MCHFIRST and not EMT.OPEISDISP then + -- primo posizionamento + local MyZHome = EgtGetAxisHomePos( 'Z') + local bZmax = ( #EMT.AUXSTR > 0 or EMT.TOOL ~= EMT.PREVTOOL or EMT.L3 > -1) -- decido se muovere prima testa o carrelli (standard prima testa) local bHeadFirst = true local sLateG101 @@ -641,9 +644,6 @@ function OnRapid() local sER = ' ER' .. EmtLenToString( EgtIf( EMT.HEAD ~= 'H3', EMT.TDIAM / 2, EMT.TLEN), 3) local sES = ' ES'..EgtNumToString( EMT.S, 0) - -- primo posizionamento - local MyZHome = EgtGetAxisHomePos( 'Z') - local bZmax = ( #EMT.AUXSTR > 0 or EMT.TOOL ~= EMT.PREVTOOL or EMT.L3 > -1) -- se avevo motosega, torno in zona sicura senza ruotare assi rotanti if not EMT.LOAD and EMT.PREVHEAD == 'H3' and EMT.FLAG2 == 1 then local sOutPreMove = 'G101' .. ' X' .. EmtLenToString( -SafeXRotAxes, 3) .. ' Z' .. EmtLenToString( MyZHome, 3) .. diff --git a/Common_FAST.NUM_PLUS.mlpe b/Common_FAST.NUM_PLUS.mlpe index e7b664c..ec08765 100644 --- a/Common_FAST.NUM_PLUS.mlpe +++ b/Common_FAST.NUM_PLUS.mlpe @@ -657,6 +657,9 @@ function OnRapid() MyBackupAxes() -- se primo movimento della lavorazione, gestione speciale if EMT.MCHFIRST and not EMT.OPEISDISP then + -- primo posizionamento + local MyZHome = EgtGetAxisHomePos( 'Z') + local bZmax = ( #EMT.AUXSTR > 0 or EMT.TOOL ~= EMT.PREVTOOL or EMT.L3 > -1) -- decido se muovere prima testa o carrelli (standard prima testa) local bHeadFirst = true local sLateG101 @@ -713,9 +716,6 @@ function OnRapid() local sES = ' ES'..EgtNumToString( EMT.S, 0) - -- primo posizionamento - local MyZHome = EgtGetAxisHomePos( 'Z') - local bZmax = ( #EMT.AUXSTR > 0 or EMT.TOOL ~= EMT.PREVTOOL or EMT.L3 > -1) -- se avevo motosega, torno in zona sicura senza ruotare assi rotanti if not EMT.LOAD and EMT.PREVHEAD == 'H3' and EMT.FLAG2 == 1 then local sOutPreMove = 'G101' .. ' X' .. EmtLenToString( -SafeXRotAxes, 3) .. ' Z' .. EmtLenToString( MyZHome, 3) .. diff --git a/UpdateLog.txt b/UpdateLog.txt index 9ffe62d..80bca24 100644 --- a/UpdateLog.txt +++ b/UpdateLog.txt @@ -1,5 +1,8 @@ ==== Common_FAST Update Log ==== +Versione 3.1a2 (26/01/2026) +- (GEN) Nella G101 il parametro EE era sempre a 4 perchè la variabile veniva settata dopo. Ticket#2796 + Versione 3.1a1 (08/01/2026) - (SIM) Ottimizzata scrittura funzione ClampCheck post aggiornamento dll - (SIM) Corretto problema della funzione OnSimulDispositionStart in caso di fase finale. diff --git a/Version.lua b/Version.lua index 226e542..be28bc0 100644 --- a/Version.lua +++ b/Version.lua @@ -3,7 +3,7 @@ local InfoCommon_STD_PP = { NAME = 'Common_FAST', -- nome script PP standard - VERSION = '3.1a1', -- versione script + VERSION = '3.1a2', -- versione script MIN_MACH_VER_PP_COMMON = '2.5k1' -- versione minima kernel }