Description
Modbus laser-ranging-sensor is a non-contact ranging product, which can be used for the measurement of various liquid levels and solid particle levels, as well as for the avoidance of obstacles by AGVs and robots. The probe is completely waterproof and can be applied to out door environment with strong anti-interference ability and high accuracy, it can be used for precise non-contact positioning, using Modbus-RTU protocol, and connecting with various PLC and configuration software.
software suite
factory default protocol parameters:
- communication Interface: RS485.
- Communication Format: 1 start bit, 8 data bits, no verification, 1 stop bit.
- Baud rate: 9600 (Can be changed by software, Max 19200bps).
- Address: 1 (can be changed by software).
- Communication mode: the monitoring host and the device adopt one-to-one (or one-to-many) master-slave query mode.
- Data Protocol: MODBUS-RTU
- measuring range: 5-180cm
- resolution: 1mm
- precision: 2mm (within 1 meter) 5mm(2 meters)
- power supply voltage: DC 9-36V
- pin definition: Red: 24V + Shield: GND yellow: 485A Green: 485B
- protection Grade: IP54
the laser head characteristics
- 940nm laser meets the class 1 operating conditions specified in IEC 60825-1:2014 3rd edition
- the measurement range has nothing to do with the reflection of the target object
- high optical crosstalk compensation
MODBUS Protocol command, detailed explanation, example
note: If not specified, the data in all the following commands is 16decimal, and the slave address is the default 01.
Register Address table:
register Address (16bit/word) |
read/write characteristics |
MODBUS address |
stored content |
00H |
read |
40001 |
first distance value |
|
caution,:Do not connect the power supply voltage to other terminals except the power supply, otherwise the module will be burnt.
Read data from the code:
read the first distance measurement data:
transmission: 01 03 00 00 00 02 C4 0B
returns: 01 03 04 00 00 00 00 FA 33
set station number (Function Code: 16 h)
for example, if the initial station number is 01, set the station number to 02.
Host: 01 16 00 00 00 02 C9 C8 (00 02 indicating that the setting of the station number)
slave return: 02 16 00 00 00 FF 08 7A (indicates that the setting is completed and the station number takes effect immediately)
for example, if the initial station number is 01, set the station number to 03.
Host: 01 16 00 00 00 03 08 08(00 03 indicates that the settings of the station number)
slave return: 03 16 00 00 00 FF 09 AB (indicates that the setting is completed and the station number takes effect immediately)
for example, if the initial station number is 03, set the station number to 04.
Host: 03 16 00 00 00 04 48 28(00 04 indicating that the setting of the station number)
slave return: 04 16 00 00 00 FF 08 1C (indicates that the setting is completed and the station number takes effect immediately)