writing a value to a register in the slave

hi,i am a newbie to arduino i am able to read a value from a particular address of the slave(energy meter).

code: // modbus_construct(packet, slave_id, function, address, data, register array) modbus_construct(packet1, 3, 4, 1382, 2, readRegs);

but now i want to write a value say 43920 to a particular address say 1560

any help would be appreciated

A bit more detail in this thread: http://forum.arduino.cc/index.php?topic=176142.0

The above example is for communication between arduino boards. my project is to write the value to the energy meter registers