This commit is contained in:
xyy
2026-05-20 13:49:45 +08:00
parent d85ee68e25
commit 47bb9f1538
8 changed files with 372 additions and 132 deletions

View File

@@ -1,6 +1,6 @@
{
"PlcConnection": {
"IpAddress": "127.0.0.1",
"IpAddress": "192.168.1.10",
"Port": 502,
"TimeoutMs": 5000,
"SlaveId": 1
@@ -14,8 +14,8 @@
"ThermalConductivity": 40001,
"ThermalDiffusivity": 40003,
// 控制命令线圈0x线圈
"StartCommand": 40010, // 启动测试(保持寄存器,非线圈,需特殊处理)
"ResetCommand": 40011,
"StartCommand": 4, // 启动测试(保持寄存器,非线圈,需特殊处理)
"ResetCommand": 4,
// 新增线圈地址Modbus 0x 地址,注意与保持寄存器区分)
"PressureCalibrationCoil": 1300, // M1300 压力校准
"ResistanceZeroCoil": 1301, // M1301 电阻归零