From d7f332148541606f6dd2ee0c345b4691aaa34b76 Mon Sep 17 00:00:00 2001 From: "andrea.villa" Date: Fri, 11 Jul 2025 12:06:02 +0200 Subject: [PATCH] - Motosega limitata a Z-150 - Posizione di presa di default A1=0 --- Essetre-WALL_XS0016.mlde | 8 +++++++- Wall/WallData.lua | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Essetre-WALL_XS0016.mlde b/Essetre-WALL_XS0016.mlde index b08a221..9802599 100644 --- a/Essetre-WALL_XS0016.mlde +++ b/Essetre-WALL_XS0016.mlde @@ -8,7 +8,7 @@ require( 'EmtGenerator') EgtEnableDebug( false) -PP_VER = '2.7g2' +PP_VER = '2.7g3' PP_NVER = '2.7.7.1' -- Parametri macchina @@ -19,6 +19,7 @@ MinX = -3900.0 MaxX = 45.0 MinZ = -900.0 MaxZ = 0.0 +CSawMaxZ = -150.0 MinB = -120.0 MaxB = 120.0 MinC = -360.0 @@ -354,6 +355,9 @@ function OnSetHead() MoveGroup( EgtGetFirstNameInGroup( H12Id, 'SOLID'), Z_AX(), dPos, true) MoveGroup( EgtGetFirstNameInGroup( H12Id, 'T1'), Z_AX(), dPos, true) end + -- Imposto corse asse standard + EmtModifyAxisStroke( 'Z', {MinZ, MaxZ}) + EmtModifyAxisHome( 'Z', MaxZ1) if EMC.HEAD == 'H11' or EMC.HEAD == 'H12' then EmtModifyAxisHome( 'B', 90) EgtResetAxisPos( 'B') @@ -365,6 +369,8 @@ function OnSetHead() local vtMove = Point3d( 0, 0, -dDist) - Point3d( EMC.EXITPOS) local ExitId = EgtGetFirstNameInGroup( EgtGetHeadId( EMC.HEAD), 'T'..tostring( EMC.EXIT)) EgtMove( ExitId, vtMove) + EmtModifyAxisStroke( 'Z', {MinZ, CSawMaxZ}) + EmtModifyAxisHome( 'Z', CSawMaxZ) end EmtModifyAxisHome( 'B', 0) end diff --git a/Wall/WallData.lua b/Wall/WallData.lua index 1b3acd3..a5afff2 100644 --- a/Wall/WallData.lua +++ b/Wall/WallData.lua @@ -72,7 +72,7 @@ end ------------------------------------------------------------------------------------------------------------- local function GetChainSawBlockedAxis( nInd) --if nInd == 1 then - return 'A1=270' + return 'A1=0' --else -- return 'A1=0' --end