Data.cs 745 B

12345678910111213141516171819202122232425262728293031323334353637
  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. }
  13. public struct PLCInfo
  14. {
  15. public string IP { get; set; }
  16. public int Port { get; set; }
  17. public int Slot { get; set; }
  18. public int Rack { get; set; }
  19. public PLCType Type { get; set; }
  20. }
  21. public struct DBInfo
  22. {
  23. public PLCInfo PLCInfo { get; set; }
  24. public ushort No { get; set; }
  25. }
  26. public struct ProtocolInfo
  27. {
  28. public DBInfo DBInfo { get; set; }
  29. public int Position { get; set; }
  30. }
  31. }