public byte[] readI(int location, int length) { byte[] b = new byte[length]; int result = MyClient.EBRead(location, length, b); if (result == 0) { return(b); } else { string error = "Problem reading I, " + location + ", " + length; throw new wPlcException(error, result); } }