From 8901acb95a94876c9e53855e2be89b3f96db110d Mon Sep 17 00:00:00 2001 From: "andrea.villa" Date: Wed, 17 Jul 2024 15:57:15 +0200 Subject: [PATCH] Correzione modifica precedente (2.6g2). Con lama precedente e motosega successiva, andava a parcheggio con lama alla quota della motosega. --- Common_ONE-PF.NUM.mlpe | 8 +++++--- UpdateLog.txt | 3 +++ Version.lua | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Common_ONE-PF.NUM.mlpe b/Common_ONE-PF.NUM.mlpe index 9b8f03e..adf6e18 100644 --- a/Common_ONE-PF.NUM.mlpe +++ b/Common_ONE-PF.NUM.mlpe @@ -608,10 +608,12 @@ function OnMachiningEnd() EMT.PREVTOOL_H1 = EMT.TOOL EMT.PREVHEAD_H1 = EMT.HEAD EMT.PREVTCPOS_H1 = EMT.TCPOS + EMT.PREVHOMEX_H1 = EgtGetAxisHomePos( 'X1') elseif nHSet == 2 then EMT.PREVTOOL_H2 = EMT.TOOL EMT.PREVHEAD_H2 = EMT.HEAD EMT.PREVTCPOS_H2 = EMT.TCPOS + EMT.PREVHOMEX_H2 = EgtGetAxisHomePos( 'X2') end if EMT.DOU_TYPE and not EMT.ZMAX then EMT.DOU_TO_ZMAX = true end @@ -1082,7 +1084,7 @@ function OnRapid() local nHSet = GetHeadSet( EMT.HEAD) local nPrevHSet = GetHeadSet( EMT.PREVHEAD) - -- se successivo non è sega a catena e la testa è la stessa, vado in home con utensile successivo + -- se successivo non è sega a catena e la testa è la stessa, vado in home con utensile succesivo if not HeadIsChainSaw( EMT.HEAD) and nHSet == nPrevHSet then if nHSet == 1 then local HomeX1 = EgtGetAxisHomePos( 'X1') @@ -1097,11 +1099,11 @@ function OnRapid() if not HeadIsChainSaw( EMT.PREVHEAD) then if nPrevHSet == 1 then local HomeX1 = EgtGetAxisHomePos( 'X1') - EmitMoveDataHead( 1, { X=-HomeX1, Z=MaxZ1, B=ParkB1, C=ParkC1, TPos=AdjustTcPos( false, EMT.PREVTCPOS_H1)}) + EmitMoveDataHead( 1, { X=-EMT.PREVHOMEX_H1, Z=MaxZ1, B=ParkB1, C=ParkC1, TPos=AdjustTcPos( false, EMT.PREVTCPOS_H1)}) EmitMoveStartHead( 1, 'EA1') else local HomeX2 = EgtGetAxisHomePos( 'X2') - EmitMoveDataHead( 2, { X=-HomeX2, Z=MaxZ2, B=ParkB2, C=ParkC2, TPos=AdjustTcPos( false, EMT.PREVTCPOS_H2)}) + EmitMoveDataHead( 2, { X=-EMT.PREVHOMEX_H2, Z=MaxZ2, B=ParkB2, C=ParkC2, TPos=AdjustTcPos( false, EMT.PREVTCPOS_H2)}) EmitMoveStartHead( 2, 'EA1') end else diff --git a/UpdateLog.txt b/UpdateLog.txt index 2a4ec56..a55c90d 100644 --- a/UpdateLog.txt +++ b/UpdateLog.txt @@ -1,5 +1,8 @@ ==== Common_ONE-PF Update Log ==== +Versione 2.6g3 (17/07/2024) +- (GEN) Correzione modifica precedente (2.6g2). Con lama precedente e motosega successiva, andava a parcheggio con lama alla quota della motosega. Ticket#1880 + Versione 2.6g2 (16/07/2024) - (GEN) Per preselezione o movimenti in home, non si scrive più 'ET0' perchè non è più supportato. Ticket#1926 diff --git a/Version.lua b/Version.lua index d4bc326..1639b73 100644 --- a/Version.lua +++ b/Version.lua @@ -3,7 +3,7 @@ local InfoCommon_STD_PP = { NAME = 'Common_ONE-PF', -- nome script PP standard - VERSION = '2.6g2', -- versione script + VERSION = '2.6g3', -- versione script MIN_MACH_VER_PP_COMMON = '2.5k1' -- versione minima kernel }