更新2026

This commit is contained in:
GukSang.Jin
2026-05-16 16:58:57 +08:00
parent c4966677b9
commit 9de217d2ff
15 changed files with 785 additions and 309 deletions

View File

@@ -15,8 +15,10 @@ namespace TabletTester2025.Services
Task<bool> ReadCoilAsync(ushort coilAddress);
//向 PLC 的指定寄存器地址,写入 1 个 16 位无符号整型ushort数据。
Task WriteRegisterAsync(ushort registerAddress, ushort value);
//向 PLC 的指定起始地址,写入 1 个 32 位浮点型float数据。
Task WriteFloatAsync(ushort startAddress, float value);
//批量读取 PLC 的保持寄存器数据,是工业通信中最高效的批量读取方法。
Task<ushort[]> ReadHoldingRegistersAsync(ushort startAddress, ushort count);
bool IsConnected { get; }
}
}
}