| | |
| | | typeRESET=21,
|
| | |
|
| | | typeCMP,
|
| | | typeExt1, //被前面的指令占用的空间
|
| | | typeExt1, //23 0x17 //被前面的指令占用的空间
|
| | | typeExt2,
|
| | | typeExt3,
|
| | |
|
| | |
| | | };
|
| | | struct stCell
|
| | | {
|
| | | int nType;
|
| | | int nProgStep;
|
| | | int bFocused = 0;
|
| | | int bSelected = 0;
|
| | | int bEditing = 0;
|
| | | int bModified = 0;
|
| | | int nType; //单元类型。
|
| | | int nProgStep; //对应程序的步数
|
| | | int bFocused = 0; //热点选中
|
| | | int bSelected = 0; //选中
|
| | | int bEditing = 0; //编辑中
|
| | | int bModified = 0; //被修改了
|
| | |
|
| | | int bErrFocus = 0;
|
| | | int bErrFocus = 0; //错误热点
|
| | |
|
| | | int bLeftLineUp = 0;
|
| | | int bLeftLineDn = 0;
|
| | | int nStat = 0;
|
| | | int nTrace = 0;
|
| | | int nDataWidth = 0;
|
| | | int nDataType=0;
|
| | | int nDataAddr=0;
|
| | | CString sParam;
|
| | | CString sCoilName;
|
| | | int bLeftLineUp = 0; //左侧向上竖线
|
| | | int bLeftLineDn = 0; //左侧向下竖线
|
| | | int nStat = 0; //当前状态// 监控时根据状态,显示数值或色块
|
| | | int nTrace = 0; //当前跟踪状态
|
| | | // int nDataWidth = 0;
|
| | | int nDataType=0; //参数数据类型
|
| | | int nDataAddr=0; //参数数据地址/值
|
| | | CString sParam; //参数名
|
| | | CString sCoilName; //线圈名
|
| | | void clear() {
|
| | | nType = 0; bFocused = 0; bSelected = 0; bEditing = 0; bModified = 0;
|
| | | bLeftLineUp = 0; bLeftLineDn = 0; nStat = 0;
|
| | | nDataWidth = 0; nDataType = 0; nDataAddr = 0;
|
| | | nDataType = 0; nDataAddr = 0;
|
| | | sParam.Empty(); sCoilName.Empty();
|
| | | }
|
| | | };
|
| | |
| | |
|
| | | int ScrollCellIntoView(int nRow, int nCol);
|
| | | int isCellInView(int nRow, int nCol);
|
| | | int CellFocusChg(int nRow, int nCol);
|
| | |
|
| | | // 重写
|
| | | public:
|
| | |
| | | afx_msg void OnInputIoComment();
|
| | | afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
|
| | | int ScanLDSCells(int nStartLine, int nEndLine, int nPosY, int nPosX, int nLevel, stProgSection & progsec, CString & sProgSec, int &nSteps);
|
| | | void GetIncToView(stCell cell1);
|
| | | void SetCellToView(stCell cell1);
|
| | |
|
| | | };
|
| | |
|