From 52e82dcdc401782b58ed50bc14ae270b143370a9 Mon Sep 17 00:00:00 2001
From: LAPTOP-T815PCOQ\25526 <mr.liuyang@126.com>
Date: 星期六, 11 一月 2025 08:35:52 +0800
Subject: [PATCH] 1.添加轴设定和细部设定

---
 SourceCode/Bond/BoounionPLC/BoounionPLCDlg.cpp |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/SourceCode/Bond/BoounionPLC/BoounionPLCDlg.cpp b/SourceCode/Bond/BoounionPLC/BoounionPLCDlg.cpp
index d7a9b20..060a46e 100644
--- a/SourceCode/Bond/BoounionPLC/BoounionPLCDlg.cpp
+++ b/SourceCode/Bond/BoounionPLC/BoounionPLCDlg.cpp
@@ -10,9 +10,11 @@
 #include "PlcView.h"
 #include "Log.h"
 #include "InputDialog.h"
+#include "AxisManager.h"
 #include "IOManager.h"
 
 // 测试
+#include "AxisSettingsDlg.h"
 #include "IOMonitoringDlg.h"
 
 
@@ -502,10 +504,13 @@
 		if (!strName.IsEmpty()) {
 			theApp.m_model.addPlc((LPTSTR)(LPCTSTR)strName, "192.168.1.188", 1001);
 
+			// 新建轴文件
+			AxisManager axisManager;
+			axisManager.SaveAxis((LPTSTR)(LPCTSTR)strName);
+
 			// 新建IO文件
-			IOManager io;
-			io.DefaultMachineData();
-			io.SaveToFile((LPTSTR)(LPCTSTR)strName);
+			IOManager ioManager;
+			ioManager.SaveToFile((LPTSTR)(LPCTSTR)strName);
 		}
 	}
 	else if (id == IDC_BUTTON_DELETE) {
@@ -518,9 +523,10 @@
 		// 测试 IO模块
 		CPLC* pPLC = theApp.m_model.getCurrentPlc();
 		if (pPLC != nullptr) {
-			CIOMonitoringDlg dlg;
-			dlg.SetPLC(pPLC);
-			dlg.SetIOManager(pPLC->getName());
+			//CIOMonitoringDlg dlg;
+			//dlg.DoModal();
+
+			CAxisSettingsDlg dlg;
 			dlg.DoModal();
 		}
 	}

--
Gitblit v1.9.3