DataBeam :

- piccole modifiche per evitare rotazioni inutili asse C con svuotature verticali
- anche nei fori interpolati si esclude verifica sfrido con Vmill.
This commit is contained in:
Dario Sassi
2019-04-24 09:42:49 +00:00
parent f1d1950619
commit fc441ff8b2
4 changed files with 12 additions and 10 deletions
+4 -2
View File
@@ -45,14 +45,14 @@ end
---------------------------------------------------------------------
local function FindDrilling( dDiam)
-- ricerca sulle forature con punte, dal diametro maggiore al minore
-- ricerca sulle forature, dal diametro maggiore al minore
for i = #Drillings, 1, -1 do
local Drilling = Drillings[i]
if ( Drilling.Type == 'Drill' and Drilling.Diam < dDiam + 10 * GEO.EPS_SMALL and Drilling.Diam > dDiam - BD.DRILL_TOL - 10 * GEO.EPS_SMALL) then
return i, Drilling.Name, Drilling.Type
end
end
-- ricerca sull svuotature con frese, dal diametro maggiore al minore
-- ricerca sulle svuotature, dal diametro maggiore al minore
for i = #Drillings, 1, -1 do
local Drilling = Drillings[i]
if ( Drilling.Type == 'Pocket' and dDiam > Drilling.Diam + 10 * GEO.EPS_SMALL) then
@@ -169,6 +169,8 @@ function ProcessDrill.Make( Proc, nPhase, nRawId, nPartId)
if Proc.Flg == 2 or Proc.Flg == -2 then
EgtSetMachiningParam( MCH_MP.DEPTH, dLen / 2 + BD.DRILL_OVERLAP)
end
-- dichiaro non si generano sfridi per VMill
EgtSetMachiningParam( MCH_MP.USERNOTES, 'VMRS=0;')
-- eseguo
if not EgtApplyMachining( true, false) then
local _, sErr = EgtGetLastMachMgrError()
+4 -4
View File
@@ -1,4 +1,4 @@
-- ProcessLapJoint.lua by Egaltech s.r.l. 2019/03/26
-- ProcessLapJoint.lua by Egaltech s.r.l. 2019/04/24
-- Gestione calcolo mezzo-legno per Travi
-- Tabella per definizione modulo
@@ -158,7 +158,7 @@ local function MakeOneFaceByMill( Proc, nPhase, nRawId, nPartId)
-- imposto lato di correzione
EgtSetMachiningParam( MCH_MP.WORKSIDE, MCH_MILL_WS.LEFT)
-- imposto posizione braccio porta testa
if vtN:getY() <= 0 then
if vtN:getY() < GEO.EPS_SMALL then
EgtSetMachiningParam( MCH_MP.SCC, MCH_SCC.ADIR_YM)
else
EgtSetMachiningParam( MCH_MP.SCC, MCH_SCC.ADIR_YP)
@@ -239,7 +239,7 @@ local function MakeTwoFacesByMill( Proc, nPhase, nRawId, nPartId)
-- imposto lato di correzione
EgtSetMachiningParam( MCH_MP.WORKSIDE, MCH_MILL_WS.LEFT)
-- imposto posizione braccio porta testa
if vtN[nFacInd]:getY() <= 0 then
if vtN[nFacInd]:getY() < GEO.EPS_SMALL then
EgtSetMachiningParam( MCH_MP.SCC, MCH_SCC.ADIR_YM)
else
EgtSetMachiningParam( MCH_MP.SCC, MCH_SCC.ADIR_YP)
@@ -468,7 +468,7 @@ local function MakeMoreFacesByMillOrChain( Proc, nPhase, nRawId, nPartId)
-- imposto uso faccia
EgtSetMachiningParam( MCH_MP.FACEUSE, MCH_MILL_FU.ORTHO_CONT)
-- imposto posizione braccio porta testa
if vtN:getY() <= 0 then
if vtN:getY() < GEO.EPS_SMALL then
EgtSetMachiningParam( MCH_MP.SCC, MCH_SCC.ADIR_YM)
else
EgtSetMachiningParam( MCH_MP.SCC, MCH_SCC.ADIR_YP)
+2 -2
View File
@@ -1,4 +1,4 @@
-- ProcessMortise.lua by Egaltech s.r.l. 2018/03/23
-- ProcessMortise.lua by Egaltech s.r.l. 2018/04/24
-- Gestione calcolo mortase per Travi
-- Tabella per definizione modulo
@@ -93,7 +93,7 @@ function ProcessMortise.Make( Proc, nPhase, nRawId, nPartId)
-- aggiungo geometria
EgtSetMachiningGeometry( {{ AuxId, -1}})
-- imposto posizione braccio porta testa
if vtN:getY() < - GEO.EPS_SMALL then
if vtN:getY() < GEO.EPS_SMALL then
EgtSetMachiningParam( MCH_MP.SCC, MCH_SCC.ADIR_YM)
else
EgtSetMachiningParam( MCH_MP.SCC, MCH_SCC.ADIR_YP)
+2 -2
View File
@@ -1,4 +1,4 @@
-- ProcessPocket.lua by Egaltech s.r.l. 2018/10/21
-- ProcessPocket.lua by Egaltech s.r.l. 2019/04/24
-- Gestione calcolo tasche per Travi
-- Tabella per definizione modulo
@@ -82,7 +82,7 @@ function ProcessPocket.Make( Proc, nPhase, nRawId, nPartId)
-- aggiungo geometria
EgtSetMachiningGeometry( {{ Proc.Id, nFacInd}})
-- imposto posizione braccio porta testa
if vtN:getY() < - GEO.EPS_SMALL then
if vtN:getY() < GEO.EPS_SMALL then
EgtSetMachiningParam( MCH_MP.SCC, MCH_SCC.ADIR_YM)
else
EgtSetMachiningParam( MCH_MP.SCC, MCH_SCC.ADIR_YP)