Holding register in microcontroller for Modbus RTU
A modbus holding register is just a 16 bit value. You can just allocate an array of uint16_t to store them.

There are open source MODBUS libraries available.