There are numerous functions available in the modbus protocol, yet I haven't found any use for most besides the basic read and write commands.
we will only be looking at implementations of function 3 - read multiple registers and function 16 - write multiple registers commands.