新增 复合运动控制控件

This commit is contained in:
2022-09-15 14:04:37 +08:00
parent 4eb7477f98
commit 7c4c565d09
14 changed files with 84252 additions and 30 deletions
+15 -13
View File
@@ -117,7 +117,7 @@ namespace ACS_DotNET_Library_Advanced_Demo
m_nOutputState = 0;
// Clear connection list from SPiiPlus UserMode-Driver (UMD)
TernminateUMD_Connection();
//TernminateUMD_Connection();
}
private void rdoTCP_CheckedChanged(object sender, EventArgs e)
@@ -143,12 +143,12 @@ namespace ACS_DotNET_Library_Advanced_Demo
try
{
if (rdoTCP.Checked)
{
{
// TCP/IP (Ethernet)
_ACS.OpenCommEthernetTCP(
txtIP.Text, // IP Address (Default : 10.0.0.100)
Convert.ToInt32(txtPort.Text.Trim()) // TCP/IP Port nubmer (default : 701)
);
txtIP.Text, // IP Address (Default : 10.0.0.100)
Convert.ToInt32(txtPort.Text.Trim())); // TCP/IP Port nubmer (default : 701)
}
else if (rdoSimu.Checked)
{
@@ -192,19 +192,21 @@ namespace ACS_DotNET_Library_Advanced_Demo
tmrMonitor.Interval = 50;
tmrMonitor.Start();
}
catch (COMException comex)
{
MessageBox.Show("Connection fail", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
System.Diagnostics.Debug.WriteLine("Connection fail" + comex.Message);
m_bConnected = false;
return;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
System.Diagnostics.Debug.WriteLine(ex.Message);
}
//catch (COMException comex)
//{
// MessageBox.Show("Connection fail", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
// System.Diagnostics.Debug.WriteLine("Connection fail" + comex.Message);
// m_bConnected = false;
// return;
//}
}
private void btnClose_Click(object sender, EventArgs e)