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