BeckhoffAxis.cs 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using MECF.Framework.Common.Device;
  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 BeckhoffAxis : AxisConfig
  12. {
  13. [XmlAttribute(AttributeName = "Name", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  14. public string Name { get; set; }
  15. [XmlAttribute(AttributeName = "MotorType", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  16. public string MotorType { get; set; }
  17. [XmlAttribute(AttributeName = "COEAddress", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  18. public string COEAddress { get; set; }
  19. [XmlAttribute(AttributeName = "COEPort", Form = XmlSchemaForm.Unqualified, DataType = "int")]
  20. public int COEPort { get; set; }
  21. [XmlAttribute(AttributeName = "DebugLogging", Form = XmlSchemaForm.Unqualified, DataType = "boolean")]
  22. public bool DebugLogging { get; set; }
  23. [XmlElement(Type = typeof(BeckhoffAxisInput), ElementName = "Input", IsNullable = false, Form = XmlSchemaForm.Qualified)]
  24. public List<BeckhoffAxisInput> Inputs { get; set; }
  25. [XmlElement(Type = typeof(BeckhoffAxisOutput), ElementName = "Output", IsNullable = false, Form = XmlSchemaForm.Qualified)]
  26. public List<BeckhoffAxisOutput> Outputs { get; set; }
  27. public int MotorDriveDirection { get; set; }
  28. public int EncoderFeedbackDirectionMValue { get;set; }
  29. public int EncoderFeedbackDirectionNValue { get; set; }
  30. public int ReverseLimitSwitchPolarity { get; set; }
  31. public int ForwardLimitSwitchPolarity { get; set; }
  32. public int HomeSwitchPolarity { get; set; }
  33. public int HomeConfig { get; set; }
  34. public int ProportionalGain { get; set; }
  35. public int IntegralGain { get; set; }
  36. public int DerivativeGain { get; set; }
  37. public int IntegralLimit { get; set; }
  38. public int VoltageOffset { get; set; }
  39. public int Jerk { get; set; }
  40. public int FeedforwardVelocity { get; set; }
  41. public int FeedforwardAcceleration { get; set; }
  42. public int OffOnError { get; set; }
  43. }
  44. }