Merge branch 'develop' of https://gitlab.steamware.net/egalware-cadcam/lua/databeamnew into develop
This commit is contained in:
@@ -477,14 +477,27 @@ function MachiningLib.ApplyMachining( bRecalc, bApplyPost)
|
||||
end
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
-- funzione che restituisce l'indice MRR (Material Removal Rate) della strategia.
|
||||
function MachiningLib.GetToolMRR( dMachiningStep, dMachiningSideStep, dFeed)
|
||||
-- funzione che restituisce l'indice MRR (Material Removal Rate) della strategia. Dati in ingresso: Step, SideStep, Feed, ToolIndex, MachiningType
|
||||
function MachiningLib.GetToolMRR( Parameters)
|
||||
local dMRR = 1
|
||||
|
||||
-- Unità: dm/min per avere un indice vicino alle unità
|
||||
dMRR = ( dMachiningStep * dMachiningSideStep * dFeed) / pow( 10, 6)
|
||||
-- se ho già tutti i parametri
|
||||
if not Parameters.dStep or not Parameters.dSideStep or not Parameters.dFeed then
|
||||
-- se manca qualche parametro, lo recupero da parametro di default dell'utensile
|
||||
if Parameters.nToolIndex then
|
||||
Parameters.dStep = Parameters.dStep or TOOLS[Parameters.nToolIndex].dStep
|
||||
Parameters.dSideStep = Parameters.dSideStep or TOOLS[Parameters.nToolIndex].dSideStep
|
||||
Parameters.dFeed = Parameters.dFeed or TOOLS[Parameters.nToolIndex].Feeds.dFeed
|
||||
-- se non riesco a calcolare, ritorno un indice molto basso
|
||||
else
|
||||
return GEO.EPS_SMALL
|
||||
end
|
||||
end
|
||||
|
||||
return dMRR
|
||||
dMRR = Parameters.dStep * Parameters.dSideStep * Parameters.dFeed
|
||||
|
||||
-- Unità: dm/min per avere un indice vicino alle unità
|
||||
return dMRR / pow( 10, 6)
|
||||
end
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user