EgtExecutor 1.6j2 :
- aggiunte funzioni EXE e LUA per simulazione.
This commit is contained in:
@@ -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() ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user