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.
Problem Reading Modbus Registers
-
- Posts: 46
- Joined: Wed Jul 18, 2018 6:33 pm
- Has thanked: 18 times
- Been thanked: 3 times
- Contact:
Problem Reading Modbus Registers
- Attachments
-
- AtMega2560 Modbus Test.fcfx
- (87.37 KiB) Downloaded 201 times
I'm just trying to keep learning & growing in a infinite loop... unless I wanna break. Cheers
Steven
Steven
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Problem Reading Modbus Registers
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 46
- Joined: Wed Jul 18, 2018 6:33 pm
- Has thanked: 18 times
- Been thanked: 3 times
- Contact:
Re: Problem Reading Modbus Registers
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
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
I'm just trying to keep learning & growing in a infinite loop... unless I wanna break. Cheers
Steven
Steven
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Problem Reading Modbus Registers
Hi Steven,
What version of Flowcode are you using?
What version of Flowcode are you using?
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 46
- Joined: Wed Jul 18, 2018 6:33 pm
- Has thanked: 18 times
- Been thanked: 3 times
- Contact:
Re: Problem Reading Modbus Registers
Currently using Flowcode V8...Benj wrote: What version of Flowcode are you using?
I'm just trying to keep learning & growing in a infinite loop... unless I wanna break. Cheers
Steven
Steven
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Problem Reading Modbus Registers
Hi Steven,
I've sent you a PM.
I've sent you a PM.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel