From 709c6ebccfe993bc6cbf42bc20482562072a042e Mon Sep 17 00:00:00 2001 From: "andrea.villa" Date: Thu, 12 Sep 2024 13:02:26 +0200 Subject: [PATCH] Migliorato calcolo chiusura paratia rulli con aggiornamento lunghezza della barra in caso di ultimo taglio e grezzo residuo in coda --- Common_PF1250.TPA.mlpe | 7 ++++++- UpdateLog.txt | 3 +++ Version.lua | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Common_PF1250.TPA.mlpe b/Common_PF1250.TPA.mlpe index 5139d84..9a13ed3 100644 --- a/Common_PF1250.TPA.mlpe +++ b/Common_PF1250.TPA.mlpe @@ -397,6 +397,8 @@ function OnMachiningStart() EMT.MCHNAME = EgtGetOperationName( EMT.MCHID) EMT.MCHTYPE = EgtGetMachiningParam( MCH_MP.TYPE) EMT.MCHUSERNOTES = EgtGetMachiningParam( MCH_MP.USERNOTES) + EMT.MCHCUT = ( EMT.MCHUSERNOTES:find( 'Cut;', 1, true) ~= nil) + -- se sega a catena, aggiusto subito angolo scelto per asse virtuale A if EMT.HEAD == 'H13' then -- valore dell'asse virtuale @@ -533,7 +535,10 @@ function OnMachiningEnd() EMT.PREVTOOL = EMT.TOOL if EMT.DOU_TYPE and not EMT.ZMAX then EMT.DOU_TO_ZMAX = EMT.DOU_TYPE end EMT.DOU_TYPE = nil - + -- se taglio finale, aggiorno lunghezza barra + if EMT.MCHCUT then + EMT.LB = EMT.LT + ( EMT.X_OFF or 0) + end -- salvo dati utensile local nSetHead = GetHeadSet( EMT.HEAD) -- per gruppo testa 1 diff --git a/UpdateLog.txt b/UpdateLog.txt index efefcb6..7f21b6d 100644 --- a/UpdateLog.txt +++ b/UpdateLog.txt @@ -1,5 +1,8 @@ ==== Common_PF1250 Update Log ==== +Versione 2.6-- (--/--/2024) +- (GEN) Migliorato calcolo chiusura paratia rulli con aggiornamento lunghezza della barra in caso di ultimo taglio e grezzo residuo in coda. Ticket#2017 + Versione 2.6i1 (10/09/2024) - (GEN) Se diametro utensile più del truciolatore standard grande, non si preseleziona. Ticket#2028 diff --git a/Version.lua b/Version.lua index 4d216c9..63ac361 100644 --- a/Version.lua +++ b/Version.lua @@ -3,7 +3,7 @@ local InfoCommon_STD_PP = { NAME = 'Common_PF1250', -- nome script PP standard - VERSION = '2.6i1', -- versione script + VERSION = '2.6--', -- versione script MIN_MACH_VER_PP_COMMON = '2.5k1' -- versione minima kernel }