ArduinoModbus icon indicating copy to clipboard operation
ArduinoModbus copied to clipboard

ConfigureCoils start address issue

Open soniamaryc opened this issue 4 years ago • 1 comments

Hi, I have a question about the start address of the coil. Should it be always 0x00? If I change it to a different address, I am getting the '02 illegal data address' error. ModbusRTUServer.configureCoils(0x00, 4) No issues. ModbusRTUServer.configureCoils(0x01, 4) Error message!

soniamaryc avatar Jul 16 '21 16:07 soniamaryc

I don't like those answers, but: The way I understand the modbus specification the registers should always start at 00 https://modbus.org/docs/Modbus_Application_Protocol_V1_1b3.pdf

Nevertheless, noone implies that in register adress 0 your aplication presents useful data :-)

MarkusThur avatar Nov 23 '21 10:11 MarkusThur