| | |
| | |
|
| | | #pragma once
|
| | | #include "HvSerialPort.h"
|
| | | #include "CAnsiParser.h"
|
| | | #include "CDataParser1.h"
|
| | | #include "AnsiParser.h"
|
| | | #include "DataParser1.h"
|
| | | #include "KDefine.h"
|
| | | #include "KLink.h"
|
| | | #include "KMachine.h"
|
| | |
|
| | | #include "../KLink2/KLink.h"
|
| | |
|
| | | #pragma comment(lib,"KLink2.lib")
|
| | |
|
| | | class CMTerm2Doc : public CDocument
|
| | | {
|
| | |
| | | // CSerialCom MySerialCom1;
|
| | | HvSerialPort myHvSerialPort1;
|
| | | KMachine myKMachine1;
|
| | |
|
| | | KLink2 MyKlink2;
|
| | |
|
| | |
|
| | | bool m_bCommParamSet = false;
|
| | |
| | | CString ProgTxt;
|
| | |
|
| | |
|
| | | struct stTypeDef
|
| | | struct stTypeNameDef
|
| | | {
|
| | | int nType;
|
| | | CStringA TypeTxt;
|
| | | };
|
| | | static stTypeDef CoilTypeDef[];
|
| | | static stTypeNameDef CoilTypeNameDef[];
|
| | | static int nCoilTypeDefCount;
|
| | |
|
| | | static stTypeDef DataTypeDef[];
|
| | | static stTypeNameDef DataTypeNameDef[];
|
| | | static int nDataTypeDefCount;
|
| | |
|
| | | stKMem KMem;
|
| | |
| | | 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();
|
| | | afx_msg void OnMenuFactCfg();
|
| | | afx_msg void OnMenuDatetimeSet();
|
| | | afx_msg void OnMenuEventLog();
|
| | | };
|