You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
567 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace ModbusDemo.Device
  7. {
  8. interface IModbusRTU
  9. {
  10. public bool[] ReadCoil(byte slaveAddress, ushort startAddress, ushort numberOfPoints);
  11. public bool WriteCoil(byte slaveAddress, ushort startAddress, bool[] data);
  12. public ushort[] ReadRegisters(byte slaveAddress, ushort startAddress, ushort numberOfPoints);
  13. public void WriteRegisters(byte slaveAddress, ushort startAddress, ushort[] data);
  14. }
  15. }