BeckhoffOutput.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Xml.Schema;
  7. using System.Xml.Serialization;
  8. namespace MECF.Framework.Common.Beckhoff.IOAxis
  9. {
  10. /// <summary>
  11. /// Beckhoff IO 输出变量
  12. /// </summary>
  13. public class BeckhoffOutput
  14. {
  15. [XmlAttribute(AttributeName = "Name", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  16. public string Name { get; set; }
  17. [XmlAttribute(AttributeName = "Address", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  18. public string Address { get; set; }
  19. [XmlAttribute(AttributeName = "Type", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  20. public string Type { get; set; }
  21. [XmlAttribute(AttributeName = "DataType", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  22. public string DataType { get; set; }
  23. [XmlAttribute(AttributeName = "BitOperated", Form = XmlSchemaForm.Unqualified, DataType = "boolean")]
  24. public bool BitOperated { get; set; }
  25. [XmlAttribute(AttributeName = "Bit", Form = XmlSchemaForm.Unqualified, DataType = "int")]
  26. public int Bit { get; set; }
  27. [XmlAttribute(AttributeName = "Invert", Form = XmlSchemaForm.Unqualified, DataType = "boolean")]
  28. public bool Invert { get; set; }
  29. [XmlAttribute(AttributeName = "Scaling", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  30. public string Scaling { get; set; }
  31. [XmlAttribute(AttributeName = "Clip", Form = XmlSchemaForm.Unqualified, DataType = "boolean")]
  32. public bool Clip { get; set; }
  33. [XmlAttribute(AttributeName = "ModuleName", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  34. public string ModuleName { get; set; }
  35. }
  36. }