From e2a3a65ebddc4a4f39a560fbf7993fb2f95106c7 Mon Sep 17 00:00:00 2001 From: "daniele.nicoli" Date: Mon, 17 Aug 2026 12:42:36 +0200 Subject: [PATCH] Aggiunto TODO di miglioramento in mlse IsHeadMachining() --- Common_ONE-PF.mlse | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/Common_ONE-PF.mlse b/Common_ONE-PF.mlse index 8f7695f..7a85d90 100644 --- a/Common_ONE-PF.mlse +++ b/Common_ONE-PF.mlse @@ -556,21 +556,12 @@ local function IsFirstMachiningOfStart( nMchId) end --------------------------------------------------------------------- +--TODO : controllare più precisamente se il primo punto della lavorazione fa collidere utensile, codolo, B o C contro la trave se non arretrata prima della discesa in Z. + -- ora fa arretrare la trave anche per le lavorazioni che non collidono ma semplicemente iniziano più avanti della trave, anche se lavorazioni sul fianco. local function IsHeadMachining( nMchId) local vInitAx = EmtGetInitialAxesPos( nMchId) return ( vInitAx and vInitAx[1] > 100 * GEO.EPS_SMALL) end ---------------------------------------------------------------------- Idea sostituzione IsHeadMachining controlla anche che Y sia dentro al pezzo ---[[local function IsHeadMachining( nMchId) - local vInitAx = EmtGetInitialAxesPos( nMchId) - local dDeltaZeroBeamY = EgtIf( GetHeadSet( EgtTdbGetCurrToolParam( MCH_TP.HEAD)) == 1, DeltaTabY, Delta2TabY) - if vInitAx then - if vInitAx[1] > 100 * GEO.EPS_SMALL and vInitAx[2] >= dDeltaZeroBeamY - 100 * GEO.EPS_SMALL and vInitAx[2] <= dDeltaZeroBeamY + EMC.SB + 100 * GEO.EPS_SMALL then - return true - end - end - return -end]] --------------------------------------------------------------------- local function GetPhaseRot( nPhase)