BeckhoffController.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using CyberX8_Core;
  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.Beckhoff.IOAxis
  10. {
  11. public class BeckhoffController
  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 = "PortAddress", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  18. public string PortAddress { get; set;}
  19. [XmlElement(Type = typeof(BeckhoffInput), ElementName = "Input", IsNullable = false, Form = XmlSchemaForm.Qualified)]
  20. public List<BeckhoffInput> Inputs { get; set; }
  21. [XmlElement(Type =typeof(BeckhoffCounter), ElementName = "Counter", IsNullable =false,Form =XmlSchemaForm.Qualified)]
  22. public List<BeckhoffCounter> Counters { get; set; }
  23. [XmlElement(Type = typeof(BeckhoffOutput), ElementName = "Output", IsNullable = false, Form = XmlSchemaForm.Qualified)]
  24. public List<BeckhoffOutput> Outputs { get; set; }
  25. [XmlElement(Type = typeof(BeckhoffAxis), ElementName = "Axis", IsNullable = false, Form = XmlSchemaForm.Qualified)]
  26. public List<BeckhoffAxis> Axises { get; set; }
  27. }
  28. }