Add WriteToBuffer and unify supported types

This commit is contained in:
Peter Butzhammer
2024-02-07 15:16:23 +01:00
parent 4389e81340
commit 981a306478
5 changed files with 148 additions and 31 deletions

View File

@@ -12,4 +12,6 @@ internal class S7VariableAddress
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;
}