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:
Dario Sassi
2016-12-05 11:17:45 +00:00
parent c10284f04b
commit 4be9b7f835
6 changed files with 29 additions and 13 deletions
+5 -1
View File
@@ -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") ;