Page 1 of 1

Problem Reading Modbus Registers

Posted: Mon Feb 18, 2019 7:40 pm
by Steven_SS
I am having an issue working on this MEGA2560 board trying to read Modbus Slave registers.
The strange deal about it, is that everything looks fine; the slave addressing, baud rate, COM Port, addressing of registers.
I've tested it with another MEGA2560 board and same result. Could it potentially be something in the Modbus module?

What could be causing this issue and how can I resolve it? Thanks
I've attached a test program that I'm using.

Re: Problem Reading Modbus Registers

Posted: Mon Feb 18, 2019 10:12 pm
by Benj
Hi Steven,

What sorts of problems have you been seeing so I can try and narrow things down? I've had a look through your program and not spotted anything obvious so far.

Re: Problem Reading Modbus Registers

Posted: Tue Feb 19, 2019 7:17 pm
by Steven_SS
Hi Benj,
The program compiles fine and it uploads to the board fine, then I open up the Modbus client-server and set up the registers from 40001-so on.
When I run it to read the Modbus slave registers... no values appear, no reply is returned, nothing is coming back through the RX... :(

[Edit]Is it possible that I could get the raw code of the modbus slave module? I'm running out of ideas and thinking it might be something in there

Re: Problem Reading Modbus Registers

Posted: Thu Feb 21, 2019 10:40 am
by Benj
Hi Steven,

What version of Flowcode are you using?

Re: Problem Reading Modbus Registers

Posted: Thu Feb 21, 2019 6:46 pm
by Steven_SS
Benj wrote: What version of Flowcode are you using?
Currently using Flowcode V8...

Re: Problem Reading Modbus Registers

Posted: Fri Feb 22, 2019 10:33 am
by Benj
Hi Steven,

I've sent you a PM.