From 2ee6613759b73db452eccb3d040200e31e0d6117 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Thu, 22 Oct 2020 06:43:54 +0000 Subject: [PATCH] EgtMachKernel 2.2j4 : - corretto assegnamento Zmax a inizio lavorazione dopo cambio utensile. --- EgtMachKernel.rc | Bin 11782 -> 11782 bytes Operation.cpp | 6 +++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/EgtMachKernel.rc b/EgtMachKernel.rc index fb92aaae1aa2af6f073989eeaf2d223171714a6c..63409f847b199e3df219ffb542b4fbd5dbdb29c0 100644 GIT binary patch delta 97 zcmZpRX^YwLhmFx>^ItYwW=50Aj>5W|vxM9jH?QON0rG*u7nvrX5iEd9O=7{OSQ@Kh Hr8(RHQ1Kv2 delta 97 zcmZpRX^YwLhmFyA^ItYwW=7-5j>5W|vxM9jH?QON0rG*u7nvrX5iEd9O=7{OSQ@Kh Hr8(RHPhB8F diff --git a/Operation.cpp b/Operation.cpp index caca693..cf8141e 100644 --- a/Operation.cpp +++ b/Operation.cpp @@ -1804,10 +1804,14 @@ Operation::AdjustOneStartMovement( int nClPathId, int nPrevClPathId, Operation* // copio l'entità if ( m_pGeomDB->Copy( nEntId, GDB_ID_NULL, nEntId, GDB_AFTER) == GDB_ID_NULL) return false ; + // recupero HomeZ + double dHomeZ ; + if ( ! m_pMchMgr->GetCurrAxisHomePos( 2, dHomeZ)) + return false ; // modifico quella originale (è la prima del percorso) m_pGeomDB->SetName( nEntId, MCH_CL_CLIMB) ; DBLVECTOR vAxNew = vAxCurr ; - vAxNew[2] = vAxPrev[2] ; + vAxNew[2] = dHomeZ ; // eventuali aggiustamenti speciali dipendenti dalla macchina Vector3d vtTool = pCamData->GetToolDir() ; DBLVECTOR vAxTmp = vAxNew ;