This commit is contained in:
xyy
2026-05-15 21:10:42 +08:00
parent 10f5cbfd53
commit d85ee68e25
4 changed files with 204 additions and 232 deletions

View File

@@ -22,12 +22,22 @@ public class PlcConnectionConfig
public class PlcRegisterAddresses
{
// 物理量寄存器
public ushort Temperature { get; set; } = 1376;
public ushort Pressure { get; set; } = 1322;
public ushort Resistance { get; set; } = 1422;
// 计算结果寄存器(浮点数)
public ushort ThermalConductivity { get; set; } = 40001;
public ushort ThermalDiffusivity { get; set; } = 40003;
public ushort TestTemperature { get; set; } = 40005;
public ushort StartCommand { get; set; } = 40010;
public ushort ResetCommand { get; set; } = 40011;
// 线圈地址注意Modbus 线圈地址通常从 0 开始,但用户给出的 M1300 等可能是实际地址)
public ushort PressureCalibrationCoil { get; set; } = 1300;
public ushort ResistanceZeroCoil { get; set; } = 1301;
public ushort InletValveCoil { get; set; } = 5;
public ushort OutletValveCoil { get; set; } = 6;
}
public class TestParameters