EgtMachKernel :

- per macro di simulazione aggiunta variabile per step di simulazione EMT.SIMSTEP.
This commit is contained in:
Dario Sassi
2018-03-01 15:15:01 +00:00
parent 716ffccd16
commit aa1e86fa89
2 changed files with 7 additions and 4 deletions
+1
View File
@@ -129,6 +129,7 @@ static const std::string GVAR_AN = ".AN" ; // (num) valore del
static const std::string GVAR_ANN = ".ANn" ; // (string) nome del N-esimo asse ausiliario per simulazione
static const std::string GVAR_VMILL = ".VMILL" ; // (int) identificativo Zmap attivo
static const std::string GVAR_SIM1ST = ".SIM1ST" ; // (bool) flag inizio simulazione
static const std::string GVAR_SIMSTEP = ".SIMSTEP" ; // (num) step di movimento durante la simulazione
// Funzioni generazione
static const std::string ON_START = "OnStart" ;
+6 -4
View File
@@ -326,10 +326,12 @@ Simulator::GetMoveInfo( int& nGmove, double& dFeed) const
bool
Simulator::SetStep( double dStep)
{
const double MIN_STEP = 0.1 ;
const double MAX_STEP = 100.0 ;
m_dStep = Clamp( dStep, MIN_STEP, MAX_STEP) ;
return true ;
const double MIN_STEP = 1.0 ;
const double MAX_STEP = 100.0 ;
m_dStep = Clamp( dStep, MIN_STEP, MAX_STEP) ;
// imposto step per movimenti gestiti nelle macro di simulazione
m_pMachine->LuaSetGlobVar( GLOB_VAR + GVAR_SIMSTEP, m_dStep) ;
return true ;
}
//----------------------------------------------------------------------------