| | |
| | | // 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!")); |
| | |
| | | SetWsiType(-1); //wsi reflow |
| | | SetLastPointCheck(FALSE); |
| | | |
| | | SetReviewComplete(FALSE); |
| | | |
| | | bFileFind = FALSE; |
| | | |
| | | /*< LYW 20211109 - #3662 Delete Start >*/ |
| | |
| | | } |
| | | |
| | | 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) |
| | |
| | | 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 |
| | |
| | | { |
| | | 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 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("[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(); |