From a3943d169515d841e70c57703cbd9fcbf5409a5a Mon Sep 17 00:00:00 2001 From: mrDarker <mr.darker@163.com> Date: 星期一, 04 八月 2025 17:59:52 +0800 Subject: [PATCH] 1. SGMeasurement模块添加CC-Link通信 2. SGMeasurement模块添加PLC交互 --- SourceCode/Bond/Servo/HsmsPassive.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/SourceCode/Bond/Servo/HsmsPassive.h b/SourceCode/Bond/Servo/HsmsPassive.h index 84644a5..3fa3b73 100644 --- a/SourceCode/Bond/Servo/HsmsPassive.h +++ b/SourceCode/Bond/Servo/HsmsPassive.h @@ -142,7 +142,11 @@ void OnTimer(UINT nTimerid); void setActionTimeout(int nSecond); int init(CModel* pModel, const char* pszName, unsigned int port); + int loadCacheFromFile(const char* pszFilepath); + int saveCache(); int term(); + int serialize(char* pszBuffer, int nBufferSize); + int unserialize(const char* pszBuffer, int nBufferSize); public: /* request开头的函数为主动发送数据的函数 */ @@ -167,6 +171,7 @@ int replyCommand(IMessage* pRecv); int replyConfigureSpooling(IMessage* pRecv); int replyEanbleDisableAlarmReport(IMessage* pRecv); + int replyPurgeSpooledData(IMessage* pRecv); int replyQueryPPIDList(IMessage* pRecv); int replyTerminalDisplay(IMessage* pRecv); @@ -189,6 +194,7 @@ CRITICAL_SECTION m_criticalSection; std::list<CHsmsAction*> m_listAction; std::list<CHsmsAction*> m_listActionSent; + std::list<CHsmsAction*> m_listActionSpooling; private: SECSListener m_listener; @@ -196,6 +202,8 @@ HANDLE m_hCimWorkEvent; HANDLE m_hCimWorkThreadHandle; unsigned m_nCimWorkThrdaddr; + std::string m_strCacheFilepath; + CHsmsAction* m_pActiveAction; private: // CVariable vector -- Gitblit v1.9.3