| | |
| | | CMTerm1Doc* pDoc = (CMTerm1Doc *)GetDocument();
|
| | | unsigned short DCount = 120;
|
| | | unsigned short nCount=0;
|
| | | int res = pDoc->MyKLink1.ReadDataWord(1, KLDataSysCfg, 0, DCount, &nCount, m_databuf1);
|
| | | int res = theApp.MyKLink1.ReadDataWord(1, KLDataSysCfg, 0, DCount, &nCount, m_databuf1);
|
| | | CString s1;
|
| | | s1.Format(_T("ReadDataWord = %d %d %p %p"), res,nCount, m_databuf1, &pSysCfg->PortParams[0]);
|
| | | SysLog(s1);
|
| | |
| | | }
|
| | | SysLog(s1);
|
| | |
|
| | | pSysCfg = (pKMSysCfg)m_databuf1;
|
| | | pSysCfg = (pstKMSysCfg)m_databuf1;
|
| | |
|
| | | m_listSel1.GetCount();
|
| | | AddPropPage(_T("工作模式设置1"), &m_propmodecfg1, IDD_PROP_MODE_CFG1, &pSysCfg->workmode);
|
| | |
| | |
|
| | | s1.Format(_T("sizeof (syscfg) %d"), sizeof(stKMSysCfg));
|
| | | SysLog(s1);
|
| | | int res = pDoc->MyKLink1.ReadSysCfgData(1, 0, DCount, &nCount, buf1);
|
| | | UCHAR nType = 0;
|
| | | int res = theApp.MyKLink1.ReadSysCfgData(1, nType, 0, DCount, &nCount, buf1);
|
| | | s1.Format(_T("ReadDataWord = %d %d"), res, nCount);
|
| | | SysLog(s1);
|
| | | s1.Empty(); s1.Append(_T("\r\n"));
|
| | |
| | |
|
| | | s1.Format(_T("sizeof (syscfg) %d"), sizeof(stKMSysCfg));
|
| | | SysLog(s1);
|
| | | int res = pDoc->MyKLink1.WriteSysCfgData(1, 0, DCount, m_databuf1);
|
| | | UCHAR nType = 0;
|
| | | int res = theApp.MyKLink1.WriteSysCfgData(1, nType, 0, DCount, m_databuf1);
|
| | | s1.Format(_T("Write syscfg = %d "), res);
|
| | | SysLog(s1);
|
| | | }
|
| | |
| | |
|
| | | s1.Format(_T("sizeof (syscfg) %d"), sizeof(stKMSysCfg));
|
| | | SysLog(s1);
|
| | | int res = pDoc->MyKLink1.ReadDataWord(1, KLDataSysCfg,0,DCount, &nCount, buf1);
|
| | | int res = theApp.MyKLink1.ReadDataWord(1, KLDataSysCfg,0,DCount, &nCount, buf1);
|
| | | s1.Format(_T("ReadDataWord = %d %d"), res, nCount);
|
| | | SysLog(s1);
|
| | | s1.Empty(); s1.Append(_T("\r\n"));
|