Chapter 4 Communication Setting 4.2 Communication Protocol ◎ Communication code can read N bytes (The maximum value of N is 125): function code is 03H For example: When the device address of the laser displacement is 01H and the register is 0x00 (Dec), the RTU mode command to read the current position is as follows. RTU mode Command message Reply message For example: When the device address of the laser displacement is 01H and the register is 7537H (absolute position), the RTU mode command to read the current position is as follows.
RTU mode Command message Reply message Laser Displacement Operating Manual 4-5 Address 0x01 Function code 0x03 Initial address (high) 0x00 Initial address (low) 0x00 Data entries In bytes (high) 0x00 Data entries In bytes (low) 0x02 CRC checksum (low) 0xC4 CRC checksum (high) 0x0B Address 0x01 Function code 0x03 Bits 0x04 Register 30001 (high) 0x01 Register 30001 (low) 0x00 Register 30002 (high) 0x00 Register 30002 (low) 0x04 CRC checksum (low) 0xFA CRC checksum (high) 0x0C Address 0x01 Function code 0x03 Initial address (high) 0x75 Initial address (low) 0x31 Data entries In bytes (high) 0x00 Data entries In bytes (low) 0x02 CRC checksum (low) 0x8F CRC checksum (high) 0xC8 Address 0x01 Function code 0x03 Bits 0x04 Register 30001 (high) 0x96 Register 30001 (low) 0x0E Register 30002 (high) 0x00 Register 30002 (low) 0x05 CRC checksum (low) 0x76 CRC checksum (high) 0x7B