Skip to main content
1 of 2
Juraj
  • 18.3k
  • 4
  • 32
  • 50

In ModbusRtu.h:

#define MAX_BUFFER 64 //!< maximum size for the communication buffer in bytes

27*2=54 bytes for register and 10 for header and crc.

Change the MAX_BUFFER define. On Mega you have enough RAM.

btw: RS485 doesn't imply mandatory use of Modbus. You could use your own protocol.

Juraj
  • 18.3k
  • 4
  • 32
  • 50