- in BLADEKEEPWASTE corretto calcolo percentuale lavorata se incompleta

This commit is contained in:
luca.mazzoleni
2025-03-20 17:49:41 +01:00
parent b82e40d8ff
commit ae802c8afb
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -175,7 +175,7 @@ function BLADEKEEPWASTE.Make( Proc, Part, OptionalParameters)
-- calcolo parametri per la stima della velocità di asportazione
-- TODO non è corretto: come si stima la velocità di asportazione con il codolo? è come se avesse rimosso tutto il volume feature nel tempo di percorrenza
if Cutting1.bIsApplicable and Cutting2.bIsApplicable then
if Cutting1.bIsApplicable or Cutting2.bIsApplicable then
MRRParameters1 = {
dStep = TOOLS[Cutting1.nToolIndex].dThickness,
dSideStep = min( TOOLS[Cutting1.nToolIndex].dSideStep, dDepthToMachine),
@@ -189,7 +189,7 @@ function BLADEKEEPWASTE.Make( Proc, Part, OptionalParameters)
local dMRRBlade1 = MachiningLib.GetToolMRR( MRRParameters1)
local dMRRBlade2 = MachiningLib.GetToolMRR( MRRParameters2)
Result.dMRR = ( dMRRBlade1 + dMRRBlade2) / 2
Result.dCompletionPercentage = Cutting2.dCompletionPercentage
Result.dCompletionPercentage = 0.5 * Cutting1.dCompletionPercentage + 0.5 * Cutting2.dCompletionPercentage
if Result.dCompletionPercentage > 100 - 10 * GEO.EPS_SMALL then
Result.sStatus = 'Completed'
else