Modbus Conversion; Frame Formats - ZLG CANFDNET-400U Product User Manual

Rs232/485/422-can fd-bus intelligent protocol converter
Hide thumbs Also See for CANFDNET-400U:
Table of Contents

Advertisement

CANFDNET-400U
High-performance Four-channel CANFD Bus-to-Ethernet Converter User Manual
contains the frame representation of 8 bytes of valid data (0x11, 0x22, 0x33, 0x44, 0x55,
0x8
0x1
0x3
8
2
4
Table 4.24 Example of CAN format conversion standard frame
The following example is a CAN standard data frame. The ID is 0x3FF, frame
representation containing 6 bytes of valid data (0x11, 0x22, 0x33, 0x44, 0x55, 0x66)
0x0
0x0
0x0
6
0
0

4.4 Modbus Conversion

The Modbus protocol is a standard application layer protocol, which is widely
used in various industrial control scenarios. The protocol is open, real-time, and has a
good communication verification mechanism. It is ideal for scenarios with high
communication reliability requirements.
The converter uses the standard Modbus RTU protocol format on the serial port
side.Therefore, the converter not only allows you to use the Modbus RTU protocol,
but the converter can also directly interface with other devices that support the
Modbus RTU protocol.
On the CAN (CANFD) side, an easy-to-use segmented communication format is
developed to realize Modbus communication. The role of the converter is still protocol
verification and forwarding. It supports Modbus protocol transmission, not Modbus
master or slave host. The user can communicate according to the Modbus protocol.
Note: In this conversion mode, the preset CAN (CANFD) ID is invalid, because
the identifier (frame ID) sent at this time is filled with the address field in the Modbus
RTU serial frame.
4.4.1

Frame Formats

1. Serial bus frame
The serial interface adopts the standard Modbus RTU protocol, so the user frame
only needs to conform to this protocol. If the transmitted frame does not meet the Modbus
RTU format, the converter discards the received frame without converting it.
The Modbus RTU transmission format adopted by the converter is 1 start bit, 8 data
bits, and 1 stop bit. The maximum length of the Modbus RTU frame is the buffer length:
5,000 bytes.
2. CAN (CANFD) bus frame
If the device on the CAN (CANFD) side adopts the Modbus protocol, a reliable
transmission format needs to be defined for it. A segmentation protocol is used here,
which defines a method for segmenting and reorganizing information whose length is
greater than the maximum data length of a CAN (CANFD) message.
The formulation of the segmented transmission protocol refers to the transmission
protocol of segmented messages in DeviceNet. For CAN messages, the segmented
0x66, 0x77, 0x88)
0x5
0x7
0x1
0x2
6
8
1
0x0
0xF
0x1
0x2
3
F
1
©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
0x3
0x4
0x5
2
3
4
5
0x3
0x4
0x5
2
3
4
5
32
User Manual
0x6
0x7
0x8
6
7
8
0x6
0x0
0x0
6
0
0

Advertisement

Table of Contents
loading

Table of Contents