diff --git a/CommonControls/Modbus.Common.csproj b/CommonControls/Modbus.Common.csproj
index fe47681..5336f76 100644
--- a/CommonControls/Modbus.Common.csproj
+++ b/CommonControls/Modbus.Common.csproj
@@ -10,7 +10,7 @@
Properties
Modbus.Common
Modbus.Common
- v4.5.2
+ v4.8
512
@@ -103,6 +103,9 @@
+
+
+
-
\ No newline at end of file
+
diff --git a/ModbusSlave/Properties/AssemblyInfo.cs b/ModbusSlave/Properties/AssemblyInfo.cs
index 3a9715c..5b0e8db 100644
--- a/ModbusSlave/Properties/AssemblyInfo.cs
+++ b/ModbusSlave/Properties/AssemblyInfo.cs
@@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("2.0.3.0")]
-[assembly: AssemblyFileVersion("2.0.3.0")]
\ No newline at end of file
+[assembly: AssemblyVersion("2.1.3.0")]
+[assembly: AssemblyFileVersion("2.1.3.0")]
\ No newline at end of file
diff --git a/ModbusSlave/SlaveForm.Designer.cs b/ModbusSlave/SlaveForm.Designer.cs
index a8a173c..c669006 100644
--- a/ModbusSlave/SlaveForm.Designer.cs
+++ b/ModbusSlave/SlaveForm.Designer.cs
@@ -36,6 +36,10 @@ private void InitializeComponent()
this.grpExchange.SuspendLayout();
this.SuspendLayout();
//
+ // grpStart
+ //
+ this.grpStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)));
+ //
// label8
//
this.label8.Visible = false;
@@ -65,7 +69,8 @@ private void InitializeComponent()
// SlaveForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.ClientSize = new System.Drawing.Size(869, 887);
+ this.AutoScroll = true;
+ this.ClientSize = new System.Drawing.Size(869, 896);
this.Controls.Add(this.buttonDisconnect);
this.Controls.Add(this.btnConnect);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
diff --git a/ModbusSlave/SlaveForm.cs b/ModbusSlave/SlaveForm.cs
index 7542ff2..4873e66 100644
--- a/ModbusSlave/SlaveForm.cs
+++ b/ModbusSlave/SlaveForm.cs
@@ -154,6 +154,13 @@ private void DoDisconnect()
_uart.Dispose();
_uart = null;
}
+
+ if (_socket != null)
+ {
+ _socket.Dispose();
+ _socket = null;
+ }
+
if (_thread != null && _thread.IsAlive)
{
if (_thread.Join(2000) == false)
@@ -162,11 +169,6 @@ private void DoDisconnect()
_thread = null;
}
}
- if (_socket != null)
- {
- _socket.Dispose();
- _socket = null;
- }
}
#endregion
diff --git a/ModbusSlave/app.config b/ModbusSlave/app.config
index de82893..786a845 100644
--- a/ModbusSlave/app.config
+++ b/ModbusSlave/app.config
@@ -1,3 +1,3 @@
-
+
diff --git a/Pictures/Master.PNG b/Pictures/Master.PNG
index 5689569..8829f69 100644
Binary files a/Pictures/Master.PNG and b/Pictures/Master.PNG differ
diff --git a/Pictures/Slave.PNG b/Pictures/Slave.PNG
index 9979f81..2992217 100644
Binary files a/Pictures/Slave.PNG and b/Pictures/Slave.PNG differ
diff --git a/Pictures/default-yellowS2.png b/Pictures/default-yellowS2.png
new file mode 100644
index 0000000..8926bd7
Binary files /dev/null and b/Pictures/default-yellowS2.png differ
diff --git a/README.md b/README.md
index adc519c..3de3497 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,7 @@
# ModbusTool
## A modbus TCP and RTU master and slave tool with import and export functionality.
-|If you find this project useful or interesting, please help support further development!|[](https://paypal.me/classicdiy?country.x=CA&locale.x=en_US)|
-|---|---|
+
[](https://hits.seeyoufarm.com)
@@ -12,14 +11,39 @@
[](https://github.com/ClassicDIY/ModbusTool/issues)
[](https://github.com/ClassicDIY/ModbusTool/blob/master/LICENSE)
-
-Please refer to the ModbusTool wiki for the installation procedure.
-
-
+## Installation
+
+There are two options available to download and install ModbusTool.
+
+### Option 1: Download from Github Releases
+
+1. Visit the [Github Releases page](https://github.com/ClassicDIY/ModbusTool/releases) of ModbusTool.
+2. Choose `ModbusTool.msi` to downloaad.
+3. Once the file is downloaded, double-click on it to initiate the installation process.
+4. Follow the on-screen instructions to complete the installation.
+
+For detailed installation instructions and additional information, refer to the [Github Wiki tutorial](https://github.com/ClassicDIY/ModbusTool/wiki) dedicated to this option.
+
+### Option 2: Install using `winget`
+
+> `Winget` is a command-line package manager for Windows that allows users to quickly and easily install, manage, and uninstall software applications from the terminal.
+
+1. Ensure that you have `winget` installed on your system. If not, follow the instructions to install `winget` from the official Microsoft [documentation](https://learn.microsoft.com/en-us/windows/package-manager/winget/).
+2. Open a powershell or terminal window.
+3. Execute the following command to install ModbusTool using `winget`:
+
+```shell
+winget install ClassicDIY.ModbusTool
+```
+
+4. Wait for the installation process to complete.
+
+Once installed, you can launch ModbusTool and start using its master and slave test functionalities with import and export capabilities.
+
## License
```
@@ -40,7 +64,7 @@ Please refer to the Modb
```
-Release notes:
+## Release notes
-----------------