Files
CSI-Z420-Tablet-Multi-Funct…/Services/IPlcService.cs

15 lines
509 B
C#
Raw Normal View History

2026-05-05 15:31:24 +08:00
using System.Threading.Tasks;
namespace TabletTester2025.Services
{
public interface IPlcService
{
Task ConnectAsync();
Task<float> ReadFloatAsync(ushort startAddress);
Task WriteCoilAsync(ushort coilAddress, bool value);
Task<bool> ReadCoilAsync(ushort coilAddress);
Task WriteRegisterAsync(ushort registerAddress, ushort value);
Task<ushort[]> ReadHoldingRegistersAsync(ushort startAddress, ushort count);
bool IsConnected { get; }
}
}