| | |
| | | return 0; |
| | | } |
| | | |
| | | int CHsmsActive::hsmsProcessProgramRequest(const char* pszPPID) |
| | | { |
| | | if (pszPPID == nullptr || strlen(pszPPID) == 0) return -1; |
| | | IMessage* pMessage = nullptr; |
| | | if (HSMS_Create1Message(pMessage, m_nSessionId, 7 | REPLY, 5, ++m_nSystemByte) != 0 || pMessage == nullptr) { |
| | | return -1; |
| | | } |
| | | pMessage->getBody()->setString(pszPPID, "PPID"); |
| | | m_pActive->sendMessage(pMessage); |
| | | HSMS_Destroy1Message(pMessage); |
| | | return 0; |
| | | } |
| | | |
| | | int CHsmsActive::hsmsCarrierActionRequest(unsigned int DATAID, |
| | | const char* pszCarrierAction, |
| | | const char* pszCarrierId, |
| | |
| | | #define SVID_CJobSpace 5001 |
| | | #define SVID_PJobSpace 5002 |
| | | #define SVID_PJobQueued 5003 |
| | | #define SVID_EQPPExecName 801 |
| | | #define SVID_Bonder1CurrentRecipe 8100 |
| | | #define SVID_Bonder2CurrentRecipe 8101 |
| | | #define SVID_VacuumBakeCurrentRecipe 8102 |
| | | #define SVID_BakeCoolingCurrentRecipe 8103 |
| | | #define SVID_MeasurementCurrentRecipe 8104 |
| | | #define SVID_EFEMCurrentRecipe 8105 |
| | | |
| | | |
| | | typedef std::function<void(void* pFrom, ACTIVESTATE state)> STATECHANGED; |
| | |
| | | // 查询PPID List |
| | | int hsmsQueryPPIDList(); |
| | | int hsmsDeletePPID(const std::vector<std::string>& ppids); // S7F17 |
| | | int hsmsProcessProgramRequest(const char* pszPPID); // S7F5 |
| | | |
| | | // S3F17 |
| | | // 卡匣动作请求 |
| | |
| | | "\r\n" |
| | | "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS)\r\n" |
| | | "LANGUAGE 4, 2\r\n" |
| | | "#include ""res\\EAPSimulator.rc2"" // 非 Microsoft Visual C++ 编辑的资源\r\n" |
| | | "#include ""l.CHS\\afxres.rc"" // 标准组件\r\n" |
| | | "#include ""res\\EAPSimulator.rc2"" // 闂?Microsoft Visual C++ 缂傛牞绶惃鍕カ濠?\n" |
| | | "#include ""l.CHS\\afxres.rc"" // 閺嶅洤鍣紒鍕\r\n" |
| | | "#if !defined(_AFXDLL)\r\n" |
| | | "#include ""l.CHS\\afxribbon.rc"" // MFC 功能区和控制条资源\r\n" |
| | | "#include ""l.CHS\\afxribbon.rc"" // MFC 閸旂喕鍏橀崠鍝勬嫲閹貉冨煑閺壜ょカ濠?\n" |
| | | "#endif\r\n" |
| | | "#endif\r\n" |
| | | "\0" |
| | |
| | | DEFPUSHBUTTON "确定",IDOK,113,41,50,14,WS_GROUP |
| | | END |
| | | |
| | | IDD_EAPSIMULATOR_DIALOG DIALOGEX 0, 0, 469, 275 |
| | | IDD_EAPSIMULATOR_DIALOG DIALOGEX 0, 0, 469, 292 |
| | | STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME |
| | | EXSTYLE WS_EX_APPWINDOW |
| | | CAPTION "EAPSimulator" |
| | | FONT 9, "MS Shell Dlg", 0, 0, 0x1 |
| | | BEGIN |
| | | DEFPUSHBUTTON "确定",IDOK,246,254,50,14,NOT WS_VISIBLE |
| | | PUSHBUTTON "取消",IDCANCEL,412,254,50,14,NOT WS_VISIBLE |
| | | EDITTEXT IDC_EDIT_LOG,7,190,455,78,ES_MULTILINE | ES_AUTOHSCROLL | ES_READONLY | WS_VSCROLL |
| | | LTEXT "日志:",IDC_STATIC,7,181,24,8 |
| | | GROUPBOX "功能",IDC_STATIC,7,7,455,164 |
| | | DEFPUSHBUTTON "确定",IDOK,246,271,50,14,NOT WS_VISIBLE |
| | | PUSHBUTTON "取消",IDCANCEL,412,271,50,14,NOT WS_VISIBLE |
| | | EDITTEXT IDC_EDIT_LOG,7,218,455,67,ES_MULTILINE | ES_AUTOHSCROLL | ES_READONLY | WS_VSCROLL |
| | | LTEXT "日志:",IDC_STATIC,7,203,24,8 |
| | | GROUPBOX "功能",IDC_STATIC,7,7,455,190 |
| | | LTEXT "IP:",IDC_STATIC,24,20,11,8 |
| | | EDITTEXT IDC_EDIT_IP,39,17,94,14,ES_AUTOHSCROLL |
| | | LTEXT "Port:",IDC_STATIC,141,20,17,8 |
| | |
| | | PUSHBUTTON "S1F3_QueryPJSpace",IDC_BUTTON_QUERY_PJ_SPACE,350,82,108,14 |
| | | PUSHBUTTON "S16F15_Create PJ",IDC_BUTTON_CREATE_PJ,350,101,108,14 |
| | | PUSHBUTTON "S14F9_Create CJ",IDC_BUTTON_CREATE_CJ,14,120,108,14 |
| | | EDITTEXT IDC_EDIT_DELETE_PPID,283,152,79,14,ES_AUTOHSCROLL |
| | | EDITTEXT IDC_EDIT_PPID_REQ,284,170,78,14,ES_AUTOHSCROLL |
| | | PUSHBUTTON "S7F5_Request PP",IDC_BUTTON_PP_REQUEST,364,170,95,14 |
| | | EDITTEXT IDC_EDIT_DELETE_PPID,284,152,78,14,ES_AUTOHSCROLL |
| | | PUSHBUTTON "S7F17_Delete PPID",IDC_BUTTON_DELETE_PPID,364,152,95,14 |
| | | END |
| | | |
| | |
| | | LEFTMARGIN, 7 |
| | | RIGHTMARGIN, 462 |
| | | TOPMARGIN, 7 |
| | | BOTTOMMARGIN, 268 |
| | | BOTTOMMARGIN, 285 |
| | | END |
| | | |
| | | IDD_DIALOG_TERMINAL_DISPLAY, DIALOG |
| | |
| | | ON_BN_CLICKED(IDC_BUTTON_QUERY_PROCESS_STATE, &CEAPSimulatorDlg::OnBnClickedButtonQueryProcessState) |
| | | ON_BN_CLICKED(IDC_BUTTON_QUERY_ALL_SVID, &CEAPSimulatorDlg::OnBnClickedButtonQueryAllSvid) |
| | | ON_BN_CLICKED(IDC_BUTTON_QUERY_ALL_CEID, &CEAPSimulatorDlg::OnBnClickedButtonQueryAllCeid) |
| | | ON_BN_CLICKED(IDC_BUTTON_QUERY_CURRENT_RECIPE, &CEAPSimulatorDlg::OnBnClickedButtonQueryCurrentRecipe) |
| | | ON_BN_CLICKED(IDC_BUTTON_PP_REQUEST, &CEAPSimulatorDlg::OnBnClickedButtonPpRequest) |
| | | END_MESSAGE_MAP() |
| | | |
| | | |
| | |
| | | WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, |
| | | rc.left, rc.top, rc.Width(), rc.Height(), |
| | | m_hWnd, (HMENU)IDC_BUTTON_QUERY_ALL_CEID, AfxGetInstanceHandle(), nullptr); |
| | | if (hBtn != nullptr) { |
| | | ::SendMessage(hBtn, WM_SETFONT, (WPARAM)GetFont()->GetSafeHandle(), TRUE); |
| | | } |
| | | } |
| | | // S1F3 CurrentRecipe (EQ specific) combo + button |
| | | { |
| | | CRect rcCombo(14, 168, 14 + 120, 168 + 120); // dropdown height arbitrary |
| | | MapDialogRect(&rcCombo); |
| | | HWND hCombo = ::CreateWindow(_T("COMBOBOX"), _T(""), |
| | | WS_CHILD | WS_VISIBLE | CBS_DROPDOWNLIST | WS_VSCROLL, |
| | | rcCombo.left, rcCombo.top, rcCombo.Width(), rcCombo.Height(), |
| | | m_hWnd, (HMENU)IDC_COMBO_EQ_FOR_RECIPE, AfxGetInstanceHandle(), nullptr); |
| | | if (hCombo != nullptr) { |
| | | ::SendMessage(hCombo, WM_SETFONT, (WPARAM)GetFont()->GetSafeHandle(), TRUE); |
| | | // 简单填充设备列表(可按需调整) |
| | | std::vector<CString> eqs = { _T("Bonder1"), _T("Bonder2"), _T("EFEM"), _T("VacuumBake"), _T("BakeCooling"), _T("Measurement") }; |
| | | for (const auto& eq : eqs) { |
| | | ::SendMessage(hCombo, CB_ADDSTRING, 0, (LPARAM)(LPCTSTR)eq); |
| | | } |
| | | ::SendMessage(hCombo, CB_SETCURSEL, 0, 0); |
| | | } |
| | | |
| | | CRect rcBtn(140, 168, 14 + 140 + 118, 168 + 14); |
| | | MapDialogRect(&rcBtn); |
| | | HWND hBtn = ::CreateWindow(_T("BUTTON"), _T("S1F3_CurrentRecipe"), |
| | | WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, |
| | | rcBtn.left, rcBtn.top, rcBtn.Width(), rcBtn.Height(), |
| | | m_hWnd, (HMENU)IDC_BUTTON_QUERY_CURRENT_RECIPE, AfxGetInstanceHandle(), nullptr); |
| | | if (hBtn != nullptr) { |
| | | ::SendMessage(hBtn, WM_SETFONT, (WPARAM)GetFont()->GetSafeHandle(), TRUE); |
| | | } |
| | |
| | | { |
| | | theApp.m_model.m_pHsmsActive->hsmsQueryAllCollectionEvents(); |
| | | } |
| | | |
| | | void CEAPSimulatorDlg::OnBnClickedButtonQueryCurrentRecipe() |
| | | { |
| | | CString sel; |
| | | CComboBox* pCombo = (CComboBox*)GetDlgItem(IDC_COMBO_EQ_FOR_RECIPE); |
| | | if (pCombo != nullptr) { |
| | | int idx = pCombo->GetCurSel(); |
| | | if (idx != CB_ERR) { |
| | | pCombo->GetLBText(idx, sel); |
| | | } |
| | | } |
| | | unsigned int svid = SVID_EQPPExecName; // 默认全局 |
| | | CString upper = sel; |
| | | upper.MakeUpper(); |
| | | if (upper.Find(_T("BONDER1")) != -1) svid = SVID_Bonder1CurrentRecipe; |
| | | else if (upper.Find(_T("BONDER2")) != -1) svid = SVID_Bonder2CurrentRecipe; |
| | | else if (upper.Find(_T("VACUUMBAKE")) != -1) svid = SVID_VacuumBakeCurrentRecipe; |
| | | else if (upper.Find(_T("BAKECOOLING")) != -1) svid = SVID_BakeCoolingCurrentRecipe; |
| | | else if (upper.Find(_T("MEASUREMENT")) != -1) svid = SVID_MeasurementCurrentRecipe; |
| | | else if (upper.Find(_T("EFEM")) != -1) svid = SVID_EFEMCurrentRecipe; |
| | | |
| | | theApp.m_model.m_pHsmsActive->hsmsSelectedEquipmentStatusRequest(svid); |
| | | } |
| | | |
| | | void CEAPSimulatorDlg::OnBnClickedButtonPpRequest() |
| | | { |
| | | CString strPPID; |
| | | GetDlgItemText(IDC_EDIT_PPID_REQ, strPPID); |
| | | strPPID.Trim(); |
| | | std::string ppid = CT2A(strPPID); |
| | | if (ppid.empty()) { |
| | | AfxMessageBox(_T("请输入 PPID")); |
| | | return; |
| | | } |
| | | theApp.m_model.m_pHsmsActive->hsmsProcessProgramRequest(ppid.c_str()); |
| | | } |
| | |
| | | afx_msg void OnBnClickedButtonQueryProcessState(); |
| | | afx_msg void OnBnClickedButtonQueryAllSvid(); |
| | | afx_msg void OnBnClickedButtonQueryAllCeid(); |
| | | afx_msg void OnBnClickedButtonQueryCurrentRecipe(); |
| | | afx_msg void OnBnClickedButtonPpRequest(); |
| | | }; |
| | |
| | | #define IDC_BUTTON_QUERY_ALL_CEID 1049 |
| | | #define IDC_EDIT_DELETE_PPID 1050 |
| | | #define IDC_BUTTON_DELETE_PPID 1051 |
| | | #define IDC_COMBO_EQ_FOR_RECIPE 1052 |
| | | #define IDC_BUTTON_QUERY_CURRENT_RECIPE 1053 |
| | | #define IDC_EDIT_PPID_REQ 1054 |
| | | #define IDC_BUTTON_PP_REQUEST 1055 |
| | | |
| | | // Next default values for new objects |
| | | // |
| | | #ifdef APSTUDIO_INVOKED |
| | | #ifndef APSTUDIO_READONLY_SYMBOLS |
| | | #define _APS_NEXT_RESOURCE_VALUE 144 |
| | | #define _APS_NEXT_RESOURCE_VALUE 146 |
| | | #define _APS_NEXT_COMMAND_VALUE 32771 |
| | | #define _APS_NEXT_CONTROL_VALUE 1052 |
| | | #define _APS_NEXT_CONTROL_VALUE 1056 |
| | | #define _APS_NEXT_SYMED_VALUE 101 |
| | | #endif |
| | | #endif |
| | |
| | | return m_strDescription; |
| | | } |
| | | |
| | | void CEquipment::setCurrentRecipe(const std::string& recipe) |
| | | { |
| | | Lock(); |
| | | m_currentRecipe = recipe; |
| | | Unlock(); |
| | | } |
| | | |
| | | std::string CEquipment::getCurrentRecipe() |
| | | { |
| | | Lock(); |
| | | std::string out = m_currentRecipe; |
| | | Unlock(); |
| | | return out; |
| | | } |
| | | |
| | | void CEquipment::setStation(int network, int station) |
| | | { |
| | | m_station.nNetNo = network; |
| | |
| | | m_strName.c_str(), nRet); |
| | | } |
| | | |
| | | if (m_listener.onReceivedJob != nullptr) { |
| | | m_listener.onReceivedJob(this, port, pJobDataS); |
| | | } |
| | | |
| | | return nRet; |
| | | } |
| | | |
| | |
| | | typedef std::function<void(void* pEiuipment, short scanMap, short downMap)> ONMAPMISMATCH; |
| | | typedef std::function<void(void* pEiuipment, short status, __int64 data)> ONPORTSTATUSCHANGED; |
| | | typedef std::function<void(void* pEiuipment, const std::vector<CParam>& params)> ONPROCESSDATAREPORT; |
| | | typedef std::function<void(void* pEiuipment, int port, CJobDataS* pJobDataS)> ONRECEIVEDJOB; |
| | | |
| | | typedef struct _EquipmentListener |
| | | { |
| | |
| | | ONVCREVENTREPORT onSVDataReport; |
| | | ONVCREVENTREPORT onPanelDataReport; |
| | | ONPROCESSDATAREPORT onProcessDataReport; |
| | | ONRECEIVEDJOB onReceivedJob; |
| | | } EquipmentListener; |
| | | |
| | | |
| | |
| | | std::string& getName(); |
| | | void setDescription(const char* pszDescription); |
| | | std::string& getDescription(); |
| | | void setCurrentRecipe(const std::string& recipe); |
| | | std::string getCurrentRecipe(); |
| | | void setStation(int network, int station); |
| | | const StationIdentifier& getStation(); |
| | | virtual void getAttributeVector(CAttributeVector& attrubutes); |
| | |
| | | int m_nID; |
| | | std::string m_strName; |
| | | std::string m_strDescription; |
| | | std::string m_currentRecipe; |
| | | CRITICAL_SECTION m_criticalSection; |
| | | StationIdentifier m_station; |
| | | MemoryBlock m_blockReadBit; |
| | |
| | | } |
| | | |
| | | }; |
| | | listener.onReceivedJob = [&](void* pEquipment, int port, CJobDataS* pJobDataS) { |
| | | if (m_listener.onJobReceived != nullptr) { |
| | | m_listener.onJobReceived(this, (CEquipment*)pEquipment, port, pJobDataS); |
| | | } |
| | | }; |
| | | pEquipment->setListener(listener); |
| | | pEquipment->setCcLink(&m_cclink); |
| | | m_listEquipment.push_back(pEquipment); |
| | |
| | | #include "ProcessJob.h" |
| | | #include "CControlJob.h" |
| | | #include "../DAQBridge/core/Collector.h" |
| | | #include "CJobDataS.h" |
| | | |
| | | |
| | | #define CTStep_Unknow 0 |
| | |
| | | typedef std::function<void(void* pMaster, CEquipment* pEquipment, int slotNo, PROCESS_STATE prevState, PROCESS_STATE state)> ONPROCESSSTATECHANGED; |
| | | typedef std::function<void(void* pMaster, CEquipment* pEquipment, const std::vector<CParam>& params)> ONPROCESSDATAREPORTEX; |
| | | typedef std::function<void(void* pMaster, CEquipment* pEquipment, const std::vector<CParam>& params)> ONSVDATAREPORT; |
| | | typedef std::function<void(void* pMaster, CEquipment* pEquipment, int port, CJobDataS* pJobDataS)> ONJOBRECEIVED; |
| | | typedef std::function<void(void* pMaster, int round)> ONCTROUNDEND; |
| | | typedef std::function<void(void* pMaster, void* pj)> ONPJSTART; |
| | | typedef std::function<void(void* pMaster)> ONCONTROLJOBCHANGED; |
| | |
| | | ONPROCESSSTATECHANGED onProcessStateChanged; |
| | | ONSVDATAREPORT onSVDataReport; |
| | | ONPROCESSDATAREPORTEX onProcessDataReport; |
| | | ONJOBRECEIVED onJobReceived; |
| | | ONCTROUNDEND onCTRoundEnd; |
| | | ONPJSTART onCjStart; |
| | | ONPJSTART onCjEnd; |
| | |
| | | #include "Log.h" |
| | | #include "Model.h" |
| | | #include "Common.h" |
| | | #include "RecipeManager.h" |
| | | #include <time.h> |
| | | #include <iostream> |
| | | #include <time.h> |
| | |
| | | #include <algorithm> |
| | | #include <set> |
| | | #include <regex> |
| | | #include <sstream> |
| | | |
| | | // ControlState values (keep in sync with Model::ControlState / VariableList.txt) |
| | | static constexpr uint8_t kControlStateOnlineRemote = 5; |
| | |
| | | Lock(); |
| | | int maxId = 0; |
| | | for (auto v : m_variabels) { |
| | | if (v != nullptr && v->getVarialbleId() > maxId) { |
| | | maxId = v->getVarialbleId(); |
| | | if (v != nullptr && static_cast<int>(v->getVarialbleId()) > maxId) { |
| | | maxId = static_cast<int>(v->getVarialbleId()); |
| | | } |
| | | } |
| | | outId = maxId + 1; |
| | |
| | | else if (nStream == 7 && pHeader->function == 17) { |
| | | replyDeletePPID(pMessage); |
| | | } |
| | | else if (nStream == 7 && pHeader->function == 5) { |
| | | replyProcessProgramRequest(pMessage); |
| | | } |
| | | else if (nStream == 10 && pHeader->function == 3) { |
| | | replyTerminalDisplay(pMessage); |
| | | } |
| | |
| | | return -1; |
| | | } |
| | | |
| | | int nBufSize = file.GetLength(); |
| | | ULONGLONG len = file.GetLength(); |
| | | if (len > INT_MAX) { |
| | | file.Close(); |
| | | return -1; |
| | | } |
| | | int nBufSize = static_cast<int>(len); |
| | | char* pszBuffer = new char[nBufSize]; |
| | | file.Read(pszBuffer, nBufSize); |
| | | file.Close(); |
| | |
| | | return 0; |
| | | } |
| | | |
| | | // S7F5 Process Program Request -> reply S7F6 with PPID + PPBODY |
| | | int CHsmsPassive::replyProcessProgramRequest(IMessage* pRecv) |
| | | { |
| | | if (m_pPassive == NULL || STATE::SELECTED != m_pPassive->getState()) { |
| | | return ER_NOTSELECT; |
| | | } |
| | | ISECS2Item* pBody = pRecv->getBody(); |
| | | const char* pszPPID = nullptr; |
| | | if (pBody == nullptr || !pBody->getString(pszPPID) || pszPPID == nullptr) { |
| | | return ER_PARAM_ERROR; |
| | | } |
| | | std::string ppid(pszPPID); |
| | | std::string ppbody; |
| | | // 简单聚合:从 RecipeManager 取设备配方,拼成文本 |
| | | auto recipeInfo = RecipeManager::getInstance().getRecipeByPPID(ppid); |
| | | if (!recipeInfo.strPPID.empty()) { |
| | | for (const auto& dev : recipeInfo.vecDeviceList) { |
| | | if (!ppbody.empty()) ppbody.append("\n"); |
| | | ppbody.append(dev.strDeviceName); |
| | | ppbody.append(","); |
| | | ppbody.append(std::to_string(dev.nRecipeID)); |
| | | ppbody.append(","); |
| | | ppbody.append(dev.strRecipeName); |
| | | // 附加参数大小信息(目前缺少具体参数列表) |
| | | ppbody.append(",paramsSize="); |
| | | ppbody.append(std::to_string(dev.paramsRawData.size())); |
| | | } |
| | | } |
| | | |
| | | IMessage* pMessage = nullptr; |
| | | if (HSMS_Create1Message(pMessage, m_nSessionId, 7, 6, pRecv->getHeader()->systemBytes) != 0 || pMessage == nullptr) { |
| | | return ER_CREATED_MESSAGE; |
| | | } |
| | | ISECS2Item* pRspBody = pMessage->getBody(); // top-level L:2 |
| | | pRspBody->addItem(ppid.c_str(), "PPID"); |
| | | pRspBody->addItem(ppbody.c_str(), "PPBODY"); |
| | | m_pPassive->sendMessage(pMessage); |
| | | LogSecsMessageBrief("<HSMS>[SEND]", pMessage); |
| | | HSMS_Destroy1Message(pMessage); |
| | | return 0; |
| | | } |
| | | |
| | | // S7F19 |
| | | int CHsmsPassive::replyQueryPPIDList(IMessage* pRecv) |
| | | { |
| | |
| | | int replyPurgeSpooledData(IMessage* pRecv); |
| | | int replyQueryPPIDList(IMessage* pRecv); |
| | | int replyDeletePPID(IMessage* pRecv); // S7F17/S7F18 |
| | | int replyProcessProgramRequest(IMessage* pRecv); // S7F5/S7F6 |
| | | int replyTerminalDisplay(IMessage* pRecv); |
| | | int replyCreateObj(IMessage* pRecv); |
| | | int replyPRJobMultiCreate(IMessage* pRecv); |
| | |
| | | #include "RecipeManager.h" |
| | | #include "GlassLogDb.h" |
| | | #include "CParam.h" |
| | | #include "CJobDataS.h" |
| | | #include <algorithm> |
| | | #include <iomanip> |
| | | #include <sstream> |
| | |
| | | notifyPtrAndInt(RX_CODE_EQ_ROBOT_TASK, pTask, nullptr, code); |
| | | |
| | | }; |
| | | masterListener.onJobReceived = [&](void* pMaster, SERVO::CEquipment* pEquipment, int port, SERVO::CJobDataS* pJobDataS) { |
| | | (void)pMaster; |
| | | (void)port; |
| | | if (pEquipment == nullptr || pJobDataS == nullptr) return; |
| | | const int eqId = pEquipment->getID(); |
| | | const int recipeId = pJobDataS->getMasterRecipe(); |
| | | std::string recipe = RecipeManager::getInstance().getPPIDById(recipeId); |
| | | if (recipe.empty()) { |
| | | recipe = std::to_string(recipeId); |
| | | } |
| | | const std::string prev = pEquipment->getCurrentRecipe(); |
| | | if (recipe.empty() || recipe == prev) { |
| | | pEquipment->setCurrentRecipe(recipe); |
| | | return; |
| | | } |
| | | pEquipment->setCurrentRecipe(recipe); |
| | | m_hsmsPassive.withVariableLock([&] { |
| | | m_hsmsPassive.setVariableValue("Clock", CToolUnits::getCurrentTimeString().c_str()); |
| | | m_hsmsPassive.setVariableValue("EQPPExecName", recipe.c_str()); |
| | | m_hsmsPassive.setVariableValue("SubEqpName", pEquipment->getName().c_str()); |
| | | const char* recipeVid = nullptr; |
| | | switch (eqId) { |
| | | case EQ_ID_Bonder1: recipeVid = "Bonder1CurrentRecipe"; break; |
| | | case EQ_ID_Bonder2: recipeVid = "Bonder2CurrentRecipe"; break; |
| | | case EQ_ID_VACUUMBAKE: recipeVid = "VacuumBakeCurrentRecipe"; break; |
| | | case EQ_ID_BAKE_COOLING: recipeVid = "BakeCoolingCurrentRecipe"; break; |
| | | case EQ_ID_MEASUREMENT: recipeVid = "MeasurementCurrentRecipe"; break; |
| | | case EQ_ID_EFEM: recipeVid = "EFEMCurrentRecipe"; break; |
| | | default: break; |
| | | } |
| | | if (recipeVid != nullptr) { |
| | | m_hsmsPassive.setVariableValue(recipeVid, recipe.c_str()); |
| | | } |
| | | m_hsmsPassive.requestEventReportSend("RecipeChanged"); |
| | | }); |
| | | }; |
| | | masterListener.onLoadPortStatusChanged = [&] (void* pMaster, SERVO::CEquipment* pEquipment, short status, __int64 data) { |
| | | LOGE("<CModel>onLoadPortStatusChanged. status = %d", status); |
| | | static std::map<int, short> s_prevPortStatus; |
| | |
| | | 701,PreviousProcessState,U1, |
| | | 800,EFEMPPExecName,A20, |
| | | 801,EQPPExecName,A20, |
| | | 8100,Bonder1CurrentRecipe,A50, |
| | | 8101,Bonder2CurrentRecipe,A50, |
| | | 8102,VacuumBakeCurrentRecipe,A50, |
| | | 8103,BakeCoolingCurrentRecipe,A50, |
| | | 8104,MeasurementCurrentRecipe,A50, |
| | | 8105,EFEMCurrentRecipe,A50, |
| | | 2000,RbRAxisTorque,I2,机器人R轴扭矩 |
| | | 2001,RbLAxisTorque,U1,机器人L轴扭矩 |
| | | 2002,RbZAxisTorque,U1,机器人Z轴扭矩 |