mirror of
https://gitee.com/lircy/S7CommPlusV3Driver
synced 2026-03-27 00:36:35 +08:00
1. Resolved the hourly connection termination problem in non-TLS firmware communication.
2. Enhanced socket-level data packet reception throughput.
This commit is contained in:
@@ -39,8 +39,7 @@ namespace S7CommPlusGUIBrowser
|
||||
private void btnConnect_Click(object sender, EventArgs e)
|
||||
{
|
||||
setStatus("connecting...");
|
||||
|
||||
if (conn != null) conn.Disconnect();
|
||||
if (conn != null)conn.Disconnect();
|
||||
conn = new S7CommPlusConnection();
|
||||
conn.OnlySecurePGOrPCAndHMI = onlySecurePGOrPCAndHMI;
|
||||
int res = conn.Connect(tbIpAddress.Text, tbPassword.Text);
|
||||
@@ -106,12 +105,11 @@ namespace S7CommPlusGUIBrowser
|
||||
private void btnDisconnect_Click(object sender, EventArgs e)
|
||||
{
|
||||
setStatus("disconnecting...");
|
||||
|
||||
if (conn != null) conn.Disconnect();
|
||||
conn = null;
|
||||
treeView1.Nodes.Clear();
|
||||
txt_plcInfo.Text = "PLCType:";
|
||||
setStatus("disconnected");
|
||||
conn = null;
|
||||
}
|
||||
|
||||
private void Form1_FormClosed(object sender, FormClosedEventArgs e)
|
||||
@@ -352,10 +350,8 @@ namespace S7CommPlusGUIBrowser
|
||||
if (tag == null) return;
|
||||
|
||||
tbSymbolicAddress.Text = tag.Address.GetAccessString();
|
||||
|
||||
PlcTags tags = new PlcTags();
|
||||
tags.AddTag(tag);
|
||||
if (tags.ReadTags(conn) != 0) return;
|
||||
|
||||
if (PlcTags.ReadTags(conn,new List<PlcTag> { tag}) != 0) return;
|
||||
tbValue.Text = tag.ToString();
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
ec14fa67cfbca0656c6c62f93ec1446787c52f00
|
||||
a3f5da61a0c9535c5a7df7f53d9805aa7bd1a564
|
||||
|
||||
@@ -10,3 +10,15 @@ C:\Users\ShenX\Desktop\DiscoverDevices\S7CommPlusV3Driver\S7CommPlusGUIBrowser\o
|
||||
C:\Users\ShenX\Desktop\DiscoverDevices\S7CommPlusV3Driver\S7CommPlusGUIBrowser\obj\Debug\S7CommPlusGUIBrowser.csproj.CopyComplete
|
||||
C:\Users\ShenX\Desktop\DiscoverDevices\S7CommPlusV3Driver\S7CommPlusGUIBrowser\obj\Debug\S7CommPlusGUIBrowser.exe
|
||||
C:\Users\ShenX\Desktop\DiscoverDevices\S7CommPlusV3Driver\S7CommPlusGUIBrowser\obj\Debug\S7CommPlusGUIBrowser.pdb
|
||||
C:\Users\ShenX\Desktop\S7CommPlusDriver_Secure\S7CommPlusV3Driver\S7CommPlusGUIBrowser\bin\Debug\S7CommPlusGUIBrowser.exe.config
|
||||
C:\Users\ShenX\Desktop\S7CommPlusDriver_Secure\S7CommPlusV3Driver\S7CommPlusGUIBrowser\bin\Debug\S7CommPlusGUIBrowser.exe
|
||||
C:\Users\ShenX\Desktop\S7CommPlusDriver_Secure\S7CommPlusV3Driver\S7CommPlusGUIBrowser\bin\Debug\S7CommPlusGUIBrowser.pdb
|
||||
C:\Users\ShenX\Desktop\S7CommPlusDriver_Secure\S7CommPlusV3Driver\S7CommPlusGUIBrowser\bin\Debug\S7CommPlusDriver.dll
|
||||
C:\Users\ShenX\Desktop\S7CommPlusDriver_Secure\S7CommPlusV3Driver\S7CommPlusGUIBrowser\obj\Debug\S7CommPlusGUIBrowser.csprojAssemblyReference.cache
|
||||
C:\Users\ShenX\Desktop\S7CommPlusDriver_Secure\S7CommPlusV3Driver\S7CommPlusGUIBrowser\obj\Debug\S7CommPlusGUIBrowser.Form1.resources
|
||||
C:\Users\ShenX\Desktop\S7CommPlusDriver_Secure\S7CommPlusV3Driver\S7CommPlusGUIBrowser\obj\Debug\S7CommPlusGUIBrowser.Properties.Resources.resources
|
||||
C:\Users\ShenX\Desktop\S7CommPlusDriver_Secure\S7CommPlusV3Driver\S7CommPlusGUIBrowser\obj\Debug\S7CommPlusGUIBrowser.csproj.GenerateResource.cache
|
||||
C:\Users\ShenX\Desktop\S7CommPlusDriver_Secure\S7CommPlusV3Driver\S7CommPlusGUIBrowser\obj\Debug\S7CommPlusGUIBrowser.csproj.CoreCompileInputs.cache
|
||||
C:\Users\ShenX\Desktop\S7CommPlusDriver_Secure\S7CommPlusV3Driver\S7CommPlusGUIBrowser\obj\Debug\S7CommPlusGUIBrowser.csproj.CopyComplete
|
||||
C:\Users\ShenX\Desktop\S7CommPlusDriver_Secure\S7CommPlusV3Driver\S7CommPlusGUIBrowser\obj\Debug\S7CommPlusGUIBrowser.exe
|
||||
C:\Users\ShenX\Desktop\S7CommPlusDriver_Secure\S7CommPlusV3Driver\S7CommPlusGUIBrowser\obj\Debug\S7CommPlusGUIBrowser.pdb
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user