EgtMachKernel 2.2f1 :

- corretta segnalazione errore caricamento TcPos
- corretta gestione e segnalazione caricamento gruppo di lavoro non riuscito.
This commit is contained in:
Dario Sassi
2020-05-31 21:25:13 +00:00
parent 0b4179b39c
commit 910a5fcb2c
3 changed files with 5 additions and 2 deletions
BIN
View File
Binary file not shown.
+4 -1
View File
@@ -371,7 +371,10 @@ MachMgr::PrepareCurrMachGroup( int nId)
m_nCurrMGrpId = nId ;
m_cCurrMGrp = mgData ;
m_nCurrMch = GetMachine( m_cCurrMGrp.MGeoName) ;
m_stuMgr.Init( this) ;
if ( ! m_stuMgr.Init( this)) {
m_nCurrMGrpId = GDB_ID_NULL ;
return false ;
}
m_stuMgr.Load() ;
m_nPhasesCount = CalcPhaseCount() ;
m_nCurrPhase = 0 ;
+1 -1
View File
@@ -804,7 +804,7 @@ Machine::LuaEmtTcPos( lua_State* L)
// carico i dati della posizione cambio utensile
if ( ! m_pMchLua->LoadMachineTcPos( sName, sParent, ptPos, vtTDir, vtADir, sGeo, vsAux))
return luaL_error( L, " Load Machine Standard Head failed") ;
return luaL_error( L, " Load Machine Tc Position failed") ;
// restituisco l'indice della posizione cambio utensile
int nTcPosId = m_pMchLua->GetTcPosId( sName) ;