| | |
| | | if (ret != IDOK) { |
| | | return; |
| | | } |
| | | writeAxisDataToPLC(axisId); |
| | | |
| | | updateDataFromUI(axisId); |
| | | Sleep(2000); |
| | | |
| | | refreshAxisDetails(axisId); |
| | | refreshPositionDetails(axisId, m_currentPage); |
| | | if (RecipeManager::getInstance().saveRecipe(std::string(CT2A(m_strRecipeName)))) { |
| | | writeAxisDataToPLC(axisId); |
| | | cstrMessage.Format(_T("保存轴 [%d] 参数成功!"), axisId); |
| | | cstrMessage.Format(_T("保存轴 [%d] 参数到文件成功!"), axisId); |
| | | SystemLogManager::getInstance().log(SystemLogManager::LogType::Operation, std::string(CT2A(cstrMessage))); |
| | | |
| | | updateDataFromUI(axisId); |
| | | } |
| | | else { |
| | | cstrMessage.Format(_T("保存轴 [%d] 参数失败!"), axisId); |
| | | cstrMessage.Format(_T("保存轴 [%d] 参数到文件失败!"), axisId); |
| | | SystemLogManager::getInstance().log(SystemLogManager::LogType::Error, std::string(CT2A(cstrMessage))); |
| | | } |
| | | |
| | |
| | | |
| | | // 更新Labels状态 |
| | | UpdateLabels(); |
| | | |
| | | // 更新定位点 |
| | | //refreshPositionDetails(getCurrentSelectedAxisID(), m_currentPage); |
| | | |
| | | // OPR按钮是否要闪烁或停止闪烁 |
| | | // 06.0和08.0 |