I'm testing Modubs RTU example.
Whenever I tried to read Input Register value.
I can see 02 Illegal Data Address.
I'm using Modbus Poll window program to check Modbus communication.
other functions are working well such as Coils, Discrete Input, Holding Registers.
I use code from example here:
https://github.com/espressif/esp-idf/bl ... in/slave.c
02 illegal Data Address from Modbus Slave Example
-
chikichaka
- Posts: 14
- Joined: Tue Aug 09, 2022 7:53 am
-
ESP_alisitsyn
- Posts: 221
- Joined: Fri Feb 01, 2019 4:02 pm
- Contact:
Re: 02 illegal Data Address from Modbus Slave Example
@chikichaka ,
The slave configures two register areas for input registers:
Reg input area 1: 0, length: 8
Reg input area 2: 158, length: 8
If you configure Modbus poll to read these registers you will get the data correctly.
The slave configures two register areas for input registers:
Reg input area 1: 0, length: 8
Reg input area 2: 158, length: 8
If you configure Modbus poll to read these registers you will get the data correctly.
Re: 02 illegal Data Address from Modbus Slave Example
Hey, could you please send me a screenshot of your configuration? I'm working with the same code as you, but I'm not getting any results in Modbus Poll. Also, could you let me know what hardware you're using? That would really help. Thanks a lot!
Who is online
Users browsing this forum: No registered users and 1 guest