chenluhua1980
2026-01-04 317e0862d1a7b708d8040606e3bc9d9f6d79b1aa
1.LoadPortNotAssoc事件上报的实现;
已修改6个文件
16 ■■■■■ 文件已修改
SourceCode/Bond/Servo/HsmsPassive.cpp 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SourceCode/Bond/Servo/HsmsPassive.h 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SourceCode/Bond/Servo/Model.cpp 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SourceCode/Bond/x64/Debug/CollectionEventList.txt 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SourceCode/Bond/x64/Debug/ReportList.txt 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SourceCode/Bond/x64/Debug/VariableList.txt 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SourceCode/Bond/Servo/HsmsPassive.cpp
@@ -2599,4 +2599,9 @@
    return requestEventReportSend("OCR_PanelID_Read_OK");
}
int CHsmsPassive::requestEventReportSend_LoadPortNotAssoc()
{
    return requestEventReportSend("LoadPortNotAssoc");
}
SourceCode/Bond/Servo/HsmsPassive.h
@@ -218,6 +218,7 @@
    int requestEventReportSend_Panel_Start();
    int requestEventReportSend_Panel_End();
    int requestEventReportSend_OCR_PanelID_Read_OK();
    int requestEventReportSend_LoadPortNotAssoc();
private:
    void replyAck(int s, int f, unsigned int systemBytes, BYTE ack, const char* pszAckName);
SourceCode/Bond/Servo/Model.cpp
@@ -471,6 +471,13 @@
            }
            m_hsmsPassive.requestEventReportSend_Port_Unload_Ready();
        }
        else if (status == PORT_EMPTY) {
            SERVO::CLoadPort* pLoadPort = dynamic_cast<SERVO::CLoadPort*>(pEquipment);
            if (pLoadPort != nullptr) {
                m_hsmsPassive.setVariableValue("LoadPortNotAssocPortId", pLoadPort->getID());
            }
            m_hsmsPassive.requestEventReportSend_LoadPortNotAssoc();
        }
        notifyPtr(RX_CODE_LOADPORT_STATUS_CHANGED, pEquipment);
    };
    masterListener.onCTRoundEnd = [&](void* pMaster, int round) {
SourceCode/Bond/x64/Debug/CollectionEventList.txt
@@ -6,6 +6,7 @@
10000,RecipeChanged,,(10000)
10030,CarrierArrived,,(10300)
10031,CarrierRemoved,,(10300)
10032,LoadPortNotAssoc,,(50014)
10040,ReadyToLoad,,(10300)
10041,ReadyToUnLoad,,(10300)
10051,CarrierIDWaitingForHost,,(10051)
SourceCode/Bond/x64/Debug/ReportList.txt
@@ -29,3 +29,4 @@
50011,(5013)
50012,(5014)
50013,(5015)
50014,(5016)
SourceCode/Bond/x64/Debug/VariableList.txt
@@ -50,6 +50,7 @@
5013,TestVID,U1,测试添加变量55
5014,VCRPanelID,A20,Panel id,来自读码器
5015,ReadyToReleasePortId,U1,"Port ID"
5016,LoadPortNotAssocPortId,U1,"Port ID"
10200,SlotMap,U2,SlotMap(Scan)
10201,SlotMapScan,U2,SlotMap(Scan)
10202,SlotMapDownload,U2,SlotMap(Download)