DataType.cs 508 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. namespace PLC.Siemens.Protocol.Common
  3. {
  4. public class CSTypeAttribute : Attribute
  5. {
  6. public Type Type { get; set; }
  7. public CSTypeAttribute(Type type)
  8. {
  9. this.Type = type;
  10. }
  11. }
  12. public enum DataType
  13. {
  14. Bit = 0x01,
  15. Byte = 0x02,
  16. Char = 0x03,
  17. Word = 0x04,
  18. Int = 0x05,
  19. DWord = 0x06,
  20. DInt = 0x07,
  21. Real = 0x08,
  22. Counter = 0x1C,
  23. Timer = 0x1D,
  24. }
  25. }