DataBeam :

- nei fori si usa maxElev anche con svuotature
- in LongCut e LongDoubleCut aggiunta opzione tipo lavorazione 'LongCut' (per poter usare una lama diversa da quella dei tagli).
This commit is contained in:
DarioS
2021-11-02 08:45:10 +01:00
parent 2f2bedd6ac
commit ba56902ece
3 changed files with 21 additions and 19 deletions
+9 -7
View File
@@ -1,7 +1,8 @@
-- ProcessLongDoubleCut.lua by Egaltech s.r.l. 2021/10/01
-- ProcessLongDoubleCut.lua by Egaltech s.r.l. 2021/10/29
-- Gestione calcolo doppio taglio longitudinale per Travi
-- 2021/05/18 Possibile taglio con lama anche di fianco su macchina con testa da sotto.
-- 2021/06/29 Corretta gestione caso equivalente a due smussi.
-- 2021/10/29 Aggiunta opzione tipo lavorazione 'LongCut'.
-- Tabella per definizione modulo
local ProcessLong2Cut = {}
@@ -409,9 +410,10 @@ function ProcessLong2Cut.Make( Proc, nPhase, nRawId, nPartId, bForcedBladeMaster
end
end
if bCanUseBlade then
sCutting = ML.FindCutting( 'HeadSide')
local sCutType = EgtIf( BD.USE_LONGCUT, 'LongCut', 'HeadSide')
sCutting = ML.FindCutting( sCutType)
if not sCutting then
local sErr = 'Error on process ' .. tostring( Proc.Id) .. ' sawing not found in library'
local sErr = 'Error : sawing '..sCutType..' not found in library'
EgtOutLog( sErr)
return false, sErr
end
@@ -526,7 +528,7 @@ function ProcessLong2Cut.Make( Proc, nPhase, nRawId, nPartId, bForcedBladeMaster
-- determino se posso usare lame sulla faccia specifica
bCanUseBlade, bCanUseUnderBlade = CalcBladeUse( bUseBlade, BD.DOWN_HEAD, nSide, vtN[vOrd[j]], nil, bConvex, j, bFront)
if not bCanUseUnderBlade and not bCanUseBlade then
local sErr = 'Error, impossible use blade on too negative face'
local sErr = 'Error : impossible use blade on too negative face'
EgtOutLog( sErr)
return false, sErr
end
@@ -545,7 +547,7 @@ function ProcessLong2Cut.Make( Proc, nPhase, nRawId, nPartId, bForcedBladeMaster
-- se lama da sotto verifico se la componente Y della profondità di taglio supera la capacità della lama
if nSide <= 0 and bCanUseUnderBlade then
if (( vWidth[vOrd[j]] - dDimStrip) / 2) > dMaxDepthDn then
local sErr = 'Error, side depth is bigger than underneath blade cut depth'
local sErr = 'Error : side depth is bigger than underneath blade cut depth'
EgtOutLog( sErr)
return false, sErr
end
@@ -768,14 +770,14 @@ function ProcessLong2Cut.Make( Proc, nPhase, nRawId, nPartId, bForcedBladeMaster
-- determino se posso usare lame sulla faccia specifica
bCanUseBlade, bCanUseUnderBlade = CalcBladeUse( bUseBlade, BD.DOWN_HEAD, nSide, vtN[vOrd[j]], nil, bConvex, j, bFront, dSinLimit)
if not bCanUseUnderBlade and not bCanUseBlade then
local sErr = 'Error, impossible use blade on too negative face'
local sErr = 'Error : impossible use blade on too negative face'
EgtOutLog( sErr)
return false, sErr
end
-- se lama da sotto verifico se la componente Y della profondità di taglio supera la capacità della lama
if nSide <= 0 and bCanUseUnderBlade then
if ( vWidth[vOrd[j]] / 2) > dMaxDepthDn then
local sErr = 'Error, side depth is bigger than underneath blade cut depth'
local sErr = 'Error : side depth is bigger than underneath blade cut depth'
EgtOutLog( sErr)
return false, sErr
end