diff --git a/EgtMachKernel.rc b/EgtMachKernel.rc index 2f002ce..7b01563 100644 Binary files a/EgtMachKernel.rc and b/EgtMachKernel.rc differ 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) ;