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:
Dario Sassi
2017-03-02 07:56:39 +00:00
parent 0941600e08
commit 284525c926
8 changed files with 63 additions and 8 deletions
+3 -2
View File
@@ -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) ;