Processing Bits

Some of the Modbus function codes are used to read or write bits (coils, discrete inputs). While a variable of data type WORD can be accessed easily, accessing a stream of bits is complex.

Data type BIT: Data Type ‘BIT’: Data Type ‘BOOL’