MCardAxisGroupHardConfig.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows.Forms;
  8. namespace HardwareConfig
  9. {
  10. public class MCardAxisGroupHardConfig : BaseHardware
  11. {
  12. private ushort iAxisesCount = 3;
  13. [Browsable(false)]
  14. [Category("参数")]
  15. public int 编号 { get; set; } = 0;
  16. [Category("参数")]
  17. public ushort[] 轴卡编号 { get; set; } = new ushort[6] { 0,0,0,0,0,0};
  18. [Category("参数")]
  19. public string 轴组名称 { set; get; } = "轴组";
  20. [Category("参数")]
  21. public ushort 轴数
  22. {
  23. get { return iAxisesCount; }
  24. set
  25. {
  26. iAxisesCount = value;
  27. if (iAxisesCount < 1|| iAxisesCount > 6)
  28. {
  29. iAxisesCount = 1;
  30. MessageBox.Show($"轴组个数需为1-6", "Tips");
  31. }
  32. }
  33. }
  34. public ushort 插补坐标系 { get; set; } = 0;
  35. }
  36. }