DataBeam :

- migliorie a lavorazioni di profilatura.
This commit is contained in:
Dario Sassi
2019-04-10 16:40:21 +00:00
parent 0ce22a934c
commit 9cab250994
4 changed files with 70 additions and 54 deletions
+7 -7
View File
@@ -1,4 +1,4 @@
-- ProcessProfCamb.lua by Egaltech s.r.l. 2019/04/08
-- ProcessProfCamb.lua by Egaltech s.r.l. 2019/04/10
-- Gestione calcolo profilo caudato per Travi
-- Tabella per definizione modulo
@@ -153,8 +153,8 @@ function ProcessProfCamb.Make( Proc, nPhase, nRawId, nPartId, dCurrOvmH)
-- se lavorazione da sopra o da sotto
if nSide ~= 0 then
-- se lavorazione a destra di fronte o sinistra da dietro, inverto
if ( vtNF:getX() > 0 and vtExtr:getY() < -0.1) or
( vtNF:getX() < 0 and vtExtr:getY() > 0.1) then
if ( bHead and vtExtr:getY() < -0.1) or
( not bHead and vtExtr:getY() > 0.1) then
EgtSetMachiningParam( MCH_MP.TOOLINVERT, true)
EgtSetMachiningParam( MCH_MP.INVERT, true)
end
@@ -166,8 +166,8 @@ function ProcessProfCamb.Make( Proc, nPhase, nRawId, nPartId, dCurrOvmH)
EgtSetMachiningParam( MCH_MP.INVERT, true)
end
-- se lavorazione a destra da dietro o sinistra di fronte, inverto
if ( vtNF:getX() > 0 and vtNF:getY() > 0.1) or
( vtNF:getX() < 0 and vtNF:getY() < -0.1) then
if ( bHead and vtNF:getY() > 0.1) or
( not bHead and vtNF:getY() < -0.1) then
EgtSetMachiningParam( MCH_MP.WORKSIDE, MCH_MILL_WS.LEFT)
EgtSetMachiningParam( MCH_MP.INVERT, true)
end
@@ -198,8 +198,8 @@ function ProcessProfCamb.Make( Proc, nPhase, nRawId, nPartId, dCurrOvmH)
EgtSetMachiningGeometry( {{ AuxId, -1}})
-- sempre lavorazione da sopra o da sotto
-- se lavorazione a destra di fronte o sinistra da dietro, inverto
if ( vtNF:getX() > 0 and vtExtr:getY() > 0.1) or
( vtNF:getX() < 0 and vtExtr:getY() < -0.1) then
if ( bHead and vtExtr:getY() > 0.1) or
( not bHead and vtExtr:getY() < -0.1) then
EgtSetMachiningParam( MCH_MP.TOOLINVERT, true)
EgtSetMachiningParam( MCH_MP.INVERT, true)
end