diff --git a/EgtMachKernel.rc b/EgtMachKernel.rc index e02f750..f20530b 100644 Binary files a/EgtMachKernel.rc and b/EgtMachKernel.rc differ diff --git a/Simulator.cpp b/Simulator.cpp index 55deac7..ba22f1c 100644 --- a/Simulator.cpp +++ b/Simulator.cpp @@ -355,9 +355,6 @@ Simulator::UpdateTool( bool bFirst) // recupero i dati string sTool ; string sHead ; int nExit ; string sTcPos ; pDisp->GetToolData( sTool, sHead, nExit, sTcPos) ; - // !!! PROVVISORIO !!! Per disposizioni con percorso dummy con movimenti ausiliari - if ( sTcPos == "***") - return true ; // se esiste utensile corrente e cambierà, lo scarico if ( ! m_sTool.empty() && sTool != m_sTool) { // eventuale lancio script per scarico utensile @@ -520,6 +517,11 @@ Simulator::FindAndManageOperationStart( bool bStart, bool bFirst, int& nStatus) } // altrimenti disposizione passiva else { + // richiamo gestione evento appena prima di inizio disposizione + if ( ! OnDispositionStarting( m_nOpId, m_nOpInd, pDisp->GetPhase(), sTable, ptOri1, true)) { + nStatus = MCH_SIM_ERR ; + return false ; + } // cambio fase m_pMchMgr->SetCurrPhase( pDisp->GetPhase()) ; ++ m_nOpInd ;