EgtExecutor 1.6j2 :

- aggiunte funzioni EXE e LUA per simulazione.
This commit is contained in:
Dario Sassi
2015-10-23 08:00:15 +00:00
parent d4cb542d16
commit e3aab825c2
3 changed files with 180 additions and 0 deletions
+70
View File
@@ -811,3 +811,73 @@ ExeApplyMachining( void)
// imposto la geometria alla lavorazione corrente
return pGseCtx->m_pMachMgr->Apply() ;
}
//-----------------------------------------------------------------------------
int
ExeGetFirstOperation( void)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// recupero la prima operazione della macchinata corrente
return pGseCtx->m_pMachMgr->GetFirstOperation() ;
}
//-----------------------------------------------------------------------------
int
ExeGetNextOperation( int nId)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// recupero la successiva operazione della macchinata corrente
return pGseCtx->m_pMachMgr->GetNextOperation( nId) ;
}
//-----------------------------------------------------------------------------
int
ExeGetOperationType( int nId)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// recupero il tipo di operazione della macchinata corrente
return pGseCtx->m_pMachMgr->GetOperationType( nId) ;
}
//-----------------------------------------------------------------------------
bool
ExeSimStart( void)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// avvio la simulazione della macchinata corrente
return pGseCtx->m_pMachMgr->SimStart() ;
}
//-----------------------------------------------------------------------------
bool
ExeSimMove( void)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// eseguo movimento di simulazione della macchinata corrente
return pGseCtx->m_pMachMgr->SimMove() ;
}
//-----------------------------------------------------------------------------
bool
ExeSimSetStep( double dStep)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// imposto lo step di riferimento per la simulazione della macchinata corrente
return pGseCtx->m_pMachMgr->SimSetStep( dStep) ;
}
//-----------------------------------------------------------------------------
bool
ExeSimStop( void)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// termino la simulazione della macchinata corrente
return pGseCtx->m_pMachMgr->SimStop() ;
}