Go Down

Topic: writing a value to a register in the slave (Read 330 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
 


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!

Arduino
via Egeo 16
Torino, 10131
Italy