HomeKnowledge SharingDetailed explanation of how two sets of XB6-C01SP serial modules realize Modbus RTU master slave communication

Detailed explanation of how two sets of XB6-C01SP serial modules realize Modbus RTU master slave communication

2024-07-19

The XB6-C01SP from Solidot Technology is a slice 1-channel serial communication module that uses the X-bus bottom bus and is compatible with the XB6 series coupler modules from Solidot Technology. It can realize the three serial communication functions of Modbus master-slave station, Freeport, and transparent transmission. The module takes up little space, has simple data interaction processing, and can meet the serial communication requirements of different application scenarios.

ModbusRTU is a serial communication protocol, which is an implementation of the Modbus protocol. The Modbus protocol defines a master/slave structure, in which the master device can initiate requests and the slave device can respond to these requests. The most common ModbusRTU communication example in industrial sites is the reading and writing of smart instruments, inverters, and other devices.

↑ Solidot Technology slice serial communication module XB6-C01SP

1. System topology diagram

2. Two sets of serial port module parameter settings

1. Introduction to relevant parameters of the XB6-C01SP product manual of Solidot Technology

2. Parameter settings of slave 1 serial port module

3. Parameter settings of slave 2 serial port module

3. ModbusRTU Slave Mode Write Command and ModbusRTU Master Mode Read Command Examples

1. Solidot Technology XB6-C01SP Product Manual ModbusRTU Slave Mode Write Command Related Parameters Introduction

2. Solidot Technology XB6-C01SP Product Manual ModbusRTU Master Mode Read Command Related Parameters Introduction

3. Master-slave data reading and writing example

3.1 XB6-C01SP slave mode data analysis

Downlink data: W16-W29 (20 words/40 bytes in total)

Uplink data: W2-W15 (20 words/40 bytes in total)

3.2 XB6-C01SP master mode data analysis

Downlink data: W40-W53 (20 words/40 bytes in total)

Uplink data: W2C-W3F (20 words/40 bytes in total)