Modbus Slaves

Hello!
Can anyone give me an example of how to use the function mbsRegOut () which is to write Single Registers?

I am specially interested in the first parameter of the function, which is the register number, I need to know how to asign this number.

I appreciate the help!