General

SEN0358: Distance register is always at 0xFFFF which is the default value

userHead PantelisIoan 2025-06-23 16:19:24 371 Views1 Replies

I am reading the sensor using and USB to RS485 Converter. 
I use Modbus RTU protocol and I read the registers with the open source app called qModMaster or ModbusScope.
I can read all the holding registers correctly and I can also write the registers.
However, I have a problem with the distance register which is always at 0xFFFF (hex) which is the default value as per the product wiki. 

Whats the problem here?
 

2025-06-24 00:10:11

You could automate this in Python using pymodbus or your Modbus GUI’s scripting interface.

If the sensor supports auto (continuous) mode, write bit2 = 0 and bit3 = 0 (e.g., cr = 0x04) to let it measure continuously each cycle.

userHeadPic ahsrab.rifat