EgtMachKernel :
- aggiunta gestione livello di debug in LOG*.
This commit is contained in:
+4
-4
@@ -1064,7 +1064,7 @@ Operation::CalculateClPathAxesValues( int nClPathId, int nLinAxes, int nRotAxes,
|
||||
// verifico che il primo movimento non sia un arco
|
||||
if ( bFirst && pCamData->IsArc()) {
|
||||
pCamData->ResetAxes() ;
|
||||
LOG_INFO( GetEMkLogger(), "Error : first move in ClPath is an arc")
|
||||
LOG_ERROR( GetEMkLogger(), "Error : first move in ClPath is an arc")
|
||||
return false ;
|
||||
}
|
||||
// calcolo degli assi rotanti della macchina
|
||||
@@ -1073,7 +1073,7 @@ Operation::CalculateClPathAxesValues( int nClPathId, int nLinAxes, int nRotAxes,
|
||||
bool bROk = m_pMchMgr->GetCalcAngles( pCamData->GetToolDir(), pCamData->GetAuxDir(), nRStat, vAng1, vAng2) ;
|
||||
if ( ! bROk || nRStat == 0) {
|
||||
pCamData->SetAxes( CamData::AS_DIR_ERR, vAxVal) ;
|
||||
LOG_INFO( GetEMkLogger(), "Error : tool direction unreachable")
|
||||
LOG_ERROR( GetEMkLogger(), "Error : tool direction unreachable")
|
||||
return false ;
|
||||
}
|
||||
if ( abs( nRStat) == 1) {
|
||||
@@ -1298,7 +1298,7 @@ Operation::CalculateClPathAxesValues( int nClPathId, int nLinAxes, int nRotAxes,
|
||||
// calcolo arco per i tre punti espressi in assi macchina
|
||||
PtrOwner<ICurve> pCurve( GetArc3P( ptP1M, ptP2M, ptP3M, false)) ;
|
||||
if ( IsNull( pCurve)) {
|
||||
LOG_INFO( GetEMkLogger(), "Error : arc on machine not calculable")
|
||||
LOG_ERROR( GetEMkLogger(), "Error : arc on machine not calculable")
|
||||
return false ;
|
||||
}
|
||||
// se realmente arco
|
||||
@@ -2179,7 +2179,7 @@ Operation::SpecialMoveZup( Vector3d& vtTool, DBLVECTOR& vAx, bool& bModif)
|
||||
if ( nErr != 0) {
|
||||
bOk = false ;
|
||||
string sOut = " Error in " + ON_SPECIAL_MOVEZUP + " (" + ToString( nErr) + ")" ;
|
||||
LOG_INFO( GetEMkLogger(), sOut.c_str())
|
||||
LOG_ERROR( GetEMkLogger(), sOut.c_str())
|
||||
}
|
||||
return bOk ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user