U can create variable who is "connected" with modbus register (in Tools-> Protocol and variable settings), next, made switch/keyboard who change value. Atef change this variable will be automatically send via modbus.
In other way u can use C or LUA and here you can send this variable by command
Copz this link to browser, I have no permision to paste complete link here doc.gz-dc.com/VisualTFT/LUA/14_modbus.html