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

@@ -0,0 +1,35 @@
using System;
namespace AMWD.Protocols.Modbus.Tcp.Events
{
/// <summary>
/// Represents the register written event arguments.
/// </summary>
public class RegisterWrittenEventArgs : EventArgs
{
/// <summary>
/// Gets or sets the unit id.
/// </summary>
public byte UnitId { get; internal set; }
/// <summary>
/// Gets or sets the address of the register.
/// </summary>
public ushort Address { get; internal set; }
/// <summary>
/// Gets or sets the value of the register.
/// </summary>
public ushort Value { get; internal set; }
/// <summary>
/// Gets or sets the high byte of the register.
/// </summary>
public byte HighByte { get; internal set; }
/// <summary>
/// Gets or sets the low byte of the register.
/// </summary>
public byte LowByte { get; internal set; }
}
}