DataBeam :

- correzioni per tagli con testa da sotto.
This commit is contained in:
DarioS
2021-06-08 11:27:26 +02:00
parent 3a535d73d3
commit 33984cecbc
2 changed files with 8 additions and 15 deletions
+7 -14
View File
@@ -1,6 +1,7 @@
-- ProcessCut.lua by Egaltech s.r.l. 2021/05/18
-- ProcessCut.lua by Egaltech s.r.l. 2021/06/08
-- Gestione calcolo singoli tagli di lama per Travi
-- 2021/05/18 I due tagli con testa da sotto di un cubetto sono fatti di seguito.
-- 2021/06/06 Correzioni per tagli con testa da sotto.
-- Tabella per definizione modulo
local ProcessCut = {}
@@ -461,18 +462,10 @@ local function MakeFromTop( sCutting, Proc, nPhase, nRawId, nPartId, dOvmHead, b
else
vtOrthoO = -X_AX()
end
elseif vtN:getY() > -0.02 then
if Proc.Head then
vtOrthoO = -Y_AX()
else
vtOrthoO = Y_AX()
end
elseif Proc.Head then
vtOrthoO = EgtIf( vtN:getY() > -0.02, -Y_AX(), Y_AX())
else
if Proc.Head then
vtOrthoO = Y_AX()
else
vtOrthoO = -Y_AX()
end
vtOrthoO = EgtIf( vtN:getY() > 0.02, Y_AX(), -Y_AX())
end
-- taglio
local bOk, sErr = BL.MakeOneFaceBySaw( Proc.Id, 0, sCutting, dSawDiam, vtOrthoO, dNzLimDwnUp, BD.CUT_EXTRA, BD.CUT_SIC, 0, 0, nil, b3Raw)
@@ -699,9 +692,9 @@ function ProcessCut.Make( Proc, nPhase, nRawId, nPartId, dOvmHead, bFromBottom,
if Proc.CutFront then
return true
end
-- abilitazione lavorazione da sotto (testa da sotto e direzione normale sotto -20deg e sbandamento oltre 10deg)
-- abilitazione lavorazione da sotto (testa da sotto e direzione normale sotto -20deg)
local bTopHead = ( BD.DOWN_HEAD and vtN:getZ() > -0.342)
local bDownHead = ( BD.DOWN_HEAD and vtN:getZ() < -0.342 and ( abs( vtN:getY()) > 0.174 or b3Raw:getDimY() > 2 * BD.MAX_DIM_HTCUT))
local bDownHead = ( BD.DOWN_HEAD and vtN:getZ() < -0.341)
-- recupero la lavorazione
local sCutType = EgtIf( Proc.Head, 'HeadSide', 'TailSide')
local sCutting = ML.FindCutting( sCutType .. EgtIf( bDownHead, '_H2', ''))