GalilDeviceConfig.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. using MECF.Framework.Common.Device.Festo;
  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.Galil
  10. {
  11. public class GalilDeviceConfig
  12. {
  13. [XmlAttribute(AttributeName = "Module", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  14. public string Module { 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. [XmlElement(Type = typeof(GalilAxisConfig), ElementName = "GalilAxisConfig", IsNullable = false, Form = XmlSchemaForm.Qualified)]
  24. public List<GalilAxisConfig> GalilAxises { get; set; }
  25. }
  26. }