Hi, first of all congrats for great job with ModRSsim2.
I'm testing it with client as follow:
* multiple ID (1 to 7)
* registers to read/write : from 1 to 13000
The ModRSsim2 return "illegal data address" on node id 6,11,17,21,26 (every 5th ID) for reading/writing registers address bigger than 2680
Please send me a screen capture of your "Advanced Emulation Settings" page. It can be viewed by clicking on the next-to-the-last button at the top right of the ModRSsim2 screen. I suspect that you may be using the "Use a separate set of registers for each station. Thanks.
you're right, I'm using "use a separate setof registers for each station" :
I need it to emulate multiple node ID on same IP address Slave
[image: tvnviewer_lXSWqmJGZt.png]
On Thu, Dec 2, 2021 at 4:09 AM Doug Lyons douglyons@users.sourceforge.net
wrote:
Related
Bugs:
#22Also, please turn on logging and capture some example communications for me and attached it here. Thanks.
I enabled logging but..where can I get log files?
On Thu, Dec 2, 2021 at 4:13 AM Doug Lyons douglyons@users.sourceforge.net
wrote:
Related
Bugs:
#22You should use the 'F1' key when ModRSsim2 is the active window to see the help file and search for "Log" to answer your questions. I have attached a picture here that shows what it says. The file will be named "DEBUG.TXT" and will be in the same directory where ModRSsim2 resides. Thanks.
OK. I believe that I see what is happening here. We only have a maximum of 65536 registers that we can use. If you are assigning 13000 registers per station then we can calculate the maximum stations that you can use as the integer of 65536 / 13000 which is 5. So you can only have 5 stations and so you get the error on station #6. There is a wrap-around effect probably that allows you to use numbers higher than this, that probably should be trapped and reported as an error. On the next revision of the program I will try and implement that. Also, on this Advanced Emulation Diaglog box I might add a calculation of the maximum stations available. It seems since your example was using less than 3000 that you might only use 3000 registers per station and then the program would emulate 65536 / 3000 = 21 stations. This is a program limitation and should probably be pointed out in the documentation and I will try and add it on the next revision. Thanks for your feedback and questions. Doug Lyons
Hi Doug, I realized to 5th station "illegal data address" was due to 13000
I set... Thanks for confirm. I get a workaround by voiding to use ID
5,11,16.... If in the future you'll get a fix, please inform me Do you have
a newsletter or similar I can register into?
Fabrizio
On Thu, Dec 2, 2021 at 6:18 PM Doug Lyons douglyons@users.sourceforge.net
wrote:
Related
Bugs:
#22Closing now. This is actually a feature request and not a bug. Thanks.