Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Automatic address identification method by utilizing MODBUS communication protocol on RS-485

An RS-485, communication protocol technology, applied in the field of bus communication, can solve the problems of the same MODBUS address, abnormal bus communication, affecting the normal operation of devices on the bus, etc., to achieve the effect of easy implementation and ensure normal communication

Inactive Publication Date: 2016-02-10
BEIHAI SHENLAN SCI & TECH DEV
View PDF4 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in actual operation, due to various reasons, the devices connected to the RS-485 bus may have the same MODBUS address, which will cause the entire bus communication to be abnormal and affect the normal operation of the devices on the bus. Work

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Automatic address identification method by utilizing MODBUS communication protocol on RS-485
  • Automatic address identification method by utilizing MODBUS communication protocol on RS-485
  • Automatic address identification method by utilizing MODBUS communication protocol on RS-485

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] The invention is to solve the problem of automatically setting different MODBUS addresses when the same MODBUS address exists on the RS-485, so as to ensure the normal communication on the bus. Any device that uses MODBUS communication protocol to communicate on the RS-485 bus has two addresses, one is the ID address of the device, this ID address can be the device itself, such as the single-chip microcomputer in the communication function device, and some models (For example, ARM MCU) comes with a unique 4-byte hexadecimal ID address when leaving the factory, and some can write the unique ID address directly when writing the program. For example, when writing the program, you can directly write the unique ID address. Write a unique 4-byte hexadecimal ID address. In the microcontroller, once the ID address is written, it generally does not change. The other address is the device address specified by the MODBUS communication protocol, that is, the MODBUS address, which ha...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

An automatic address identification method by utilizing an MODBUS communication protocol on an RS-485 is characterized by, in a communication command, setting a broadcast register command FX; a controller sending the FX to the RS-485 bus with a search class command; receiving total ID of all devices connected to the bus; after receiving the FX from the controller, sending the total ID of the devices to the RS-485 bus; if detecting same values, carrying out ranking according to the size of the ID values of the devices, modifying the original MODBUS address into an MODBUS address set by a master controller and keeping the address according to the received MODBUS address; and if the ID values of the devices are different, giving no response. The method is simple and reliable and easy to carry out, and solves the problem that a conventional RS-485 bus cannot work normally when having same MODBUS addresses. The method can automatically set different MODBUS addresses, thereby ensuring normal communication of the bus.

Description

Technical field [0001] The present invention belongs to bus communication technology, and particularly relates to a method for automatically identifying addresses on RS-485 using MODBUS communication protocol. Background technique [0002] When using the MODBUS communication protocol on RS-485, a premise is that the address of the device connected to RS-485 (this address is collectively referred to as MODBUS address hereinafter) is one byte, and this address must be unique. Only the devices on the 485 bus can be identified by the unique MODBUS address to realize normal communication. However, in actual operation, due to various reasons, the equipment connected to the RS-485 bus may have the same MODBUS address, which will cause the entire bus to communicate abnormally and affect the normality of the devices on the bus. jobs. The patent of the invention "a method for automatically identifying addresses using MODBUS communication protocol on RS-485" is to solve the problem of aut...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/12
Inventor 姚普粮劳承毅黄镜彬林朝光龙光成韦甘铭欧世文
Owner BEIHAI SHENLAN SCI & TECH DEV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products