diff --git a/EgtMachKernel.rc b/EgtMachKernel.rc index d84756b..5e80d3e 100644 Binary files a/EgtMachKernel.rc and b/EgtMachKernel.rc differ diff --git a/Simulator.cpp b/Simulator.cpp index 7acc46c..b73ce51 100644 --- a/Simulator.cpp +++ b/Simulator.cpp @@ -172,11 +172,14 @@ Simulator::Move( int& nStatus) m_pMchMgr->SetAxisPos( m_AxesName[i], dVal) ; } - // Se arrivato a fine interpolazione movimento, salvo posizioni - if ( m_dCoeff > 0.999) + // Se arrivato a fine interpolazione movimento, salvo posizioni e segnalo + if ( m_dCoeff > 0.999) { m_AxesVal = AxesEnd ; - - nStatus = MCH_SIM_OK ; + nStatus = MCH_SIM_END_STEP ; + } + // Altrimenti sto muovendomi in uno step + else + nStatus = MCH_SIM_OK ; return true ; }