Method for allocating addresses from node device in Modbus communication network

A node device and address allocation technology, which is applied in the bus network, data exchange through path configuration, electrical components, etc., can solve the problem of inability to check whether the slave node device address allocation is completed correctly.

Inactive Publication Date: 2008-11-19
HARBIN INST OF TECH
View PDF0 Cites 39 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The technical problem to be solved by the present invention is to provide a method for assigning addresses to slave node devices in a Modbus communication network, which overcomes the shortcoming that it is impossible to check whether the address assignment of slave node devices is completed correctly 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
  • Method for allocating addresses from node device in Modbus communication network
  • Method for allocating addresses from node device in Modbus communication network
  • Method for allocating addresses from node device in Modbus communication network

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The present invention provides a method for assigning addresses to slave node devices in a Modbus communication network. By customizing a kind of address polling message, the master node device periodically sends the address polling message to the slave node device. To verify whether the slave node address assignment is completed correctly.

[0034] The method for assigning addresses to slave node devices in the Modbus communication network described in the embodiment of the present invention is based on the Modbus communication system, and the Modbus communication system includes a master node device and at least one slave node device, and the master node device and the slave node devices are respectively connected to the Modbus bus. like figure 1 As shown, both the master node device and the slave node device include a microprocessor, a keyboard, a display unit and a communication unit.

[0035] Preferably, the microprocessor may be a single-chip microcomputer with ...

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 a method which allocates addresses for the slave node devices in the Modbus communication network; the method includes the steps that the master node device and the slave node devices are initialized; the address of a slave node device is set and the number of the slave node devices is set; the master node device sends the address polling message to each slave node device periodically; when a slave node device receives the address polling message with the data which is the same as the address of the slave node device, the slave node device returns a message which carries the address of the slave node device to the master node device; when the master node device judges that the address of the slave node device is different from the stored address of the master node device, the master node device stores the address of the slave node device; when the number of the addresses of the slave node devices stored in the master node device is equal to the number of the slave node devices, the flow ends. The method which allocates addresses for the slave node devices in the Modbus communication network can conveniently examine that if the address allocation of the slave node devices is completed correctly.

Description

technical field [0001] The invention relates to a method for allocating addresses, in particular to a method for allocating addresses for slave node devices in a Modbus communication network. Background technique [0002] Fieldbus technology has been increasingly used in industrial sites. The Modbus bus is more and more widely used because of its advantages such as simple protocol, easy implementation, high cost performance and high reliability. [0003] The Modbus communication network based on the serial link is a master-slave network, and only one master node and a maximum of 247 slave nodes are allowed in the serial network. In the Modbus communication network, the command / response communication method is adopted. The master station sends out a request, and the slave station responds to the request and sends back data or status information. The slave station cannot actively send information. The various information frame formats defined by the MODBUS protocol describe ...

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/12H04L12/40
Inventor 佟为明林景波刘勇李凤阁胡素君
Owner HARBIN INST OF TECH
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