Go Down

Topic: writing a value to a register in the slave (Read 315 times) previous topic - next topic

amit_183

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


amit_183

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

Go Up