From c7c87c6a9acd991a342f83bd9b24c7c1231d0460 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Thu, 4 Jun 2020 18:12:07 +0000 Subject: [PATCH] DataBeam : - in SawCut (0/3/4-013-X) corretto posizionamento lama in centro con gruppo 0. --- LuaLibs/ProcessSawCut.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/LuaLibs/ProcessSawCut.lua b/LuaLibs/ProcessSawCut.lua index b726e09..4d7c32e 100644 --- a/LuaLibs/ProcessSawCut.lua +++ b/LuaLibs/ProcessSawCut.lua @@ -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)