Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

is a pointer to an array of 8 bit values that will receive the value of all the coils you are reading. The size of the array needs to be at least (nbr_coils - 1) / 8 + 1. The format of the table is as follows:

                       MSB                               LSB
                       B7   B6   B5   B4   B3   B2   B1   B0
                       -------------------------------------
       p_coil_tbl[0]   #8   #7                            #1
       p_coil_tbl[1]   #16  #15                           #9
            :
            :

nbr_coils

specifies the number of coils you want to read from the slave.

...