WagoDeviceConfig.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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.Wago
  10. {
  11. public class WagoDeviceConfig
  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. [XmlAttribute(AttributeName = "Channel", Form = XmlSchemaForm.Unqualified, DataType = "int")]
  24. public int Channel { get; set; }
  25. [XmlElement(Type = typeof(WagoDigIn), ElementName = "Dig_In", IsNullable = false, Form = XmlSchemaForm.Qualified)]
  26. public WagoDigIn WagoDigIn { get; set; }
  27. [XmlElement(Type = typeof(WagoDigOut), ElementName = "Dig_Out", IsNullable = false, Form = XmlSchemaForm.Qualified)]
  28. public WagoDigOut WagoDigOut { get; set; }
  29. [XmlElement(Type = typeof(WagoAnoIn), ElementName = "Ano_In", IsNullable = false, Form = XmlSchemaForm.Qualified)]
  30. public WagoAnoIn WagoAnoIn { get; set; }
  31. [XmlElement(Type = typeof(WagoAnoOut), ElementName = "Ano_Out", IsNullable = false, Form = XmlSchemaForm.Qualified)]
  32. public WagoAnoOut WagoAnoOut { get; set; }
  33. }
  34. }