A method for automatically assigning modbus RTU bus address
A technology of automatic allocation and bus address, applied in the direction of bus network, data exchange through path configuration, digital transmission system, etc., can solve problems such as low efficiency and difficulty in modifying addresses, improve efficiency, increase freedom, and increase subjective initiative Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0035] combined with figure 1 and figure 2 Shown, a kind of Modbus RTU bus address automatic allocation method comprises the following steps:
[0036] 1) The Modbus master station starts automatically when it is powered on, reads the local configuration information, sets its own address to a fixed site address 0x00, and periodically sends broadcast messages to check whether there is a Modbus slave station connected;
[0037] 2) Waiting for the online Modbus slave station to access the network after the address assignment of the previous Modbus slave station is successful, and after receiving the broadcast message sent by the Modbus master station, send a self-information broadcast;
[0038] 3) The Modbus master station receives the self-information broadcast of the Modbus slave station, assigns an address for the Modbus slave station waiting to be assigned an address or confirms the address for the Modbus slave station with a pre-allocated address, and broadcasts a communica...
Embodiment 2
[0053] On the basis of Example 1, in conjunction with the attached figure 1 and figure 2 As shown, in the step 1), the destination address of the broadcast message is 0xFF, and the information of the broadcast message includes the station address and the attribute of the Modbus slave station existing on the RS-485 bus update cycle and the RS-485 bus.
[0054] The destination address of the broadcast message is set to 0xFF, which ensures that the Modbus slave station can receive the information sent by the Modbus master station, and understand the site address and attributes of the Modbus slave station on the network, but only the Modbus slave station waiting to go online will respond , so that the Modbus master station can check whether there are Modbus slave stations waiting to go online.
Embodiment 3
[0056] On the basis of embodiment 2, in conjunction with the attached figure 1 and figure 2 As shown, the Modbus slave station waiting to go online in the step 2) includes: a. the Modbus slave station whose address is pre-allocated in the upper computer by the user, and b. the Modbus slave station which waits for the Modbus master station to assign an address.
[0057] The Modbus slave station with the pre-allocated address set by the user on the upper computer is the Modbus slave station with the pre-allocated address, and the Modbus slave station waiting for the address assigned by the Modbus master station is the Modbus slave station with the address to be assigned. In this way, the user can use a dedicated The upper computer sets the site address of the Modbus slave station or the Modbus master station automatically assigns the site address to the Modbus slave station, which increases the freedom of user choice.
[0058] Further preferably, the user sets his own site add...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap