From af08046fe1cddba171826f619d823dee02a79ca0 Mon Sep 17 00:00:00 2001
From: LAPTOP-T815PCOQ\25526 <mr.liuyang@126.com>
Date: 星期三, 27 十一月 2024 16:38:37 +0800
Subject: [PATCH] 1. 添加IO模块,包括界面和管理类
---
SourceCode/Bond/BondEq/BondEqDlg.cpp | 27 +++++++++++++++++++++------
1 files changed, 21 insertions(+), 6 deletions(-)
diff --git a/SourceCode/Bond/BondEq/BondEqDlg.cpp b/SourceCode/Bond/BondEq/BondEqDlg.cpp
index c9a019f..23ac8d5 100644
--- a/SourceCode/Bond/BondEq/BondEqDlg.cpp
+++ b/SourceCode/Bond/BondEq/BondEqDlg.cpp
@@ -8,14 +8,17 @@
#include "afxdialogex.h"
#include "Common.h"
#include "CBonder.h"
+#include "ToolUnits.h"
#include "SettingsDlg.h"
#include "InputDialog.h"
#include "LoginDlg.h"
#include "ChangePasswordDlg.h"
#include "UserManagerDlg.h"
#include "SystemLogManagerDlg.h"
-#include "AxisSettingsDlg.h"
+// test
+#include "AxisSettingsDlg.h"
+#include "IOMonitoringDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
@@ -191,16 +194,22 @@
// 初始化运行日志表
try {
if (!logManager.initializeLogTable()) {
- AfxMessageBox("初始化系统日志表失败!");
+ AfxMessageBox("初始化系统日志模块失败!");
return FALSE;
}
}
catch (const std::exception& ex) {
CString errorMsg;
- errorMsg.Format(_T("初始化系统日志表失败:%s"), CString(ex.what()));
+ errorMsg.Format(_T("初始化系统日志模块失败:%s"), CString(ex.what()));
AfxMessageBox(errorMsg, MB_ICONERROR);
return FALSE;
}
+
+ // 设置配方文件夹路径
+ RecipeManager& recipeManager = RecipeManager::getInstance();
+ std::string strRecipePath = CToolUnits::getCurrentExePath() + _T("\\Recipe");
+ CToolUnits::createDir(strRecipePath.c_str());
+ recipeManager.setRecipeFolder(strRecipePath);
// 菜单
@@ -473,9 +482,15 @@
void CBondEqDlg::OnMenuFileSettings()
{
- CAxisSettingsDlg axisDlg;
- axisDlg.SetPLC(theApp.m_model.getBonder().getPLC("PLC(1)"));
- axisDlg.DoModal();
+ // Cavity VacuumBake AfterBake AOI
+ CIOMonitoringDlg dlg;
+ dlg.SetIOManager("Cavity");
+ dlg.DoModal();
+
+ //CAxisSettingsDlg axisDlg;
+ //axisDlg.SetPLC(theApp.m_model.getBonder().getPLC("PLC(1)"));
+ //axisDlg.SetRecipeName(_T("Default"));
+ //axisDlg.DoModal();
/*
CSettingsDlg dlg;
--
Gitblit v1.9.3