- Gestione Tunnel-4-Through in STR0002

- Migliorie a scelta lavorazione
- Migliorie spezzatura
- Corretta condizione scelta utensile con minimo residuo
This commit is contained in:
andrea.villa
2024-06-11 12:45:17 +02:00
parent 546a60d8a3
commit f5cbd7bfee
3 changed files with 99 additions and 55 deletions
+5 -5
View File
@@ -147,7 +147,7 @@ function MachiningLib.FindMill( Proc, ToolSearchParameters)
-- se entrambi incompleti
elseif dBestToolResidualDepth > 0 and dCurrentResidualDepth > 0 then
--scelgo quello che lavora di più
if dCurrentResidualDepth > dBestToolResidualDepth then
if dCurrentResidualDepth < dBestToolResidualDepth then
nBestToolIndex = i
dBestToolResidualDepth = dCurrentResidualDepth
end
@@ -323,10 +323,10 @@ function MachiningLib.AddNewMachining( ProcToAdd, MachiningToAdd)
if not MachiningToAdd.sToolName then
MachiningToAdd.sToolName = TOOLS[MachiningToAdd.nToolIndex].sName
end
local MachiningAppo = {}
MachiningAppo.Proc = ProcToAdd
MachiningAppo.Machining = MachiningToAdd
table.insert( MACHININGS, MachiningAppo)
local Machining = {}
Machining.Proc = ProcToAdd
Machining.Machining = MachiningToAdd
table.insert( MACHININGS, Machining)
return true
end