EgtMachKernel 1.8i1 :

- migliorato ritorno in home di simulazione.
This commit is contained in:
Dario Sassi
2017-09-11 05:56:47 +00:00
parent 04c5d19e11
commit b61d44a0eb
3 changed files with 4 additions and 38 deletions
+4 -2
View File
@@ -555,7 +555,8 @@ Simulator::FindAndManageOperationStart( bool bStart, bool bFirst, int& nStatus)
return false ;
}
// cambio fase
m_pMchMgr->SetCurrPhase( pDisp->GetPhase()) ;
int nPhase = pDisp->GetPhase() ;
m_pMchMgr->SetCurrPhase( nPhase, ( nPhase == 1)) ;
// aggiorno utensile e assi conseguenti
if ( ! UpdateTool( bFirst)) {
nStatus = MCH_SIM_ERR ;
@@ -577,7 +578,8 @@ Simulator::FindAndManageOperationStart( bool bStart, bool bFirst, int& nStatus)
return false ;
}
// cambio fase
m_pMchMgr->SetCurrPhase( pDisp->GetPhase()) ;
int nPhase = pDisp->GetPhase() ;
m_pMchMgr->SetCurrPhase( nPhase, ( nPhase == 1)) ;
++ m_nOpInd ;
// richiamo gestione evento inizio e fine disposizione
if ( ! OnDispositionStart( m_nOpId, m_nOpInd, pDisp->GetPhase(), sTable, ptOri1, true) ||