arduino-libraries/ArduinoModbus

ConfigureCoils start address issue

soniamaryc opened this issue · 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!

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 :-)