From 40c277b95d53463eac6b2dced505dbb4445b0657 Mon Sep 17 00:00:00 2001 From: "luca.mazzoleni" Date: Thu, 16 Mar 2023 09:33:28 +0100 Subject: [PATCH 1/7] In LongCut modifica alla lavorazione ulteriore con sega a catena per togliere il codolo e lasciare solo dei punti di supporto --- LuaLibs/ProcessLongCut.lua | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/LuaLibs/ProcessLongCut.lua b/LuaLibs/ProcessLongCut.lua index ac5f5b0..4c6bd97 100644 --- a/LuaLibs/ProcessLongCut.lua +++ b/LuaLibs/ProcessLongCut.lua @@ -23,6 +23,7 @@ -- 2023/02/21 Verso di avanzamento della lama migliorato anche con lama LC. -- 2023/02/22 Nuova gestione del verso di avanzamento ottimale che contempla tutti i casi. -- 2023/03/06 Correzione per i casi con lavorazione limitata. +-- 2023/03/15 Modifica alla lavorazione ulteriore con sega a catena per togliere il codolo e lasciare solo dei punti di supporto. -- Tabella per definizione modulo local ProcessLongCut = {} @@ -351,12 +352,13 @@ end --------------------------------------------------------------------- -- lavorazione faccia laterale con sega a catena -local function MakeSideFaceByChainSaw( nSurfId, dDepth, dOffs, dSal, dEal) +local function MakeSideFaceByChainSaw( nSurfId, dDepth, dOffs, dSal, dEal, bShortenStart, bShortenEnd) -- Recupero i dati dell'utensile local sSawing = ML.FindSawing( 'Sawing') local dMaxMat = 0 local dSawCornerRad = 0 local dSawThick = 0 + local dSawDiameter = 0 -- se non trova una lavorazione di sawing esco if not sSawing then local sErr = 'Error : Sawing not found in library' @@ -369,6 +371,7 @@ local function MakeSideFaceByChainSaw( nSurfId, dDepth, dOffs, dSal, dEal) dMaxMat = EgtTdbGetCurrToolParam( MCH_TP.MAXMAT) or dMaxMat dSawThick = EgtTdbGetCurrToolParam( MCH_TP.THICK) or dSawThick dSawCornerRad = EgtTdbGetCurrToolParam( MCH_TP.CORNRAD) or dSawCornerRad + dSawDiameter = EgtTdbGetCurrToolParam( MCH_TP.DIAM) or dSawDiameter end end end @@ -392,9 +395,19 @@ local function MakeSideFaceByChainSaw( nSurfId, dDepth, dOffs, dSal, dEal) EgtSetMachiningParam( MCH_MP.INITANGS, BL.GetChainSawInitAngs( vtN, vtOrtho, 1)) -- imposto eventuale sovramateriale EgtSetMachiningParam( MCH_MP.OFFSR, dOffs) + -- imposto tratti in cui la sega a catena non lavora per lasciare del materiale di supporto + local dSupportingWoodLength = 30 -- imposto allungamento percorso iniziale e finale - EgtSetMachiningParam( MCH_MP.STARTADDLEN, dSal) - EgtSetMachiningParam( MCH_MP.ENDADDLEN, dEal) + if bShortenStart then + EgtSetMachiningParam( MCH_MP.STARTADDLEN, dSal - dSupportingWoodLength - dSawDiameter) + else + EgtSetMachiningParam( MCH_MP.STARTADDLEN, dSal) + end + if bShortenEnd then + EgtSetMachiningParam( MCH_MP.ENDADDLEN, dEal - dSupportingWoodLength - dSawDiameter) + else + EgtSetMachiningParam( MCH_MP.ENDADDLEN, dEal) + end -- imposto il lato di lavorazione local nWorkSide = MCH_MILL_WS.RIGHT EgtSetMachiningParam( MCH_MP.WORKSIDE, nWorkSide) @@ -765,6 +778,10 @@ function ProcessLongCut.Make( Proc, nPhase, nRawId, nPartId, bCustUseBlade, nCus -- calcolo quanto è l'affondamento del taglio local dOffsetTopBlade = ( dWidth + dDimStrip) / 2 local dOffsetDownBlade = ( dWidth + dDimStrip) / 2 + if bFinishWithChainSaw then + dOffsetTopBlade = dWidth / 2 + dOffsetDownBlade = dWidth / 2 + end local nStepDownBlade = 1 local dStepDownBlade = dWidth - dOffsetDownBlade -- se lama da sotto verifico se la componente Y della profondità di taglio supera la capacità della lama @@ -1029,15 +1046,17 @@ function ProcessLongCut.Make( Proc, nPhase, nRawId, nPartId, bCustUseBlade, nCus -- se richiesto aggiungo la lavorazione con sega a catena if bFinishWithChainSaw then local dChainSawOverMaterial = 0 - local dChainSawDepth = dOffsetDownBlade - dDimStrip + local dChainSawDepth = dOffsetDownBlade + BD.CUT_EXTRA dEndDist = dEndDistUp dEndAccDist = dEndAccDistUp dStartDist = dStartDistUp dStartAccDist = dStartAccDistUp for i = nC, 1, -1 do - local dSal = EgtIf( i == nC, -dEndDist, - dEndAccDist - ( nC - i - 1) * dC) - local dEal = EgtIf( i == 1, -dStartDist, - dStartAccDist - ( i - 2) * dC) - local bChainSawOk, sErr = MakeSideFaceByChainSaw( Proc.Id, dChainSawDepth, dChainSawOverMaterial, dSal, dEal) + local bFirstCut = ( i == nC) + local bLastCut = ( i == 1) + local dSal = EgtIf( bFirstCut, -dEndDist, - dEndAccDist - ( nC - i - 1) * dC) + local dEal = EgtIf( bLastCut, -dStartDist, - dStartAccDist - ( i - 2) * dC) + local bChainSawOk, sErr = MakeSideFaceByChainSaw( Proc.Id, dChainSawDepth, dChainSawOverMaterial, dSal, dEal, not bFirstCut, bLastCut) if not bChainSawOk then return false, sErr end end end From f4d9224d8d9342f8b882846e79b13e872a091bc7 Mon Sep 17 00:00:00 2001 From: "luca.mazzoleni" Date: Thu, 16 Mar 2023 09:38:33 +0100 Subject: [PATCH 2/7] 2.5c4 --- Version.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Version.lua b/Version.lua index eb28bd6..8b30290 100644 --- a/Version.lua +++ b/Version.lua @@ -1,4 +1,4 @@ -- Version.lua by Egaltech s.r.l. 2023/03/13 -- Gestione della versione di Beam -VERSION = '2.5c4' +VERSION = '2.5c5' From 4e98d2a2a41885c1d6a49d4bc7d2ea37e4d2fa57 Mon Sep 17 00:00:00 2001 From: "luca.mazzoleni" Date: Thu, 16 Mar 2023 11:01:49 +0100 Subject: [PATCH 3/7] Piccola correzione --- LuaLibs/ProcessLongCut.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LuaLibs/ProcessLongCut.lua b/LuaLibs/ProcessLongCut.lua index 4c6bd97..203c83d 100644 --- a/LuaLibs/ProcessLongCut.lua +++ b/LuaLibs/ProcessLongCut.lua @@ -1056,7 +1056,8 @@ function ProcessLongCut.Make( Proc, nPhase, nRawId, nPartId, bCustUseBlade, nCus local bLastCut = ( i == 1) local dSal = EgtIf( bFirstCut, -dEndDist, - dEndAccDist - ( nC - i - 1) * dC) local dEal = EgtIf( bLastCut, -dStartDist, - dStartAccDist - ( i - 2) * dC) - local bChainSawOk, sErr = MakeSideFaceByChainSaw( Proc.Id, dChainSawDepth, dChainSawOverMaterial, dSal, dEal, not bFirstCut, bLastCut) + local bShortenStartOrEnd = EgtIf( bFront, not bFirstCut, bFirstCut) + local bChainSawOk, sErr = MakeSideFaceByChainSaw( Proc.Id, dChainSawDepth, dChainSawOverMaterial, dSal, dEal, bShortenStartOrEnd, bShortenStartOrEnd) if not bChainSawOk then return false, sErr end end end From cdfbd188fa182506908d2942b896563f34dac32c Mon Sep 17 00:00:00 2001 From: "luca.mazzoleni" Date: Thu, 16 Mar 2023 11:09:22 +0100 Subject: [PATCH 4/7] 2.5c5 (errato 2.5c4 precedente) --- LuaLibs/ProcessLongCut.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LuaLibs/ProcessLongCut.lua b/LuaLibs/ProcessLongCut.lua index 203c83d..62d46e6 100644 --- a/LuaLibs/ProcessLongCut.lua +++ b/LuaLibs/ProcessLongCut.lua @@ -13,7 +13,7 @@ -- 2022/07/14 Aggiunta limitazione lavorazione a sinistra anche se il grezzo successivo non ha lavorazioni (finale barra) ma è abbastanza lungo da poter essere riutilizzato (BD.MinRaw). -- 2022/09/23 Modificato l'angolo per l'abilitazione della lama da sotto: ora interviene anche per facce verticali. -- 2022/11/04 Aggiunto passaggio parametro bDownHead (Testa da Sotto) nelle chiamate a MakeSideFace. --- 2022/11/28 Correzioni varie per attacco, pulizia spigoli, utilizzo H3 +-- 2022/11/28 Correzioni varie per attacco, pulizia spigoli, utilizzo H3. -- 2022/11/30 Modifiche su SCC per TURN. -- 2023/01/18 Aggiunta, se richiesta, una lavorazione ulteriore con sega a catena nei casi in cui la doppia lama non sia sufficiente. -- 2023/01/26 Rimossa la pulitura della faccia laterale nel caso in cui la feature abbia almeno una faccia rivolta verso il basso. From 5792c3111dfb56dddcca6bd30443506f8096e3e2 Mon Sep 17 00:00:00 2001 From: "luca.mazzoleni" Date: Thu, 16 Mar 2023 12:39:32 +0100 Subject: [PATCH 5/7] fix --- LuaLibs/ProcessLongCut.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/LuaLibs/ProcessLongCut.lua b/LuaLibs/ProcessLongCut.lua index 62d46e6..cdf1436 100644 --- a/LuaLibs/ProcessLongCut.lua +++ b/LuaLibs/ProcessLongCut.lua @@ -1056,7 +1056,7 @@ function ProcessLongCut.Make( Proc, nPhase, nRawId, nPartId, bCustUseBlade, nCus local bLastCut = ( i == 1) local dSal = EgtIf( bFirstCut, -dEndDist, - dEndAccDist - ( nC - i - 1) * dC) local dEal = EgtIf( bLastCut, -dStartDist, - dStartAccDist - ( i - 2) * dC) - local bShortenStartOrEnd = EgtIf( bFront, not bFirstCut, bFirstCut) + local bShortenStartOrEnd = true local bChainSawOk, sErr = MakeSideFaceByChainSaw( Proc.Id, dChainSawDepth, dChainSawOverMaterial, dSal, dEal, bShortenStartOrEnd, bShortenStartOrEnd) if not bChainSawOk then return false, sErr end end @@ -1069,7 +1069,8 @@ function ProcessLongCut.Make( Proc, nPhase, nRawId, nPartId, bCustUseBlade, nCus -- recupero la lavorazione local bDownHead = ( nSide == - 1) sMchType = EgtIf( bDownHead, 'Long2Cut_H2', 'Long2Cut') - local bExcludeH3 = bLarghAsFace and abs( nSide) ~= 1 + -- rimossa l'esclusione della terza testa a seguito di modifica della testa stessa che la rende utilizzabile in tutti i casi + --local bExcludeH3 = bLarghAsFace and abs( nSide) ~= 1 local sMilling = ML.FindMilling( sMchType, dElev, nil, nil, nil, not bDownHead, bDownHead, nil, bExcludeH3) if not sMilling then local sErr = 'Error : milling '..sMchType..' not found in library' From fc8dff216d2ca7c745fe8e72b9abb216e6ccb08f Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 20 Mar 2023 15:19:04 +0100 Subject: [PATCH 6/7] Fix netuse x correzione copia su R: --- .gitlab-ci.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7fe43e7..57191d5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,7 @@ variables: VERS_MAIN: '1.0' APP_NAME: 'Beam' NEW_REL: '' - NET_SHARE_R: '\\10.74.82.201\EgwTech' + NET_SHARE_X: '\\10.74.82.201\EgwTech' NET_SHARE_Z: '\\10.74.82.201\Artifacts' NET_USERQ: 'steamw\egalware' @@ -37,21 +37,22 @@ variables: # helper copia SORGENTI verso cartella di rete R:\ dei SORGENTI .CodeReplicaR: &CodeReplicaR - | - net use R: /delete - net use R: $env:NET_SHARE_R /u:$env:NET_USERQ $ZDRIVE_PASSWD - ROBOCOPY . R:\EgtData\$env:APP_NAME /MIR /XF .git* /XD .git + net use X: /delete SLEEP 2 - net use R: /delete + net use X: $env:NET_SHARE_X /u:$env:NET_USERQ $ZDRIVE_PASSWD + ROBOCOPY . X:\EgtData\$env:APP_NAME /MIR /XF .git* /XD .git + SLEEP 2 + net use X: /delete # helper copia script verso cartella di rete R:\ delle cartelle bin .ReplicaR: &ReplicaR - | - net use R: /delete - net use R: $env:NET_SHARE_R /u:$env:NET_USERQ $ZDRIVE_PASSWD - ROBOCOPY /MIR bin R:\EgtData\$env:APP_NAME\bin - ROBOCOPY /MIR Images R:\EgtData\$env:APP_NAME\bin\Images + net use X: /delete + net use X: $env:NET_SHARE_X /u:$env:NET_USERQ $ZDRIVE_PASSWD + ROBOCOPY /MIR bin X:\EgtData\$env:APP_NAME\bin + ROBOCOPY /MIR Images X:\EgtData\$env:APP_NAME\bin\Images SLEEP 2 - net use R: /delete + net use X: /delete # helper copia script verso cartella di rete R:\ delle cartelle bin .ReplicaZ: &ReplicaZ From b51737173e826725b4894764c0b72dff8986dc6b Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 20 Mar 2023 15:24:58 +0100 Subject: [PATCH 7/7] typo --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 57191d5..28b8102 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -48,6 +48,7 @@ variables: .ReplicaR: &ReplicaR - | net use X: /delete + SLEEP 2 net use X: $env:NET_SHARE_X /u:$env:NET_USERQ $ZDRIVE_PASSWD ROBOCOPY /MIR bin X:\EgtData\$env:APP_NAME\bin ROBOCOPY /MIR Images X:\EgtData\$env:APP_NAME\bin\Images