This commit is contained in:
@@ -16,6 +16,14 @@ namespace MembranePoreTester.Communication
|
||||
public ushort PressureRegister { get; set; } // 不再使用,保留兼容
|
||||
public ushort WetFlowRegister { get; set; } // 湿膜流量寄存器起始地址
|
||||
public ushort DryFlowRegister { get; set; } // 干膜流量寄存器起始地址
|
||||
|
||||
|
||||
public ushort WetFlowRegister2 { get; set; } // 湿膜流量寄存器起始地址
|
||||
public ushort DryFlowRegister2 { get; set; } // 干膜流量寄存器起始地址
|
||||
|
||||
|
||||
public ushort WetFlowRegister3 { get; set; } // 湿膜流量寄存器起始地址
|
||||
public ushort DryFlowRegister3 { get; set; } // 干膜流量寄存器起始地址
|
||||
public double PressureFactor { get; set; } = 1.0; // 压力系数(单位换算)
|
||||
|
||||
|
||||
@@ -152,10 +160,10 @@ namespace MembranePoreTester.Communication
|
||||
Task<float> ReadPressureAsync(int stationId);
|
||||
|
||||
/// <summary> 读取湿膜流量(浮点数) </summary>
|
||||
Task<float> ReadWetFlowAsync();
|
||||
Task<float> ReadWetFlowAsync(int stationId);
|
||||
|
||||
/// <summary> 读取干膜流量(浮点数) </summary>
|
||||
Task<float> ReadDryFlowAsync();
|
||||
Task<float> ReadDryFlowAsync(int stationId);
|
||||
|
||||
/// <summary> 写入线圈(如 M 元件) </summary>
|
||||
Task WriteCoilAsync(ushort coilAddress, bool value);
|
||||
|
||||
Reference in New Issue
Block a user