更新dlt645地址说明

This commit is contained in:
Kimdiego2098
2023-08-27 17:16:59 +08:00
parent 58814f7f74
commit 9aceed00bf

View File

@@ -70,7 +70,24 @@ public class DLT645_2007 : ReadWriteDevicesSerialBase
[Description("通讯地址")]
public string Station { get; set; }
/// <inheritdoc/>
public override string GetAddressDescription() => base.GetAddressDescription() + Environment.NewLine;
public override string GetAddressDescription()
{
var str = """
-----------------------------------------
02010100 A相电压
02020100 A相电流
02030000
00000000 ()
00010000 ()
""";
return base.GetAddressDescription() + Environment.NewLine + str;
}
/// <inheritdoc/>
public override async Task<OperResult<byte[]>> ReadAsync(string address, int length, CancellationToken token = default)
{