BeckhoffCounter.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. public class BeckhoffCounter
  11. {
  12. [XmlAttribute(AttributeName = "Name", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  13. public string Name { get; set; }
  14. [XmlAttribute(AttributeName = "Address", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  15. public string Address { get; set; }
  16. [XmlAttribute(AttributeName = "DataType", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  17. public string DataType { get; set; }
  18. [XmlAttribute(AttributeName = "Mode", Form = XmlSchemaForm.Unqualified, DataType = "int")]
  19. public int Mode { get; set; }
  20. [XmlAttribute(AttributeName = "Period", Form = XmlSchemaForm.Unqualified, DataType = "int")]
  21. public int Period { get; set; }
  22. [XmlAttribute(AttributeName = "Scaling", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  23. public string Scaling { get; set; }
  24. [XmlElement(Type = typeof(BeckhoffCounterOutput), ElementName = "Output", IsNullable = false, Form = XmlSchemaForm.Qualified)]
  25. public List<BeckhoffCounterOutput> Outputs { get; set; }
  26. }
  27. }