This commit is contained in:
@@ -2,14 +2,25 @@
|
||||
"PlcConnection": {
|
||||
"IpAddress": "127.0.0.1",
|
||||
"Port": 502,
|
||||
"TimeoutMs": 5000
|
||||
"TimeoutMs": 5000,
|
||||
"SlaveId": 1
|
||||
},
|
||||
"PlcRegisterAddresses": {
|
||||
// 物理量寄存器(保持寄存器)
|
||||
"Temperature": 1376, // 温度(可能为0.1℃单位)
|
||||
"Pressure": 1322, // 压力(可能为0.1kPa单位)
|
||||
"Resistance": 1422, // 铂丝电阻(可能为0.001Ω单位)
|
||||
// 设备计算结果寄存器(浮点数,占用2个寄存器)
|
||||
"ThermalConductivity": 40001,
|
||||
"ThermalDiffusivity": 40003,
|
||||
"TestTemperature": 40005,
|
||||
"StartCommand": 40010,
|
||||
"ResetCommand": 40011
|
||||
// 控制命令线圈(0x线圈)
|
||||
"StartCommand": 40010, // 启动测试(保持寄存器,非线圈,需特殊处理)
|
||||
"ResetCommand": 40011,
|
||||
// 新增线圈地址(Modbus 0x 地址,注意与保持寄存器区分)
|
||||
"PressureCalibrationCoil": 1300, // M1300 压力校准
|
||||
"ResistanceZeroCoil": 1301, // M1301 电阻归零
|
||||
"InletValveCoil": 5, // M5 进气
|
||||
"OutletValveCoil": 6 // M6 排气
|
||||
},
|
||||
"TestParameters": {
|
||||
"MeasurementCount": 10,
|
||||
|
||||
Reference in New Issue
Block a user