DeviceAddressDataBase.cs 862 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace TFT_MelsecMcNet
  5. {
  6. /// <summary>
  7. /// 设备地址数据的信息,通常包含起始地址,数据类型,长度
  8. /// </summary>
  9. public class DeviceAddressDataBase
  10. {
  11. /// <summary>
  12. /// 数字的起始地址,也就是偏移地址
  13. /// </summary>
  14. public int AddressStart { get; set; }
  15. /// <summary>
  16. /// 读取的数据长度
  17. /// </summary>
  18. public ushort Length { get; set; }
  19. /// <summary>
  20. /// 从指定的地址信息解析成真正的设备地址信息
  21. /// </summary>
  22. /// <param name="address">地址信息</param>
  23. /// <param name="length">数据长度</param>
  24. public virtual void Parse(string address, ushort length)
  25. {
  26. }
  27. }
  28. }