Data.cs 809 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System.ComponentModel;
  2. namespace WCS.Core
  3. {
  4. public enum PLCType
  5. {
  6. [Description("西门子")]
  7. Siemens = 1,
  8. [Description("三菱")]
  9. Mitsubishi = 2,
  10. [Description("欧姆龙")]
  11. Omron = 3,
  12. [Description("虚拟PLC")]
  13. VitrualRedisPLC = 4,
  14. }
  15. public struct PLCInfo
  16. {
  17. public string IP { get; set; }
  18. public int Port { get; set; }
  19. public int Slot { get; set; }
  20. public int Rack { get; set; }
  21. public PLCType Type { get; set; }
  22. }
  23. public struct DBInfo
  24. {
  25. public PLCInfo PLCInfo { get; set; }
  26. public ushort No { get; set; }
  27. }
  28. public struct ProtocolInfo
  29. {
  30. public DBInfo DBInfo { get; set; }
  31. public int Position { get; set; }
  32. }
  33. }