dev_ori.ino (5.7 KB)
test_multi_Modbus.ino (2.6 KB)
#define MAX485_DE 6 // I do not use this port since I only receive data
Wrong, you use Modbus and the protocol needs two-way communication.
In dev_ori.ino the RS-485 callbacks are not configured. There's just a comment that might indicate they were once there but have gone for whatever reason.
result = node.readHoldingRegisters(0x5000, 2);
You really have a Modbus device that has a register at address 20480? Do you have a link to the manual of that device?
You obviously don't speak English natively. Unfortunately your subject sentence doesn't make much sense. I understood that you have some problems with the code but didn't find out what these problems are. May we ask for a more in-depth explanation?
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.