I have been trying to read data from a weather sensor using MODBUS RTU through the RS485 pins on a Raspberry Pi. I am having trouble recognizing the syntax of the commands that I have to write. On the pymodbus readme it says:
read_coils(address, count=1, **kwargs)
Parameters:
address – The starting address to read from
count – The number of coils to read
unit – The slave unit this request is targeting
I am not able to understand whether I should type in the address in Hex format or DEC format, I am also not able to understand what the parameter "unit" means.
In the datasheet of the weather station, the following values are given as register addresses but I don't know which values go into the command Datasheet of weather station Can anyone please tell me in which format I am supposed to write the address, and also what I should write in the "unit" field
Thanks in advance to this amazing community