| | |
| | | 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); |
| | |
| | | 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; |