setup modbus structure and implement crc calculation