Skip to main content
2 of 2
added 1 character in body
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 registers 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