| | |
| | | } |
| | | |
| | | |
| | | SERVO::CLoadPort* pPort[4]; |
| | | pPort[0] = (SERVO::CLoadPort*)master.getEquipment(EQ_ID_LOADPORT1); |
| | | pPort[1] = (SERVO::CLoadPort*)master.getEquipment(EQ_ID_LOADPORT2); |
| | | pPort[2] = (SERVO::CLoadPort*)master.getEquipment(EQ_ID_LOADPORT3); |
| | | pPort[3] = (SERVO::CLoadPort*)master.getEquipment(EQ_ID_LOADPORT4); |
| | | SERVO::CLoadPort* pPorts[4]; |
| | | pPorts[0] = (SERVO::CLoadPort*)master.getEquipment(EQ_ID_LOADPORT1); |
| | | pPorts[1] = (SERVO::CLoadPort*)master.getEquipment(EQ_ID_LOADPORT2); |
| | | pPorts[2] = (SERVO::CLoadPort*)master.getEquipment(EQ_ID_LOADPORT3); |
| | | pPorts[3] = (SERVO::CLoadPort*)master.getEquipment(EQ_ID_LOADPORT4); |
| | | |
| | | bool bProcessStart[] = {false, false, false, false}; |
| | | std::vector<SERVO::CProcessJob*> pjs; |
| | |
| | | if (!bCheck) continue; |
| | | |
| | | SERVO::CProcessJob* pScr = (SERVO::CProcessJob*)item.pj; |
| | | pScr->setPjWarp(item); |
| | | pScr->setLotId("LotID1"); |
| | | pScr->setProductId("ProductId1"); |
| | | pScr->setOperationId("OperationId"); |
| | | pScr->setRecipe(SERVO::RecipeMethod::NoTuning, pScr->recipeSpec()); |
| | | |
| | | SERVO::CProcessJob * pj = new SERVO::CProcessJob(pScr->id()); |
| | | pj->setPjWarp(item); |
| | | pj->setLotId("LotID1"); |
| | | pj->setProductId("ProductId1"); |
| | | pj->setOperationId("OperationId"); |
| | | pj->setRecipe(SERVO::RecipeMethod::NoTuning, pScr->recipeSpec()); |
| | | |
| | | std::vector<SERVO::CarrierSlotInfo> carriers; |
| | | SERVO::CarrierSlotInfo csi; |
| | | csi.carrierId = pPort[item.port]->getCassetteId(); |
| | | csi.carrierId = pPorts[item.port]->getCassetteId(); |
| | | for (int i = 0; i < 8; i++) { |
| | | if (item.checkSlot[i]) { |
| | | SERVO::CGlass* pGlass = pPort[item.port]->getGlassFromSlot(i+1); |
| | | SERVO::CGlass* pGlass = pPorts[item.port]->getGlassFromSlot(i+1); |
| | | if (pGlass != nullptr) { |
| | | csi.slots.push_back(i + 1); |
| | | } |
| | |
| | | |
| | | // 成功,要判断,同步到slot的glass中,类型等 |
| | | for (int p = 0; p < 4; p++) { |
| | | if (m_pjWarps[p].port == -1) continue; |
| | | ASSERT(0 <= m_pjWarps[p].port && m_pjWarps[p].port <= 3); |
| | | |
| | | SERVO::CLoadPort* pLoadPort = pPorts[m_pjWarps[p].port]; |
| | | for (int i = 0; i < SLOT_MAX; ++i) { |
| | | SERVO::CSlot* pSlot = pPort[p]->getSlot(i); |
| | | SERVO::CSlot* pSlot = pLoadPort->getSlot(i); |
| | | if (!pSlot) { |
| | | continue; |
| | | } |
| | | |
| | | |
| | | // 设置 Panel ID 和勾选框 |
| | | SERVO::CProcessJob* pj = (SERVO::CProcessJob*)m_pjWarps[p].pj; |
| | | int nRecipeID = RecipeManager::getInstance().getIdByPPID(pj->recipeSpec()); |
| | |
| | | pGlass->setType(static_cast<SERVO::MaterialsType>(m_pjWarps[p].material[i])); |
| | | |
| | | SERVO::CJobDataS* pJobDataS = pGlass->getJobDataS(); |
| | | pJobDataS->setLotId("LotID1"); |
| | | pJobDataS->setProductId("ProductId1"); |
| | | pJobDataS->setOperationId("OPerationId"); |
| | | pJobDataS->setLotId(pj->getLotId().c_str()); |
| | | pJobDataS->setProductId(pj->getProductId().c_str()); |
| | | pJobDataS->setOperationId(pj->getOperationId().c_str()); |
| | | pJobDataS->setMaterialsType(m_pjWarps[p].material[i]); |
| | | pJobDataS->setMasterRecipe(nRecipeID); |
| | | |
| | |
| | | // process start |
| | | for (int p = 0; p < 4; p++) { |
| | | if (bProcessStart[p]) { |
| | | pPort[p]->sendCassetteCtrlCmd(CCC_PROCESS_START, nullptr, 0, 0, 0, nullptr, nullptr); |
| | | pPorts[p]->sendCassetteCtrlCmd(CCC_PROCESS_START, nullptr, 0, 0, 0, nullptr, nullptr); |
| | | Sleep(100); |
| | | } |
| | | } |