From 5a927fe5cd015bf00bc992220c0d4f8b802ca044 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期二, 03 十二月 2024 09:37:21 +0800
Subject: [PATCH] 1.PLC页增加两按钮,将原测试代码移到此处

---
 SourceCode/Bond/BondEq/CComponentPLCDlg.cpp |   23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/SourceCode/Bond/BondEq/CComponentPLCDlg.cpp b/SourceCode/Bond/BondEq/CComponentPLCDlg.cpp
index 6e68ab6..f56598b 100644
--- a/SourceCode/Bond/BondEq/CComponentPLCDlg.cpp
+++ b/SourceCode/Bond/BondEq/CComponentPLCDlg.cpp
@@ -8,6 +8,8 @@
 #include "Log.h"
 #include "ToolUnits.h"
 #include "Common.h"
+#include "AxisSettingsDlg.h"
+#include "IOMonitoringDlg.h"
 
 
 // CComponentData1Dlg 瀵硅瘽妗�
@@ -34,6 +36,8 @@
 	ON_WM_CTLCOLOR()
 	ON_WM_DESTROY()
 	ON_WM_SIZE()
+	ON_BN_CLICKED(IDC_BUTTON_PLC_AXIS_SETTINGS, &CComponentPLCDlg::OnBnClickedButtonAxisSetting)
+	ON_BN_CLICKED(IDC_BUTTON_PLC_IO, &CComponentPLCDlg::OnBnClickedButtonIO)
 END_MESSAGE_MAP()
 
 
@@ -120,4 +124,21 @@
 	pItem = GetDlgItem(IDC_LIST_ALARM);
 	pItem->MoveWindow(x, y, rcClient.Width() - x - 12, rcClient.Height() - y - 12);
 */
-}
\ No newline at end of file
+}
+
+void CComponentPLCDlg::OnBnClickedButtonAxisSetting()
+{
+	CAxisSettingsDlg axisDlg;
+	axisDlg.SetPLC(theApp.m_model.getBonder().getPLC("PLC(1)"));
+	axisDlg.SetRecipeName(_T("Default"));
+	axisDlg.DoModal();
+}
+
+void CComponentPLCDlg::OnBnClickedButtonIO()
+{
+	CIOMonitoringDlg dlg;
+	dlg.SetIOManager("Cavity");
+	dlg.SetPLC(theApp.m_model.getBonder().getPLC("PLC(1)"));
+	dlg.DoModal();
+}
+

--
Gitblit v1.9.3