public byte[] ReadCoilStatus(byte slaveAddress, string startAddress, ushort nuMBErOfPoints) { var frame = ReadCoilStatusMessage(slaveAddress, startAddress, nuMBErOfPoints); SerialAdaper.Write(frame, 0, frame.Length); Thread.Sleep(DELAY); var buffReceiver = SerialAdaper.Read(); if (buffReceiver.Length == 5) { ModbusExcetion(buffReceiver); } var data = new byte[buffReceiver.Length - 5]; Array.Copy(buffReceiver, 3, data, 0, data.Length); return(Bit.ToByteArray(Bit.ToArray(data))); }