| | |
| | | #include "KLink.h"
|
| | | #include "KMachine.h"
|
| | |
|
| | | #include "../KLink2/KLink.h"
|
| | |
|
| | | #pragma comment(lib,"KLink2.lib")
|
| | |
|
| | | class CMTerm2Doc : public CDocument
|
| | | {
|
| | | protected: // 仅从序列化创建
|
| | |
| | | // CSerialCom MySerialCom1;
|
| | | HvSerialPort myHvSerialPort1;
|
| | | KMachine myKMachine1;
|
| | |
|
| | | KLink2 MyKlink2;
|
| | |
|
| | |
|
| | | bool m_bCommParamSet = false;
|
| | |
| | | KLParamNum,
|
| | |
|
| | | };
|
| | | struct stProgDef
|
| | | struct stOpDef
|
| | | {
|
| | | int nOpType1;
|
| | | CStringA OpTxt;
|
| | |
| | | int nParamType;
|
| | | CStringA ShowTxt;
|
| | | };
|
| | | static stProgDef ProgDef[];
|
| | | static stOpDef OpDef[];
|
| | |
|
| | | static int nProgDefCount;
|
| | | static int nOpDefCount;
|
| | | struct stParam
|
| | | {
|
| | | CStringA sParamStr;
|
| | |
| | | int AddMonitorData(int nDataType, int nDataAddr, int nDataCount);
|
| | | int ClearMonitor();
|
| | | int DoPLCMonitor();
|
| | | afx_msg void OnMenuStatusShow();
|
| | | };
|