| | |
| | | #include "Log.h" |
| | | #include "ToolUnits.h" |
| | | #include "Common.h" |
| | | #include "AxisSettingsDlg.h" |
| | | #include "IOMonitoringDlg.h" |
| | | |
| | | |
| | | // CComponentData1Dlg 对话框 |
| | |
| | | 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() |
| | | |
| | | |
| | |
| | | pItem->MoveWindow(x, y, rcClient.Width() - x - 12, rcClient.Height() - y - 12); |
| | | */ |
| | | } |
| | | |
| | | 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(); |
| | | } |
| | | |