增加CNC运行停顿时间。

This commit is contained in:
TEST Machine
2014-02-12 23:32:48 +08:00
parent a4ba2c6a6f
commit e8d5f45614
7 changed files with 55 additions and 36 deletions
@@ -2789,6 +2789,8 @@ SSI_STATUS_MOTION CSO7_Proto::_start_machine()
g_hEP8x_Thread_State = THREAD_RUNNING_STATE2;
g_machine.s_status._machine_running = true;
g_pLogger->SendAndFlushPerMode(_T("_start_machine\n"));
SetEvent(g_hHomedEvent);
//so7_motion_probe_on_off_(false);
//so7_motion_fixture_on_off(true);
//so7_motion_fixture_up_down(true);
@@ -3108,7 +3110,7 @@ SSI_STATUS_MOTION CSO7_Proto::so7_motion_get_position_xyz(double & dX, double &
//==================================================================
SSI_STATUS_MOTION CSO7_Proto::so7_motion_set_position_xyz(double dX, double dY, double dZ, bool bWait)
{
WaitForSingleObject(g_hHomedEvent, INFINITE); // machine start and homing is done
//WaitForSingleObject(g_hHomedEvent, INFINITE); // machine start and homing is done
if (g_machine.IsOffline)
{
@@ -3180,7 +3182,7 @@ SSI_STATUS_MOTION CSO7_Proto::so7_motion_set_position_xyz(double dX, double dY,
//==================================================================
SSI_STATUS_MOTION CSO7_Proto::so7_motion_is_finished(char MotionType,BOOL& IsFinished)
{
//WaitForSingleObject(g_hHomedEvent, INFINITE); // machine start and homing is done
WaitForSingleObject(g_hHomedEvent, INFINITE); // machine start and homing is done
BOOL bIsFinised(FALSE);
if (g_machine.s_machine_config.motion.GetInterruptMsgMethod==E_GET_INTERRUPT_MSG_INQUIRY)