From 66018dd4dfbde561112faca14d0f2e7f7ab7ae81 Mon Sep 17 00:00:00 2001 From: DarioS Date: Sun, 3 Oct 2021 12:32:34 +0200 Subject: [PATCH] DataBeam : - correzioni in LapJoint per lavorazione con sega a catena su macchine PF di fessure frontali in verticale - correzioni in LapJoint per lavorazione di L020 che richiede passata con fresa precedente a svuotatura. --- LuaLibs/ProcessLapJoint.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/LuaLibs/ProcessLapJoint.lua b/LuaLibs/ProcessLapJoint.lua index ffd3c41..658d061 100644 --- a/LuaLibs/ProcessLapJoint.lua +++ b/LuaLibs/ProcessLapJoint.lua @@ -1140,6 +1140,12 @@ local function MakeByMill( Proc, nPhase, nRawId, nPartId, nFacInd, rfFac, dH, dV nSCC = MCH_SCC.ADIR_YP end EgtSetMachiningParam( MCH_MP.SCC, nSCC) + -- lato di lavoro e direzione + EgtSetMachiningParam( MCH_MP.WORKSIDE, MCH_MILL_WS.LEFT) + EgtSetMachiningParam( MCH_MP.INVERT, true) + -- tipo di attacco e uscita + EgtSetMachiningParam( MCH_MP.LEADINTYPE, MCH_MILL_LI.LINEAR) + EgtSetMachiningParam( MCH_MP.LEADOUTTYPE, MCH_MILL_LO.LINEAR) -- imposto accorciamento iniziale/finale per estremi aperti/chiusi if bSpecialApp then -- applico gli allungamenti o accorciamenti considerando che la lavorazione è invertita @@ -2990,6 +2996,13 @@ local function MakeByChainOrSaw( Proc, nPhase, nRawId, nPartId, nFacInd, end -- imposto angolo 3° asse rot EgtSetMachiningParam( MCH_MP.BLOCKEDAXIS, GetChainSawBlockedAxis( 1)) + if BD.C_SIMM then + if vtN:getY() > 0 then + EgtSetMachiningParam( MCH_MP.INITANGS, 'C=180') + else + EgtSetMachiningParam( MCH_MP.INITANGS, 'C=-180') + end + end -- imposto offset radiale local dOffs = ( i - 1) * dStep EgtSetMachiningParam( MCH_MP.OFFSR, dOffs) @@ -3010,6 +3023,7 @@ local function MakeByChainOrSaw( Proc, nPhase, nRawId, nPartId, nFacInd, EgtSetOperationMode( nMchFId, false) return false, sErr end + -- impostazione alternativa angolo 3° asse rot EgtSetMachiningParam( MCH_MP.BLOCKEDAXIS, GetChainSawBlockedAxis( 2)) if BD.C_SIMM then if vtN:getY() > 0 then @@ -3070,6 +3084,13 @@ local function MakeByChainOrSaw( Proc, nPhase, nRawId, nPartId, nFacInd, end -- imposto angolo 3° asse rot EgtSetMachiningParam( MCH_MP.BLOCKEDAXIS, GetChainSawBlockedAxis( 1)) + if BD.C_SIMM then + if vtN:getY() > 0 then + EgtSetMachiningParam( MCH_MP.INITANGS, 'C=180') + else + EgtSetMachiningParam( MCH_MP.INITANGS, 'C=-180') + end + end -- imposto offset radiale local dOffs = ( i - 1) * dStep EgtSetMachiningParam( MCH_MP.OFFSR, dOffs) @@ -3092,6 +3113,7 @@ local function MakeByChainOrSaw( Proc, nPhase, nRawId, nPartId, nFacInd, EgtSetOperationMode( nMchFId, false) return false, sErr end + -- impostazione alternativa angolo 3° asse rot EgtSetMachiningParam( MCH_MP.BLOCKEDAXIS, GetChainSawBlockedAxis( 2)) if BD.C_SIMM then local vtN = EgtSurfTmFacetNormVersor( Proc.Id, nLundIdFace, GDB_ID.ROOT)