Pages: [1]   Go Down
Author Topic: writing a value to a register in the slave  (Read 278 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Atlanta, USA
Offline Offline
Edison Member
*
Karma: 53
Posts: 1790
AKA: Ray Burne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: