EgtExecutor :

- razionalizzazione della interfaccia di simulazione (aggiunta ExeSimInit e rinominata ExeSimStop in ExeSimExit).
This commit is contained in:
Dario Sassi
2018-08-17 07:39:51 +00:00
parent dafd9b313c
commit 565dbe8aee
2 changed files with 94 additions and 54 deletions
+32 -22
View File
@@ -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() ;
}
//-----------------------------------------------------------------------------