BeckhoffAxis.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Xml.Schema;
  7. using System.Xml.Serialization;
  8. namespace MECF.Framework.Common.Beckhoff.IOAxis
  9. {
  10. public class BeckhoffAxis
  11. {
  12. [XmlAttribute(AttributeName = "Name", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  13. public string Name { get; set; }
  14. [XmlAttribute(AttributeName = "MotorType", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  15. public string MotorType { get; set; }
  16. [XmlAttribute(AttributeName = "COEAddress", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  17. public string COEAddress { get; set; }
  18. [XmlAttribute(AttributeName = "COEPort", Form = XmlSchemaForm.Unqualified, DataType = "int")]
  19. public int COEPort { get; set; }
  20. [XmlAttribute(AttributeName = "DebugLogging", Form = XmlSchemaForm.Unqualified, DataType = "boolean")]
  21. public bool DebugLogging { get; set; }
  22. [XmlElement(Type = typeof(BeckhoffAxisInput), ElementName = "Input", IsNullable = false, Form = XmlSchemaForm.Qualified)]
  23. public List<BeckhoffAxisInput> Inputs { get; set; }
  24. [XmlElement(Type = typeof(BeckhoffAxisOutput), ElementName = "Output", IsNullable = false, Form = XmlSchemaForm.Qualified)]
  25. public List<BeckhoffAxisOutput> Outputs { get; set; }
  26. public int MotorDriveDirection { get; set; }
  27. public int EncoderFeedbackDirectionMValue { get;set; }
  28. public int EncoderFeedbackDirectionNValue { get; set; }
  29. public int ReverseLimitSwitchPolarity { get; set; }
  30. public int ForwardLimitSwitchPolarity { get; set; }
  31. public int HomeSwitchPolarity { get; set; }
  32. public byte HomingMethod { get; set; }
  33. public int HomeConfig { get; set; }
  34. public int HomingOffset { get; set; }
  35. public int HomingSpeedHomeSwitch { get; set; }
  36. public int HomingSpeedEncoderIndex { get; set; }
  37. public int HomingAccelDecel { get; set; }
  38. public int HomingTimeOut { get; set; }
  39. public int ProportionalGain { get; set; }
  40. public int IntegralGain { get; set; }
  41. public int DerivativeGain { get; set; }
  42. public int IntegralLimit { get; set; }
  43. public int ErrorLimit { get; set; }
  44. public int VoltageOffset { get; set; }
  45. public int ReverseSoftwareLimit { get; set; }
  46. public int ForwardSoftwareLimit { get; set; }
  47. public int Speed { get; set; }
  48. public int Acceleration { get; set; }
  49. public int Deceleration { get; set; }
  50. public int Jerk { get; set; }
  51. public int FeedforwardVelocity { get; set; }
  52. public int FeedforwardAcceleration { get; set; }
  53. public int OffOnError { get; set; }
  54. public int NegativeTorqueLimit { get; set; }
  55. public int PositiveTorqueLimit { get; set; }
  56. }
  57. }