EgtMachKernel 1.6k10 :
- sistemazioni varie in grezzi, lavorazioni, ....
This commit is contained in:
+7
-2
@@ -75,6 +75,7 @@ static const string GVAR_L2T = ".L2t" ; // (num) token del secon
|
||||
static const string GVAR_L3T = ".L3t" ; // (num) token del terzo asse lineare
|
||||
static const string GVAR_R1T = ".R1t" ; // (num) token del primo asse rotante
|
||||
static const string GVAR_R2T = ".R2t" ; // (num) token del secondo asse rotante
|
||||
static const string GVAR_MASK = ".MASK" ; // (int) mask associato ai movimenti in rapido
|
||||
static const string GVAR_FLAG = ".FLAG" ; // (int) flag associato ad ogni movimento
|
||||
static const string TEMP_VAR = "LOC" ; // tavola variabili locali (temporanee)
|
||||
static const string ON_START = "OnStart" ;
|
||||
@@ -362,7 +363,7 @@ Generator::ProcessClEnt( int nEntId, int nEntInd, int nClPathId, int nClPathInd,
|
||||
bool bRapid = ( pCamData->GetFeed() < EPS_SMALL) ;
|
||||
// Emetto movimento
|
||||
if ( bRapid) {
|
||||
if ( ! OnRapid( AxesEnd))
|
||||
if ( ! OnRapid( AxesEnd, pCamData->GetAxesMask(), pCamData->GetFlag()))
|
||||
return false ;
|
||||
}
|
||||
else {
|
||||
@@ -651,7 +652,7 @@ Generator::OnPathEnd( void)
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
Generator::OnRapid( const DBLVECTOR& AxesEnd)
|
||||
Generator::OnRapid( const DBLVECTOR& AxesEnd, int nAxesMask, int nFlag)
|
||||
{
|
||||
// definisco tavola variabili locali (temporanee)
|
||||
bool bOk = m_pMachine->LuaCreateGlobTable( TEMP_VAR) ;
|
||||
@@ -663,6 +664,10 @@ Generator::OnRapid( const DBLVECTOR& AxesEnd)
|
||||
else
|
||||
bOk = bOk && m_pMachine->LuaResetGlobVar( GetGlobVarAxisValue(i)) ;
|
||||
}
|
||||
// assegno la mascheratura degli assi
|
||||
bOk = bOk && m_pMachine->LuaSetGlobVar( GLOB_VAR + GVAR_MASK, nAxesMask) ;
|
||||
// assegno il valore del flag
|
||||
bOk = bOk && m_pMachine->LuaSetGlobVar( GLOB_VAR + GVAR_FLAG, nFlag) ;
|
||||
// chiamo la funzione di movimento in rapido
|
||||
bOk = bOk && m_pMachine->LuaCallFunction( ON_RAPID) ;
|
||||
// cancello variabili locali
|
||||
|
||||
Reference in New Issue
Block a user