From 212e09769f10efaadf2572c2cb6eb0c95f26d585 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Mon, 7 Sep 2020 10:53:22 +0000 Subject: [PATCH] EgtMachKernel 2.2i3 : - aggiunto controllo tra uscita di attrezzaggio e uscita dichiarata nel DB utensili (prima di simulazione, stima e generazione). --- EgtMachKernel.rc | Bin 11774 -> 11774 bytes MachMgrSetup.cpp | 13 ++++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/EgtMachKernel.rc b/EgtMachKernel.rc index 2f002cebe0f81366bdac1def9d6538c9115d98d9..7b01563f8643cc7868ecd10f375ad5e5e6d5249b 100644 GIT binary patch delta 97 zcmewt{V#gMFE&Qw&A-`fnHh~IKa|wnoW?bQ1uSxrY4Qod0+^@}R1`^_2jk{d(jGv4 NK<#LXK~l;gTmUD-Bai?9 delta 97 zcmewt{V#gMFE&P_&A-`fnHh~HKa|wnoW?bQ1uSxrY4Qod0+^@}R1`^_2jk{d(jGv4 NK<#LXK~l;gTmU8!BZvS1 diff --git a/MachMgrSetup.cpp b/MachMgrSetup.cpp index 2d4e0c5..bc430cf 100644 --- a/MachMgrSetup.cpp +++ b/MachMgrSetup.cpp @@ -99,11 +99,22 @@ MachMgr::VerifyCurrSetup( STRVECTOR& vsErrors) vsErrors.push_back( sErr) ; } // Se utensile non attrezzato - if ( ! m_stuMgr.FindTool( sTool)) { + string sTcPos, sHead ; int nExit ; + if ( ! m_stuMgr.GetToolData( sTool, sTcPos, sHead, nExit)) { // se non presente nella lista dei non attrezzati, lo aggiungo if ( find( vsErrors.begin(), vsErrors.end(), sTool) == vsErrors.end()) vsErrors.push_back( sTool) ; } + // altrimenti, verifico se uscita coincide con quella indicata nel DB utensili + else { + int nTdbExit ; + if ( ! TdbSetCurrTool( sTool) || + ! TdbGetCurrToolParam( TPA_EXIT, nTdbExit) || + nExit != nTdbExit) { + string sErr = sTool + " (exit mismatch " + ToString( nExit) + " - " + ToString( nTdbExit) + ")" ; + vsErrors.push_back( sErr) ; + } + } } // passo alla operazione successiva nOpId = GetNextActiveOperation( nOpId) ;