| | |
| | | { |
| | | m_bUseAFMHomePosition = TRUE; |
| | | m_nGlassCount = 0; |
| | | m_nStackZeroReviewCondition = 0; |
| | | m_nUploadResultFailCount = 0; |
| | | CDitGlassRawClient* pDitGlassRaw = CDitGlassRawClient::GetInstance(); |
| | | if(pDitGlassRaw->ConnectServer() == FALSE) |
| | | { |
| | |
| | | // m_pSP2P->ISP2P_GetWSIControl(1)->SendWsiAfmSafePosMove(); |
| | | //} |
| | | //Sleep(5000); |
| | | if (GetProcessStatus() != ProcessReviewEnd_CPJT && GetProcessStatus() != ProcessReviewUnloding_CPJT) |
| | | //if (GetProcessStatus() != ProcessReviewEnd_CPJT && GetProcessStatus() != ProcessReviewUnloding_CPJT) |
| | | if (GetReviewComplete() == FALSE) |
| | | { |
| | | SendResultToSignalControl(PCControlSendData_ReviewResult_CPJT, SIGNAL_SEND_RESULT_SUCCESS); |
| | | SendSignalToSignalControl(PCControlSendSignalIndex_Seq, PCControlSend_ReviewComplete_CPJT); |
| | | SetReviewComplete(TRUE); |
| | | } |
| | | |
| | | m_pSP2P->ISP2P_DisplayMessage(_T("[SequenceProcessor::ReviewStart] Send Review Success Signal!")); |
| | |
| | | SetCheckWSIEnd(-1); //190726 |
| | | SetWsiType(-1); //wsi reflow |
| | | SetLastPointCheck(FALSE); |
| | | |
| | | SetReviewComplete(FALSE); |
| | | SetUploadResultFailCount(0); |
| | | |
| | | bFileFind = FALSE; |
| | | |
| | |
| | | m_pDitGlassRaw->GetGlassData()->m_nReviewNum = m_pSP2P->ISP2P_GetReviewProcessor()->GetPlanReviewCount(); |
| | | //SendDVDataToSignalControl(); |
| | | |
| | | if (GetLastPointCheck() == FALSE) |
| | | //if (GetLastPointCheck() == FALSE) |
| | | if (GetReviewComplete() == FALSE) |
| | | { |
| | | //#3584 210817 LYW CF AOI Review 시뮬레이션 기능 정상화 MOD START |
| | | if (GetSimulationMode() == FALSE) |
| | |
| | | SendResultToSignalControl(PCControlSendData_ReviewResult_CPJT, SIGNAL_SEND_RESULT_SUCCESS); |
| | | SendSignalToSignalControl(PCControlSendSignalIndex_Seq, PCControlSend_ReviewComplete_CPJT); |
| | | m_pSP2P->ISP2P_DisplayMessage(_T("[SequenceProcessor::ReviewStart] Send Review Success Signal!")); |
| | | SetReviewComplete(TRUE); |
| | | } |
| | | //#3584 210817 LYW CF AOI Review 시뮬레이션 기능 정상화 MOD END |
| | | //original |
| | |
| | | CDlgDefocusList::GetInstance()->SetDefocusData(strTime,pGlassResult->m_strGlassID,pGlassResult->m_nDeFocusCount); |
| | | |
| | | } |
| | | |
| | | if (CheckZeroReviewAlarm() == FALSE && m_pSP2P->ISP2P_System_GetNetworkInfo()->m_nZeroReviewAlarm != 0) |
| | | { |
| | | STransferData* pTransferData = m_pSP2P->ISP2P_GetCurrentTransferData(); |
| | | if (pTransferData->strProdType != m_pSP2P->ISP2P_System_GetNetworkInfo()->m_strZeroReviewAlarmExcept) |
| | | { |
| | | m_nStackZeroReviewCondition++; |
| | | if (m_nStackZeroReviewCondition >= m_pSP2P->ISP2P_System_GetNetworkInfo()->m_nZeroReviewAlarm) |
| | | { |
| | | m_pSP2P->ISP2P_DisplayMessage(_T("Zero Review Alarm! %d ea Glass Is Zero Review!"), m_nStackZeroReviewCondition); |
| | | SendSignalToSignalControl(PCControlSendSignalIndex_State, PCControlSend_Review_0Count_Alarm, 1000); |
| | | m_nStackZeroReviewCondition = 0; |
| | | } |
| | | } |
| | | else m_nStackZeroReviewCondition = 0; |
| | | } |
| | | else m_nStackZeroReviewCondition = 0; |
| | | |
| | | /*< LYW 20211109 - #3662 Delete Start >*/ |
| | | // g_pLog->DisplayMessage(_T("History map Start")); |
| | |
| | | |
| | | return; |
| | | } |
| | | |
| | | BOOL CSequenceProcessor_CPJT::CheckZeroReviewAlarm() |
| | | { |
| | | CGlassResult* pGlassResult = m_pSP2P->ISP2P_GetCurrentGlassResult(); |
| | | if (pGlassResult == NULL) return FALSE; |
| | | |
| | | int TotalCount = 0; |
| | | |
| | | //Defect |
| | | const VectorReviewResult *pVecReviewResult = pGlassResult->GetVectorReviewResult(); |
| | | if (pVecReviewResult != NULL) |
| | | { |
| | | for (constVectorReviewResultIt it = pVecReviewResult->begin(); it != pVecReviewResult->end(); it++) |
| | | { |
| | | const CReviewResult *pReviewResult = static_cast<const CReviewResult*>(&(*it)); |
| | | |
| | | TotalCount += pReviewResult->m_vecSReviewResult.size(); |
| | | |
| | | for (constVectorSReviewResultIt its = pReviewResult->m_vecSReviewResult.begin(); its != pReviewResult->m_vecSReviewResult.end(); its++) |
| | | { |
| | | if (its->nResultCode > ReviewResult_None) |
| | | { |
| | | return TRUE; |
| | | } |
| | | else |
| | | { |
| | | continue; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | //DefectWSI |
| | | const VectorReviewResult *pVecWsiResult = pGlassResult->GetVectorWsiResult(); |
| | | if (pVecWsiResult != NULL) |
| | | { |
| | | for (constVectorReviewResultIt it = pVecWsiResult->begin(); it != pVecWsiResult->end(); it++) |
| | | { |
| | | const CReviewResult *pWsiResult = static_cast<const CReviewResult*>(&(*it)); |
| | | |
| | | TotalCount += pWsiResult->m_vecSReviewResult.size(); |
| | | |
| | | for (constVectorSReviewResultIt its = pWsiResult->m_vecSReviewResult.begin(); its != pWsiResult->m_vecSReviewResult.end(); its++) |
| | | { |
| | | if (its->nResultCode > WsiResult_None) |
| | | { |
| | | return TRUE; |
| | | } |
| | | else |
| | | { |
| | | continue; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | //User Review |
| | | const VectorReviewResult *pVecUserReviewResult = pGlassResult->GetVectorUserResult(); |
| | | if (pVecUserReviewResult != NULL) |
| | | { |
| | | for (constVectorReviewResultIt it = pVecUserReviewResult->begin(); it != pVecUserReviewResult->end(); it++) |
| | | { |
| | | const CReviewResult *pUserReviewResult = static_cast<const CReviewResult*>(&(*it)); |
| | | |
| | | TotalCount += pUserReviewResult->m_vecSReviewResult.size(); |
| | | |
| | | for (constVectorSReviewResultIt its = pUserReviewResult->m_vecSReviewResult.begin(); its != pUserReviewResult->m_vecSReviewResult.end(); its++) |
| | | { |
| | | if (its->nResultCode > ReviewResult_None) |
| | | { |
| | | return TRUE; |
| | | } |
| | | else |
| | | { |
| | | continue; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | //User WSI |
| | | const VectorReviewResult *pVecUserWsiResult = pGlassResult->GetVectorUserWsiResult(); |
| | | if (pVecUserWsiResult != NULL) |
| | | { |
| | | for (constVectorReviewResultIt it = pVecUserWsiResult->begin(); it != pVecUserWsiResult->end(); it++) |
| | | { |
| | | const CReviewResult *pUserWsiResult = static_cast<const CReviewResult*>(&(*it)); |
| | | |
| | | TotalCount += pUserWsiResult->m_vecSReviewResult.size(); |
| | | |
| | | for (constVectorSReviewResultIt its = pUserWsiResult->m_vecSReviewResult.begin(); its != pUserWsiResult->m_vecSReviewResult.end(); its++) |
| | | { |
| | | if (its->nResultCode > WsiResult_None) |
| | | { |
| | | return TRUE; |
| | | } |
| | | else |
| | | { |
| | | continue; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | if (TotalCount == 0) return TRUE; |
| | | |
| | | return FALSE; |
| | | } |
| | | |
| | | void CSequenceProcessor_CPJT::sendUploadResult2SequenceProcessor(int UploadResult) |
| | | { |
| | | int UploadResultFailCount = GetUploadResultFailCount(); |
| | | if (UploadResult == FALSE) |
| | | { |
| | | UploadResultFailCount++; |
| | | if (UploadResultFailCount >= 2) |
| | | { |
| | | m_pSP2P->ISP2P_DisplayMessage(_T("ResultFile Upload Fail!")); |
| | | SendSignalToSignalControl(PCControlSendSignalIndex_State, PCControlSend_ResultData_Upload_Fail, 1000); |
| | | SetUploadResultFailCount(-1); |
| | | } |
| | | SetUploadResultFailCount(UploadResultFailCount); |
| | | } |
| | | } |
| | | |
| | | //#3358 KYH FDC ADD END |
| | | |
| | | DWORD CSequenceProcessor_CPJT::GetDiskUsage() |