Files
Sharp7Reactive/Sharp7.Rx/S7VariableAddress.cs
2024-02-07 15:16:23 +01:00

18 lines
443 B
C#

using JetBrains.Annotations;
using Sharp7.Rx.Enums;
namespace Sharp7.Rx;
[NoReorder]
internal class S7VariableAddress
{
public Operand Operand { get; set; }
public ushort DbNr { get; set; }
public ushort Start { get; set; }
public ushort Length { get; set; }
public byte Bit { get; set; }
public DbType Type { get; set; }
public ushort BufferLength => Type == DbType.String ? (ushort)(Length + 2) : Length;
}