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
Post a Comment