Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Implementation system and method for allocating addresses to slave devices through RS-485 bus

A technology of RS-485 and device allocation, which is applied in the direction of data exchange, transmission system, and bus network through path configuration. It can solve problems such as communication address setting defects, and achieve the effect of strong applicability, high efficiency and simple operation.

Pending Publication Date: 2022-03-29
XUNDI SCI & TECH HUBEI PROV
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0011] The purpose of the present invention is to provide a system and method for realizing the allocation of addresses to slave devices through the RS-485 bus, so as to solve the technical problems of RS-485 bus communication address setting defects in the prior art

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
  • Implementation system and method for allocating addresses to slave devices through RS-485 bus
  • Implementation system and method for allocating addresses to slave devices through RS-485 bus

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment 1

[0033] Combine below figure 1As shown, Embodiment 1 of the present invention provides an implementation system for assigning addresses to slave devices through the RS-485 bus, including a host 1 and multiple slaves 2, and the host and multiple slaves 2 are all It includes an RS-485 interface and communicates through the RS-485 bus. It is characterized in that: multiple slave machines 2 form an array of M rows and N columns, and the RS-485 bus of N slave machines 2 in each row The bus A in each row is connected to each other, and the slaves 2 in each row are connected to the bus A of the RS-485 bus of the host 1 through a pair of open points of a relay 3, and the RS of M slaves 2 in each column The bus B in the -485 bus is connected to each other, and the slave 2 in each column is connected to the bus B of the RS-485 bus of the host 1 through a pair of open points of a relay 3, according to the selected slave 2 in M Addresses are assigned to the row and column positions in the...

specific Embodiment 2

[0036] combine figure 2 As shown, Embodiment 2 of the present invention provides an implementation method for assigning addresses to slave devices through the RS-485 bus, comprising the following steps:

[0037] Sp1: open the address allocation software on host 1;

[0038] Sp2: After the system is powered on, select a slave 2 in the slave 2 array of M rows and N columns displayed on the interface of the address assignment software, and input the address to be written to this slave 2;

[0039] Sp3: Master 1 controls the relay 3 on the corresponding row and column to pull in according to the horizontal and vertical positions of the selected slave 2 in the slave 2 array, and the bus A and bus B of the master 1 are connected to the only slave The bus A and bus B of 2 are connected respectively, and the host 1 sends the address to be written to the selected slave 2 through the RS-485 bus;

[0040] Sp4: According to the sequence, select multiple slaves 2 in the slave 2 array on t...

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 discloses an implementation system and method for allocating addresses to slave devices through RS-485 buses, and belongs to the technical field of RS-485 bus control, a plurality of slave devices form an array with M rows and N columns, buses A in the RS-485 buses of N slave devices in each row are mutually connected, buses B in the RS-485 buses of the N slave devices in each row are mutually connected, and buses B in the RS-485 buses of the N slave devices in each row are mutually connected. The slave machines in each row are connected with the bus A of the RS-485 bus of the host through a pair of open points of one relay, the bus B of the RS-485 buses of the M slave machines in each column are connected with one another, and the slave machines in each column are connected with the bus B of the RS-485 bus of the host through a pair of open points of one relay. In the invention, the address can be written into the slave only by closing the relays of the row and the column where the slave needing to write the address is located, so that the sequential address writing of each slave is realized, the address writing of the multiple slave devices can be conveniently realized, the operation is simple, the efficiency is high, the working intensity can be reduced, the cost is relatively low, and the practicability is high. The method is suitable for all systems with RS-485 buses.

Description

technical field [0001] The invention relates to the technical field of RS-485 bus control, in particular to a realization system and method for assigning addresses to slave devices through the RS-485 bus. Background technique [0002] At present, in the measurement and control system composed of the RS-485 bus, the master-slave communication method is generally adopted, that is, a master (generally called the upper computer) and several (not more than 254) slaves (generally called the lower computer) ) communicate through the RS-485 bus. In the master-slave communication mode, the master always initiates the communication. After the slave receives the command, it obtains the control right of the bus, and then sends information to the bus. After the sending, the control right of the bus is returned to the master. When the host communicates with each slave device through the RS-485 bus, it is necessary to distinguish each slave device through the device identification. The ea...

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): H04L12/40H04L61/5038
CPCH04L12/40006
Inventor 杨明青杨耕王为敏聂佳佳
Owner XUNDI SCI & TECH HUBEI PROV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products