终端一体化运控平台
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.

пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using BPASmart.Model;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Collections.ObjectModel;
  5. using System.IO.Ports;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows;
  10. namespace BPASmart.Model
  11. {
  12. public class ModbusRtu : ICommunicationDevice
  13. {
  14. /// <summary>
  15. /// 串口端口
  16. /// </summary>
  17. public string ComSerialPort { get; set; }
  18. /// <summary>
  19. /// 波特率,110,300--115200(从300开始乘以2,直到结果等于115200)
  20. /// </summary>
  21. public string BaudRate { get; set; } = "9600";
  22. /// <summary>
  23. /// 数据位,默认为 8
  24. /// </summary>
  25. public int DataBit { get; set; } = 8;
  26. /// <summary>
  27. /// 停止位,默认为 1
  28. /// </summary>
  29. public int StopBit { get; set; } = 1;
  30. /// <summary>
  31. /// 站号,默认为 1
  32. /// </summary>
  33. public int StationNo { get; set; } = 1;
  34. /// <summary>
  35. /// 奇偶校验,无,奇校验,偶校验
  36. /// </summary>
  37. public string Parity { get; set; }
  38. }
  39. }