Modbus limitations

Hi,
I want to know the limits on the Modbus RTU and TCP registers.

  • what is the maximum number of registers that can be read at once in TCP and RTU
  • what is the maximum group number of register groups
    Thank you