Yes, thanks, I have read the page behind the link.
In my project the arduino uno runs as a modbus slave. It has to respond to the modbus master requesting the holding register 20481 at function code 4, which corresponds to a Modicon address 420481.
I know, that the 2 byte address can cover up to 32767 registers. But when using the mentioned Lib I have to add the function code (4) in front of the 16 bit address. The results is a Modicon address which is bigger than an integer.
My problem is, that this is not compatible with the Modbus lib I mentioned above (it allows only Word data type for register definitions including function code (see above warning [-Woverflow]). Unfortunately I do not know how to correct the lib in such a way, that it will work.
My question is, if there is a Modbus Slave Lib which can handle 16 bit register definitions plus function code.