question: public void readData ( DataInput din ) throws IOException { status = din . readByte ( ) & 0xFF ; }
target:  readData -- input the Modbus message from din. If there was a header, such as for Modbus/TCP, it will have been read already.