modbus rtu协议crc检测默认为true

This commit is contained in:
2248356998 qq.com
2023-03-06 15:15:48 +08:00
parent 17624c1e4c
commit 7fef7a933d
2 changed files with 2 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ namespace ThingsGateway.Modbus
[DeviceProperty("端口", "")] public int Port { get; set; } = 502;
[DeviceProperty("默认站号", "")] public byte Station { get; set; } = 1;
[DeviceProperty("读写超时时间", "")] public ushort TimeOut { get; set; } = 3000;
[DeviceProperty("CRC检测", "")] public bool Crc16CheckEnable { get; set; }
[DeviceProperty("CRC检测", "")] public bool Crc16CheckEnable { get; set; } = true;
public override void AfterStop()
{

View File

@@ -26,7 +26,7 @@ namespace ThingsGateway.Modbus
[DeviceProperty("端口", "")] public int Port { get; set; } = 502;
[DeviceProperty("默认站号", "")] public byte Station { get; set; } = 1;
[DeviceProperty("读写超时时间", "")] public ushort TimeOut { get; set; } = 3000;
[DeviceProperty("CRC检测", "")] public bool Crc16CheckEnable { get; set; }
[DeviceProperty("CRC检测", "")] public bool Crc16CheckEnable { get; set; } = true;
public override void AfterStop()
{
_plc.Disconnect();