smarmengol / Modbus-Master-Slave-for-Arduino

Modbus Master-Slave library for Arduino
GNU Lesser General Public License v2.1
473 stars 328 forks source link

Can somebody explain how the data array is divided between registers and coils? #53

Open Peterr-K opened 4 years ago

Peterr-K commented 4 years ago

Hi

can somebody please explain how in the Slave mode the only data array uint16_t au16data[16] is divided between coils and registers? If I define 16 elements field, how I know which part is for coils and which for registers? Also coils are written by bits in each element or is like whole element is used just to hold single coil?

thank You! still this is the best arduino Modbus library, as the official one did not fit in the Nano memory.