EgtMachKernel :
- in svuotature chiuse migliorata scelta lato ottimale di inizio - altri sviluppi in SimulatorMP.
This commit is contained in:
+14
-3
@@ -30,9 +30,9 @@ MachMgr::SimInit( void)
|
||||
delete m_pSimul ;
|
||||
if ( GetCurrMachine() == nullptr)
|
||||
return false ;
|
||||
//if ( GetCurrMachine()->GetMultiProcess())
|
||||
// m_pSimul = CreateSimulatorMP() ;
|
||||
//else
|
||||
if ( GetCurrMachine()->GetMultiProcess( 2))
|
||||
m_pSimul = CreateSimulatorMP() ;
|
||||
else
|
||||
m_pSimul = CreateSimulatorSP() ;
|
||||
if ( m_pSimul == nullptr)
|
||||
return false ;
|
||||
@@ -220,3 +220,14 @@ MachMgr::SimMoveAxes( int nMoveType, const SAMVECTOR& vAxNaEpSt)
|
||||
// lancio movimento assi
|
||||
return m_pSimul->MoveAxes( nMoveType, vAxNaEpSt) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
MachMgr::SimSaveCmd( int nType, int nPar, const string& sPar)
|
||||
{
|
||||
// verifico simulatore
|
||||
if ( m_pSimul == nullptr)
|
||||
return false ;
|
||||
// salvo il comando
|
||||
return m_pSimul->SaveCmd( nType, nPar, sPar) ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user