Go Down

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


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

// 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


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

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131