java - Jamod Modbus Slave - assign registers -


i tried modbus slave program jamod library.i can set input register with:

spi.addinputregister(new simpleinputregister(45)); 

i can set 3 input registers with:

spi.addinputregister(new simpleinputregister(45)); spi.addinputregister(new simpleinputregister(45)); spi.addinputregister(new simpleinputregister(4563)); 

this registers 0,1 , 2. how can set registers register address 100,101,102? have add fake registers?

greets andreas

you can create "fake" registers adding registers in loop. won't create hole in modbus map, "fake" registers usable masters , won't cause illegal address exception responses.

i have modified j2mod, fork of jamod, supports sparse modbus maps of svn revision 95. j2mod available on sourceforge.


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -