48 lines
1.5 KiB
JSON
48 lines
1.5 KiB
JSON
{
|
||
"PlcConnection": {
|
||
"IpAddress": "127.0.0.1",
|
||
"Port": 502,
|
||
"TimeoutMs": 5000,
|
||
"SlaveId": 1
|
||
},
|
||
"PlcRegisterAddresses": {
|
||
// 物理量寄存器(保持寄存器)
|
||
"Temperature": 1376, // 温度(可能为0.1℃单位)
|
||
"Pressure": 1322, // 压力(可能为0.1kPa单位)
|
||
"Resistance": 1422, // 铂丝电阻(可能为0.001Ω单位)
|
||
// 设备计算结果寄存器(浮点数,占用2个寄存器)
|
||
"ThermalConductivity": 40001,
|
||
"ThermalDiffusivity": 40003,
|
||
// 控制命令线圈(0x线圈)
|
||
"StartCommand": 40010, // 启动测试(保持寄存器,非线圈,需特殊处理)
|
||
"ResetCommand": 40011,
|
||
// 新增线圈地址(Modbus 0x 地址,注意与保持寄存器区分)
|
||
"PressureCalibrationCoil": 1300, // M1300 压力校准
|
||
"ResistanceZeroCoil": 1301, // M1301 电阻归零
|
||
"InletValveCoil": 5, // M5 进气
|
||
"OutletValveCoil": 6 // M6 排气
|
||
},
|
||
"TestParameters": {
|
||
"MeasurementCount": 10,
|
||
"IntervalSeconds": 30,
|
||
"PlatinumWireLength": 0.04,
|
||
"PlatinumWireDiameter": 0.00006,
|
||
"ReportOutputPath": "Reports\\",
|
||
"DefaultSampleVolume": 40.0,
|
||
"DefaultPressure": 0.0,
|
||
"UsePressure": false,
|
||
"ReferenceLiquid": "蒸馏水",
|
||
"ReferenceConductivity": 0.606,
|
||
"CalibrationCoefficients": {
|
||
"PressureCoefficient": 1328,
|
||
"PressureProtection": 1332,
|
||
"TemperatureCoefficient": 1378,
|
||
"ResistanceCoefficient": 1428
|
||
}
|
||
},
|
||
"AppSettings": {
|
||
"WindowWidth": 1024,
|
||
"WindowHeight": 768,
|
||
"ThemeColor": "Blue"
|
||
}
|
||
} |