/**
ModbusMaster response timed out exception.
The entire response was not received within the timeout period,
ModbusMaster::ku8MBResponseTimeout.
@ingroup constant
*/
static const uint8_t ku8MBResponseTimedOut = 0xE2;
so either your wiring is wrong or the settings of the device do not fit to your code.
show real pictures with your current wiring.
We should also see the clearly the connection between the Device and the RS485 sensor.
also this note can be found int the manual
In addition to the D0 and D1 signal lines the bus MUSTMUSTMUSTMUST include a "Common" signal line to act as a
ground reference point for the data signals
Server Address: 001
Baud rate: 9600
Frame Format: 8E1
Transmission Mode: RTU
Transmission Delay: 00
Endianness of Strings: Normal
Endianness of 2-Byte Data: AB
Endianness of 4-Byte Data: ABCD
Endianness of 8-Byte Data: ABCD
Nothing strange there.
Did you control your wiring, every single jumper wire needs to be tight, replace if doubts.
Did you add gnd between device and rs485 (or arduino) gnd pin?
I can't identify your rs485 voltage from your photo, neither from wiring diagram.
So I ask second time, is it 5V?
Your setup should receive something from device already.
I suggest you to replace all the jumper wires with new ones to eliminate some odds.
Good weekend!
Thank you.
I tried again and ım receiving data but not the exact numbers.When ım supposed to receive 4 from the device ı get 16512 but when ı set the device 0 ı get 0 as well.I also tried 8 and ım receiving 16640.Something's wrong but ı couldn't find it.