This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user