The Mach 4 MODBUS plugin just maps I/O or registers to the device. That is basically ALL it does. There really isn't any MODBUS "programming" as in some special MODBUS script. The MODBUS plugin just maps Mach resources (registers and I/O) to the device. Then you can use any LUA scripting as you would with any other Mach resources from any other plugin.
I have no idea who wrote that scripting manual and why a MODBUS header was even included. Maybe the author thought there was some MODBUS specific scripting, included the header, and then forgot to remove it after they found out there wasn't any MODBUS specific scripting? I didn't write the scripting manual. But I did write the MODBUS plugin so believe me when I tell you that there is no MODBUS specific scripting.

In fact, you can do what you want with no scripting at all.
1. Setup the MODBUS plugin to have a function that writes to a holding (most likely) register. (Function 6, write single register). You will need to know the address of this register on your MODBUS device. You will also have to give a name for the Mach register that will be mapped to this MODBUS function. Writing a value of 123456 to this Mach register will use the Function 6 to write 123456 to the holding register you specified.
2. Drop a DRO on the screen. Then scroll to the "Register" property and find your MODBUS plugin register that you created.
3. When you type a value in the DRO, your holding register will be updated.
ALL Mach registers can be used in this manner. The only thing different here is that there is a MODBUS device baking the register.
Now, if you want something more fancy that this, like preloading the register with a value, you will have to do some non MODBUS specific scripting that the scripting manual most likely covers (sections 3.2.1 and 4.3 look pertinent).
I believe the rest of the manual documents things VERY well. I think that section 5.7 was left in there by mistake. We all make mistakes.
Steve