Data.cs 673 B

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