EgtMachKernel 1.8b7 :
- corretta gestione disposizioni con spostamento pezzi consecutive e con teste diverse - aggiunta GetRotAxisBlocked - aggiunto controllo validità nome su utensili.
This commit is contained in:
+3
-2
@@ -438,7 +438,7 @@ Generator::UpdateTool( const string& sTool)
|
||||
{
|
||||
// Salvo l'utensile attuale come precedente
|
||||
m_sPrevTool = m_sTool ;
|
||||
// Se cambiato ...
|
||||
// Se cambiato utensile ...
|
||||
if ( sTool != m_sTool) {
|
||||
// lo imposto come corrente
|
||||
if ( ! m_pMchMgr->TdbSetCurrTool( sTool))
|
||||
@@ -758,7 +758,8 @@ bool
|
||||
Generator::OnToolSelect( const string& sTool, const string& sHead, int nExit, const string& sTcPos)
|
||||
{
|
||||
// assegno il nome dell'utensile, la testa, l'uscita e l'eventuale posizione nel toolchanger
|
||||
bool bOk = m_pMachine->LuaSetGlobVar( GLOB_VAR + GVAR_TOOL, sTool) ;
|
||||
string sOutTool = ( ( sTool.empty() || sTool.front() == '*') ? "" : sTool) ;
|
||||
bool bOk = m_pMachine->LuaSetGlobVar( GLOB_VAR + GVAR_TOOL, sOutTool) ;
|
||||
bOk = bOk && m_pMachine->LuaSetGlobVar( GLOB_VAR + GVAR_HEAD, sHead) ;
|
||||
bOk = bOk && m_pMachine->LuaSetGlobVar( GLOB_VAR + GVAR_EXIT, nExit) ;
|
||||
bOk = bOk && m_pMachine->LuaSetGlobVar( GLOB_VAR + GVAR_TCPOS, sTcPos) ;
|
||||
|
||||
Reference in New Issue
Block a user