FestoDeviceConfig.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using MECF.Framework.Common.Beckhoff.IOAxis;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Xml.Schema;
  8. using System.Xml.Serialization;
  9. namespace MECF.Framework.Common.Device.Festo
  10. {
  11. public class FestoDeviceConfig
  12. {
  13. [XmlAttribute(AttributeName = "Name", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  14. public string Name { get; set; }
  15. [XmlAttribute(AttributeName = "IpAddress", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  16. public string IpAddress { get; set; }
  17. [XmlAttribute(AttributeName = "Port", Form = XmlSchemaForm.Unqualified, DataType = "int")]
  18. public int Port { get; set; }
  19. [XmlAttribute(AttributeName = "SendTimeout", Form = XmlSchemaForm.Unqualified, DataType = "int")]
  20. public int SendTimeout { get; set; }
  21. [XmlAttribute(AttributeName = "RecvTimeout", Form = XmlSchemaForm.Unqualified, DataType = "int")]
  22. public int RecvTimeout { get; set; }
  23. [XmlAttribute(AttributeName = "DIStartAddress", Form = XmlSchemaForm.Unqualified, DataType = "int")]
  24. public int DIStartAddress { get; set; }
  25. [XmlAttribute(AttributeName = "Channel", Form = XmlSchemaForm.Unqualified, DataType = "int")]
  26. public int Channel { get; set; }
  27. [XmlElement(Type = typeof(FestoDO), ElementName = "DO", IsNullable = false, Form = XmlSchemaForm.Qualified)]
  28. public List<FestoDO> FestoDoes { get; set; }
  29. }
  30. }