diff --git a/LuaLibs/FacesBySaw.lua b/LuaLibs/FacesBySaw.lua index 6d04a30..0536a5b 100644 --- a/LuaLibs/FacesBySaw.lua +++ b/LuaLibs/FacesBySaw.lua @@ -56,14 +56,14 @@ function FacesBySaw.MakeOne( nSurfId, nFacet, sCutting, dSawDiam, Par5, dVzLimDw -- verifico se lavorazione con lama sotto e testa sopra if not dVzLimDwnUp then dVzLimDwnUp = BL.GetNzLimDownUp( b3Raw, vtN, vtOrthO) end local bDownUp = ( vtN:getZ() < dVzLimDwnUp) - -- verifico se la lama ruota in senso orario + -- verifico se la lama ruota in senso antiorario if not EgtMdbSetCurrMachining( sCutting) then return false end - local bIsSawCW = EgtMdbGetCurrMachiningParam( MCH_MP.SPEED) < 0 + local bIsSawCCW = EgtMdbGetCurrMachiningParam( MCH_MP.SPEED) < 0 local bInvert = bForceInvert - -- se la lama ruota in senso orario inverto la direzione di lavorazione, per avere rotazione lama opposta a avanzamento - if bInvert == nil and bIsSawCW and not bDownUp then + -- se la lama ruota in senso antiorario inverto la direzione di lavorazione, per avere rotazione lama opposta a avanzamento + if bInvert == nil and bIsSawCCW and not bDownUp then if ( ptP2:getZ() > ptP1:getZ() + 100 * GEO.EPS_SMALL) then bInvert = false else diff --git a/LuaLibs/ProcessLongCut.lua b/LuaLibs/ProcessLongCut.lua index 2837fd1..3f79280 100644 --- a/LuaLibs/ProcessLongCut.lua +++ b/LuaLibs/ProcessLongCut.lua @@ -977,18 +977,18 @@ function ProcessLongCut.Make( Proc, nPhase, nRawId, nPartId, bCustUseBlade, nCus end -- recupero alcune informazioni utili dalla lavorazione attuale - local bIsCurrentBladeCW + local bIsCurrentBladeCCW if bIsTopBladeCurrent then EgtMdbSetCurrMachining( sCutting) else EgtMdbSetCurrMachining( sCuttingDn) end - bIsCurrentBladeCW = EgtMdbGetCurrMachiningParam( MCH_MP.SPEED) < 0 + bIsCurrentBladeCCW = EgtMdbGetCurrMachiningParam( MCH_MP.SPEED) < 0 -- imposto la direzione di lavoro per avere scarico del truciolo ottimale local nWorkSide, bInvert if not bIsTopBladeCurrent and abs( nSide) ~= 2 then - if bIsCurrentBladeCW then + if bIsCurrentBladeCCW then nWorkSide = MCH_MILL_WS.LEFT bInvert = true dSal, dEal = dEal, dSal @@ -997,7 +997,7 @@ function ProcessLongCut.Make( Proc, nPhase, nRawId, nPartId, bCustUseBlade, nCus bInvert = false end else - if bIsCurrentBladeCW then + if bIsCurrentBladeCCW then nWorkSide = MCH_MILL_WS.LEFT bInvert = false else diff --git a/LuaLibs/ProcessLongDoubleCut.lua b/LuaLibs/ProcessLongDoubleCut.lua index a1d3bc8..a433879 100644 --- a/LuaLibs/ProcessLongDoubleCut.lua +++ b/LuaLibs/ProcessLongDoubleCut.lua @@ -730,18 +730,18 @@ function ProcessLong2Cut.Make( Proc, nPhase, nRawId, nPartId, bForcedBladeMaster end -- recupero alcune informazioni utili dalla lavorazione attuale - local bIsCurrentBladeCW + local bIsCurrentBladeCCW if bIsTopBladeCurrent then EgtMdbSetCurrMachining( sCutting) else EgtMdbSetCurrMachining( sCuttingDn) end - bIsCurrentBladeCW = EgtMdbGetCurrMachiningParam( MCH_MP.SPEED) < 0 + bIsCurrentBladeCCW = EgtMdbGetCurrMachiningParam( MCH_MP.SPEED) < 0 -- imposto la direzione di lavoro per avere scarico del truciolo ottimale local nWorkSide, bInvert if ( not bIsTopBladeCurrent and abs( nSide) ~= 0) or ( bCanUseBlade and bCanUseUnderBlade and nSide == -1) then - if bIsCurrentBladeCW then + if bIsCurrentBladeCCW then nWorkSide = MCH_MILL_WS.LEFT bInvert = true dSal, dEal = dEal, dSal @@ -750,7 +750,7 @@ function ProcessLong2Cut.Make( Proc, nPhase, nRawId, nPartId, bForcedBladeMaster bInvert = false end else - if bIsCurrentBladeCW then + if bIsCurrentBladeCCW then nWorkSide = MCH_MILL_WS.LEFT bInvert = false else