From c112cf54a238afa473e7eb0ea6298e06f4957658 Mon Sep 17 00:00:00 2001
From: kojingeun <diteam.co.kr>
Date: 금, 24 11월 2023 14:44:30 +0900
Subject: [PATCH] Merge branch 'feature/#4539_CF_AOI_Review_Log_미출력_현상_개선' into develop

---
 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