Error : Modbus Exception 2 : Illegal Data Address

Dear all,

I am trying to use Modbus Read to read an address data.
Its strange that this error comes because before making working on Nodered I tested the address on Modbus poll and it shows the value. But with Nodered its showing address error which I am sure address is right.

I am attaching the screen shots of the settings i made but I write down here too for easy reading.

Error Modbus Exception2: Illegal Data address ( I doubt that my address is wrong as I tested in Modbus poll.

Read Node Setting - FC 3: Read Holding Register, Address : 845 , Quantity : 1, Poll rate : 1 second ( I tried with changing the quantity from 1 to different values like 2 ,3 4, 5 but still same error)

Modbus Client Node Setting - Type : Serial Expert , Serial Port : COM3, Serial Type : RTU Buffered, Baud Rate : 9600 , Data Bits : 8 , Stop Bits : 1, Parity : Even
(Serial Type I tried RTU also but same result)

In Modbus Poll same setting have been tested before proceeding to Nodered and work perefectly.
screen shot of modbus poll also attached.

Please guide me with your expert advice.

Hello .. im not an expert with Modbus but i notice in your Modbus Poll software that you used the hex address instead of decimal ..


the modbus nodes dont have that option and you must use the decimal value of the register address.
2118 or 42118 have you tried that ?


Good pick up, Hex != dec. Give this a go :wink: And sometimes a 1 offset will give grief as well.

1 Like

wow thanks yes its working now...

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.