Merge commit 'f9964a2f3c6501ef5005acdc764dae9b2c4b9775' into NewLink
This commit is contained in:
Binary file not shown.
+11
-5
@@ -2164,9 +2164,9 @@ SimulatorMP::OnMoveStart( const CamData* pCamData, const CamData* pNextCamData,
|
||||
bool bNeg = ( sLink.find( '-') != string::npos) ;
|
||||
string sMainAxis = sLink ; ReplaceString( sMainAxis, "-", "") ;
|
||||
int nInd = 0 ;
|
||||
for ( int i = 0 ; nInd == 0 && i < int( m_AxesName.size()) ; ++ i) {
|
||||
if ( m_AxesName[i] == sMainAxis)
|
||||
nInd = i + 1 ;
|
||||
for ( int j = 0 ; nInd == 0 && j < ssize( m_AxesName) ; ++ j) {
|
||||
if ( m_AxesName[j] == sMainAxis)
|
||||
nInd = j + 1 ;
|
||||
}
|
||||
// se trovato asse principale di riferimento
|
||||
if ( nInd > 0) {
|
||||
@@ -2199,11 +2199,17 @@ SimulatorMP::OnMoveStart( const CamData* pCamData, const CamData* pNextCamData,
|
||||
}
|
||||
}
|
||||
// altrimenti errore
|
||||
else
|
||||
else {
|
||||
bOk = false ;
|
||||
string sErr = " Error in OnMoveStart : Wrong Move AuxAxis " + ToString( i) ;
|
||||
LOG_ERROR( GetEMkLogger(), sErr.c_str())
|
||||
}
|
||||
}
|
||||
else
|
||||
else {
|
||||
bOk = false ;
|
||||
string sErr = " Error in OnMoveStart : Wrong Name AuxAxis " + ToString( i) ;
|
||||
LOG_ERROR( GetEMkLogger(), sErr.c_str())
|
||||
}
|
||||
}
|
||||
|
||||
return bOk ;
|
||||
|
||||
+12
-6
@@ -2243,9 +2243,9 @@ SimulatorSP::OnMoveStart( const CamData* pCamData, const CamData* pNextCamData,
|
||||
bool bNeg = ( sLink.find( '-') != string::npos) ;
|
||||
string sMainAxis = sLink ; ReplaceString( sMainAxis, "-", "") ;
|
||||
int nInd = 0 ;
|
||||
for ( int i = 0 ; nInd == 0 && i < int( m_AxesName.size()) ; ++ i) {
|
||||
if ( m_AxesName[i] == sMainAxis)
|
||||
nInd = i + 1 ;
|
||||
for ( int j = 0 ; nInd == 0 && j < ssize( m_AxesName) ; ++ j) {
|
||||
if ( m_AxesName[j] == sMainAxis)
|
||||
nInd = j + 1 ;
|
||||
}
|
||||
// se trovato asse principale di riferimento
|
||||
if ( nInd > 0) {
|
||||
@@ -2272,17 +2272,23 @@ SimulatorSP::OnMoveStart( const CamData* pCamData, const CamData* pNextCamData,
|
||||
m_AuxAxesEnd.emplace_back( dEnd) ;
|
||||
m_AuxAxesLink.emplace_back( 0) ;
|
||||
if ( ! m_pMachine->VerifyOutstroke( sName, dEnd)) {
|
||||
nErr = 1 ;
|
||||
nErr = ERR_OUTSTROKE ;
|
||||
bOk = false ;
|
||||
}
|
||||
}
|
||||
}
|
||||
// altrimenti errore
|
||||
else
|
||||
else {
|
||||
bOk = false ;
|
||||
string sErr = " Error in OnMoveStart : Wrong Move AuxAxis " + ToString( i) ;
|
||||
LOG_ERROR( GetEMkLogger(), sErr.c_str())
|
||||
}
|
||||
}
|
||||
else
|
||||
else {
|
||||
bOk = false ;
|
||||
string sErr = " Error in OnMoveStart : Wrong Name AuxAxis " + ToString( i) ;
|
||||
LOG_ERROR( GetEMkLogger(), sErr.c_str())
|
||||
}
|
||||
}
|
||||
|
||||
return bOk ;
|
||||
|
||||
Reference in New Issue
Block a user