Hmm got it half working now ![]()
When i change the next code on the master between packet2 and PRESET_MULTIPLE_REGISTERS
// write 1 register starting at address 1
modbus_construct(packet2, 2, PRESET_MULTIPLE_REGISTERS, 1, 1, writeRegs);
And on the slave i change the last digit to 2
modbus_update_comms(9600, SERIAL_8N2, 2);
Then he sees indeed the command comming in 8).
But now the slave wont report back tot the master
.
*edit
Never mind
then i also have to change the read command to listen to module 2 ]
it works now! Time to test more.