终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 regels
960 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Collections.ObjectModel;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using BPA.Helper;
  8. namespace BPASmartClient.DosingSystemSingle.ViewModel
  9. {
  10. public class ConveyerBeltManualViewModel : NotifyBase
  11. {
  12. public ConveyerBeltManualViewModel()
  13. {
  14. for (int i = 0; i < Json<DevicePar>.Data.BaseParModel.ConveyerBeltCount; i++)
  15. {
  16. ConveyerBeltModels.Add(new ConveyerBeltModel()
  17. {
  18. Name = $"输送带{i + 1}控制",
  19. Num = i + 1,
  20. Speed = GlobalDevice.MotorSpeed[i],
  21. ConveyerBeltWork = GlobalDevice.MotorControl.GetBitValue((byte)(i + 1))
  22. });
  23. }
  24. }
  25. public ObservableCollection<ConveyerBeltModel> ConveyerBeltModels { get; set; } = new ObservableCollection<ConveyerBeltModel>();
  26. }
  27. }