EgtExecutor :
- razionalizzazione della interfaccia di simulazione (aggiunta ExeSimInit e rinominata ExeSimStop in ExeSimExit).
This commit is contained in:
+32
-22
@@ -2483,6 +2483,16 @@ ExeUpdateAllMachinings( bool bStopOnFirstErr, string& sErrList)
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Simulazione
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeSimInit( void)
|
||||
{
|
||||
IMachMgr* pMachMgr = GetCurrMachMgr() ;
|
||||
VERIFY_MACHMGR( pMachMgr, false)
|
||||
// preparo la simulazione della macchinata corrente
|
||||
return pMachMgr->SimInit() ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeSimStart( bool bFirst)
|
||||
@@ -2513,6 +2523,26 @@ ExeSimHome( void)
|
||||
return pMachMgr->SimGoHome() ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeSimSetStep( double dStep)
|
||||
{
|
||||
IMachMgr* pMachMgr = GetCurrMachMgr() ;
|
||||
VERIFY_MACHMGR( pMachMgr, false)
|
||||
// imposto lo step di riferimento per la simulazione della macchinata corrente
|
||||
return pMachMgr->SimSetStep( dStep) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeSimSetUiStatus( int nUiStatus)
|
||||
{
|
||||
IMachMgr* pMachMgr = GetCurrMachMgr() ;
|
||||
VERIFY_MACHMGR( pMachMgr, false)
|
||||
// imposto lo stato utente del simulatore
|
||||
return pMachMgr->SimSetUiStatus( nUiStatus) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeSimGetAxisInfoPos( int nI, string& sName, string& sToken, bool& bLinear, double& dVal)
|
||||
@@ -2555,32 +2585,12 @@ ExeSimGetMoveInfo( int& nGmove, double& dFeed)
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeSimSetStep( double dStep)
|
||||
{
|
||||
IMachMgr* pMachMgr = GetCurrMachMgr() ;
|
||||
VERIFY_MACHMGR( pMachMgr, false)
|
||||
// imposto lo step di riferimento per la simulazione della macchinata corrente
|
||||
return pMachMgr->SimSetStep( dStep) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeSimSetUiStatus( int nUiStatus)
|
||||
{
|
||||
IMachMgr* pMachMgr = GetCurrMachMgr() ;
|
||||
VERIFY_MACHMGR( pMachMgr, false)
|
||||
// imposto lo stato utente del simulatore
|
||||
return pMachMgr->SimSetUiStatus( nUiStatus) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeSimStop( void)
|
||||
ExeSimExit( void)
|
||||
{
|
||||
IMachMgr* pMachMgr = GetCurrMachMgr() ;
|
||||
VERIFY_MACHMGR( pMachMgr, false)
|
||||
// termino la simulazione della macchinata corrente
|
||||
return pMachMgr->SimStop() ;
|
||||
return pMachMgr->SimExit() ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user