Menu

how to update a Holding Register

Anonymous
2017-05-09
2017-05-23
  • Anonymous

    Anonymous - 2017-05-09

    I have been playing with a C# program where I want ot "publish" values via mobus and I have it working with Easy Mobus.
    I can load the holding registers pretty easy by :
    modbusServer.holdingRegisters[1] = 123456;

    how to I update the value within the program?
    modbusServer.holdingRegisters[1] = 654321;
    Does not seem to effect the reading

     
    • Rossmann Engineering

      Hi,
      this is the correct way to change a holding Register programatically.
      Take care that the Modbus connection does not overwrite your register, and that the Registers, you request to read by the client, are shifted by "-1". If you want to read holding Register "1", you have to send a request Read Holding Registers with startingAddress "0".

       

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB