| | |
| | | // m_pSP2P->ISP2P_GetWSIControl(1)->SendWsiAfmSafePosMove(); |
| | | //} |
| | | //Sleep(5000); |
| | | SendResultToSignalControl(PCControlSendData_ReviewResult_CPJT, SIGNAL_SEND_RESULT_SUCCESS); |
| | | SendSignalToSignalControl(PCControlSendSignalIndex_Seq, PCControlSend_ReviewComplete_CPJT); |
| | | if (GetProcessStatus() != ProcessReviewEnd_CPJT && GetProcessStatus() != ProcessReviewUnloding_CPJT) |
| | | { |
| | | 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!")); |
| | | //LONGREUN |
| | | //RecvSignalToSignalControl(PCControlRecvSignalIndex_Seq, 4); |
| | |
| | | } |
| | | |
| | | m_pSP2P->ISP2P_DisplayMessage(_T("[Glass Loading] Current Apply Recipe Name : %s"), strRecipefile); |
| | | |
| | | /*< LYW 20220610 - #4185 ADD Start >*/ |
| | | CheckGantryMode(); |
| | | /*< LYW 20220610 - #4185 ADD End >*/ |
| | | |
| | | // recipe data apply |
| | | if(ApplyRecipeDataToGlassResult(pGlassResult)==FALSE) |
| | |
| | | { |
| | | int XAddr = pMotorControl->GetGantryCollisionXAddr(pModuleStatus->GetGantryIndex()); |
| | | g_pLog->DisplayMessage(_T("[Collision Position Set Fail] %d Module, Addr: %d, PosX: %.3lfmm"), nModuleIdx, XAddr, dCollisionPosX); |
| | | return 0; |
| | | /*< LYW 20220610 - #4185 Delete Start >*/ |
| | | //return 0; |
| | | /*< LYW 20220610 - #4185 Delete End >*/ |
| | | } |
| | | |
| | | } |
| | |
| | | { |
| | | int XAddr = pMotorControl->GetGantryCollisionXAddr(pModuleStatus->GetGantryIndex()); |
| | | g_pLog->DisplayMessage(_T("[Collision Position Set Fail] %d Module, Addr: %d, PosX: %.3lfmm"), nModuleIdx, XAddr, dCollisionPosX); |
| | | return 0; |
| | | /*< LYW 20220610 - #4185 Delete Start >*/ |
| | | //return 0; |
| | | /*< LYW 20220610 - #4185 Delete End >*/ |
| | | } |
| | | |
| | | } |
| | |
| | | { |
| | | int XAddr = pMotorControl->GetGantryCollisionXAddr(pModuleStatus->GetGantryIndex()); |
| | | g_pLog->DisplayMessage(_T("[Collision Position Set Fail] %d Module, Addr: %d, PosX: %.3lfmm"), nModuleIdx, XAddr, dCollisionPosX); |
| | | return 0; |
| | | /*< LYW 20220610 - #4185 Delete Start >*/ |
| | | //return 0; |
| | | /*< LYW 20220610 - #4185 Delete End >*/ |
| | | } |
| | | } |
| | | |
| | |
| | | int nFDCFTPUploaderSWVersion = 20200101; |
| | | int nFDCSyncSWVersion = 20200101; |
| | | int nFDCReviewSWVersion = 20200101; |
| | | int nFDCWSISWVersion00 = 20200101; |
| | | int nFDCWSISWVersion01 = 20200101; |
| | | /*< LYW 20220415 - #4086 ADD End >*/ |
| | | |
| | | //foucs |
| | |
| | | nFDCFTPUploaderSWVersion = m_pSP2P->ISP2P_GetFTPUploaderSWVersion(); |
| | | nFDCSyncSWVersion = m_pSP2P->ISP2P_GetSyncSWVersion(); |
| | | nFDCReviewSWVersion = m_pSP2P->ISP2P_GetReviewSWVersion(); |
| | | nFDCWSISWVersion00 = m_pSP2P->ISP2P_GetWSISWVersion(0); |
| | | nFDCWSISWVersion01 = m_pSP2P->ISP2P_GetWSISWVersion(1); |
| | | /*< LYW 20220415 - #4086 ADD End >*/ |
| | | } |
| | | /*< LYW 20211109 - #3662 MOD End >*/ |
| | |
| | | pSignalControl->WritePacketData(_T("16128"), sizeof(nFDCReviewSWVersion), (short*)&nFDCReviewSWVersion); |
| | | pSignalControl->WritePacketData(_T("16132"), sizeof(nFDCFTPUploaderSWVersion), (short*)&nFDCFTPUploaderSWVersion); |
| | | pSignalControl->WritePacketData(_T("16136"), sizeof(nFDCGRMSWVersion), (short*)&nFDCGRMSWVersion); |
| | | |
| | | pSignalControl->WritePacketData(_T("16140"), sizeof(nFDCWSISWVersion00), (short*)&nFDCWSISWVersion00); |
| | | pSignalControl->WritePacketData(_T("16144"), sizeof(nFDCWSISWVersion01), (short*)&nFDCWSISWVersion01); |
| | | /*< LYW 20220415 - #4086 ADD End >*/ |
| | | |
| | | // pSignalControl->WritePacketData(_T("16124"), sizeof(nRev_PC_HDD_CHECK), (short*)&nRev_PC_HDD_CHECK); |
| | |
| | | AFM_SetAFMTracking(FALSE); |
| | | |
| | | SetWsiType(0); |
| | | WSIAllReadySignal(0); |
| | | WSIAllReadySignal(1); |
| | | |
| | | // send wsi start |
| | | if(!WSIUserAllStartSignal()) |
| | |
| | | VectorDouble vectorCollisionPosX; |
| | | vectorCollisionPosX.clear(); |
| | | |
| | | |
| | | //WSI |
| | | pMotorControl->GantrySetTwoGantrySyncModeSend(1); |
| | | |
| | | // WSI result count |
| | | for (int nModuleIdx=0; nModuleIdx<Module_GetModuleStatusCount(); nModuleIdx++) |
| | |
| | | { |
| | | int XAddr = pMotorControl->GetGantryCollisionXAddr(pModuleStatus->GetGantryIndex()); |
| | | g_pLog->DisplayMessage(_T("[Collision Position Set Fail] %d Module, Addr: %d, PosX: %.3lfmm"), nModuleIdx, XAddr, dCollisionPosX); |
| | | return 0; |
| | | /*< LYW 20220610 - #4185 Delete Start >*/ |
| | | //return 0; |
| | | /*< LYW 20220610 - #4185 Delete End >*/ |
| | | } |
| | | |
| | | } |
| | |
| | | vectorPosX.push_back(dDefectPosX); |
| | | vectorPosY.push_back(dDefectPosY); |
| | | } |
| | | } |
| | | |
| | | if (vectorPosX.empty() == TRUE) |
| | | { |
| | | //3360 LYW_ CF AOI QD Review WSI XY MotorMoving Error START |
| | | g_pLog->DisplayMessage(_T("[GantryAutoGo] No Exist Send Point,TwoGantrySyncMode OFF!"), vectorPosX.size()); |
| | | g_pLog->DisplayMessage(_T("[GantryAutoGo] (%d)Gantry Path Send Fail"), pModuleStatus->GetGantryIndex()); //taek 210128 |
| | | pMotorControl->GantrySetTwoGantrySyncModeSend(0); |
| | | //3360 LYW_ CF AOI QD Review WSI XY MotorMoving Error END |
| | | } |
| | | |
| | | if (m_pSP2P->ISP2P_GetReviewProcessor()->CheckMotionComplete() == FALSE) |
| | |
| | | int XAddr = pMotorControl->GetGantryCollisionXAddr(pModuleStatus->GetGantryIndex()); |
| | | g_pLog->DisplayMessage(_T("[Review_CollisionPos] %d Module, Addr: %d, PosX: %.3lf mm"), nModuleIdx, XAddr, dCollisionPosX); |
| | | |
| | | ///pGlassResult->SetCollisionXPos(nModuleIdx, dCollisionPosX); |
| | | //pGlassResult->SetCollisionXPos(nModuleIdx, dCollisionPosX); |
| | | } |
| | | else |
| | | { |
| | | int XAddr = pMotorControl->GetGantryCollisionXAddr(pModuleStatus->GetGantryIndex()); |
| | | g_pLog->DisplayMessage(_T("[Collision Position Set Fail] %d Module, Addr: %d, PosX: %.3lfmm"), nModuleIdx, XAddr, dCollisionPosX); |
| | | return 0; |
| | | /*< LYW 20220610 - #4185 Delete Start >*/ |
| | | //return 0; |
| | | /*< LYW 20220610 - #4185 Delete End >*/ |
| | | } |
| | | // get result index |
| | | int nStartIdx = pWsiMultiShotResult->GetStartSReviewResultIndex(); |
| | |
| | | } |
| | | } |
| | | |
| | | /*< LYW 20220610 - #4185 ADD Start >*/ |
| | | void CSequenceProcessor_CPJT::CheckGantryMode() |
| | | { |
| | | CSignalControl* pSignalControl = m_pSP2P->ISP2P_GetSignalControl(); |
| | | if (pSignalControl == NULL) m_pSP2P->ISP2P_DisplayMessage(_T("[CheckGantryMode] SignalControl is NULL")); |
| | | if (pSignalControl->IsConnected() == FALSE) m_pSP2P->ISP2P_DisplayMessage(_T("[CheckGantryMode] SignalControl is Not Connect")); |
| | | |
| | | int LeftGantryUse = 0; |
| | | int RightGantryUse = 0; |
| | | |
| | | pSignalControl->ReadData(_T("10003"), 1, 1, LeftGantryUse); |
| | | pSignalControl->ReadData(_T("10003"), 2, 1, RightGantryUse); |
| | | |
| | | if (LeftGantryUse == 1 && RightGantryUse == 0) |
| | | m_pSP2P->ISP2P_Recipe_GetRsRcpReviewInfo()->GetRcpSchedulingInfo()->SetSingleGantryPath(1); |
| | | else if (LeftGantryUse == 0 && RightGantryUse == 1) |
| | | m_pSP2P->ISP2P_Recipe_GetRsRcpReviewInfo()->GetRcpSchedulingInfo()->SetSingleGantryPath(2); |
| | | else |
| | | m_pSP2P->ISP2P_Recipe_GetRsRcpReviewInfo()->GetRcpSchedulingInfo()->SetSingleGantryPath(0); |
| | | |
| | | m_pSP2P->ISP2P_DisplayMessage(_T("[CheckGantryMode] GantryMode LeftBit = %d, RightBit = %d"), LeftGantryUse, RightGantryUse); |
| | | } |
| | | /*< LYW 20220610 - #4185 ADD End >*/ |
| | | |
| | | BOOL CSequenceProcessor_CPJT::UpdateMemoryUserReflowPlanInfo(CDitGlassRawClient* pDitSharedGlassRaw) |
| | | { |
| | | CRsRcpReviewInfo* pRecipeinfo = m_pSP2P->ISP2P_Recipe_GetRsRcpReviewInfo(); |