EgtMachKernel 1.6r9 :
- separato nome da token per gli assi macchina e gestito il tutto - in milling aggiunta gestione punto start e estrusione di path per piano locale di interpolazione in part-program - migliorata gestione deselezione utensile in simulazione.
This commit is contained in:
+5
-1
@@ -34,6 +34,7 @@ static const string FLD_NAME = "Name" ;
|
||||
static const string FLD_PARENT = "Parent" ;
|
||||
static const string FLD_GEO = "Geo" ;
|
||||
static const string FLD_AUX = "Aux" ;
|
||||
static const string FLD_TOKEN = "Token" ;
|
||||
static const string FLD_TYPE = "Type" ;
|
||||
static const string FLD_REF1 = "Ref1" ;
|
||||
static const string FLD_POS = "Pos" ;
|
||||
@@ -373,6 +374,9 @@ Machine::LuaEmtAxis( lua_State* L)
|
||||
// lettura campo 'Parent' dalla tabella
|
||||
string sParent ;
|
||||
LuaCheckTabFieldParam( L, 1, FLD_PARENT, sParent)
|
||||
// lettura eventuale campo 'Token' dalla tabella (default Name)
|
||||
string sToken = sName ;
|
||||
LuaGetTabFieldParam( L, 1, FLD_TOKEN, sToken) ;
|
||||
// lettura campo 'Type' dalla tabella
|
||||
int nType ;
|
||||
LuaCheckTabFieldParam( L, 1, FLD_TYPE, nType)
|
||||
@@ -408,7 +412,7 @@ Machine::LuaEmtAxis( lua_State* L)
|
||||
return luaL_error( L, " Unknown Machine") ;
|
||||
|
||||
// carico i dati dell'asse
|
||||
if ( ! m_pMchLua->LoadMachineAxis( sName, sParent, nType, ptPos, vtDir,
|
||||
if ( ! m_pMchLua->LoadMachineAxis( sName, sParent, sToken, nType, ptPos, vtDir,
|
||||
Stroke, dHome, bAdjustAux, sGeo, vsAux))
|
||||
return luaL_error( L, " Load Machine Axis failed") ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user