PLCAxisGroupHardConfig.cs 1021 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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 PLCAxisGroupHardConfig : BaseHardware
  11. {
  12. private int iAxisesCount = 3;
  13. [Browsable(false)]
  14. [Category("参数")]
  15. public int 编号 { get; set; } = 0;
  16. [Category("参数")]
  17. public int [] PLC编号 { get; set; } = new int[6] { 0, 0, 0, 0, 0, 0 };//0;
  18. [Category("参数")]
  19. public string 轴组名称 { set; get; } = "轴组";
  20. [Category("参数")]
  21. public int 轴数
  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. }
  35. }