终端一体化运控平台
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
954 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.DosingSystem.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. }