EgtMachKernel :
- aggiunta gestione modifica DB lavorazioni per impostazione tipo split archi - introduzione invert asse (per ora solo come lettura da config. macchina).
This commit is contained in:
+5
-1
@@ -36,6 +36,7 @@ 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_INVERT = "Invert" ;
|
||||
static const string FLD_REF1 = "Ref1" ;
|
||||
static const string FLD_SCALE = "Scale" ;
|
||||
static const string FLD_POS = "Pos" ;
|
||||
@@ -393,6 +394,9 @@ Machine::LuaEmtAxis( lua_State* L)
|
||||
// lettura eventuale campo 'Token' dalla tabella (default Name)
|
||||
string sToken = sName ;
|
||||
LuaGetTabFieldParam( L, 1, FLD_TOKEN, sToken) ;
|
||||
// lettura eventuale campo Invert dalla tabella (default false)
|
||||
bool bInvert = false ;
|
||||
LuaGetTabFieldParam( L, 1, FLD_TYPE, bInvert) ;
|
||||
// lettura campo 'Type' dalla tabella
|
||||
int nType ;
|
||||
LuaCheckTabFieldParam( L, 1, FLD_TYPE, nType)
|
||||
@@ -428,7 +432,7 @@ Machine::LuaEmtAxis( lua_State* L)
|
||||
return luaL_error( L, " Unknown Machine") ;
|
||||
|
||||
// carico i dati dell'asse
|
||||
if ( ! m_pMchLua->LoadMachineAxis( sName, sParent, sToken, nType, ptPos, vtDir,
|
||||
if ( ! m_pMchLua->LoadMachineAxis( sName, sParent, sToken, bInvert, nType, ptPos, vtDir,
|
||||
Stroke, dHome, bAdjustAux, sGeo, vsAux))
|
||||
return luaL_error( L, " Load Machine Axis failed") ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user