TargetPLC.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Security.AccessControl;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using GSG.NET;
  8. namespace PLCLogger
  9. {
  10. public class TargetPLC
  11. {
  12. public string Name { get; set; }
  13. public string Addr { get; set; }
  14. public int PortNo { get; set; }
  15. public string Dec { get; set; }
  16. }
  17. public enum PlcKind
  18. {
  19. NONE,
  20. PLC,
  21. HOST
  22. }
  23. internal class XlsB : Poco
  24. {
  25. public int Addr { get; set; }
  26. public string TagName { get; set; }
  27. public string SubText { get; set; }
  28. public int SubNo { get; set; }
  29. public int CallbackOrder { get; set; }
  30. public PlcKind Kind { get; set; }
  31. public string Comment { get; set; }
  32. }
  33. internal class XlsW : Poco
  34. {
  35. public int Addr { get; set; }
  36. public string TagName { get; set; }
  37. public int Point { get; set; }
  38. public string SubText { get; set; }
  39. public string Format { get; set; }
  40. public int MultipleV { get; set; }
  41. public string MultipleFormat { get; set; }
  42. public bool Watch { get; set; }
  43. public int SubNo { get; set; }
  44. public int CallbackOrder { get; set; }
  45. public PlcKind Kind { get; set; }
  46. public string Comment { get; set; }
  47. }
  48. }