| | |
| | | // 1.写数据 |
| | | nextStep(); |
| | | ASSERT(m_pCclink); |
| | | int nRet = m_pCclink->WriteData(m_station, (short)DeviceType::W, |
| | | int nWriteRet = m_pCclink->WriteData(m_station, (short)DeviceType::W, |
| | | m_nWriteDevNo, m_nWriteDataSize, (short*)m_szBuffer); |
| | | if (0 != nRet) { |
| | | if (0 != nWriteRet) { |
| | | onTimeout(); |
| | | goto RESET; |
| | | } |
| | |
| | | CStep::getAttributeVector(attrubutes); |
| | | std::string temp; |
| | | |
| | | unsigned int weight = 20; |
| | | attrubutes.addAttribute(new CAttribute("Current Step", |
| | | std::to_string(m_nCurStep).c_str(), "")); |
| | | std::to_string(m_nCurStep).c_str(), "", weight++)); |
| | | attrubutes.addAttribute(new CAttribute("Signal Dev", |
| | | ("W" + CToolUnits::toHexString(m_nWriteSignalDev, temp)).c_str(), "")); |
| | | ("W" + CToolUnits::toHexString(m_nWriteSignalDev, temp)).c_str(), "", weight++)); |
| | | } |
| | | |
| | | void CWriteStep::init() |