namespace S7.Net.Protocol.S7 { /// /// Represents an area of memory in the PLC /// internal class DataItemAddress { public DataItemAddress(DataType dataType, int db, int startByteAddress, int byteLength) { DataType = dataType; DB = db; StartByteAddress = startByteAddress; ByteLength = byteLength; } /// /// Memory area to read /// public DataType DataType { get; } /// /// Address of memory area to read (example: for DB1 this value is 1, for T45 this value is 45) /// public int DB { get; } /// /// Address of the first byte to read /// public int StartByteAddress { get; } /// /// Length of data to read /// public int ByteLength { get; } } }