BeckhoffItem.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace MECF.Framework.Common.TwinCat
  7. {
  8. public class BeckhoffItem
  9. {
  10. public string Name { get; }
  11. public string Address { get;}
  12. public string DataType { get; }
  13. public string IoType { get; }
  14. public int Size { get;}
  15. public string Scaling { get; }
  16. public bool BitOperated { get; }
  17. public int Bit { get; }
  18. public bool Invert { get; }
  19. public BeckhoffItem(string name, string address, string dataType,string scaling, string ioType, int size,bool bitOperated, int bit,bool invert)
  20. {
  21. Name = name;
  22. DataType = dataType;
  23. IoType = ioType;
  24. Size = size;
  25. Address = address;
  26. Scaling = scaling;
  27. BitOperated = bitOperated;
  28. Bit = bit;
  29. Invert = invert;
  30. }
  31. public BeckhoffItem(string name,string address,string dataType,string ioType,int size,bool bitOperated,int bit,bool invert)
  32. {
  33. Name = name;
  34. DataType = dataType;
  35. IoType = ioType;
  36. Size = size;
  37. Address = address;
  38. BitOperated = bitOperated;
  39. Bit = bit;
  40. Invert = invert;
  41. }
  42. }
  43. }