GalilDeviceConfig.cs 1.6 KB

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