diff --git a/Beam/BeamData.lua b/Beam/BeamData.lua index 5673135..c869e54 100644 --- a/Beam/BeamData.lua +++ b/Beam/BeamData.lua @@ -115,6 +115,7 @@ if EgtExistsFile( sData) then if Machine.Offsets.ROT90 then BeamData.ROT90 = ( Machine.Offsets.ROT90 == 1) end if Machine.Offsets.PRECUT_HEAD_DISABLE then BeamData.PRECUT_HEAD = ( Machine.Offsets.PRECUT_HEAD_DISABLE == 0) end if Machine.Offsets.PRECUT_TAIL_DISABLE then BeamData.PRECUT_TAIL = ( Machine.Offsets.PRECUT_TAIL_DISABLE == 0) end + if Machine.Offsets.CUT_SIC then BeamData.CUT_SIC = EgtClamp( Machine.Offsets.CUT_SIC, 15, 50) end end if Machine.Trave then BeamData.MIN_WIDTH = Machine.Trave.XMIN or BeamData.MIN_WIDTH diff --git a/Common_ONE-PF.mlpe b/Common_ONE-PF.mlpe index 44f9aaa..2c3b4c8 100644 --- a/Common_ONE-PF.mlpe +++ b/Common_ONE-PF.mlpe @@ -79,6 +79,14 @@ function OnSimulStart() if vTools and vTools[1] and #(vTools[1]) > 0 then EgtLoadTool( vTcPos[i], 1, vTools[1]) ShowToolInTcPos( vTcPos[i], true) + -- Aggiunto controllo lunghezza lama minima * 0.9 per ricavare la tolleranza del VMILL + if EgtTdbSetCurrTool(vTools[1]) then -- set utensile corrente + if EgtTdbGetCurrToolParam( MCH_TP.TYPE) == MCH_TY.SAW_STD or EgtTdbGetCurrToolParam( MCH_TP.TYPE) == MCH_TY.SAW_FLAT then -- controllo tipo utensile sega + local dCurrSawLen = EgtTdbGetCurrToolParam( MCH_TP.LEN) * 0.9 + -- se non definito o minore del valore precedente aggiorna la tolleranza + EMT.VMILLTOL = EgtIf( not EMT.VMILLTOL or dCurrSawLen < EMT.VMILLTOL, dCurrSawLen, EMT.VMILLTOL) + end + end end end end @@ -239,7 +247,7 @@ function OnSimulDispositionStart() -- determino la risoluzione dello Zmap local dTol = 4.71 if EmtGetVMillStep then - dTol = EmtGetVMillStep( b3Raw:getDimX(), b3Raw:getDimY(), b3Raw:getDimZ(), 4.71) + dTol = EmtGetVMillStep( b3Raw:getDimX(), b3Raw:getDimY(), b3Raw:getDimZ(), dTol) else local dArea = b3Raw:getDimX() * b3Raw:getDimY() + b3Raw:getDimX() * b3Raw:getDimZ() + b3Raw:getDimY() * b3Raw:getDimZ() if dArea < 0.075e6 then @@ -256,6 +264,7 @@ function OnSimulDispositionStart() dTol = 3.77 end end + dTol = min( dTol, EMT.VMILLTOL or dTol) -- imposto dTol al valore minore tra quello per volume e quello per spessore lama -- creo lo Zmap local VMillId = EgtVolZmapBox( nPartRawId, b3Raw:getMin(), b3Raw:getDimX(), b3Raw:getDimY(), b3Raw:getDimZ(), dTol, true, GDB_RT.GLOB) if VMillId then diff --git a/Essetre-PFMAXrl.mlde b/Essetre-PFMAXrl.mlde index db50ea6..2d6882a 100644 --- a/Essetre-PFMAXrl.mlde +++ b/Essetre-PFMAXrl.mlde @@ -8,8 +8,8 @@ require( 'EmtGenerator') EgtEnableDebug( false) -PP_VER = '2.7k1' -PP_NVER = '2.7.11.1' +PP_VER = '2.7k2' +PP_NVER = '2.7.11.2' MIN_MACH_VER = '2.5k1' MACH_NAME = string.match( EgtGetCurrMachineDir(), "[^\\]+$") -- si ricava il nome della macchina dal direttorio diff --git a/UpdateLog.txt b/UpdateLog.txt index 18b12e7..b910a94 100644 --- a/UpdateLog.txt +++ b/UpdateLog.txt @@ -1,5 +1,8 @@ ==== Common_ONE-PF Update Log ==== +Versione 2.7k2 (20/11/2025) +- (SIM) Aggiornata risoluzione VMillTol in funzione dello spessore lama + Versione 2.7k1 (05/11/2025) - (SIM-GEN) Corretto calcolo per decidere se serve aprire i rulli - (GEN) Aggiunta tolleranza in creazione piano di lavoro inclinato diff --git a/Version.lua b/Version.lua index d3d133b..eecaa1a 100644 --- a/Version.lua +++ b/Version.lua @@ -3,7 +3,7 @@ local InfoCommon_STD_PP = { NAME = 'Common_ONE-PF', -- nome script PP standard - VERSION = '2.7k1', -- versione script + VERSION = '2.7k2', -- versione script MIN_MACH_VER_PP_COMMON = '2.5k1' -- versione minima kernel }