From ed7cc79bb4bb6604839dea6f4487f66e6871bc4f Mon Sep 17 00:00:00 2001 From: "andrea.villa" Date: Wed, 19 Nov 2025 13:44:49 +0100 Subject: [PATCH] Con testa H38 si va in home quando testa viene comandata a Zmassima --- Common_PF1250.TPA.mlpe | 2 +- Common_PF1250.mlpe | 2 +- UpdateLog.txt | 3 +++ Version.lua | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Common_PF1250.TPA.mlpe b/Common_PF1250.TPA.mlpe index 4e0fd1c..a35aeca 100644 --- a/Common_PF1250.TPA.mlpe +++ b/Common_PF1250.TPA.mlpe @@ -1431,7 +1431,7 @@ function OnRapid() local nNextTopHSet = GetNextTopHSet( EMT.MCHID) -- ricavo prossimo utensile local sNextTool = GetNextTool( EMT.MCHID) - local bTopGoHome = ( IsLastPath( EMT.PATHID) and not sNextTool and nHSet == 3) or ( nHSet ~= 2 and nNextTopHSet ~= 0 and nHSet ~= nNextTopHSet) or ( nHSet == 1 and EMT.TTOTLEN > LongTool) + local bTopGoHome = ( IsLastPath( EMT.PATHID) and not sNextTool and nHSet == 3) or EMT.HEAD == 'H38' or ( nHSet ~= 2 and nNextTopHSet ~= 0 and nHSet ~= nNextTopHSet) or ( nHSet == 1 and EMT.TTOTLEN > LongTool) EmitZmax( true, true, EMT.R1p, EMT.R2p, bSplitCut, bTopGoHome, false) -- aggiorno quota finale trave dopo Zmax EMT.L1o = EMT.TPOS diff --git a/Common_PF1250.mlpe b/Common_PF1250.mlpe index b361e8c..18a5146 100644 --- a/Common_PF1250.mlpe +++ b/Common_PF1250.mlpe @@ -1373,7 +1373,7 @@ function OnSimulMoveEnd() -- ricavo prossimo utensile local sNextTool = GetNextTool( EMT.MCHID) -- vado in home se è ultimo movimento ed è ultima lavorazione - local bToXhome = ( IsLastPath( EMT.PATHID) and not sNextTool and nHSet == 3) or ( nHSet == 1 and EMT.TTOTLEN > LongTool) + local bToXhome = ( IsLastPath( EMT.PATHID) and not sNextTool and nHSet == 3) or EMT.HEAD == 'H38' or ( nHSet == 1 and EMT.TTOTLEN > LongTool) -- eseguo ExecMoveZmax( EMT.MCHSPLIT, bToXhome) EMT.TO_ZMAX = nil diff --git a/UpdateLog.txt b/UpdateLog.txt index 605c16c..9a14b14 100644 --- a/UpdateLog.txt +++ b/UpdateLog.txt @@ -1,5 +1,8 @@ ==== Common_PF1250 Update Log ==== +Versione 2.7k2 (19/11/2025) +- (SIM-GEN) Con testa H38 si va in home quando testa viene comandata a Zmassima. Ticket#2703_b + Versione 2.7k1 (19/11/2025) - (GEN) Preselzione testa 1 spostata prima della selezione testa 3. Ticket#2513 - (SIM-GEN) Corretto calcolo per decidere se serve aprire i rulli diff --git a/Version.lua b/Version.lua index bd30eb6..d078732 100644 --- a/Version.lua +++ b/Version.lua @@ -3,7 +3,7 @@ local InfoCommon_STD_PP = { NAME = 'Common_PF1250', -- nome script PP standard - VERSION = '2.7k1', -- versione script + VERSION = '2.7k2', -- versione script MIN_MACH_VER_PP_COMMON = '2.5k1' -- versione minima kernel }