LAPTOP-T815PCOQ\25526
2025-01-09 0ba3414c4745224a7ee6f68fbc640bf74e3ee87d
SourceCode/Bond/BoounionPLC/Model.h
@@ -20,6 +20,10 @@
   int addPlc(const char* pszName, const char* pszIp, const unsigned int port);
   int removePlc(const char* pszName);
   // 设置/获取当前PLC
   void setCurrentPlc(CPLC* pPlc);
   CPLC* getCurrentPlc();
public:
   int notify(int code);
   int notifyPtr(int code, void* ptr = NULL);
@@ -34,15 +38,25 @@
   int notifyTextAndInt(int code, const char* pszText, int exCode);
   int notifyMesMsg(int code, int stream, int function, const char* pszText);
private:
   void readPLCDataRegularly();
public:
   CConfiguration m_configuration;
private:
   int m_nVelocityRatio;      // 速度比
   double m_dTactTime;         // 周期时间
   int m_nDayShiftCapacity;   // 白班产能
   int m_nNightShiftCapacity;   // 夜班产能
   bool m_bBlBtnsStates[7];   // PLC View按钮状态
private:
   IObservable* m_pObservable;
   IObservableEmitter* m_pObservableEmitter;
   CString m_strWorkDir;
   std::map<std::string, CPLC*> m_mapPlc;
   std::string m_strCurrPlc;
private:
   int m_nTimerID;