EgtMachKernel :

- piccole modifiche per gestione movimenti teste in Disposizione.
This commit is contained in:
Dario Sassi
2017-03-02 19:18:29 +00:00
parent aec93d06fb
commit 5cdae9806e
4 changed files with 9 additions and 9 deletions
+5 -5
View File
@@ -174,7 +174,7 @@ Generator::ProcessDisposition( int nOpId, int nOpInd)
string sTool ; string sHead ; int nExit ; string sTcPos ;
if ( ! pDisp->GetToolData( sTool, sHead, nExit, sTcPos))
return false ;
// Se utensile cambierà
// Se esiste utensile corrente e cambierà, lo scarico
if ( ! m_sTool.empty() && m_sTool != sTool) {
// emetto deselezione vecchio utensile
if ( ! OnToolDeselect( sTool, sHead, nExit, sTcPos))
@@ -183,8 +183,8 @@ Generator::ProcessDisposition( int nOpId, int nOpInd)
// Aggiorno utensile e assi macchina
if ( ! UpdateDispTool( sTool, sHead, nExit) || ! UpdateAxes())
return false ;
// Se utensile cambiato, emetto selezione nuovo utensile
if ( m_sTool != m_sPrevTool) {
// Se utensile non definito o cambiato, emetto selezione nuovo utensile
if ( m_sTool.empty() || m_sTool != m_sPrevTool) {
if ( ! OnToolSelect( sTool, sHead, nExit, sTcPos))
return false ;
}
@@ -462,8 +462,8 @@ Generator::UpdateDispTool( const string& sTool, const string& sHead, int nExit)
{
// Salvo l'utensile attuale come precedente
m_sPrevTool = m_sTool ;
// Se cambiato ...
if ( sTool != m_sTool) {
// Se non definito o cambiato ...
if ( sTool.empty() || sTool != m_sTool) {
// lo carico in macchina
if ( ! m_pMchMgr->SetCalcTool( sTool, sHead, nExit))
return false ;