From e3aab825c2a86eee3a358c637bc2bd8a4dbac6d5 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Fri, 23 Oct 2015 08:00:15 +0000 Subject: [PATCH] EgtExecutor 1.6j2 : - aggiunte funzioni EXE e LUA per simulazione. --- EXE_MachMgr.cpp | 70 ++++++++++++++++++++++++++++++ EgtExecutor.rc | Bin 11694 -> 11694 bytes LUA_MachMgr.cpp | 110 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 180 insertions(+) diff --git a/EXE_MachMgr.cpp b/EXE_MachMgr.cpp index 5c28fa6..188e27a 100644 --- a/EXE_MachMgr.cpp +++ b/EXE_MachMgr.cpp @@ -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() ; +} diff --git a/EgtExecutor.rc b/EgtExecutor.rc index 8ef7064271c00eaf73c0d447f96dc57d4c284199..0b7b2fe6ce7b2de3f8d525098ad25f41f3eadd4f 100644 GIT binary patch delta 97 zcmZ1%y)JsgA2vp#%@@V4Gflq2na5}}Ignd-a{*Tk3sCf++-0W82LxfF21;&>n->Y| cF@rU@0x76sKgP|Iq`|@mn->Y| cF@rU@0x76sKgP|Iq`|@m