DataBeam :

- in SawCut (0/3/4-013-X) corretto posizionamento lama in centro con gruppo 0.
This commit is contained in:
Dario Sassi
2020-06-04 18:12:07 +00:00
parent 6921dd3b1e
commit c7c87c6a9a
+7 -1
View File
@@ -1,4 +1,4 @@
-- ProcessSawCut.lua by Egaltech s.r.l. 2020/05/25
-- ProcessSawCut.lua by Egaltech s.r.l. 2020/06/04
-- Gestione calcolo taglio di lama per Travi
-- Tabella per definizione modulo
@@ -84,11 +84,13 @@ function ProcessSawCut.Make( Proc, nPhase, nRawId, nPartId, dOvmHead)
end
-- recupero i dati dell'utensile
local dSawDiam = 400
local dSawThick = 2
local dMaxDepth = 0
if EgtMdbSetCurrMachining( sCutting) then
local sTuuid = EgtMdbGetCurrMachiningParam( MCH_MP.TUUID)
if EgtTdbSetCurrTool( EgtTdbGetToolFromUUID( sTuuid) or '') then
dSawDiam = EgtTdbGetCurrToolParam( MCH_TP.DIAM) or dSawDiam
dSawThick = EgtTdbGetCurrToolParam(MCH_TP.THICK) or dSawThick
dMaxDepth = EgtTdbGetCurrToolMaxDepth() or dMaxDepth
end
end
@@ -157,6 +159,10 @@ function ProcessSawCut.Make( Proc, nPhase, nRawId, nPartId, dOvmHead)
EgtSetMachiningParam( MCH_MP.ENDADDLEN, dEal)
-- imposto offset radiale
EgtSetMachiningParam( MCH_MP.OFFSR, dOffset)
-- imposto offset longitudinale
if Proc.Grp == 0 then
EgtSetMachiningParam( MCH_MP.OFFSL, EgtIf( bDownUp, dSawThick / 2, -dSawThick / 2))
end
-- imposto lato di lavoro e inversione
EgtSetMachiningParam( MCH_MP.WORKSIDE, EgtIf( bFront ~= bDownUp, MCH_MILL_WS.RIGHT, MCH_MILL_WS.LEFT))
EgtSetMachiningParam( MCH_MP.INVERT, bFront)