RS485 automatic address generation method

A RS485 and address generation technology, which is applied in the direction of instrumentation and electrical digital data processing, etc., can solve problems such as plug-and-play failure, complex implementation, and impact on RS485 work efficiency, so as to avoid duplicate address allocation, avoid loss, and improve The effect of communication efficiency

Inactive Publication Date: 2020-12-15
南京华天科技发展股份有限公司
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] However, the existing method is complex in terms of process and cannot realize plug-and-play. After connecting to a new

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
  • RS485 automatic address generation method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0026] The present invention has designed a kind of RS485 automatic address generating method, is used for RS485 main equipment to each slave equipment connected on its RS485 bus line, realizes the allocation of address, among the practical application, such as figure 1 As shown, the following steps A to G are executed in real time or at a preset period.

[0027] Step A. Based on the RS485 bus, the RS485 master device broadcasts the slave device address generation command, and then enters step B.

[0028] Step B. Define each slave device on the RS485 bus that has not received address confirmation information as the slave device whose address is to be confirmed, and each slave device whose address is to be confirmed responds to the obtained slave device address generation command to generate an address that meets the RS48...

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

The invention relates to an RS485 automatic address generation method, which adopts a brand-new workflow design, does not need to configure each address in advance, can discover each slave device accessed to an RS485 bus in real time during RS485 communication application, generates a corresponding address by each slave device itself, and sends the corresponding address to an RS485 master device for analysis to obtain confirmation of each slave device corresponding to a unique address. Repeated address allocation is avoided, slave device addresses are allocated, a communication mechanism of the RS485 bus is considered, delay sending of the slave devices to the addresses of the slave devices is designed, loss of sent address data is avoided, in practical application, allocation of new slavedevice addresses is achieved in real time, and RS485 communication efficiency is effectively improved.

Description

technical field [0001] The invention relates to an RS485 automatic address generation method, belonging to the technical field of RS485 bus address generation. Background technique [0002] In the field of industrial control, the RS485 bus is widely used. Because the RS485 bus can realize one-to-many communication, it can connect up to 255 devices at the same time, and each device is managed by a corresponding address. For this reason, the prior art has different implementation methods. There are mainly the following [0003] - Preset the address of each device and save it in the slave device; [0004] - Use DIP switches to set the address of each device by the user; [0005] - Provide additional interface configuration and save in slave device. [0006] However, the existing method is complex in terms of process, and cannot realize plug-and-play. After connecting to a new device, it needs to be reconfigured before it can be used, which greatly affects the actual communic...

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
IPC IPC(8): G06F13/362G06F13/42
CPCG06F13/362G06F13/4282G06F2213/0002
Inventor 顾雷邢介华高巍
Owner 南京华天科技发展股份有限公司
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
Try Eureka
PatSnap group products