Modbus RTU Read_Coil & Read_Status Example
Miq1 opened this issue · comments
Discussed in #240
Originally posted by Thermelgy-Repo November 30, 2022
Dear Team,
Thankq so much for your efforts to make this an amazing library. I have one suggestion to please include an example program to Read the Coil status (F01), Input Status (F02) so that it will be easy to understand the concept of reading using Coil datatype.
Will do!
There is in fact one example for coil operations: TCPcoilExample that covers the 0x01 (READ_COIL), 0x05 (WRITE_COIL) and 0x0F (WRITE_MULT_COILS) function codes.
Function code 0x02 (READ_DISCR_INPUTS) is not different at all from 0x01, it has the same parameters and functionality.