Ebyte E810-DTU User Manual page 21

Intelligent protocol converter can-rs485
Hide thumbs Also See for E810-DTU:
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,LTD
This allows to read register command for the next time
Write multiple registers (function code 16): When writing successfully, the written data will be sent to the CAN
bus.
Send command:
[Device Address] [Command No. 16 (0x10)] [The lower register address is required to be 8 bits high] [Low 8
bits] [The number of data is high 8 bits] [The number of data is lower 8 bits] [The lower data is 8 bits higher ] [Low
8 bits] [...] [...] [High 8 bits of CRC check] [Low 8 bits of CRC check]
Such as:
Write 5 bytes of data by writing a command: 01 10 00 00 00 05 0A 00 11 00 22 00 33 00 44 00 55 , write this
instruction to the special tool (Modbus CRC 16 calculator), calculate the CRC check value And added to the
instruction: 01 10 00 00 00 05 0A 00 11 00 22 00 33 00 44 00 55 47 84, sent in HEX format, 5 bytes of data will be
written. When written successfully, the data is sent to the CAN bus, ie the CAN bus will send 5 bytes of data: 11, 22,
33, 44, 55. In the CAN message, the frame information and the frame ID are configured by the user in advance.
Note: The register address of this command is only allowed to be 00 00 and is not allowed to be sent in format as
follows: 01 10 00
And send up to 8 bytes of data at a time:
Write 8 bytes of data by writing a command: 01 10 00 00 00 08 10 00 11 00 22 00 33 00 44 00 55 00 66 00 77
00 88, write this command to a special tool (Modbus CRC 16 calculator), Calculate the CRC check value and add it
to the instruction: 01 10 00 00 00 08 10 00 11 00 22 00 33 00 44 00 55 00 66 00 77 00 88 FE D5, sent in HEX
format, can write 8 bytes Data, when successfully written, will send the written data to the CAN bus, that is, the
CAN bus will send 8 bytes of data: 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88. In the CAN message, the
frame information and the frame ID are configured by the user in advance.
It is not allowed to send in an instruction format.as follows: 01 10 00 00 00
00 66 00 77 00 88
Copyright ©2012–2019,Chengdu Ebyte Electronic Technology Co., Ltd.
01
00 05 0A 00 11 00 22 00 33 00 44 00 55
00 99
E810-DTU(CAN-RS485) User Manual
09 12
00 11 00 22 00 33 00 44 00 55
21

Advertisement

Table of Contents
loading

Table of Contents