更新最新2026
This commit is contained in:
@@ -5,6 +5,8 @@ namespace TabletTester2025.Services
|
||||
public interface IPlcService
|
||||
{ //建立通讯链接
|
||||
Task ConnectAsync();
|
||||
//确认 PLC 当前可通讯,不能只依赖 TCP socket 状态。
|
||||
Task<bool> CheckConnectionAsync();
|
||||
//从 PLC 的指定起始地址,读取 1 个 32 位浮点型(float)数据。
|
||||
Task<float> ReadFloatAsync(ushort startAddress);
|
||||
//从 PLC 的指定起始地址,读取 1 个 32 位整型(int)数据。
|
||||
|
||||
Reference in New Issue
Block a user