From c70166f3e86ffd0528884911483c067a6b21ebdd Mon Sep 17 00:00:00 2001 From: kojingeun <diteam.co.kr> Date: 금, 30 6월 2023 15:48:59 +0900 Subject: [PATCH] Ongoing60 #4517 CF AOI Review 결과 파일 찾기 실패 개선 1. AOIServer RawBin 폴더 연결 TimerThread 추가 - file_dummy 생성 후 Open/Close 반복(10초) 2. 프로젝트 누락 경로 및 설정 추가 - FTPUploader Include Path, Debug모드 psapi.lib --- ReviewSystem/CHMotorControls/MotorControl.cpp | 42 +++++++++++++++++++++--------------------- 1 files changed, 21 insertions(+), 21 deletions(-) diff --git a/ReviewSystem/CHMotorControls/MotorControl.cpp b/ReviewSystem/CHMotorControls/MotorControl.cpp index 3be3b86..ee07ab9 100644 --- a/ReviewSystem/CHMotorControls/MotorControl.cpp +++ b/ReviewSystem/CHMotorControls/MotorControl.cpp @@ -103,27 +103,27 @@ if (m_nAxisCount<1) return; //Alive - if (ReadAddressValue(50, m_nMotorAlive)) - { - if (m_nMotorAlivePrev != m_nMotorAlive) - { - dwLastAliveTick = GetTickCount(); - } - m_nAutoEnablePrev = m_nAutoEnable; - - if (GetTickCount() - dwLastAliveTick >15000 && dwLastAliveTick != 0) - { - m_pMC2P->IMC2P_SendMotorAliveErrorAlram(); - m_pMC2P->IMC2P_DisplayMessage(m_nIndex, _T("Motor Alive Error!")); - dwLastAliveTick = GetTickCount(); - } - } - else - { - m_pMC2P->IMC2P_SendMotorAliveErrorAlram(); - m_pMC2P->IMC2P_DisplayMessage(m_nIndex, _T("Motor Alive Read Fail!")); - dwLastAliveTick = GetTickCount(); - } +// if (ReadAddressValue(50, m_nMotorAlive)) +// { +// if (m_nMotorAlivePrev != m_nMotorAlive) +// { +// dwLastAliveTick = GetTickCount(); +// } +// m_nAutoEnablePrev = m_nAutoEnable; +// +// if (GetTickCount() - dwLastAliveTick >15000 && dwLastAliveTick != 0) +// { +// m_pMC2P->IMC2P_SendMotorAliveErrorAlram(); +// m_pMC2P->IMC2P_DisplayMessage(m_nIndex, _T("Motor Alive Error!")); +// dwLastAliveTick = GetTickCount(); +// } +// } +// else +// { +// m_pMC2P->IMC2P_SendMotorAliveErrorAlram(); +// m_pMC2P->IMC2P_DisplayMessage(m_nIndex, _T("Motor Alive Read Fail!")); +// dwLastAliveTick = GetTickCount(); +// } // auto enable const CMotorCommonAddr *pAddr = m_ControlInfo.GetMotorCommonAddr(); -- Gitblit v1.9.3