Help with modbus configs

i did it, but i cant understand it syntaxis, can you tell my what i have to do, some simple example?
i want to write reg 378 value 3840 by switch ON stat.
My item file has line:
Switch MySwitch “My Modbus Switch” (ALL) {modbus=“slave1:5”}
5 is a register address?