|
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- namespace ModbusDemo.Device
- {
- public interface IModbusRTU:IDisposable
- {
- public bool[] ReadCoil(byte slaveAddress, ushort startAddress, ushort numberOfPoints);
-
-
- public bool WriteCoil(byte slaveAddress, ushort startAddress, bool[] data);
-
- public ushort[] ReadRegister(byte slaveAddress, ushort startAddress, ushort numberOfPoints);
-
-
- public bool WriteRegister(byte slaveAddress, ushort startAddress, ushort[] data);
-
- }
- }
|