Added implementation of Modbus TCP Server

This commit is contained in:
2024-03-25 20:41:49 +01:00
parent fbc9f9e429
commit d6bc5f1a4a
9 changed files with 1252 additions and 5 deletions

View File

@@ -1,3 +1,4 @@
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("AMWD.Protocols.Modbus.Tests")]
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")]

View File

@@ -59,6 +59,15 @@ namespace AMWD.Protocols.Modbus.Common.Protocols
/// </summary>
public const ushort MAX_REGISTER_WRITE_COUNT = 0x007B; // 123
/// <summary>
/// The maximum allowed ADU length in bytes.
/// </summary>
/// <remarks>
/// A Modbus frame consists of a PDU (protcol data unit) and additional protocol addressing / error checks.
/// The whole data frame is called ADU (application data unit).
/// </remarks>
public const int MAX_ADU_LENGTH = 260; // bytes
#endregion Constants
/// <inheritdoc/>